Public bug reported:

In ubuntu hardy on eeepc 901/1000 it's impossible to turn off/on the integrated 
bluetooth.
This patch from daltona solves the issue. It has already been tested in the 
costum eeepc kernel by Adam Mc Daniel:

http://forum.eeeuser.com/viewtopic.php?pid=304343#p304343

<code>
diff -urN eeepc-acpi/eeepc_acpi.c eeepc-acpi-bt/eeepc_acpi.c
--- eeepc-acpi/eeepc_acpi.c    2008-02-08 18:39:56.000000000 +0100
+++ eeepc-acpi-bt/eeepc_acpi.c    2008-06-27 15:38:03.000000000 +0200
@@ -38,6 +38,7 @@
  * Definitions for Asus EeePC
  */
 #define PROC_ASUS       "asus"    //the directory
+#define PROC_BT        "bt"
 #define PROC_LCD        "lcd"
 #define PROC_BRN        "brn"
 #define PROC_DISP       "disp"
@@ -90,7 +91,7 @@
 } cm_asl_t;
 
 const char *cm_getv[] = {
-    "WLDG", NULL, NULL, NULL,
+    "WLDG", "BTHG", NULL, NULL,
     "CAMG", NULL, NULL, NULL,
     NULL, "PBLG", NULL, NULL,
     "CFVG", NULL, NULL, NULL,
@@ -99,7 +100,7 @@
 };
 
 const char *cm_setv[] = {
-    "WLDS", NULL, NULL, NULL,
+    "WLDS", "BTHS", NULL, NULL,
     "CAMS", NULL, NULL, NULL,
     "SDSP", "PBLS", "HDPS", NULL,
     "CFVS", NULL, NULL, NULL,
@@ -283,6 +284,8 @@
         return -ENODEV;
     if (ehotk->cm_supported & (0x1 << CM_ASL_WLAN))
         eeepc_hotk_new_proc(PROC_WLAN, CM_ASL_WLAN, mode, device);
+    if (ehotk->cm_supported & (0x1 << CM_ASL_BLUETOOTH))
+        eeepc_hotk_new_proc(PROC_BT, CM_ASL_BLUETOOTH, mode, device);
     if (ehotk->cm_supported & (0x1 << CM_ASL_CAMERA))
         eeepc_hotk_new_proc(PROC_CAMERA, CM_ASL_CAMERA, mode, device);
     if (ehotk->cm_supported & (0x1 << CM_ASL_DISPLAYSWITCH))
@@ -306,6 +309,8 @@
     if (acpi_device_dir(device)) {
         if (ehotk->cm_supported & (0x1 << CM_ASL_WLAN))
             remove_proc_entry(PROC_WLAN, acpi_device_dir(device));
+        if (ehotk->cm_supported & (0x1 << CM_ASL_BLUETOOTH))
+            remove_proc_entry(PROC_BT, acpi_device_dir(device));
         if (ehotk->cm_supported & (0x1 << CM_ASL_CAMERA))
             remove_proc_entry(PROC_CAMERA, acpi_device_dir(device));
         if (ehotk->cm_supported & (0x1 << CM_ASL_DISPLAYSWITCH)
</code>

** Affects: eeepc-acpi (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Can't turn off/on bluetooth via acpi in eeepc 901/1000
https://bugs.launchpad.net/bugs/267768
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to