Hi Ivan,
Let's debug this together. Could you do the following:
1) Execute "ls /sys/class/net/*" and save the output.
2) Execute the following commands and save the output:
cat /sys/class/net/*/device/power/state
cat /sys/class/net/*/device/rf_kill
cat /sys/class/net/*/device/operstate
cat /proc/acpi/asus/wled
. /usr/share/acpi-support/state-funcs
(isAnyWirelessPoweredOn && echo "SOME WIRELESS IS ON") || echo "SOME
WIRELESS IS OFF"
iwconfig
3) Also write down the state of the wireless LED.
4) Then press the wireless button, and do (2) and (3) again.
5) Execute "echo 1 > /proc/acpi/asus/wled" and check if the LED is on or
off.
6) Execute "echo 0 > /proc/acpi/asus/wled" and check if the LED is on or
off.
7) Send me all of the results. :-)
This will give us a pretty detailed picture of what's happening here.
Cheers,
Bart
P.S.: Please CC your reply to [EMAIL PROTECTED] as well, I want
this stuff archived!
Ivan wrote:
Hi Bart,
it is not working, but i found out, that problem is deeper, as i thought
- it behaves reverse (with action=`test "$1" -ne 0 && (echo 1 || echo
0)`) - when i am going to shut down the wifi card (well, it is not
really working, only diode on/off) it is called with parameter on, and
vice versa......and when i replace it with your patch it behaves as with
"action=`test "$1" -ne 0 && echo 1 || echo 0` " - it writes, it is off
i think, i am not so skilled to resolve this, but i can try
Cheers
Ivan
Bart Samwel wrote:
Hi Ivan,
Ivan wrote:
> setLEDAsusWireless()
> {
> action=`test "$1" -ne 0 && (echo 1 || echo 0)`
> test -w /proc/acpi/asus/wled && echo -n "$action" >
> /proc/acpi/asus/wled
> }
Thanks for reporting. I'm considering changing it to:
setLEDAsusWireless()
{
if [ -w /proc/acpi/asus/wled ] ; then
if [ "$1" -ne 0 ] ; then
echo -n 1 > /proc/acpi/asus/wled
else
echo -n 0 > /proc/acpi/asus/wled
fi
fi
}
It's much easier to read like this. Could you confirm that this works
for you?
Cheers,
Bart
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]