You are not logged in.

#1 2012-07-29 08:26:31

Liuuutas
Member
From: Cambridge
Registered: 2009-05-02
Posts: 71

Thinkpad hotkeys broken

Hello people,

I can't find any information on that, but my thinkpad hotkeys stopped working when I switched from Gentoo testing to Arch about a month ago. Previously there were no problems, but now I can not get all the fn+f# key combinations working. If I run acpi_listen I get something as bellow:

button/fnf1 FNF1 00000080 00000000 K            # fn + f1
button/screenlock SCRNLCK 00000080 00000000 K   # fn + f2
button/battery BAT 00000080 00000000 K          # fn + f3
button/sleep SBTN 00000080 00000000 K           # fn + f4
button/wlan WLAN 00000080 00000000 K            # fn + f5
                                                # fn + f6 missing
video/switchmode VMOD 00000080 00000000 K       # fn + f7
                                                # fn + f8 missing
button/f24 F24 00000080 00000000 K              # fn + f9
                                                # fn + f10 missing
button/fnf11 FF11 00000080 00000000 K           # fn + f11
button/suspend SUSP 00000080 00000000 K         # fn + f12
                                                #
#################################################

# Usual output:

ibm/hotkey HKEY 00000080 00001001               # fn + f1
ibm/hotkey HKEY 00000080 00001002               # fn + f2
ibm/hotkey HKEY 00000080 00001003               # fn + f3
ibm/hotkey HKEY 00000080 00001004               # fn + f4
ibm/hotkey HKEY 00000080 00001005               # fn + f5
ibm/hotkey HKEY 00000080 00001006               # fn + f6
ibm/hotkey HKEY 00000080 00001007               # fn + f7
ibm/hotkey HKEY 00000080 00001008               # fn + f8
ibm/hotkey HKEY 00000080 00001009               # fn + f9
ibm/hotkey HKEY 00000080 0000100a               # fn + f10
ibm/hotkey HKEY 00000080 0000100b               # fn + f11
ibm/hotkey HKEY 00000080 0000100c               # fn + f12

Did anybody have similar problems?

If more details of my system are needed, then please let me know.

Cheers,
Ignas

EDIT: Actually I can not remember it working as it should since I switched back to Arch about a month ago....

Last edited by Liuuutas (2012-07-29 15:31:48)

Offline

#2 2012-07-29 11:31:29

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: Thinkpad hotkeys broken

How the hotkeys are recognized by acpi has changed in the last year or so.
You likely will need to edit /etc/acpi/handler.sh
Haven't done this myself to provide much more help.  There are some other threads regarding this subject here on this forum - try searching for them.

See also:
https://wiki.archlinux.org/index.php/AC … ring_ACPID

Last edited by David Batson (2012-07-29 11:32:29)

Offline

#3 2012-07-29 16:34:35

Liuuutas
Member
From: Cambridge
Registered: 2009-05-02
Posts: 71

Re: Thinkpad hotkeys broken

Hi David,

Well, the thing is that everything worked great when I was using Gentoo (I went back to Arch about a month ago)... So it might be very recent change, but the information I have found suggests, that there was a change in config of kernel or something else which changed how things work.

I found a bug on our BT[1] and I have also found a mailing list thread[2].

[1] - https://bugs.archlinux.org/index.php?do … k_id=26658
[2] - http://www.serverphorums.com/read.php?12,401811

Maybe when I have time, I might compile a minimal kernel... But I checked the config of the kernel and it *should* be allright.

Cheers,
Ignas

Offline

#4 2012-07-29 20:04:49

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: Thinkpad hotkeys broken

Offline

#5 2012-07-30 12:10:42

Natanji
Member
Registered: 2009-09-22
Posts: 133

Re: Thinkpad hotkeys broken

It would be awesome if you could check the difference between the Gentoo and Arch kernel. It seems to me like this is an Arch-specific kernel bug, but so far nobody has really worked on it. If it works on an up-to-date-Gentoo still, and not on Arch, we should really find out why...

I've never compiled an own kernel so I really have no clue how to test all of this. Please do it!

What's even more serious than the Fn+Fx-keys btw, is that a few Tablet-specific Thinkpad events no longer work: they were not replaced with other buttons, but are simply missing alotgether now (i.e. the "screen swivel" event or the "remove digitizer pen from slot" event).

Offline

#6 2012-07-30 13:28:19

Liuuutas
Member
From: Cambridge
Registered: 2009-05-02
Posts: 71

Re: Thinkpad hotkeys broken

Ok, I'll try to check out, I think what I'll do is dig into the differences in config and/or compile a minimal kernel which works for me and then see the differences...

Too bad I don't have a Gentoo installation anymore.... smile

I.

Offline

#7 2012-07-30 15:53:35

xduugu
Member
Registered: 2008-10-16
Posts: 292

Re: Thinkpad hotkeys broken

I think it is the (deprecated) config option CONFIG_ACPI_PROCFS that was disabled last year. Also see https://bbs.archlinux.org/viewtopic.php?id=127795

Offline

#8 2012-07-31 23:27:56

Liuuutas
Member
From: Cambridge
Registered: 2009-05-02
Posts: 71

Re: Thinkpad hotkeys broken

Before recompiling everything. I think it's rather strange, but acpid2 should suport sysfs and netlink. Hence there should be no problem there, but I noticed something on the homepage [1] of the project, which made me wonder (the bottom of the page). However, it is way older than the bug report date, so I am still wondering if this really has to do anything with CONFIG_ACPI_PROCFS.

I also do not think that this has to do anything with acpid2 as everything should be supported.

However, I have no idea about the thinkpad_acpi module.

On the other hand, these are just my speculations without any proper linux kernel knowledge...

[1] - http://tedfelix.com/linux/acpid-netlink.html

EDIT: Just an interesting thing I've just noticed an interesting thing:

[ 5074.868888] input: ThinkPad Extra Buttons as /devices/platform/thinkpad_acpi/input/input19

Usually the location should be

/sys/devices/platform/.......................

Or have I confused myself?

Last edited by Liuuutas (2012-07-31 23:53:27)

Offline

#9 2012-08-01 06:25:57

xduugu
Member
Registered: 2008-10-16
Posts: 292

Re: Thinkpad hotkeys broken

Well, that CONFIG_ACPI_PROCFS is responsible for this is what others (including me) observed...
https://bbs.archlinux.org/viewtopic.php … 3#p1008463

Offline

#10 2012-08-01 15:52:21

Liuuutas
Member
From: Cambridge
Registered: 2009-05-02
Posts: 71

Re: Thinkpad hotkeys broken

Well the thing is thinkpad_acpi should support input layer and acpid should support that either... And enabling CONFIG_ACPI_PROCFS is not really a real solution to the problem. I mean, that it is not reasonable to recompile the kernel everytime a new version is released.... Of course I could do that, but guess why I switched back from Gentoo to Arch? big_smile

For refernce, thinkpad-acpi [1] documentation and acpid [2] homepage (I think I have put the link somewhere).

[1] - http://www.mjmwired.net/kernel/Document … d-acpi.txt
[2] - http://tedfelix.com/linux/acpid-netlink.html

Offline

#11 2012-08-01 20:02:25

xduugu
Member
Registered: 2008-10-16
Posts: 292

Re: Thinkpad hotkeys broken

You asked why it works in Gentoo and I told you what is most likely the difference, nothing more. I don't see your problem here, just change your script to the emitted generic hotkey signals, as everyone else has done. If you think this is not a solution for you and there is a bug in thinkpad_acpi or acpid, feel free to file a bugreport upstream.

Offline

Board footer

Powered by FluxBB