Bug 546845 - Hotkeys for suspend/hibernate gone with KDE 4.3.x
Summary: Hotkeys for suspend/hibernate gone with KDE 4.3.x
Status: RESOLVED DUPLICATE of bug 524734
Alias: None
Product: openSUSE 11.2
Classification: openSUSE
Component: KDE4 Workspace (show other bugs)
Version: RC 2
Hardware: Other Other
: P5 - None : Major with 5 votes (vote)
Target Milestone: Final
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-14 12:04 UTC by Axel Braun
Modified: 2009-12-03 13:00 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Script I used in opensuse 11.1 handling thinkpad events (6.84 KB, application/octet-stream)
2009-11-02 09:43 UTC, Johann Schuur
Details
Python script to fix hotkeys (6.85 KB, text/x-python)
2009-11-09 12:18 UTC, Axel Braun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Braun 2009-10-14 12:04:09 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.3) Gecko/20090909 SUSE/3.5.3-3.1 Firefox/3.5.3

Hi,

the powermanagement module is not reacting on the hotkeys Fn-F4 (S2RAM) resp. Fn-F12 (S2DISK). Suspend and hibernate work fine when triggered from the power management module, but the hotkeys cant get assigned to it (was working fine with KDE 3.5, ThinkPad Z60m).
The keys themself are recognized:

axel@z60m:~> lshal -m
Start monitoring devicelist:
-------------------------------------------------
12:47:38.495: computer_logicaldev_input_3 condition ButtonPressed = hibernate
12:47:43.766: computer_logicaldev_input_3 condition ButtonPressed = sleep

respectively xev:
S2Disk:
KeyRelease event, serial 34, synthetic NO, window 0x5200001,
    root 0x6d, subw 0x0, time 678796, (854,917), root:(858,942),
    state 0x0, keycode 165 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:                                   
    XFilterEvent returns: False                                    

S2Ram:
KeyPress event, serial 34, synthetic NO, window 0x5200001,
    root 0x6d, subw 0x0, time 682263, (854,917), root:(858,942),
    state 0x0, keycode 223 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:                                   
    XmbLookupString gives 0 bytes:                                 
    XFilterEvent returns: False          

I assume the same problem in 11.2M8, but I will check...

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 Axel Braun 2009-10-31 10:30:42 UTC
I have now installed 11.2RC2 on an IBM ThinkPad A30: No hotkey for suspend/hibernate anymore - was working perfectly with 11.0/KDE 3.5
Comment 2 Johann Schuur 2009-11-02 09:43:31 UTC
Created attachment 325084 [details]
Script I used in opensuse 11.1 handling thinkpad events
Comment 3 Johann Schuur 2009-11-02 09:44:11 UTC
I can confirm this bug. My Machine:
    sys_vendor   = "IBM"
    sys_product  = "18605EG"
    sys_version  = "ThinkPad R52"
    bios_version = "70ET69WW (1.29 )"
(It is not a 64bit machine.)
I updated system from 11.1 to 11.2RC1 and then to 11.2RC2. In 11.1 everything
was working with the script I attached. It seems not to be supported anymore. the file thinkpad_handler is almost empty. why? is it now managed by the kernel?

All specific buttons are recognized, but nothing which should be handled by software, is working.
krybsnotebook:/home/kryb # lshal -m

Start monitoring devicelist:
-------------------------------------------------
10:39:37.868: computer_logicaldev_input_2 condition ButtonPressed = coffee
^@10:39:38.648: computer_logicaldev_input_2 condition ButtonPressed = sleep
^@10:39:40.161: computer_logicaldev_input_2 condition ButtonPressed = wlan
^@10:39:40.919: computer_logicaldev_input_2 condition ButtonPressed = switch-videomode
10:39:41.945: computer_logicaldev_input_2 condition ButtonPressed = hibernate
^@10:39:43.224: computer_logicaldev_input_2 condition ButtonPressed = brightness-up
^@10:39:43.885: computer_logicaldev_input_2 condition ButtonPressed = brightness-down
^@10:39:45.969: computer_logicaldev_input_2 condition ButtonPressed = kbd-illum-toggle
10:39:51.518: computer_logicaldev_input_2 condition ButtonPressed = volume-down
^@10:39:51.960: computer_logicaldev_input_2 condition ButtonPressed = volume-up
^@10:39:53.328: computer_logicaldev_input_2 condition ButtonPressed = mute
Comment 4 Axel Braun 2009-11-09 12:18:18 UTC
Created attachment 326263 [details]
Python script to fix hotkeys

Here is a little python script that I got aware of via the ThinkPad mailing list - it works fine on 11.2RC, but does not fix then handling on 11.1, both on KDE 4.3.x
Comment 5 Axel Braun 2009-11-09 13:49:44 UTC
Update: to be placed in ~/.kde4/Autostart, requires python-xlib to be installed
Comment 6 Johann Schuur 2009-11-09 17:28:03 UTC
This script worked for me for suspend, hibernate, lock display. :) still wlan and also the power button are not working. -> bug 551833
Comment 7 Petr Baudis 2009-11-21 21:53:57 UTC
My xev says:

KeyPress event, serial 34, synthetic NO, window 0x3e00001,
    root 0x10b, subw 0x0, time 37267041, (388,295), root:(392,355),
    state 0x0, keycode 150 (keysym 0x1008ff2f, XF86Sleep), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

It seems the powerdevil thing is completely ignoring XF86Sleep etc. events; I think not handling this is major usability problem, so bumping severity.

(I have also upgraded from 11.1. And BTW, I had to manually enable the powerdevil service in settings, in case that might be related. Of course since then the session got restarted many times.)
Comment 8 Forgotten User vXTZVacoSi 2009-12-03 13:00:35 UTC
Duplicate =/

*** This bug has been marked as a duplicate of bug 524734 ***