How to Fix Asus Wireless LED in Ubuntu 10.10 Maverick Meerkat!

Note : This post actually has been written in my Blog in Multiply. Recently, my friends were unable to comment in that post. So i decided to move the post in here, so everyone could comment and discuss everything that i’ve written.

Yeah, i’ve fixed Ubuntu 10.10 Maverick Meerkat Wireless LED bugs in Asus K40IN model, using little knowledge in logical programming and my last year’s post in my Old Blog about fixing Ubuntu 9.10 LED Wireless in bahasa Indonesia. Now i try to write in English so everyone who comes here should be able to fix the bugs!

I’ve just try Ubuntu 10.10 Meerkat in last few days. When i got the fresh install of this Meerkat,  my wireless module dan LED status is on. Problem has came out when i try to switch off the wireless. It becomes off but not with the LED wireless status. First, i think it just has the same bugs with Ubuntu 9.10 in LED wireless. But when i tried to fix it, little modification should be done through this process. This is HOW TO fix the bugs :

1. Backup the file which will be modified in this process.
Open the terminal and type this :

sudo cp /usr/share/acpi-support/state-funcs /usr/share/acpi-support/state-funcs.backup

2. Open state-funcs file as root, so we can modify it.
Open the terminal and type this :

sudo gedit /usr/share/acpi-support/state-funcs

3. Go through the rest of the file

Find the setLEDThinkpadSuspending() function. The default will be look like this :

setLEDThinkpadSuspending()
{
action=`test “$1” -ne 0 && echo blink || echo off`
test -w /proc/acpi/ibm/led && echo -n 7 “$action” > /proc/acpi/ibm/led
}

In default, system has been wrong in detecting the Wireless LED model, and path in that function. If you have different laptop model, just check the path which the default function directed. Check whether the file exists or not. In this K40IN model, the path is wrong, so we must erase the  setLEDThinkpadSuspending() function and change with this :

setLEDAsusWireless()
{
action=`test “$1” -ne 0 && echo 1 || echo 0`
test -w /sys/devices/platform/asus_laptop/wlan && echo -n “$action” > /sys/devices/platform/asus_laptop/wlan
}

Save and close the file.

4. Open file asus-wireless-off as root in /etc/acpi/events
Type this in terminal :

sudo gedit /etc/acpi/events/asus-wireless-off

Check this line in the file, in default it will be like this :

event=hotkey (ATKD|HOTK) 0000005e

It means that if we want to turn off the wireless LED, we must press the hotkey that listed. In my laptop to switch wireless on off is with pressing Fn+F2. Check the hotkey with open the terminal and type : acpi_listen. Press the Fn+F2 and the hotkey code whill show. In my model, Fn+F2 = 0000005d. So we must change the hotkey which is wrong to this :

event=hotkey (ATKD|HOTK) 0000005d

So the content of the asus-wireless-off file will be looked like this :

event=hotkey (ATKD|HOTK) 0000005d
action=/etc/acpi/asus-wireless.sh off

Save and close the file.

5. Do the same thing as number 4, in file /etc/acpi/events/asus-wireless-on

6. Add the new function in /etc/acpi/asus-wireless.sh
Open terminal and type :

sudo gedit /etc/acpi/asus-wireless.sh

After toggleAllWirelessStates, add this function :

if isAnyWirelessPoweredOn ; then
setLEDAsusWireless 1
else
setLEDAsusWireless 0
fi

Save and close the file. This is the core of the problem in this bugs. There’s nothing function who called setLEDAsusWireless function in state-funcs file.

Try to restart your Ubuntu, and test the wireless LED by pressing the button. It must be works!

Ask me if you have problem, Good Luck!

9 responses to “How to Fix Asus Wireless LED in Ubuntu 10.10 Maverick Meerkat!”

  1. sxired Avatar
    sxired

    saya pake asus a42f mempunyai problem yg sama di ubuntu 10.10′
    saya mencoba cara di atas tp belum berhasil, apa tiap versi notebook berbeda2 ya scriptnya

    1. Ridwansyah Avatar
      Ridwansyah

      Betul mas.. Sepertinya tiap versi beda ya walaupun sama2 asus.. Kemarin ada juga yang tanya ke saya, versinya asus seperti punya mas. Tapi belum berhasil juga.. Mungkin bisa di coba lagi, dgn pola seperti di atas mas.. Hehe

  2. mmfrindo Avatar
    mmfrindo

    i’ve stting with your tutorial, but the shortcut (Fn+F2) can’t work,,,,

    Please help,,,

    1. mmfrindo Avatar
      mmfrindo

      kirain orang KULON (WEST),,,,

      saya pake asus K40IN, saya coba ko msih blom bisa ya ????

      1. Ridwansyah Avatar
        Ridwansyah

        ubuntu yang digunakan Maverick mas? Saya pas membuat tutorial ini disertai dengan ujicoba di laptop sendiri dan bisa.. Mungkin ada langkah yang kurang, kalo masih belom bisa juga,, berarti belom beruntung mas. 😉

      2. frindo Avatar
        frindo

        pertama kan saya pake ubuntu 10.10 (mavrik), trus saya upgrade k 11.04 (natty). Saya coba caranya si mas bro di ubuntu 11.04 ga bisa, knapa ya ????

        tolong pencerahan mas bro

        1. Ridwansyah Avatar
          Ridwansyah

          Di ubuntu Natty belom bisa sepertinya bro cara diatas. Baru terbukti bisa di Maverick di laptop K40IN. Kebetulan saya belum migrasi ke Natty. Jadi belum pernah mencoba cr ini di ubuntu 11. Semoga membantu bro

  3. frindo Avatar
    frindo

    ok bang, trimakasih….

  4. Setting Fn key Samsung series 9(NT900X3P) on Elementary OS – Tech-labor

    […] 1. Fn+F1 System settings system settings -> keyboard -> custom -> press “+” -> type “switchboard” in Enter command -> press Fn + F1 key in New accelerator…. 2. Fn+F12 Wireless toggle Run acpi_listen in a terminal. # acpi_listen Press the key Fn+F12, it should look like: button/wlan WLAN 00000080 00000000 K Creating an ACPI Event Definition. # cp /etc/acpi/events/ibm-wireless /etc/acpi/events/samsung-series9-wireless Editting /etc/acpi/events/samsung-series9-wireless # vi /etc/acpi/events/samsung-series9-wireless event=button/wlan WLAN 00000080 action=/etc/acpi/samsung-series9-wireless.sh Creating an ACPI Action Definition. # cp /etc/acpi/ibm-wireless.sh /etc/acpi/samsung-series9-wireless.sh Editting /etc/acpi/samsung-seriese9-wireless.sh # vi /etc/acpi/samsung-series9-wireless.sh find “tpacpi_bluetooth_sw”, then change to “samsung-bluetooth” find “rfkill unblock bluetooth”, “rfkill block bluetooth”, then change to “rfkill unblock all” “rfkill block all” Editting /usr/share/acpi-support/state-funcs backup state-funcs # cp /usr/share/acpi-support/state-funcs /usr/share/acpi-support/state-funcs.bak edit state-funcs file. # vi /usr/share/acpi-support/state-funcs go to “$DEVICE/wireless”, then change to “$DEVICE/wlan0” references : https://help.ubuntu.com/community/LaptopSpecialKeys https://ridwansyah.com/2011/03/10/how-to-fix-asusledwireless-maverick/ […]

Leave a reply to Setting Fn key Samsung series 9(NT900X3P) on Elementary OS – Tech-labor Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.