[ltp] T61 hotkey_mask changed after resuming from suspend to ram

Jens Rutschmann linux-thinkpad@linux-thinkpad.org
Tue, 24 Jul 2012 23:27:13 +0200


Am 24.07.2012 01:25 schrieb Henrique de Moraes Holschuh:
>> At least dmesg contains 'thinkpad_acpi: ACPI backlight control delay
>> disabled' when resuming, so I think 'hotkey_resume()' is called as
>> it in turn calls 'tpacpi_disable_brightness_delay()' which prints
>> that line.
>
> When did it stop working?
Unfortunately I can't tell as I started messing with the Fn+F7 key just a few days ago.

>> I also grepped through /etc and /lib/udev to check if something
>> changes the hotkey_mask but couldn't find anything besides my
>> local.start script that sets it to the recommended value. Should I
>> check other paths as well ?
>
> modprobe thinkpad-acpi debug=0xffff will tell you if anything messes with
> sysfs or procfs and changes the mask.


I rebooted + supended and resumed with debugging enabled and grepped dmesg, see below.
It seems the X process is accessing the proc interface /proc/acpi/ibm/hotkey

Does anyone know what that could be? I'm using the KDE functionality for supending but I guess if that was the culprit 
then ps wouldn't show X. I also grepped through /usr/share and ~/.kde4 for "ibm/hotkey"  but couldn't find anything.


ps -ef:

UID        PID  PPID  C STIME TTY          TIME CMD
root      1473  1469  4 23:02 tty7     00:00:15 /usr/bin/X -br -novtswitch -quiet :0 vt7 -nolisten tcp -auth 
/var/run/xauth/A:0-jf76Ya



dmesg | grep thinkpad:

