Your issue is that you don't have anything to handle the acpi event. I'm not sure what distro you are running. But at least under Ubuntu there is a deamon that montiors for the acpi events. Once it sees the event it then launches a script associated with the event. So for the wireless button FN+F5 the current behavior is to toggle wireless and bluetooth. Though I did write a script to only have it toggle bluetooth. The package is called "acpi-support" in debian & Ubuntu. I'm assuming you are running Suse. Doing a quick google there is a pacakage called "acpid" that looks to do the same thing. So you will need to associate a script to manipulate /proc/acpi/ibm/bluetooth. But thinkpad ACPI is doing it's job since you see the event with acpi-listen. On Wed, May 14, 2008 at 7:21 AM, Thomas Renninger <trenn@xxxxxxx> wrote: > Hi, > > Andreas has (AFAIK an X61?) Lenovo ThinkPad. > > When pressing the bluetooth button he gets: > acpi_listen > ibm/hotkey HKEY 00000080 00001005 > > but bluetooth is not enabled. > > echo 1 > /sys/devices/platform/thinkpad_acpi/bluetooth_enable > works. > > Kernel: 2.6.25 > > Shouldn't the thinkpad driver do this automatically? > If this should get routed through userspace, then probably a more > general interface than /sys/.../thinkpad_acpi/bluetooth_enable should > get used or this ends up in a vendor specific nightmare? > > Is it correct that only kill switch events are directly passed to the > corresponding driver inside the kernel? > > WLAN/Bluetooth buttons are intended to be routed through userspace? > But Hal only passes them as dbus events which in turn need to be picked > up by e.g. network manager to switch off the wlan interface? > The button (not the kill switch) approach sound rather broken. > There should be keys existing with both, bluetooth and wlan switching > (I've heard that even on Windows user can decide on key press what to > enable/disable). But doing this in Linux (pass it from the kernel to hal > to another userspace/X-app) sounds rather error prone. IMO this should > also just be done in kernel (if possible)? > > Thanks, > > Thomas > > Thomas > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > ibm-acpi-devel mailing list > ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ ibm-acpi-devel mailing list ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel