Bug 128088 - Bluetooth on/off key does not work on IBM T41p after acpid was started
Summary: Bluetooth on/off key does not work on IBM T41p after acpid was started
Status: VERIFIED FIXED
: 118026 163591 164877 170594 (view as bug list)
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Mobile Devices (show other bugs)
Version: Beta 9
Hardware: i386 Other
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Holger Macht
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-13 14:47 UTC by Robert Simai
Modified: 2007-06-05 10:01 UTC (History)
3 users (show)

See Also:
Found By: SUSE Technical Services
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
patch against /etc/modprobe.d/ibm_acpi to fix this issue (224 bytes, patch)
2005-10-16 16:03 UTC, Timo Hoenig
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Simai 2005-10-13 14:47:47 UTC
For switching on/off the hardware bluetooth functionally I use the Fn+F5 key.
This key works as expected during BIOS and while the kernel loads, but is not
recognized anymore after acpid was started. Also switching off acpid after it
was started once does not help to make the key working again. Instead a reboot
is required.
Comment 1 Thomas Renninger 2005-10-16 14:24:00 UTC
Could this have something to do with the ibm_acpi module, Timo?
Comment 2 Timo Hoenig 2005-10-16 15:39:37 UTC
Yes, possibly.

Robert, could you please test the following two things with acpid being _enabled_:

* uncommenting the module options in /etc/modprobe.d/ibm_acpi. Adding a "#" at the beginning of the line should work. Reboot and check if Fn-F5 works as expected.

* remove "ibm_acpi" from /var/lib/acpi/laptop_modules. Reboot and check if Fn-F5 works as expected.

cc'ing Stefan, he investigating this problem last week if I recall correctly.
Comment 3 Timo Hoenig 2005-10-16 15:43:45 UTC
On my system (IBM ThinkPad T40p) removing hokey=enabled does help but this gives on regression on another issue (Fn-F12 needs to be reported as hotkey event). I'll try to find a hotkey range which will block Fn-F5 and leaves Fn-F12 untouched.
Comment 4 Timo Hoenig 2005-10-16 16:03:05 UTC
Created attachment 54210 [details]
patch against /etc/modprobe.d/ibm_acpi to fix this issue
Comment 5 Timo Hoenig 2005-10-16 16:05:07 UTC
Robert, forget comment #2 if this patch helps.

If it works, I'll request a SWAMP id for an YaST online update.
Comment 6 Stefan Behlert 2005-10-17 08:37:00 UTC
Yes, the patch helps, I ttested it with a T41p. Please make a YOU.
Comment 7 Stefan Behlert 2005-10-17 08:39:09 UTC
*** Bug 118026 has been marked as a duplicate of this bug. ***
Comment 8 Timo Hoenig 2005-10-17 08:48:12 UTC
aj, we'd need a SWAMP id for this one. Or we could merge this one with other acpid fixes pending. Not sure if there is a SWAMP id for the other issues yet. cc'ing Seife.
Comment 9 Christoph Thiel 2005-10-17 09:30:57 UTC
AJ is on vacation right now. Harald, can you please take care of this issue?
Comment 12 Andreas Jaeger 2005-10-25 06:22:39 UTC
Update approved.

I haven't found another acpid SWAMP ID, so created a new one: Maintenance-Tracker-2666
Comment 13 Timo Hoenig 2005-10-25 16:07:31 UTC
I've submitted an updated package (already checked-in -- unbelievable fast these days ;-) and put acpid.patch.box to /work/src/done/PATCHINFO .

