[ltp] Bluetooth hotkey problem with T41

Mlundgre linux-thinkpad@linux-thinkpad.org
Fri, 10 Aug 2007 23:46:50 +0300 (EEST)


Marius Gedminas wrote:
>
> I like to keep my Bluetooth off, and Wifi on.  As a consequence I don't
> want a single hot key to toggle both, so I mapped Fn-F6 to toggling
> bluetooth via a shell script in /etc/acpi and an event file in
> /etc/acpi/events/.  I'd paste the config here, but I don't have it on
> this laptop yet.

This approach sounds good, so I'll be waiting your configs... =D

>
>> I'd like get Fn+F5 hotkey working, but don't know how it can be done.
>
> Are you sure it doesn't work?  Ubuntu's script makes Fn-F5 switch
> between four states: both on, wifi off+bt on, wifi on+bt off, both off.
> If you just try it once, most likely you won't notice any change.

I have tried pressing Fn+F5 several times in a row, but neither wifi nor
bluetooth switches off. My wifi connection was active during testing, but I
guess wifi can be switched off although it has an active connection ongoing?

Matthias Himber wrote:
>
>That's a subtlety of the shell: output redirection is not affected by
>prepending "sudo". Either create a shellscript contining those commands and
>call it with sudo, or use tee:
>  echo enable | sudo tee /proc/acpi/ibm/bluetooth
>  echo disable | sudo tee /proc/acpi/ibm/bluetooth

These ones seems to be working quite nice, but working hotkey would be a
little bit easier in a every day use. Is there any ways to analyse this
problem, e.g. checking some logs or something like that?

BR,
Mika-Petteri Lundgren