← Back to team overview

kernel-packages team mailing list archive

[Bug 900146] Re: X windows resets thinkpad hotkeys when coming out of suspend

 

[Expired for linux (Ubuntu) because there has been no activity for 60
days.]

** Changed in: linux (Ubuntu)
       Status: Incomplete => Expired

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

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

Status in “linux” package in Ubuntu:
  Expired

Bug description:
  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.
  --- 
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
  ApportVersion: 1.23-0ubuntu4
  Architecture: i386
  ArecordDevices:
   **** List of CAPTURE Hardware Devices ****
   card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
     Subdevices: 2/2
     Subdevice #0: subdevice #0
     Subdevice #1: subdevice #1
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  sethrandall   1657 F.... xfce4-volumed
                        sethrandall   3587 F.... pulseaudio
   /dev/snd/controlC29: sethrandall   1657 F.... xfce4-volumed
  CRDA: Error: [Errno 2] No such file or directory
  Card0.Amixer.info:
   Card hw:0 'Intel'/'HDA Intel at 0xfe220000 irq 48'
     Mixer name	: 'Analog Devices AD1984'
     Components	: 'HDA:11d41984,17aa20bb,00100400'
     Controls      : 31
     Simple ctrls  : 19
  Card29.Amixer.info:
   Card hw:29 'ThinkPadEC'/'ThinkPad Console Audio Control at EC reg 0x30, fw 7KHT24WW-1.08'
     Mixer name	: 'ThinkPad EC 7KHT24WW-1.08'
     Components	: ''
     Controls      : 1
     Simple ctrls  : 1
  Card29.Amixer.values:
   Simple mixer control 'Console',0
     Capabilities: pswitch pswitch-joined penum
     Playback channels: Mono
     Mono: Playback [on]
  DistroRelease: Ubuntu 11.10
  EcryptfsInUse: Yes
  InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
  MachineType: LENOVO 6459CTO
  NonfreeKernelModules: nvidia
  Package: linux (not installed)
  PccardctlIdent:
   Socket 0:
     no product info available
  PccardctlStatus:
   Socket 0:
     no card
  ProcEnviron:
   PATH=(custom, user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-13-generic-pae root=UUID=1a22e902-645d-45bb-b612-c4fdd39eb788 ro quiet splash vt.handoff=7
  ProcVersionSignature: Ubuntu 3.0.0-13.22-generic-pae 3.0.6
  RelatedPackageVersions:
   linux-restricted-modules-3.0.0-13-generic-pae N/A
   linux-backports-modules-3.0.0-13-generic-pae  N/A
   linux-firmware                                1.60
  Tags:  oneiric
  Uname: Linux 3.0.0-13-generic-pae i686
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm admin audio cdrom dialout disk floppy fuse lpadmin netdev plugdev sambashare scanner vboxusers video
  WifiSyslog:
   Dec  5 16:46:46 Drifter wpa_supplicant[1016]: WPA: Group rekeying completed with 00:24:a5:b3:e6:7c [GTK=TKIP]
   Dec  5 16:47:13 Drifter kernel: [ 6095.622280] thinkpad_acpi: volume_get_status_ec: status 0x07
   Dec  5 16:47:13 Drifter kernel: [ 6095.634230] thinkpad_acpi: volume_get_status_ec: status 0x07
  dmi.bios.date: 04/08/2010
  dmi.bios.vendor: LENOVO
  dmi.bios.version: 7LETC7WW (2.27 )
  dmi.board.name: 6459CTO
  dmi.board.vendor: LENOVO
  dmi.board.version: Not Available
  dmi.chassis.asset.tag: No Asset Information
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: Not Available
  dmi.modalias: dmi:bvnLENOVO:bvr7LETC7WW(2.27):bd04/08/2010:svnLENOVO:pn6459CTO:pvrThinkPadT61:rvnLENOVO:rn6459CTO:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
  dmi.product.name: 6459CTO
  dmi.product.version: ThinkPad T61
  dmi.sys.vendor: LENOVO

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