Closing.
Comment 14 Anja Stock 2005-11-03 10:20:03 UTC
released
Comment 15 Johann Schuur 2005-11-18 16:36:09 UTC
(In reply to comment #14)
> released

Since it was fixed, the WLAN on/off key (Fn.+F5) on IBM Thinkpad r52 (TYPE 1860-5EG) doesn't work any longer. Had to change 0xffef back to 0xffff in /etc/modprobe.d/ibm_acpi

Comment 16 Timo Hoenig 2005-11-21 08:02:32 UTC
Hum. I'm puzzled. Are you saying that

   * hotkey=enabled,0xffff enables you to switch WLAN with Fn-F5

and respectivly

   * hotkey=enabled,0xffef does not let you switch WLAN with Fn-F5?
Comment 17 Johann Schuur 2005-11-21 15:42:31 UTC
exactly!

acpi_listen says "ibm/hotkey HKEY 00000080 00001005" for Fn+F5 if "options ibm_acpi hotkey=enabled,0xffff experimental=1" ist set. My script uses this event to turn off/on the WLAN.

if "options ibm_acpi hotkey=enabled,0xffef experimental=1" is set acpi_listen doesn't say anything for Fn+F5... And nothing happens... Fn+F4 e.g. (suspend to disk) is still working and acpi_listen says "ibm/hotkey HKEY 00000080 00001004"
Comment 18 Timo Hoenig 2005-11-21 15:50:48 UTC
Ah, OK. The problem is severe for users who can not toggle their Bluetooth anylonger since they can not trigger a script: Fn-F5 does some internal magic which makes the Bluethooth device appear/disappear on the USB.

I'll leave this one as LATER to think a bit about it.
Comment 19 Stefan Behlert 2006-04-07 09:14:09 UTC
*** Bug 163591 has been marked as a duplicate of this bug. ***
Comment 20 Jared Jensen 2006-04-07 16:25:07 UTC
I have a Thinkpad T43p and I had to make the change mentioned in comment #16 to ffef and now it turns on and off with fn+f5
Comment 21 Stefan Behlert 2006-04-11 09:11:41 UTC
*** Bug 164877 has been marked as a duplicate of this bug. ***
Comment 22 Forgotten User ZhJd0F0L3x 2006-04-11 09:43:00 UTC
if 164877 is a duplicate, this cannot be "LATER".
Comment 25 Harald Mueller-Ney 2006-04-20 22:33:20 UTC
Timo, any news on this one yet?
Comment 26 Timo Hoenig 2006-04-23 11:40:47 UTC
Well, not really.  We're on the horns of a dilemma with issue.

Some background:  We've had 0xffef for SL10.0 (as a result of bug #128088), we then we're planning to switch to 0xffff for SL10.1/SLE{S,D}10 (as a result of bug #150357).

Jared, could you please follow the instructions of comment #13 in bug #150357 and let me know if you get things working with this?
Comment 27 Noritoshi Yoshiyama 2006-04-25 08:04:41 UTC
The condition for FnF5 in the thinkpad_acpi_events found in /usr/lib/powersave/scripts is as follows:

     4101)   HOTKEY="Fn+F5" # Wireles LAN
       if [ -x /opt/thinkpad/ac/onscreen_ac.sh ] ; then
          run_on_xserver "/opt/thinkpad/ac/onscreen_ac.sh start" &
          ACTION="start onscreen_ac applet"
       elif [ grep -q "status.*disabled" /proc/acpi/ibm/bluetooth ] ; then
          echo enable > /proc/acpi/ibm/bluetooth
          ACTION="enable blooetooth"
       else
          echo disable > /proc/acpi/ibm/bluetooth
          ACTION="disable blooetooth"
       fi               
	  	   
Line 103-  elif [ grep -q "status.*disabled" /proc/acpi/ibm/bluetooth ] returns false, thus script executes the next else part (which dont have condition).
The original script was the following and it works fine. :

     "'grep status /proc/acpi/ibm/bluetooth | grep -c enabled'" = "0"
Comment 28 Forgotten User ZhJd0F0L3x 2006-04-25 08:30:26 UTC
(In reply to comment #27)
> Line 103-  elif [ grep -q "status.*disabled" /proc/acpi/ibm/bluetooth ] 

i see the bug. The "[" and "]" are wrong, remove them and it will work.

Holger, i'll check a fixed version into trunk, can you please test it (i don't have a TP with Bluetooth) and submit a package?

Thanks for spotting this nasty thinko of me :-)
Comment 29 Holger Macht 2006-04-25 08:32:06 UTC
Ok, will test it and submit a new package as soon as the fix is in.
Comment 30 Timo Hoenig 2006-04-25 08:41:29 UTC
Noritoshi, thank you for this!  Wonderful that we finally solved this issue.
Comment 31 Holger Macht 2006-04-25 12:22:00 UTC
Package submitted to autobuild.
Comment 32 Timo Hoenig 2006-04-30 12:58:54 UTC
*** Bug 170594 has been marked as a duplicate of this bug. ***
Comment 33 Timo Hoenig 2006-05-08 07:55:33 UTC
*** Bug 170594 has been marked as a duplicate of this bug. ***