Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-11-28 13:00:03

dinar
Member
Registered: 2019-11-28
Posts: 7

no brightness setting

i can change brightness with fn + left and right arrows, but step is too high. monitor of this laptop is too bright, and i need to set low level. now i have it at 10. less is only 0, which is too dark. so, i looked at settings, is not there a better brightness configuration, and have not found it at all.

cannot i set brightness with other things, maybe with x settings?

debian 10, Package: xfce4-settings Version: 4.12.4-1

Offline

#2 2019-11-28 14:44:47

Misko_2083
Member
Registered: 2015-10-13
Posts: 122
Website

Re: no brightness setting

You can use the script and run it with the panel launcher.
Pops the scale dialog at mouse pointer.
Clicking outside the dialog or pressing Escape closes the dialog.
Scale changes with mouse drag, mouse scroll or keyboard left and right keys.

Requires yad and xrandr

#!/bin/sh
# save this as a file and make executable

# detect monitor
MON=$(xrandr -q | grep " connected" | cut -f1 -d ' ')

# find current xrandr brightness value
XR=$(xrandr --verbose | grep -i brightness | cut -f2 -d ' ' | head -n1)
BrCur=`awk "BEGIN {print $XR*100}"` # calculate, so e.g. 0.5 gets 50
BrMax="100"

# Set scale minimum here
BrMin="5"

# Set step here for keyboard left/right and mouse scroll
Step="5"

# yad scale dialog
yad --scale  --step $Step --mouse --skip-taskbar --min-value $BrMin --max-value $BrMax \
    --value $BrCur --print-partial --undecorated --width 300 \
    --on-top --escape-ok --no-buttons --hide-value --close-on-unfocus \
| while read BrNew; do
    # division using awk, so xrandr value gets e.g. 0.5 rather than 50
    xrandr --output $MON --brightness $(awk "BEGIN {print $BrNew/100}")
done

Offline

#3 2019-11-30 20:27:30

dinar
Member
Registered: 2019-11-28
Posts: 7

Re: no brightness setting

i have found brightness gui in "power manager plugin" panel applet. and it has little steps of tuning.

Offline

Board footer

Powered by FluxBB