← Back to team overview

asus-ul30 team mailing list archive

Re: Neehilo BACKLIGHT script

 

Hi Matteo,

You may return to previous behavior easily. The backlight script creates a backup copy of the original ACPI files before modifying them.

- copy /etc/acpi/asus-brn-up.sh.dist (original backup) to /etc/acpi/asus-brn-up.sh - copy /etc/acpi/asus-brn-down.sh.dist (original backup) to /etc/acpi/asus-brn-down.sh - restore gnome-power-manager backlight control : gconftool-2 --set /apps/gnome-power-manager/backlight/enable --type bool 1 (the script does not modify any of the ACPI events settings, so event keys shoud still be ok).


If you are using the NVidia card, xbacklight will not help, as it can't set the backlight level for those GPUs (the script was designed for the ul30a, with Intel GPU, or any card supported by xbacklight). You may however try the following approaches : - your more brutal way, replacing xbacklight with "setpci" calls if increase/decrease syntax is available, - install nvclock package (available in Ubuntu Universe, or sources here : http://www.linuxhardware.org/nvclock/#download), and replace xbacklight calls with nvclock. Syntax is as follows :
 * "nvclock -S XX" to set XX percent level (from 1 to 100)
 * "nvclock -S +XX" to increase level (XX percent)
 * "nvclock -S -XX" to decrease level (XX percent)

Be aware that nvclock may not be able to recognize all NVidia cards.

Perhaps using both xbacklight and nvclock in "asus-brn-up.sh" and "asus-brn-down.sh" may do the trick with any of the graphic card (Intel / NVidia) active.

Hope that will help,

Cheers,

    Philippe



matteo malvezzi a écrit :
Hi neehilo,
I tested your script as per instructions, on my ul30vt on karmic and have hab no luck in getting it work. Unfortunately it (or something else that happened at the same time) has had a side effect: the brightness controls have stopped responding. Before I started tinkering, they would respond by giving the notification, but the effect on the backlight would only work upon rebooting the machine. I'm trying to fix things but so far I've had no luck. I checked in /etc/acpi/events and the asus-brightness up and down files contain the following:

event=hotkey (ATKD|HOTK) 0000001[0123456789abcdef]
action=/etc/acpi/asus-brn-up.sh

event=hotkey (ATKD|HOTK) 0000002[0123456789abcdef]
action=/etc/acpi/asus-brn-down.sh

and upon pressing the keys with acpi_listen:

hotkey ATKD 00000026 00000000
hotkey ATKD 00000026 00000001
hotkey ATKD 00000026 00000002

hotkey ATKD 00000017 00000000
hotkey ATKD 00000017 00000001
hotkey ATKD 00000017 00000002

so as I can understand acpi should be reading the correct keys.

I reinstalled xbacklight and disabled the gnome-power-manager backlight controls and tried the xbacklight commands from terminal, I can set the levels, and using the get options it returns the levels that I set, but there is no response from the lcd screen. While using the slightly more brutal sudo setpci -s 00:02.0 F4.B=XX
it works.

Any help in getting the brightness keys to work again would be highly appreciated. Getting the backlight to respond as well would be a bonus, but I can always fix it later.


TIA

Matt


> Date: Sat, 13 Feb 2010 20:34:15 +0100
> From: neehilo@xxxxxxxxx
> To: manco1911@xxxxxxxxx
> CC: asus-ul30@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Asus-ul30] Neehilo BACKLIGHT script
>
> Hi,
>
> I've got positive feedbacks from 5 users : ul30a (Intel display card),
> Ubuntu Karmic Koala (32 and 64 bits).
>
> To find what's wrong, you may :
> - check that xbacklight is installed : command "whereis xbacklight"
> should find the executable (probably in "/usr/bin")
> - check that it works : try "xbacklight -set XX" where XX is the
> backlight level (from 1 to 100)
> - check that gnome-power-manager (if you are using Gnome) does not
> control backlight : run "gconf-editor", check option under
> "apps/gnome-power-manager/backlight", "enable" should be unchecked.
>
> If running xbacklight manually works, perhaps there is something wrong
> with the acpi scripts.
>
> /etc/acpi/asus-brn-up.sh should read :
> #!/bin/sh
> xbacklight -inc 10
>
> /etc/acpi/asus-brn-down.sh should read :
> #!/bin/sh
> xbacklight -dec 10
>
>
> Hope that will help. Feel free to contact me for more information, but
> please provide your hardware / Linux versions.
>
> Cheers,
>
> Philippe
>
>
>
> manco1911 a écrit :
> > hi, i just was wondering if this script worked to any of you guys, since
> > its not working for me right now..
> > probably its something im doing wrong.. im pretty new on applying
> > scripts on linux, so please be patient with me ;)
> >
> > This is what im doing:
> >
> > create a .sh with the script Neehilo posted.
> > making a chmod +x to the lcd.sh
> >
> > after that the hotkeys are not working as they should, no backlight
> > regulation..
> >
> > i would appreciate any help on this.
> >
> > thanks in advance
> >
> > manco1911
> >
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~asus-ul30
> Post to : asus-ul30@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~asus-ul30
> More help : https://help.launchpad.net/ListHelp

------------------------------------------------------------------------
Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign up now. <https://signup.live.com/signup.aspx?id=60969>
------------------------------------------------------------------------

_______________________________________________
Mailing list: https://launchpad.net/~asus-ul30
Post to     : asus-ul30@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~asus-ul30
More help   : https://help.launchpad.net/ListHelp


References