Fix Brightness control for your laptop.
  • lxlelxle
    PMPosts: 2,656
    First open up a terminal and type..

    sudo gedit /usr/local/bin/brightness-level

    Select All and replace with the following

    #!/bin/sh
    activeOutput=$(xrandr | grep -e " connected [^(]" | sed -e "s/\([A-Z0-9]\+\) connected.*/\1/")
    alpha=`zenity --scale --text "Brightness" --min-value=10 --max-value=100 --value=50`
    alpha=`echo $alpha / 100 | bc -l`
    `xrandr --output $activeOutput --brightness $alpha`


    Save and Exit
    Thanked by 1Zaka
  • I found xbacklight works well enough. After installing linux my display brightness buttons didn't work so and in searching for a fix I found xbacklight on this. I'm curious to know how to activate the function from my keyboard though as I think it will be a little cumbersome typing the commands every time to change the brightness.
    https://wiki.archlinux.org/index.php/backlight
  • lxlelxle
    PMPosts: 2,656
    Did you try the above post and then use the brightness slider in

    Menu>Preferences


  • Oi @lxle! Is the brightness slider suppose to have its own Menu>Preference entry in the OSX style as well?
    I've done the steps you provided, additionally making the script executable with "sudo chmod +x" but I don't have an entry for it.
    Do good or do well, but just do.
  • lxlelxle
    PMPosts: 2,656
    Should be able to add one with the menu editor.