[ltp] Using rf_kill

Damjan linux-thinkpad@linux-thinkpad.org
Mon, 12 May 2008 20:05:43 +0200


I'd like to have the possibility to unload the iwl3945 module when
rf_kill is ON (i.e. rf_kill IS kill radio), and to load the module when
the rf_kill is OFF.

Now, switching the rf_kill switch generates an "ibm/hotkey HKEY 00000080
00007000" event, but how do I test the current state of the switch?

There's a "./devices/pci0000:00/0000:00:1c.1/0000:03:00.0/rf_kill" but
it will dissappear when the iwl3945 module is unloaded. And I don't know
what the contents of that file is.

X60s, tpacpi 0.20-20080430, etc.

-- 
damjan | дамјан
This is my jabber ID -->         damjan@bagra.net.mk 
 -- not my mail address, it's a Jabber ID --^ :)