Summary: | Have a way to turn Bluetooth on/off using software | ||
---|---|---|---|
Product: | hal | Reporter: | Bastien Nocera <bugzilla> |
Component: | hald | Assignee: | David Zeuthen (not reading bugmail) <zeuthen> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | high | CC: | bugzilla, marcandre.lureau |
Version: | unspecified | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
hal-bluetooth-button-1.patch
hal-bluetooth-button-2.patch hal-bluetooth-button-3.patch hal-info-bluetooth-switch.patch hal-bluetooth-button-6.patch |
Description
Bastien Nocera
2006-10-09 10:07:13 UTC
On thinkpads with ibm-acpi (http://ibm-acpi.sourceforge.net/) loaded, you can control bluetooth with: echo enable > /proc/acpi/ibm/bluetooth echo disable > /proc/acpi/ibm/bluetooth There are also similar methods for the WLAN and WWAN modules. Created attachment 8626 [details] [review] hal-bluetooth-button-1.patch First go at it. (In reply to comment #2) > Created an attachment (id=8626) [details] > hal-bluetooth-button-1.patch > > First go at it. This patch is obviously far from finished: - getting errors trying to call the methods (no method with signature...) - move sony matching to hal-info - the scripts need to be written - how to get the UDI of the actual bluetooth device - spicctrl -L might answer rubbish on the first go, as sonypi doesn't detect the presence of the Bluetooth dongle, just assumes on/off depending on module params <davidz> hadess: it looks kinda good I think; probably the matching needs to be more precise than just "laptop" and "Sony" but, yeah [...] <davidz> e.g. RFKillSwitch and have a rfkillswitch.type = 'bluetooth' <davidz> instead of BluetoothButton [...] <davidz> but I think "bool IsRFDisableBySoftware()" and "void setRFDisabledBySoftware(bool should_disable)" is what we want Comments for self: Acer support: http://www.archernar.co.uk/acer_acpi/acer_acpi_main.html The very hacky dmabt for Toshiba laptops: http://www.holtmann.org/linux/bluetooth/toshiba.html IBM and Sony ones already mentioned... Created attachment 8706 [details] [review] hal-bluetooth-button-2.patch Second try. This one will allow you to set the bluetooth device on/off by hand. Created attachment 8787 [details] [review] hal-bluetooth-button-3.patch Patch for sonypic support of the Bluetooth Killswitch. Get/set works. Created attachment 8788 [details] [review] hal-info-bluetooth-switch.patch hal-info patch to allow sony laptops to create a bluetooth rfkill switch Created attachment 8802 [details]
hal-bluetooth-button-6.patch
Closing this bug, as David committed the patch. Opened bug #10053 to track IBM laptops support through ibm_apci Opened bug #10054 to track the needed documentation addition |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.