Public bug reported:

Steps to reproduce
1. Enable ThinkPad hotkeys with 'echo reset > /proc/acpi/ibm/hotkey'
2. 'cat /proc/acpi/ibm/hotkey' shows:
    status:             enabled 
    mask:               0x008dffff
    commands:   enable, disable, reset, <mask>
2. Suspend laptop with Fn+F4
3. Power up laptop again
4. 'cat /proc/acpi/ibm/hotkey' shows: 
    status:             enabled
    mask:               0x0000ffbf
    commands:   enable, disable, reset, <mask>

Enabling debugging on the thinkpad_acpi driver shows:
[ 2532.894191] thinkpad_acpi: procfs hotkey: PID 1045: set mask to 0x008dffff
[ 2537.807386] thinkpad_acpi: ACPI backlight control delay disabled
[ 2537.950624] thinkpad_acpi: volume_get_status_ec: status 0x07
[ 2538.118276] thinkpad_acpi: procfs: PID 2841: attempt to disable bluetooth
[ 2540.151146] thinkpad_acpi: procfs hotkey: PID 1045: set mask to 0x0000ffbf

PID 1045 in this case is:
/usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch 
-background none

An strace on 1045 shows the following:
20:48:53.106913 [b7834424] open("/proc/acpi/ibm/hotkey", O_RDWR) = 23
20:48:53.107000 [b7834424] fstat64(23, {st_dev=makedev(0, 3), 
st_ino=4026532245, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, 
st_blksize=1024, st_blocks=0, st_size=0, st_atime=2011/11/28-20:48:53, 
st_mtime=2011/11/28-20:48:53, st_ctime=2011/11/28-20:48:53}) = 0
20:48:53.107108 [b7834424] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7823000
20:48:53.107185 [b7834424] write(23, "0x8dffff\0\0", 10) = 10
20:48:53.108141 [b7834424] close(23)    = 0
20:48:53.108220 [b7834424] munmap(0xb7823000, 4096) = 0

and

20:49:13.538004 [b7834424] open("/proc/acpi/ibm/hotkey", O_RDWR) = 24
20:49:13.538135 [b7834424] fstat64(24, {st_dev=makedev(0, 3), 
st_ino=4026532245, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, 
st_blksize=1024, st_blocks=0, st_size=0, st_atime=2011/11/28-20:49:13, 
st_mtime=2011/11/28-20:49:13, st_ctime=2011/11/28-20:49:13}) = 0
20:49:13.538311 [b7834424] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb4b8f000
20:49:13.538410 [b7834424] read(24, 
"status:\t\tenabled\nmask:\t\t0x008dffff\ncommands:\tenable, disable, reset, 
<mask>\n", 1024) = 76
20:49:13.538580 [b7834424] _llseek(24, -41, [35], SEEK_CUR) = 0
20:49:13.538689 [b7834424] write(24, "0xffbf\0", 7) = 7
20:49:13.540414 [b7834424] close(24)    = 0

Instruction pointer b7834424 is listed in /proc/1045/maps as [vdso]. I'm
not sure how to determine what that is.

** Affects: ubuntu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/900146

Title:
  X windows resets thinkpad hotkeys when coming out of suspend

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/900146/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to