You are not logged in.

#1 2017-07-11 13:41:35

benn
Member
Registered: 2017-07-11
Posts: 2

[solved]no control over laptop brightness

hello to all.
Installed arch and then xorg and everything,then installed xfce and brightness keys worked fine in xfce,
installed i3 and no control there on brightness so i read arch wiki and used xbacklight in i3 config,it didnt work,
output was;

No outputs have backlight property

installed acpi and acpid and enabled acpid service,thougt maybe it helps,
now brightness keys does not even work in xfce,
i only can change brightness with manually editing /sys/class/brightness/radeon_bl0/brightness,
unistalled acpi and still those keys doesnt work in xfce, what`s wrong?thank you.

Last edited by benn (2017-07-13 15:05:10)

Offline

#2 2017-07-13 06:54:11

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,475

Re: [solved]no control over laptop brightness

xbacklight works with intel processors, I am not sure about AMD.
You can have your own script writing display brightness. Here is mine script ( with kind help from Trilby)

#!/bin/bash

base=/sys/class/backlight/intel_backlight
cur=$(<$base/brightness)
max=$(<$base/max_brightness)
min=0
step=200

case $1 in
	up|increase|+) cur=$(($cur + $step)) ;;
	down|decrease|-) cur=$(($cur - $step)) ;;
	check) ;;
	*) echo "USAGE: $0 [ up | down | check ]"; exit 1 ;;
esac

[[ $cur -gt $max ]] && echo "Backlight at Maximum" && exit 1
[[ $cur -lt $min ]] && echo "Backlight at Minimum" && exit 1

echo $cur | sudo tee $base/brightness

Just change the path in base as per your need and bind this script to your brightness keys as "<script_name_with_path> up" or down. All the best.

Offline

#3 2017-07-13 15:04:42

benn
Member
Registered: 2017-07-11
Posts: 2

Re: [solved]no control over laptop brightness

Thanks.

Offline

Board footer

Powered by FluxBB