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!

Advertisements

9 thoughts on “How to Fix Asus Wireless LED in Ubuntu 10.10 Maverick Meerkat!

  1. 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

    Reply
    1. Ridwansyah Post author

      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

      Reply
      1. Ridwansyah Post author

        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. 😉

        Reply
      2. 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

        Reply
        1. Ridwansyah Post author

          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

          Reply
  2. Pingback: Setting Fn key Samsung series 9(NT900X3P) on Elementary OS – Tech-labor

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s