On Tuesday 21 September 2021 01:54:30 am Dr. Nikolaus Klepp wrote: > Hi all! > > Is there a way to tell if TDE has just turned on the display after sending > it to sleep? Maybe a hook, a program, whatever? > > Reason is that on a T460 the backlight control needs to write the brigtness > value twize to restore it to its inital value after DPMS turned the display > off, otherwise it's at ~ 50% and the user needs to increase the value > manually - which is espectially anoying on these Notebooks when the primary > function of the function keys is "be a function key". > > My workaround for now is "xset dpms 0 0 0: xset s off" - which does a fine > job in keeping the display lit, but TDE cannot send the display to suspend > as this also needs written 2 times to actually work. The fun part is that > when the display is fully lit then the the user only need one write cyle to > change the brighness. Hi Nik, Until someone gives a real answer, try playing with these: xrandr redshift [1] dcop ?? use a script to suspend the display? [2] Maybe that'll help?, Michael [1] Some old code from when I was playing with redshift: RedshiftFullInfo=$(redshift -pv) echo -e "Full:\n $RedshiftFullInfo\n" RedshiftCurrInfo=$(redshift -p) echo -e "Curr:\n$RedshiftCurrInfo\n" echo Temperature=$(echo "$RedshiftCurrInfo" | grep -i 'Color temperature:' | awk '{print $3}') echo "Temp: $Temperature" Brightness=$(echo "$RedshiftCurrInfo" | grep -i 'Brightness:' | awk '{print $2}') echo "Bright: $Brightness" [2] I attach this to an icon in my panel. # cat goodnight #!/bin/bash dcop kdesktop KScreensaverIface lock sleep 3 xset dpms force standby ____________________________________________________ tde-users mailing list -- users@xxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxx Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@xxxxxxxxxxxxxxxxxx