Hi,
sorry for writing after so long time
I have found out, there are two asus acpi kernel modules - asus-laptop,
newer one and asus_acpi
this script (/usr/share/acpi-support/state-funcs) is written for asus_acpi
in asus_acpi is path to control led diode /proc/acpi/asus/wled
and in asus-laptop /sys/devices/platform/asus-laptop/wlan
1)
/sys/class/net/ath0:
address carrier features iflink operstate subsystem uevent
addr_len device flags link_mode power tx_queue_len weight
broadcast dormant ifindex mtu statistics type wireless
/sys/class/net/eth0:
address carrier features iflink operstate subsystem uevent
addr_len device flags link_mode power tx_queue_len weight
broadcast dormant ifindex mtu statistics type
/sys/class/net/lo:
address carrier flags link_mode power tx_queue_len weight
addr_len dormant ifindex mtu statistics type
broadcast features iflink operstate subsystem uevent
/sys/class/net/wifi0:
address carrier features iflink operstate subsystem uevent
addr_len device flags link_mode power tx_queue_len weight
broadcast dormant ifindex mtu statistics type
2)
cat /sys/class/net/*/device/power/state
cat: /sys/class/net/*/device/power/state: File or directory doesnt exist
ls /sys/class/net/ath0/device/power
wakeup
ls /sys/class/net/eth0/device
broken_parity_status device local_cpus power subsystem
vendor
bus driver modalias resource subsystem_device
class enable msi_bus resource0 subsystem_vendor
config irq net:eth0 resource1 uevent
what does it mean, if I haven't rf_kill nor operstate files? I'm using
kernel from repositories
renfri:/home/ivan# (isAnyWirelessPoweredOn && echo "SOME WIRELESS IS
ON") || echo "SOME WIRELESS IS OFF"
SOME WIRELESS IS OFF
renfri:/home/ivan# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wifi0 no wireless extensions.
ath0 IEEE 802.11g ESSID:"" Nickname:""
Mode:Managed Frequency:2.437 GHz Access Point: Not-Associated
Bit Rate:0 kb/s Tx-Power:17 dBm Sensitivity=1/1
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=0/70 Signal level=-96 dBm Noise level=-96 dBm
Rx invalid nwid:251279 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
3) off
4) (1) off (2) off (3) off (i only modify state-funcs to right path to wled)
5) with path /sys/devices/platform/asus-laptop/wlan it is on
6) off
Bart Samwel wrote:
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]