1. You may have noticed things look a little different around here - we've switched to a new platform (XenForo) and have some new forum styles and features. This how-to guide will help you find your way around. If you find anything that looks strange, post it in this thread.

Asus Keyboard Backlight controller

Discussion in 'Linux Compatibility and Software' started by highlandsun, Jan 15, 2013.

  1. highlandsun

    highlandsun Notebook Evangelist

    Reputations:
    66
    Joined:
    Jun 24, 2004
    Messages:
    607
    I just got an Asus N56DP and installed Arch Linux on it. I was previously using Ubuntu but was having problems with Suspend/Resume crashing, running too hot, and crashing with the AMD Catalyst driver. With Arch Linux all of this seems to be working.

    One feature my Dell Precision M4400 has that's kind of nice is that the keyboard backlight comes on automatically with keyboard activity, and then shuts off after a few seconds of idle time. With Arch Linux you can get some scripts that let you manually control the backlight, but there's nothing automated.

    So, here's my program to control the backlight automatically. After you compile it, it needs to run as root to have permission to change the settings. (Or you could change the permissions on the backlight brightness file, to allow some other user to write it.)

    The program monitors all keyboard activity, so it works regardless of whether you're on the console or running X. It sets the keyboard backlight proportionally to the screen backlight. Read the comments, you'll get it.

    Compile as "gcc -O2 -o idlekbd idlekbd.c" and run it in the background, or arrange to have it run at bootup.
     

    Attached Files:

  2. alduc1

    alduc1 Newbie

    Reputations:
    0
    Joined:
    Jul 11, 2010
    Messages:
    2
    Thanks a lot for this code highlandsun. It also works on u31a.
     
  3. highlandsun

    highlandsun Notebook Evangelist

    Reputations:
    66
    Joined:
    Jun 24, 2004
    Messages:
    607
    Great, thanks for the feedback!
     
Similar Threads: Asus Keyboard
Forum Title Date
Linux Compatibility and Software Asus UX303LN and Ubuntu Jan 22, 2015
Linux Compatibility and Software Asus X44H take and Fedora 16 Mar 14, 2012
Linux Compatibility and Software ASUS rog G53 with Ubuntu 11,10 AND Debian 6.0.3 Oct 19, 2011
Linux Compatibility and Software linux (debian or arch?) os asus g50vt ? Aug 24, 2011
Linux Compatibility and Software Asus Bringing Back Linux Netbooks Jun 2, 2011

Share This Page