I just update my eeepc-config via apt, and I found and error in file
eeepc-wifi-toggle.sh on line 43:

  - /etc/acpi/eeepc-wifi-toggle.sh: 43: Syntax error: "fi" unexpected
(expecting "then") -

I repaired the error commenting out the lines 41 to 43 (which contain a
strange kind of code for a shell script) changing them from this:

if isKernelLaterThan "2.6.27";
        exit 0;
fi

to this:

# if isKernelLaterThan "2.6.27";
#         exit 0;
# fi

After that the Fn+F2 hotkey worked as well as the on-screen
notification.

-- 
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
Status in Ubuntu Eee Series: 8.04.1: Triaged
Status in Ubuntu Eee Series: 8.10: 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.

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-eee-coders
Post to     : ubuntu-eee-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-eee-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to