← Back to team overview

ubuntu-eee-coders team mailing list archive

[Bug 273094] Re: Conflicting scripts for Fn+F2 WLAN toggling

 

Christopher, thanks for looking into this issue.

I have not debugged this case very thoroughly, since I am quite a newbie
in this area. But are you really sure that the eee- files are not
enabled? If I have understood the event handling correctly, all matching
events in the /etc/acpi/events directory are executed. And this is what
the original /etc/acpi/events/eee-wifi-on file looks like (eee-wifi-off
is very similar):

   #FILE: /etc/acpi/events/eee-wifi-on
   # This is called when the user presses the wifi on/off button (and wifi was on)

   event=hotkey ATKD 00000011
   action=/etc/acpi/eee-wifi-on-off.sh off

The /etc/acpi/events/eeepc-hotkey file looks like this:

   event=hotkey ATKD
   action=/etc/acpi/eeepc-hotkeys.sh %e

As far as I understand, the WLAN on/off event will be handled by both
eeepc-hotkey and eee-wifi-on/off, and I would suppose that this will put
the WLAN in an inconsistent state. Before I commented out the 'event'
and 'action' lines in eee-wifi-on/off I could not toggle WLAN on and off
by pressing Fn+F2. After disabling these event handlers and rebooting,
WLAN toggling worked without problems.

I also reported my experience in the eeeuser forum
(http://forum.eeeuser.com/viewtopic.php?id=45142), and at least one user
have had the same problem as I.

-- 
Conflicting scripts for Fn+F2 WLAN toggling
https://bugs.launchpad.net/bugs/273094
You received this bug notification because you are a member of Ubuntu
Eee Coders, which is subscribed to Ubuntu Eee.

Status in Ubuntu Eee: Fix Committed

Bug description:
I have had problems with the Fn+F2 WLAN toggling after installing Ubuntu Eee 8.04.1 on my Eee PC 900. None of the posts in the bug list appear to address exactly the same problem, so I thought it best to report this.

When logging on after the new installation, the wireless LAN LED is lit, and I can list and connect to wireless networks through the network manager in the task bar. However, when I press Fn+F2 to switch the wireless off, the LED remains lit but I can no longer list or connect to the wireless networks. It also does not help to press Fn+F2 again, I have to restart the computer.

After some searching, I found that there are two competing scripts for toggling the wireless on and off that appear to conflict with each other: in /etc/acpi there is both the eeepc-wireless-toggle.sh shell script and the eee-wifi-on-off.sh shell script. These scripts are controlled by events in the /etc/acpi/events directory (eeepc-hotkey for eeepc-wireless-toggle.sh and eee-wifi-on or eee-wifi-off for eee-wifi-on-off.sh). Since I was already familiar with the eeepc-wireless-toggle.sh script from my previous Ubuntu Eee installation I decided to stick with this script, and disable the eee-wifi-on and eee-wifi-off events instead.

To disable the event handling of eee-wifi-on and eee-wifi-off, I simply edited these files as a super-user: I commented out the 'events' and 'action' lines in both files. After rebooting, wireless toggling with Fn+F2 worked without any further problems.

I do not know if both wireless toggling scripts are installed regardless of Eee model. However, it would be reasonable that only one of the scripts is installed when installing Ubuntu Eee 8.04.1.

Finally, I want to say a big THANK YOU to all those who have been involved in creating Ubuntu Eee. Great work everyone, I am very pleased with the distro and my Eee.



References