You are not logged in.

#1 2018-09-14 10:17:51

sjensen
Member
From: Germany
Registered: 2018-08-08
Posts: 27

Two ACPI events per one button press with thinkpad-acpi

Hi,...

with "acpi_backlight=vendor" set on my "Lenovo Thinkpad X200" using Gnome and "tp_smapi 0.43", when I press the "brightness up" (Fn+Pos1) or "brightness down" (Fn+End) buttons, I get two ACPI events per one button press:

root[4736]: ACPI group/action undefined: video/brightnessdown / BRTDN
root[4738]: ACPI group/action undefined: video/brightnessdown / BRTDN
pkexec[4741]: jensen: Executing command [USER=root] [TTY=unknown] [CWD=/home/jensen] [COMMAND=/usr/lib/gsd-backlight-helper --set-brightness 14]
pkexec[4747]: jensen: Executing command [USER=root] [TTY=unknown] [CWD=/home/jensen] [COMMAND=/usr/lib/gsd-backlight-helper --set-brightness 13]
root[4753]: ACPI group/action undefined: video/brightnessup / BRTUP
root[4755]: ACPI group/action undefined: video/brightnessup / BRTUP
pkexec[4758]: jensen: Executing command [USER=root] [TTY=unknown] [CWD=/home/jensen] [COMMAND=/usr/lib/gsd-backlight-helper --set-brightness 14]
pkexec[4764]: jensen: Executing command [USER=root] [TTY=unknown] [CWD=/home/jensen] [COMMAND=/usr/lib/gsd-backlight-helper --set-brightness 15]

