Question about the Fn keys and a T4x with Bluetooth.
Under Ubuntu, Fn+F5 seems to toggle all wireless devices. I'm trying to set up Fn+F6 to toggle Bluetooth only, as described in the second message here:
http://www.ubuntuforums.org/showthread. ... oth+marius
Can't get this to work under Ubuntu Breezy on a T42. Has anyone else tried this with any success?
Fn+F6 and Ubuntu
-
Edward Mendelson
- **SENIOR** Member

- Posts: 583
- Joined: Mon May 24, 2004 10:11 am
you will have to enable all Fn+FX-Combinations. by default only the ones which are predefined (i.e. got a function-symbol) are enabled.
after "echo 0xffff > /proc/acpi/ibm/hotkey" i used my Fn+F6 successfully for a Bluetooth-Switch-Script, but i don't know how to enable all Hotkeys on every Startup.ibm-acpi README wrote:Hot keys -- /proc/acpi/ibm/hotkey
---------------------------------
Without this driver, only the Fn-F4 key (sleep button) generates an
ACPI event. With the driver loaded, the hotkey feature enabled and the
mask set (see below), the various hot keys generate ACPI events in the
following format:
ibm/hotkey HKEY 00000080 0000xxxx
The last four digits vary depending on the key combination pressed.
All labeled Fn-Fx key combinations generate distinct events. In
addition, the lid microswitch and some docking station buttons may
also generate such events.
The following commands can be written to this file:
echo enable > /proc/acpi/ibm/hotkey -- enable the hot keys feature
echo disable > /proc/acpi/ibm/hotkey -- disable the hot keys feature
echo 0xffff > /proc/acpi/ibm/hotkey -- enable all possible hot keys
echo 0x0000 > /proc/acpi/ibm/hotkey -- disable all possible hot keys
... any other 4-hex-digit mask ...
echo reset > /proc/acpi/ibm/hotkey -- restore the original mask
-
Edward Mendelson
- **SENIOR** Member

- Posts: 583
- Joined: Mon May 24, 2004 10:11 am
Yes, that's the answer. The next (but not, unfortunately, the last) step is to put this into a script that you make executable in /etc/init.d - something like this:
Save it as /etc/init.d/my-custom-startup.sh, make it executable with sudo chmod +x.
But I can't seem to make this run at the right time (after acpid is loaded), not even with the command "sudo update-rc.d my-custom-startup 99 ."
Any suggestions would be helpful here...
Code: Select all
#! /bin/sh
# /etc/init.d/my-custom-startup.sh
echo 0xffff > /proc/acpi/ibm/hotkey &
exit 0But I can't seem to make this run at the right time (after acpid is loaded), not even with the command "sudo update-rc.d my-custom-startup 99 ."
Any suggestions would be helpful here...
-
- Similar Topics
- Replies
- Views
- Last post
-
-
The Newest GPD Pocket with Z8750 CPU Windows 10 System or Ubuntu 16.04
by laozhu » Thu Jan 12, 2017 5:02 am » in Off-Topic Stuff - 12 Replies
- 1420 Views
-
Last post by QWERTY Andreas
Wed Feb 15, 2017 3:52 am
-
-
-
How to improve audio on a Thinkpad T530 under Ubuntu?
by wrybread » Sun Mar 05, 2017 2:14 am » in Linux Questions - 1 Replies
- 1189 Views
-
Last post by wrybread
Fri Apr 07, 2017 5:38 pm
-
-
- 23 Replies
- 1302 Views
-
Last post by Thinkpad4by3
Tue May 02, 2017 8:18 am
-
-
Mxing wireless clients, AC and N, 3x3 and 2x2
by hhhd1 » Tue May 30, 2017 4:37 pm » in GENERAL ThinkPad News/Comments & Questions - 0 Replies
- 98 Views
-
Last post by hhhd1
Tue May 30, 2017 4:37 pm
-
Who is online
Users browsing this forum: No registered users and 3 guests



