HowTo - Enabling Asus Laptop Email Led

Hello

Recently I’ve decided to setup my Email LED in Asus A6F/Z92F Laptop

The case is quite simple - to simple for Wiki, so I’ve decided to share it here.

I’m using Thunderbird as my email client.
One extension is required - Thunderled - install it in Thunderbird NOW :slight_smile:

The problem in here is that Thunderled was created based on asus_acpi kernel module. In OpenSuse 11 it is replaced by asus_laptop module, since Thunderled plugin has not been updated in some time, it will require a little hacking in order to work.

If You have that step behind You, close the email program and open this path:
/home/<your_username>/.thunderbird/<random_signs>.default/extensions/{3550f703-e382-4d05-9a18-453d09bdfdc6}

This should be Thunderled plugin folder for Your default Thunderbird identity.
Now open the chrome folder, there You will find thunderled.jar file

The .jar file is regular .zip archive file, so just rename it, and extract it’s content.
Now go to the folder with extracted .jar file, and open:
content/thunderled/overlay.js with Your favorite text editor. Go to line 121 and make the procedure of echoing look like this:

else{
        file.initWithPath("/bin/sh");
        if(x==1)
                var args = "-c","echo 1 \> /sys/class/leds/asus::mail/brightness"];
        else
                var args = "-c","echo 0 \> /sys/class/leds/asus::mail/brightness"];
        }
        var process = Components.classes"@mozilla.org/process/util;1"].createInstance(Components.interfaces.nsIProcess);
        process.init(file);
        process.run(false, args, args.length);
        }

Save the file, recreate thunderled.jar file, and place it in Your plugin folder - do the steps described above in reverse order.

For the email led to light up You need to do one more thing.
As a root from the console execute command:

echo "chmod 666 /sys/class/leds/asus::mail/brightness >> /etc/init.d/boot.local

After reboot everything should work.
All suggestions are welcome.

This concludes this simple tutorial of enabling Asus Email LED
Should work for all Asus laptops with OpenSuse 11