Since with Gnome, backlight changes are kind of slow and cpu heavy (don't know why this is), it results in an even slower change while having to do it two times on one button press. It also reduces the possible brightness steps to 1/2. This does not happen, when I use the "intel_backlight", but unfortunately, than I have an uneven backlight. So rather like to use "thinkpad_screen".

$dmesg|grep DMI

[    0.000000] DMI: LENOVO 7454CTO/7454CTO, BIOS 6DET72WW (3.22 ) 10/25/2012

$dmesg|grep -E 'thinkpad_acpi|thinkpad_ec|hdaps|tp_smapi'

[    1.963931] thinkpad_ec: thinkpad_ec 0.43 loaded.
[    1.980687] hdaps: LENOVO ThinkPad X200 detected, setting orientation 7
[    1.980803] hdaps: initial mode latch is 0x05
[    1.980938] hdaps: setting ec_rate=250, filter_order=2
[    1.981156] hdaps: device successfully initialized.
[    1.981248] hdaps: driver successfully loaded.
[    2.961667] thinkpad_acpi: tpacpi_acpi_handle_locate: Found ACPI handle for ec
[    2.961668] thinkpad_acpi: ThinkPad ACPI Extras v0.26
[    2.961669] thinkpad_acpi: http://ibm-acpi.sf.net/
[    2.961670] thinkpad_acpi: ThinkPad BIOS 6DET72WW (3.22 ), EC 7XHT25WW-1.07
[    2.961672] thinkpad_acpi: Lenovo ThinkPad X200, model 7454CTO
[    3.043790] thinkpad_acpi: tpacpi_acpi_handle_locate: Found ACPI handle for video
[    3.043838] thinkpad_acpi: ibm_init: probing for driver
[    3.043839] thinkpad_acpi: ibm_init: driver installed
[    3.043845] thinkpad_acpi: ibm_init: probing for hotkey
[    3.043859] thinkpad_acpi: drv_acpi_handle_init: Found ACPI handle HKEY for hkey
[    3.044095] thinkpad_acpi: radio switch found; radios are enabled
[    3.044112] thinkpad_acpi: hotkey_init: using keymap number 1
[    3.044251] thinkpad_acpi: hotkey_init: enabling firmware HKEY event interface...
[    3.045834] thinkpad_acpi: register_tpacpi_subdriver: registering hotkey as an ACPI driver
[    3.047230] thinkpad_acpi: ibm_init: hotkey installed
[    3.047236] thinkpad_acpi: ibm_init: probing for bluetooth
[    3.047260] thinkpad_acpi: drv_acpi_handle_init: Found ACPI handle HKEY for hkey
[    3.054406] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is unblocked
[    3.054411] thinkpad_acpi: ibm_init: bluetooth installed
[    3.054415] thinkpad_acpi: ibm_init: probing for wan
[    3.054423] thinkpad_acpi: drv_acpi_handle_init: Found ACPI handle HKEY for hkey
[    3.057984] thinkpad_acpi: rfkill switch tpacpi_wwan_sw: radio is unblocked
[    3.057988] thinkpad_acpi: ibm_init: wan installed
[    3.057991] thinkpad_acpi: ibm_init: probing for video
[    3.058000] thinkpad_acpi: drv_acpi_handle_init: Found ACPI handle \_SB.PCI0.VID for vid
[    3.058001] thinkpad_acpi: ibm_init: video installed
[    3.058007] thinkpad_acpi: ibm_init: probing for kbdlight
[    3.058013] thinkpad_acpi: drv_acpi_handle_init: Found ACPI handle HKEY for hkey
[    3.058015] thinkpad_acpi: ibm_init: probing for light
[    3.058018] thinkpad_acpi: drv_acpi_handle_init: Found ACPI handle \UCMS for cmos
[    3.058425] thinkpad_acpi: ibm_init: light installed
[    3.058427] thinkpad_acpi: ibm_init: probing for cmos
[    3.058432] thinkpad_acpi: drv_acpi_handle_init: Found ACPI handle \UCMS for cmos
[    3.058434] thinkpad_acpi: ibm_init: cmos installed
[    3.058436] thinkpad_acpi: ibm_init: probing for led
[    3.058499] thinkpad_acpi: ibm_init: led installed
[    3.058501] thinkpad_acpi: ibm_init: probing for beep
[    3.058504] thinkpad_acpi: drv_acpi_handle_init: Found ACPI handle BEEP for beep
[    3.058505] thinkpad_acpi: ibm_init: beep installed
[    3.058506] thinkpad_acpi: ibm_init: probing for thermal
[    3.062628] thinkpad_acpi: ibm_init: thermal installed
[    3.062631] thinkpad_acpi: ibm_init: probing for brightness
[    3.062632] thinkpad_acpi: Standard ACPI backlight interface not available, thinkpad_acpi native brightness control enabled
[    3.064375] thinkpad_acpi: ibm_init: brightness installed
[    3.064377] thinkpad_acpi: ibm_init: probing for volume
[    3.064379] thinkpad_acpi: volume_init: driver auto-selected volume_mode=3
[    3.064569] thinkpad_acpi: volume_set_software_mute: Initial HAUM setting was 0
[    3.067071] thinkpad_acpi: ibm_init: volume installed
[    3.067076] thinkpad_acpi: ibm_init: probing for fan
[    3.067480] thinkpad_acpi: ibm_init: fan installed
[    3.067483] thinkpad_acpi: ibm_init: probing for mute_led
[    3.067487] thinkpad_acpi: ibm_init: mute_led installed
[    3.067488] thinkpad_acpi: ibm_init: probing for battery
[    3.067493] thinkpad_acpi: battery 1 registered (start 0, stop 0)
[    3.067498] thinkpad_acpi: ibm_init: battery installed
[    3.067561] input: ThinkPad Extra Buttons as /devices/platform/thinkpad_acpi/input/input7
[    5.731737] tp_smapi 0.43 loading...
[    5.731920] tp_smapi successfully loaded (smapi_port=0xb2).

$ls -l /sys/class/backlight/

insgesamt 0
lrwxrwxrwx 1 root root 0 14. Sep 09:49 intel_backlight -> ../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-LVDS-1/intel_backlight
lrwxrwxrwx 1 root root 0 14. Sep 09:49 thinkpad_screen -> ../../devices/virtual/backlight/thinkpad_screen

Only the brightness up" (Fn+Pos1) or "brightness down" (Fn+End) buttons are reported twice, all other work fine:

root[5333]: ACPI group/action undefined: cd/stop / CDSTOP
root[5335]: ACPI group/action undefined: cd/next / CDNEXT
root[5337]: ACPI group/action undefined: cd/prev / CDPREV
root[5339]: ACPI group/action undefined: cd/play / CDPLAY
root[5341]: ACPI group/action undefined: button/mute / MUTE
root[5343]: ACPI group/action undefined: button/volumeup / VOLUP
root[5345]: ACPI group/action undefined: button/volumedown / VOLDN
root[5347]: ACPI group/action undefined: button/volumeup / VOLUP
root[5352]: ACPI group/action undefined: button/f24 / F24
root[5356]: ACPI group/action undefined: video/switchmode / VMOD
root[5358]: ACPI group/action undefined: button/battery / BAT
root[5361]: ACPI group/action undefined: button/wlan / WLAN
root[5533]: ACPI group/action undefined: video/brightnessdown / BRTDN
root[5535]: ACPI group/action undefined: video/brightnessdown / BRTDN
root[5550]: ACPI group/action undefined: video/brightnessup / BRTUP
root[5552]: ACPI group/action undefined: video/brightnessup / BRTUP

Is this a possible bug in thinkpad_acpi or tp_smapi? Where does the second button report come from?

Offline

Board footer

Powered by FluxBB