8

I'm using Openbox window manager without DE.

I'd like to get fn + [brightness up/down icon] working like it is in GNOME/KDE, but I’m looking for a lightweight solution without gnome-power-manager and similar.

I know about the xbacklight console program, but it takes a little time to adjust brightness.

Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
kravemir
  • 4,014
  • 4
  • 33
  • 48
  • 3
    On the few laptops I have owned, the brightness keys have never been handled by the window manager or desktop environment. Instead, I think the acpi package or the kernel supported those keys directly. Do you have all the relevant acpi packages installed and does your kernel support your hardware? – jw013 Jul 16 '12 at 19:06
  • 3
    There is a good summary of this issue on the [Arch Wiki](https://wiki.archlinux.org/index.php/Backlight) – jasonwryan Jul 16 '12 at 19:06

4 Answers4

2

I use

xrandr –-output LVDS1 –-set BACKLIGHT 5

Or values other than "5".

See http://linux-software-news-tutorials.blogspot.co.uk/2011/07/how-to-change-screen-brightness-of.html

m43cap
  • 21
  • 3
2

Control brightness without sudo:

Install brightnessctl and brightness-udev.

Then use:

brightnessctl set 10+   # to increase brightness by 10
brightnessctl set 10-   # to decrease brightness by 10

brightnessctl set 10%+  # to increase brightness by 10%
brightnessctl set 10%-  # to decrease brightness by 10%

brightnessctl set 50%   # to set brightness to 50%

Use man brightnessctl for a full list of commands available.

0

Well, there are two similar things:

a) brightness of the monitor (gamma value)

xrandr --output LVDS-1 --brightness 0.8

b) blacklight of the lamp in the monitor

bl_device=/sys/class/backlight/acpi_video0/brightness 
 #or settings in here: /sys/class/backlight/intel_backlight
echo $(($(cat $bl_device)+1)) | sudo tee $bl_device # brightness up

So we should take care of two variables. :-)

xerostomus
  • 339
  • 3
  • 6
0

You can find a working guide on this webpage. You have to have installed the xbacklight program, on Fedora 18:

sudo yum install xbacklight
perror
  • 3,171
  • 7
  • 33
  • 45
dklima
  • 1
  • 1