Difference between revisions of "Talk:Installing Ubuntu/Breezy on a ThinkPad T42"

From ThinkWiki
Jump to: navigation, search
(Questions)
 
(Using Fn-F6 to enable/disable Bluetooth)
Line 4: Line 4:
  
 
Why use noflushd when Breezy comes with laptop-mode?  Just enable it in /etc/default/acpi-support.
 
Why use noflushd when Breezy comes with laptop-mode?  Just enable it in /etc/default/acpi-support.
 +
 +
== Using Fn-F6 to enable/disable Bluetooth ==
 +
 +
First, to make sure Fn-F6 is available as a hotkey, either do
 +
 +
  echo 0xffff > /proc/acpi/ibm/hotkey
 +
 +
(this will work until next reboot or suspend), or change the mask in /etc/modprobe.d/ibm_acpi.modprobe.
 +
 +
Next, create a shell script /etc/acpi/bluetooth.sh:
 +
 +
  #!/bin/bash
 +
  # Enable/disable builtin Bluetooth on IBM Thinkpads
 +
  if grep -q enabled /proc/acpi/ibm/bluetooth; then
 +
      echo disable > /proc/acpi/ibm/bluetooth
 +
  else
 +
      echo enable > /proc/acpi/ibm/bluetooth
 +
  fi
 +
 +
Next, create an event file /etc/acpi/events/ibm-bluetooth
 +
 
 +
  # This is called when the user presses Fn-F6 button and calls
 +
  # /etc/acpi/bluetooth.sh for further processing.
 +
  event=ibm/hotkey HKEY 00000080 00001006
 +
  action=/etc/acpi/bluetooth.sh
 +
 +
You might need to restart acpid for it to start working.

Revision as of 08:33, 19 October 2005

Why is it important to turn off dynamicClocks in radeonfb in kernels before 2.6.14?

What is wrong with the wireless on/off script that comes with Breezy and is mapped to Fn-F5 out of the box? Why replace it?

Why use noflushd when Breezy comes with laptop-mode? Just enable it in /etc/default/acpi-support.

Using Fn-F6 to enable/disable Bluetooth

First, to make sure Fn-F6 is available as a hotkey, either do

 echo 0xffff > /proc/acpi/ibm/hotkey

(this will work until next reboot or suspend), or change the mask in /etc/modprobe.d/ibm_acpi.modprobe.

Next, create a shell script /etc/acpi/bluetooth.sh:

 #!/bin/bash
 # Enable/disable builtin Bluetooth on IBM Thinkpads
 if grep -q enabled /proc/acpi/ibm/bluetooth; then
     echo disable > /proc/acpi/ibm/bluetooth
 else
     echo enable > /proc/acpi/ibm/bluetooth
 fi

Next, create an event file /etc/acpi/events/ibm-bluetooth

 # This is called when the user presses Fn-F6 button and calls
 # /etc/acpi/bluetooth.sh for further processing.
 event=ibm/hotkey HKEY 00000080 00001006
 action=/etc/acpi/bluetooth.sh

You might need to restart acpid for it to start working.