Comment 3 for bug 22795

Revision history for this message
sittisal (sittisal) wrote : Re: Initializes the wireless LED status on startup

I discovered the problems.
The change of status script is called only when asus-wireless.sh is called.
"asus-wireless.sh" is called only when the wireless on/off button (fn+f2) is pressed. Put asus-wireless.sh script in /etc/init.d/acpi-support did not resolve the problem. In fact asus-wireless.sh script call wireless.sh script wich alternatively switch on and off the wifi (to make the wireless on/off button works). So this cause wireless disactivation or activation during the boot process.
A workaround that i could suggest is not use the posted patch ("asus-led.diff") but to add this lines in /etc/init.d/acpi-support by patching it:
(1)
-----------------------copy from next line-----------------
22a23,36
> log_begin_msg "Checking wireless state..."
> for DEVICE in /sys/class/net/*; do
> if [ -d $DEVICE/wireless ]; then
> # $DEVICE is a wireless device. Check if it's powered on:
> if [ `cat $DEVICE/device/power/state` = 0 ]; then
> # It's powered on.
> echo -n 1 > /proc/acpi/asus/wled
> else
> # It's powered off.
> echo -n 0 > /proc/acpi/asus/wled
> fi
> fi
> done
> log_end_msg 0
24c38
< stop)
---
> stop)
------------------------since previous line--------------------
(2)
paste this to a file save it as patch.diff and run :
(3)
run in a terminal as root: "patch /etc/init.d/acpi-support patch.diff"
NOTE: the "acpi-support" file MUST be the original one!
Hope this bug will be resolved with next acpi-support version!

sittisal