[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Luminosité ecran lxqt lxde



Bonjour,

Faites avec xrandr avec les scripts joints que vous pourrez exécuter via vos raccourcis préférés.

pierre estrem


Le 26/01/2024 à 10:14, f1sxo (via linux-31 Mailing List) a écrit :
Bonjour,


Sur un Lenovo thinkbook les touches f5 et F6 permettent sous xfce4 ou kde de gérer la luminosité de l'écran.

mais pas avec lde ou  lxqt ou elles n'ont pas d'effet.

J'ai tenté  d'autres touches mais sans succès.

  Un essai avec :   xbacklight -inc 10
  donne No outputs have backlight property

Une idée ?
#!/bin/bash
pas="0.05"
mini="0.2"
ECRAN=`xrandr | grep -i "^.* connected" | cut -f1 -d" "`
if [ -f /tmp/gamma.tmp ]; then
   g="$(cat /tmp/gamma.tmp)"
   [ 1 -eq `echo "$g > $mini" | bc` ] && g="$(echo $g-$pas | bc)"
else
   g="$(echo 1-$pas | bc)"
fi
echo $g>/tmp/gamma.tmp
xrandr --output $ECRAN --gamma $g:$g:$g
#!/bin/bash
pas="0.05"
maxi="1.8"
ECRAN=`xrandr | grep -i "^.* connected" | cut -f1 -d" "`
if [ -f /tmp/gamma.tmp ]; then
   g="$(cat /tmp/gamma.tmp)"
   [ 1 -eq `echo "$g < $maxi" | bc` ] && g="$(echo $g+$pas | bc)"
else
   g="$(echo 1+$pas | bc)"
fi
echo $g>/tmp/gamma.tmp
xrandr --output $ECRAN --gamma $g:$g:$g
#!/bin/bash

ECRAN=`xrandr | grep -i "^.* connected" | cut -f1 -d" "`
if [ -f /tmp/gamma.tmp ]; then
	rm /tmp/gamma.tmp
fi
xrandr --output $ECRAN --gamma 1:1:1