Page 1 of 3 123 LastLast
Results 1 to 10 of 71

Thread: HOWTO - Fix your laptops brightness function keys operating properly in 8.04 Hardy

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Location
    Toronto
    Beans
    104
    Distro
    Ubuntu 13.04 Raring Ringtail

    Question HOWTO: Fix your laptops brightness function keys operating properly in 8.04 Hardy

    Hello folks,

    If you're like me, you recently installed Ubuntu Hardy Heron 8.04 and discovered that your laptops function keys are not properly adjusting the brightness. In essence, you are pressing the key combination and nothing is happening.

    I have written a fix that simply replaces two script files. This may or may not work for you. Always create a backup first.

    Here is what I edited within two files:

    First we are going to change brightness up

    Code:
    sudo gedit /etc/acpi/video_brightnessup.sh
    Replace everything in the file with the following

    Code:
    #!/bin/bash
    
    CURRENT=$(grep "current:" /proc/acpi/video/VGA/LCD/brightness |awk '{print $2}')
    
    
    case "$CURRENT" in
    
    100)
    echo -n 100 > /proc/acpi/video/VGA/LCD/brightness;
    ;;
    87)
    echo -n 100 > /proc/acpi/video/VGA/LCD/brightness;
    ;;
    75)
    echo -n 87 > /proc/acpi/video/VGA/LCD/brightness;
    ;;
    62)
    echo -n 75 > /proc/acpi/video/VGA/LCD/brightness;
    ;;
    50)
    echo -n 62 > /proc/acpi/video/VGA/LCD/brightness;
    ;;
    37)
    echo -n 50 > /proc/acpi/video/VGA/LCD/brightness;
    ;;
    25)
    echo -n 37 > /proc/acpi/video/VGA/LCD/brightness;
    ;;
    12)
    echo -n 25 > /proc/acpi/video/VGA/LCD/brightness;
    ;;
    *)
    echo -n 100 > /proc/acpi/video/VGA/LCD/brightness ;
    ;;
    esac
    Save and quit

    Now we are going to edit brightness down

    Code:
    sudo gedit /etc/acpi/video_brightnessdown.sh
    Replace everything in the file with the following

    Code:
    #!/bin/bash
    
    CURRENT=$(grep "current:" /proc/acpi/video/VGA/LCD/brightness |awk '{print $2}')
    
    
    case "$CURRENT" in
    
    12)
    echo -n 12 > /proc/acpi/video/VGA/LCD/brightness;
    ;;
    25)
    echo -n 12 > /proc/acpi/video/VGA/LCD/brightness;
    ;;
    37)
    echo -n 25 > /proc/acpi/video/VGA/LCD/brightness;
    ;;
    50)
    echo -n 37 > /proc/acpi/video/VGA/LCD/brightness;
    ;;
    62)
    echo -n 50 > /proc/acpi/video/VGA/LCD/brightness;
    ;;
    75)
    echo -n 62 > /proc/acpi/video/VGA/LCD/brightness;
    ;;
    87)
    echo -n 75 > /proc/acpi/video/VGA/LCD/brightness;
    ;;
    100)
    echo -n 87 > /proc/acpi/video/VGA/LCD/brightness;
    ;;
    *)
    echo -n 50 > /proc/acpi/video/VGA/LCD/brightness ;
    ;;
    esac
    Save and quit

    No reboot or logout required, simply press your function combination on your laptop to change brightness. If you're laptop is like mine, I press FN + Up/Down Arrow.

    Let me know how it works. If this does nothing, it's best to restore the backup you made prior.

    Post your comments in this thread, let me know how it goes.


    - AaronMT
    Last edited by AaronMT; April 26th, 2008 at 03:39 PM.

  2. #2
    Join Date
    Apr 2007
    Location
    Toronto
    Beans
    104
    Distro
    Ubuntu 13.04 Raring Ringtail

    Talking Re: HOWTO - Fix your laptops brightness function keys operating properly in 8.04 Hard

    Just want to add that I have tested this as well on a new HP Laptop and it works.

  3. #3
    Join Date
    Jul 2007
    Beans
    70

    Re: HOWTO - Fix your laptops brightness function keys operating properly in 8.04 Hard

    Tested on Dell Latitude 131L and it works!

    Thanks!

  4. #4
    Join Date
    Oct 2005
    Beans
    81

    Re: HOWTO - Fix your laptops brightness function keys operating properly in 8.04 Hard

    Unfortunately does not work with Samsung R60plus.

  5. #5
    Join Date
    Aug 2007
    Beans
    5

    Re: HOWTO - Fix your laptops brightness function keys operating properly in 8.04 Hard

    Unfortunaly it doesn't work on asus notebook.

    My brightness with asus_laptop module on is always set to minimum and controls don't change a thing.

    Only way to use the notebook is to boot with acpi=off option or to blacklist asus_laptop module.

    I'm sorry but I have to admit that hardy is 2 steps behind gutsy.

  6. #6
    Join Date
    Dec 2006
    Beans
    6

    Re: HOWTO - Fix your laptops brightness function keys operating properly in 8.04 Hard

    Do you think it will work with Kubuntu ?

    i will try it once I get the 'sudo' working. i can open files with kate but not with sudo kate.

    I'll let you know once i get to try it.

    Mike

    Edit. I've just tried it and it appears to work, not rebooted yet but so far so good, got brightness back and funcion keys work fine.

    Thanks for that
    Last edited by coachwhip; April 26th, 2008 at 08:46 PM.

  7. #7
    Join Date
    Apr 2008
    Beans
    7

    Re: HOWTO: Fix your laptops brightness function keys operating properly in 8.04 Hardy

    does not work on the fujitsu T4220 Tablet

  8. #8
    Join Date
    Oct 2007
    Location
    Athens , Greece
    Beans
    154
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO - Fix your laptops brightness function keys operating properly in 8.04 Hard

    Doesn't work here (laptop)

    Terminal output :

    Code:
    flamelab@flamelab-laptop:~$ su
    root@panagiotis-laptop:/home/flamelab# sh /etc/acpi/video_brightnessup.sh
    grep: /proc/acpi/video/VGA/LCD/brightness: No such file or directory
    /etc/acpi/video_brightnessup.sh: 35: cannot create /proc/acpi/video/VGA/LCD/brightness: Directory nonexistent
    root@flamelab-laptop:/home/flamelab#
    Been to Arch , got advanced : )

  9. #9
    Join Date
    Mar 2008
    Beans
    9

    Re: HOWTO - Fix your laptops brightness function keys operating properly in 8.04 Hard

    There is a workaround in 7.10: just adapting the script manually.
    http://ubuntuguide.org/wiki/Ubuntu:G..._splash_screen

  10. #10
    Join Date
    May 2007
    Location
    DR
    Beans
    1,346
    Distro
    Ubuntu Development Release

    Re: HOWTO - Fix your laptops brightness function keys operating properly in 8.04 Hard

    another workaround is using the gnome panel brightness applet.

    just add it to your panel and use the mouse wheel to make it go up or down, works great.
    When close to achieving you quit! If you don't try you failed. Real Winners are not afraid of losing.
    ubuntu newsletter ; Report Papercuts (small annoyances/bugs) ; beginners guide and video http://youtube.com/watch?v=Z0tNpt5RZYI

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •