[ltp] Re: Bluetooth hotkey

Jan Kokoska linux-thinkpad@linux-thinkpad.org
Mon, 20 Sep 2004 03:11:14 +0100


On Sun, 2004-09-19 at 18:27 -0700, Borislav Deianov wrote:
> event=ibm/hotkey HKEY 00000080 00001005
> modprobe ibm_acpi hotkey=enable,0xffff 

Thank you, works like a charm!

Where would I find ACPI hotkey values in general? 

Jan

--

What I put into /etc/init.d/acpid in load_modules():

if [ "$(echo $LIST|grep ibm_acpi)" = "" ]; then
	modprobe ibm-acpi hotkey=enable,0xffff
fi

LIST is awk'ed lsmod.

/etc/acpi/actions/wifi.sh:

if [ "$(echo $LIST|grep ipw2100)" = "" ]; then
    modprobe ipw2100
else
    modprobe -r ipw2100
fi

--

This is as much as I want it to do, setting essids/keys and calling
dhclient depends on location, but since ipw2100 module doesn't play nice
with resume from memory here (tries to reload firmware and fails), I
needed a fast way to enable/disable the module.