You are not logged in.

#1 2011-12-16 06:17:39

jon
Member
Registered: 2002-11-28
Posts: 87

Thinkpad Fn-F5 toggles WIFI not Bluetooth

I'm trying to get Fn-F5 (toggle radios) on my Thinkpad to toggle Bluetooth only, but right now only WIFI is toggled.

I'm running the thinkpad-acpi kernel module, and I've put a radio script in /etc/acpi/events

event=ibm/hotkey HKEY 00000080 00001005                                                                                                                                        
action=/etc/acpi/actions/bluetooth.sh

I've also put a bluetooth toggle script in /etc/acpi/actions

#!/bin/bash
SYSFS="/sys/devices/platform/thinkpad_acpi/bluetooth_enable"
case "$(cat "$SYSFS")" in
  0)
    echo 1 > "$SYSFS"
    ;;
  1)
    echo 0 > "$SYSFS"
    ;;
esac

/var/log/acpid.log seems to indicate the script get loaded, but the Fn-F5 still only affects WIFI, not Bluetooth. I believe the kernel is intercepting Fn-F5 because the key always has the same effect whether acpid is running or not.

How do I prevent the kernel from intercepting Fn-F5, and get acpid to handle it?

Offline

Board footer

Powered by FluxBB