← Back to team overview

ubuntu-eee-coders team mailing list archive

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

 

Hello to all,

I had the same problem. So I just updated my eeepc-config package, but
the problem still remains. I have been doing some tests now and here is
what I had to do to solve the problem:

I changed the last lines of /etc/acpi/eeepc-wifi-toggle.sh from:

case ${WLAN_STATE} in
	0)
		/etc/acpi/eeepc-wifi-notify.py on
		enable_wireless
		if [ $? -ne 0 ]; then
			/etc/acpi/eeepc-wifi-notify.py retry
			disable_wireless
			enable_wireless
		fi
		if [ $? -ne 0 ]; then
			/etc/acpi/eeepc-wifi-notify.py retry
			disable_wireless
			enable_wireless
		fi
		if [ $? -ne 0 ]; then
			disable_wireless
			/etc/acpi/eeepc-wifi-notify.py fail
		fi
		;;
	1)
		/etc/acpi/eeepc-wifi-notify.py off
		disable_wireless
		;;
esac

to :

case ${WLAN_STATE} in
	0)
		/etc/acpi/eeepc-wifi-notify.py on
		enable_wireless
		#if [ $? -ne 0 ]; then
		#	/etc/acpi/eeepc-wifi-notify.py retry
		#	disable_wireless
		#	enable_wireless
		#fi
		#if [ $? -ne 0 ]; then
		#	/etc/acpi/eeepc-wifi-notify.py retry
		#	disable_wireless
		#	enable_wireless
		#fi
		#if [ $? -ne 0 ]; then
		#	disable_wireless
		#	/etc/acpi/eeepc-wifi-notify.py fail
		#fi
		;;
	1)
		/etc/acpi/eeepc-wifi-notify.py off
		disable_wireless
		;;
esac

And I also deleted /etc/acpi/eeepc-wireless-toggle.sh

So I suppose there is something wrong with the test decision: "if [ $? -ne 0 ];"
My Wifi just turned on and of three times.

On the other hand, I was really happy about the osd-design from Asus.  The new ones are so sober... :-(
How can I get those originals back? By getting those original *notify.py back I suppose? Where can I get them?

thanks for the good work guys! I love this distro!

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

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.



Follow ups

References