[NCLUG] power button & lid actoins in Debian Jessie.

John Gilmore j.arthur.gilmore at gmail.com
Tue Sep 16 19:06:55 MDT 2014


An old one - IBM thinkpad T43.

"pm-hibernate" can't do anything, needs to be "sudo pm-hibernate" So
usually I'll have to enter my password if I want to hibernate. Except
I found a work-around.

As for which keys work how, I just did a little more testing, and:
xev shows XF86Launch1 ("access IBM"), XF86Suspend, XF86Display, XF86Screensaver.

Volume buttons, power button, hibernate button, and search button
don't register in xev or syslog, and also don't do anything.

XF86WLAN registers in xev, and works.

I don't see the lid button with xev, and the first thing that shows up
in syslog on suspend is networkmanager saying it's suspending. (since
I've modified the acpi scripts to log when called, it's not them.)

In console mode, hibernate and suspend keys work! Yay! Immediate
problem resolved, I can just switch to console before hibernating.
showkeys --scancodes give the following:
Screensaver :0xe0 0x63 0xe0 0x12 0xe0 0x92
Sleep: 0xe0 0x5f 0xe0 0xdf
Display: 0xe0 0x56 0xe0 0xd6
Wlan: 0xe0 0x73 0xe0 0xf3
Hibernate: 0xe0 0x25 0xe0 0xa5

I don't have an extra monitor to test "display" right now, and the
others listed work (screensaver, not unexpectedly, does nothing.)
Volume keys still don't do anything, and the screen keys and
"flashlight" key still work fine, and still don't register anything.
The lid button works in console mode, but doesn't show in scankeys
either.

It's interesting that while VT switching is stopped completely by
showkeys, sleep/hibernate is not.

Haven't found anything at all that will even notice the volume buttons
being pressed, but I don't care. I VERY seldom do anything with sound
anyway.


On Tue, Sep 16, 2014 at 9:02 AM, Quentin Hartman <qhartman at gmail.com> wrote:
> What model laptop are you using?
>
> On Mon, Sep 15, 2014 at 6:31 PM, John Gilmore <j.arthur.gilmore at gmail.com>
> wrote:
>
>> So closing the lid suspends, that's fine - except it does it when the
>> computer IS IN THE PROCESS of hibernating. Not good. Usually
>> hibernates, and the suspends on restore.
>>
>> the gnome-tweak-tool claims that my current setting on closing the lid
>> is "hibernate"
>>
>> Using gnome3 failsafe or whatever it does when even it realizes the
>> hardware doesn't support much eye-candy.
>>
>> As far as I can tell, neither /etc/acpi/sleep-suspend.sh nor
>> /etc/acpi/powerbtn-acpi-suport.sh is getting called.
>>
>> uncommenting the lines about powerbutton and sleepbutton actions in
>> /etc/systemd/login.sh had no effect, even after SIGHUP to systemd.
>> (SIGUSR2 did cause it to dump it's configuration to the log though.
>> Maybe I could attach that, but it's kinda long.
>>
>> I'm out of ideas, and apparently so is google. Suggestions? (besides
>> whack the gnome idjits upside the head for removing all configuration
>> options....)
>>
>> Not attaching systemd's config dump, it's 22K lines long...
>>
>> It's stupid that I have to use the command line tools and type in my
>> password to suspend/hibernate
>> _______________________________________________
>> NCLUG mailing list       NCLUG at lists.nclug.org
>>
>> To unsubscribe, subscribe, or modify
>> your settings, go to:
>> http://lists.nclug.org/mailman/listinfo/nclug
>>
> _______________________________________________
> NCLUG mailing list       NCLUG at lists.nclug.org
>
> To unsubscribe, subscribe, or modify
> your settings, go to:
> http://lists.nclug.org/mailman/listinfo/nclug


More information about the NCLUG mailing list