[    0.994742] thinkpad_acpi: tpacpi_acpi_handle_locate: trying to locate ACPI handle for ec, using HID PNP0C09
[    0.994852] thinkpad_acpi: tpacpi_acpi_handle_locate: Found ACPI handle for ec
[    0.994855] thinkpad_acpi: ThinkPad ACPI Extras v0.24
[    0.994857] thinkpad_acpi: http://ibm-acpi.sf.net/
[    0.994859] thinkpad_acpi: ThinkPad BIOS 7LETC7WW (2.27 ), EC 7KHT24WW-1.08
[    0.994861] thinkpad_acpi: Lenovo ThinkPad T61, model 6457W2C
[    0.994863] thinkpad_acpi: drv_acpi_handle_init: trying to locate ACPI handle for ecrd
[    0.994866] thinkpad_acpi: drv_acpi_handle_init: ACPI handle for ecrd not found
[    0.994868] thinkpad_acpi: drv_acpi_handle_init: trying to locate ACPI handle for ecwr
[    0.994871] thinkpad_acpi: drv_acpi_handle_init: ACPI handle for ecwr not found
[    0.995298] thinkpad_acpi: tpacpi_detect_brightness_capabilities: detecting firmware brightness interface capabilities
[    0.995302] thinkpad_acpi: tpacpi_acpi_handle_locate: trying to locate ACPI handle for video, using HID LNXVIDEO
[    0.995479] thinkpad_acpi: tpacpi_acpi_handle_locate: Found ACPI handle for video
[    0.995481] thinkpad_acpi: detected a 8-level brightness capable ThinkPad
[    0.995483] thinkpad_acpi: ibm_init: probing for driver
[    0.995485] thinkpad_acpi: ibm_init: driver installed
[    0.995488] thinkpad_acpi: ibm_init: probing for hotkey
[    0.995490] thinkpad_acpi: hotkey_init: initializing hotkey subdriver
[    0.995492] thinkpad_acpi: drv_acpi_handle_init: trying to locate ACPI handle for hkey
[    0.995497] thinkpad_acpi: drv_acpi_handle_init: Found ACPI handle HKEY for hkey
[    0.995499] thinkpad_acpi: hotkey_init: hotkeys are supported
[    0.996607] thinkpad_acpi: ACPI backlight control delay disabled
[    0.996616] thinkpad_acpi: hotkey_init: firmware HKEY interface version: 0x100
[    0.996623] thinkpad_acpi: hotkey_init: hotkey masks are supported
[    0.996778] thinkpad_acpi: radio switch found; radios are enabled
[    0.996791] thinkpad_acpi: hotkey_init: using keymap number 1
[    0.996796] thinkpad_acpi: hotkey_init: hotkey source mask 0x00000000, polling freq 10
[    0.996798] thinkpad_acpi: hotkey_init: enabling firmware HKEY event interface...
[    0.997643] thinkpad_acpi: hotkey_init: initial masks: user=0x008dffff, fw=0x008dffff, poll=0x00000000
[    0.997646] thinkpad_acpi: hotkey_init: legacy ibm/hotkey event reporting over procfs enabled
[    0.997649] thinkpad_acpi: register_tpacpi_subdriver: registering hotkey as an ACPI driver
[    0.997689] thinkpad_acpi: setup_acpi_notify: setting up ACPI notify for hotkey
[    0.997693] thinkpad_acpi: ibm_init: hotkey installed
[    0.997698] thinkpad_acpi: ibm_init: probing for bluetooth
[    0.997699] thinkpad_acpi: bluetooth_init: initializing bluetooth subdriver
[    0.997701] thinkpad_acpi: drv_acpi_handle_init: trying to locate ACPI handle for hkey
[    0.997708] thinkpad_acpi: drv_acpi_handle_init: Found ACPI handle HKEY for hkey
[    0.997952] thinkpad_acpi: bluetooth_init: bluetooth is supported, status 0x01
[    0.998275] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is blocked
[    0.998279] thinkpad_acpi: ibm_init: bluetooth installed
[    0.998282] thinkpad_acpi: ibm_init: probing for wan
[    0.998284] thinkpad_acpi: wan_init: initializing wan subdriver
[    0.998286] thinkpad_acpi: drv_acpi_handle_init: trying to locate ACPI handle for hkey
[    0.998292] thinkpad_acpi: drv_acpi_handle_init: Found ACPI handle HKEY for hkey
[    0.998458] thinkpad_acpi: wan_init: wan is supported, status 0x04
[    0.998460] thinkpad_acpi: wan_init: wan hardware not installed
[    0.998462] thinkpad_acpi: ibm_init: probing for light
[    0.998464] thinkpad_acpi: light_init: initializing light subdriver
[    0.998466] thinkpad_acpi: drv_acpi_handle_init: trying to locate ACPI handle for cmos
[    0.998470] thinkpad_acpi: drv_acpi_handle_init: Found ACPI handle \UCMS for cmos
[    0.998746] thinkpad_acpi: light_init: light is supported, light status is supported
[    0.998887] thinkpad_acpi: ibm_init: light installed
[    0.998890] thinkpad_acpi: ibm_init: probing for cmos
[    0.998892] thinkpad_acpi: cmos_init: initializing cmos commands subdriver
[    0.998894] thinkpad_acpi: drv_acpi_handle_init: trying to locate ACPI handle for cmos
[    0.998898] thinkpad_acpi: drv_acpi_handle_init: Found ACPI handle \UCMS for cmos
[    0.998900] thinkpad_acpi: cmos_init: cmos commands are supported
[    0.998903] thinkpad_acpi: ibm_init: cmos installed
[    0.998906] thinkpad_acpi: ibm_init: probing for led
[    0.998907] thinkpad_acpi: led_init: initializing LED subdriver
[    0.998910] thinkpad_acpi: led_init: LED commands are supported, mode 3
[    0.998964] thinkpad_acpi: ibm_init: led installed
[    0.998967] thinkpad_acpi: ibm_init: probing for beep
[    0.998969] thinkpad_acpi: beep_init: initializing beep subdriver
[    0.998971] thinkpad_acpi: drv_acpi_handle_init: trying to locate ACPI handle for beep
[    0.998974] thinkpad_acpi: drv_acpi_handle_init: Found ACPI handle BEEP for beep
[    0.998976] thinkpad_acpi: beep_init: beep is supported
[    0.998978] thinkpad_acpi: ibm_init: beep installed
[    0.998981] thinkpad_acpi: ibm_init: probing for thermal
[    0.998982] thinkpad_acpi: thermal_init: initializing thermal subdriver
[    1.001801] thinkpad_acpi: thermal_init: thermal is supported, mode 4
[    1.001815] thinkpad_acpi: ibm_init: thermal installed
[    1.001818] thinkpad_acpi: ibm_init: probing for brightness
[    1.001820] thinkpad_acpi: brightness_init: initializing brightness subdriver
[    1.001822] thinkpad_acpi: Standard ACPI backlight interface available, not loading native one
[    1.001824] thinkpad_acpi: ibm_init: probing for volume
[    1.001826] thinkpad_acpi: volume_init: initializing volume subdriver
[    1.001828] thinkpad_acpi: volume_init: driver auto-selected volume_mode=3
[    1.001831] thinkpad_acpi: volume_init: mute is supported, volume control is not supported
[    1.001891] thinkpad_acpi: Console audio control enabled, mode: monitor (read only)
[    1.001893] thinkpad_acpi: volume_init: registering volume hotkeys as change notification
[    1.002822] thinkpad_acpi: ibm_init: volume installed
[    1.002826] thinkpad_acpi: ibm_init: probing for fan
[    1.002828] thinkpad_acpi: fan_init: initializing fan subdriver
[    1.003030] thinkpad_acpi: fan_init: fan is supported, modes 2, 2
[    1.003032] thinkpad_acpi: fan_init: fan control features disabled by parameter
[    1.003204] thinkpad_acpi: ibm_init: fan installed
[    1.003259] input: ThinkPad Extra Buttons as /devices/platform/thinkpad_acpi/input/input5
[    8.242832] thinkpad_acpi: procfs hotkey: PID 1473: set mask to 0x0000ffbf
[    9.206150] thinkpad_acpi: hotkey_mask: PID 1550: set to 0x008dffff
[   26.258286] thinkpad_acpi: volume_get_status_ec: status 0x07
[   26.918022] thinkpad_acpi: volume_get_status_ec: status 0x07
[   29.887030] thinkpad_acpi: volume_get_status_ec: status 0x07

<suspend and resume here>

[  269.012106] thinkpad_acpi: procfs hotkey: PID 1473: set mask to 0x008dffff
[  272.010554] thinkpad_acpi: ACPI backlight control delay disabled
[  272.016446] thinkpad_acpi: volume_get_status_ec: status 0x07
[  272.020446] thinkpad_acpi: volume_get_status_ec: status 0x07
[  272.071365] thinkpad_acpi: procfs: PID 2416: attempt to disable bluetooth
[  272.071368] thinkpad_acpi: bluetooth_set_status: will attempt to disable bluetooth
[  274.248038] thinkpad_acpi: procfs hotkey: PID 1473: set mask to 0x0000ffbf