Skip to content

ren laptop

brightness

Altering the brightness can be useful when used at night, but restoring it is vital when using it outside.

I implemented as keybindings for i3wm by adding these entries in ~/.config/i3

randr commands
bindsym $mod+F8 exec xrandr --output eDP-1 --brightness 0.3
bindsym $mod+F9 exec xrandr --output eDP-1 --brightness 1

Since the F8 and F9 have the brightness up/down sign on them. So the command is rather clear :

brightness
xrandr --output eDP-1 --brightness 0.3

The 0.3 denotes the fractional brightness 1.0 would be fully bright. This sets the brightness with software, it seems you can also have hardware support specially for laptops. You should use xbacklight for that and in my case that command says

backlight
xbacklight

No outputs have backlight property To find the device (eDP-1) use something like this :

find outputs
1
2
3
4
5
xrandr --verbose | grep onnected
eDP-1 connected primary 1920x1080+0+0 (0x47) normal (normal left inverted right x axis y axis) 344mm x 194mm
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)

The one saying connected is the one you want to use.