Backlight for G74SX

Asked by Viktor Olsson

Hi,

I've tried installing the package on an Asus G74SX, 11.04 but nothing happens. Either it isn't supported or I'm missing to start the service. The "acpid" service is running.

Best regards,

Viktor

Question information

Language:
English Edit question
Status:
Expired
For:
ASUS Keyboard Backlight Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Fabien LOISON (flozz) said :
#1

Hello,

Try the following commands:

    #First we need to be root:
    sudo bash #for Ubuntu, or "su" for other distro

    #This command should turn off the keyboard backlight:
    echo 0 > /sys/devices/platform/asus_laptop/leds/asus::kbd_backlight/brightness

    #This command should turn on the keyboard backlight:
    echo 3 > /sys/devices/platform/asus_laptop/leds/asus::kbd_backlight/brightness

Does it works or not ? :)

Revision history for this message
Viktor Olsson (viktor-ulsson) said :
#2

Hi Fabien and thank you for the reply.

When i try run what you wrote, i only get:

This is the log from the installation (logged in as root):
root@ubuntu:~/Downloads/asus-kbd-backlight-0.1# ./install.sh --install
ASUS Keyboard Backlight - keyboard backlight support for ASUS laptops.

Installing ASUS Keyboard Backlight...
`./events/asus-kb-brightness-down' -> `/etc/acpi/events/asus-kb-brightness-down'
`./events/asus-kb-brightness-up' -> `/etc/acpi/events/asus-kb-brightness-up'
`./code/asus-kbd-backlight.py' -> `/etc/acpi/asus-kbd-backlight.py'
`./code/asus-kbd-backlight_resume.sh' -> `/etc/pm/sleep.d/80_asus-kbd-backlight'
`./code/asus-kbd-backlight_init.sh' -> `/etc/init.d/asus-kbd-backlight'
ln: creating symbolic link `/etc/rc2.d/S80asus-kbd-backlight': File exists
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service acpid restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop acpid ; start acpid. The restart(8) utility is also available.
acpid stop/waiting
acpid start/running, process 2390
mkdir: created directory `/usr/share/doc/asus-kbd-backlight/'
`./README' -> `/usr/share/doc/asus-kbd-backlight/README'
`./AUTHORS' -> `/usr/share/doc/asus-kbd-backlight/AUTHORS'
mkdir: created directory `/var/lib/asus-kbd-backlight/'
root@ubuntu:~/Downloads/asus-kbd-backlight-0.1#

The "brightness" file that you refer to (i guess) with your' command,
is located in /var/lib/asus-kbd-backlight/brightness, with default
value: 1.

On Tue, Aug 30, 2011 at 10:01 AM, Fabien LOISON
<email address hidden> wrote:
> Your question #169520 on ASUS Keyboard Backlight changed:
> https://answers.launchpad.net/asus-keyboard-backlight/+question/169520
>
>    Status: Open => Needs information
>
> Fabien LOISON requested more information:
> Hello,
>
> Try the following commands:
>
>    #First we need to be root:
>    sudo bash  #for Ubuntu, or "su" for other distro
>
>    #This command should turn off the keyboard backlight:
>    echo 0 > /sys/devices/platform/asus_laptop/leds/asus::kbd_backlight/brightness
>
>    #This command should turn on the keyboard backlight:
>    echo 3 > /sys/devices/platform/asus_laptop/leds/asus::kbd_backlight/brightness
>
> Does it works or not ? :)
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/asus-keyboard-backlight/+question/169520
>
> You received this question notification because you asked the question.
>

--

/Viktor

Revision history for this message
Viktor Olsson (viktor-ulsson) said :
#3

Hi Fabien and thank you for the reply.

When i try run what you wrote, i only get:

This is the log from the installation (logged in as root):
root@ubuntu:~/Downloads/asus-kbd-backlight-0.1# ./install.sh --install
ASUS Keyboard Backlight - keyboard backlight support for ASUS laptops.

Installing ASUS Keyboard Backlight...
`./events/asus-kb-brightness-down' -> `/etc/acpi/events/asus-kb-brightness-down'
`./events/asus-kb-brightness-up' -> `/etc/acpi/events/asus-kb-brightness-up'
`./code/asus-kbd-backlight.py' -> `/etc/acpi/asus-kbd-backlight.py'
`./code/asus-kbd-backlight_resume.sh' -> `/etc/pm/sleep.d/80_asus-kbd-backlight'
`./code/asus-kbd-backlight_init.sh' -> `/etc/init.d/asus-kbd-backlight'
ln: creating symbolic link `/etc/rc2.d/S80asus-kbd-backlight': File exists
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service acpid restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop acpid ; start acpid. The restart(8) utility is also available.
acpid stop/waiting
acpid start/running, process 2390
mkdir: created directory `/usr/share/doc/asus-kbd-backlight/'
`./README' -> `/usr/share/doc/asus-kbd-backlight/README'
`./AUTHORS' -> `/usr/share/doc/asus-kbd-backlight/AUTHORS'
mkdir: created directory `/var/lib/asus-kbd-backlight/'
root@ubuntu:~/Downloads/asus-kbd-backlight-0.1#

The "brightness" file that you refer to (i guess) with your' command,
is located in /var/lib/asus-kbd-backlight/brightness, with default
value: 1.

Revision history for this message
Fabien LOISON (flozz) said :
#4

Hello,

The file in /var/lib is just a used by the script for saving the current state of the keyboard backlight (in order to restore it at the next boot).

If there is no file dealing with the brightness of the keyboard in /sys/devices/platform/, it means that this option is not supported by acpid for your laptop, avoiding this script to work... :(

regards,

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.