Comment 64 for bug 53310

Revision history for this message
TomasHnyk (sup) wrote :

PJ: I did some digging and found following. My laptop should be supported with wistron_btns driver. That is a kernel driver that handles more or less the same class of laptops as acerhk. As my laptop does not output any useful dmidecode info, it cannot be recognized automatically. However, there is a parameter to tell the driver the type of my laptop. So, when I do
sudo modprobe wistron_btns force=1 keymap=1557/MS2141
the driver gets loaded and all the buttons are asigned correctly. Only the button for wifi behaves just as any normal programmable button, which it (the button) is however not supposed to do. So this is a bug in winstron_btns - if we were able to fix that, the suspend problem would be solved (I think wistron_btns implements RFKILL: http://lwn.net/Articles/194637/ and there is also something resume/suspend related in the source code of the driver).
I tried looking into the source code of the driver (it is in /drivers/input/misc/wistron_btns.c in the kernel tree) but I do not understand it very much. My laptop with the parameters above uses the ms2141 keymap - I checked with acerhk (it has a debugging mode) and found out that the keys are assigned correctly. But beyond that, I do not understand why it does not work - there seems to be code for enabling and disabling the wifi in the driver.

Do you think you could help me and (I will gladly provide testing any information) either fix the bug or forward it to the kernel people?