:: Re: [DNG] Adjusting LCD backlight i…
Kezdőlap
Delete this message
Reply to this message
Szerző: Florian Zieboll
Dátum:  
Címzett: dng
Tárgy: Re: [DNG] Adjusting LCD backlight in XFCE4
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Thu, 18 May 2017 15:55:07 +1000
Ralph Ronnquist <ralph.ronnquist@???> wrote:

> Unless you've been there already,
> https://wiki.archlinux.org/index.php/Toshiba_Satellite_R830
> has a couple of suggestions. Especially if that's your model.


Hallo Lars,

if it really is a Toshiba, you could try this little script which I
once wrote for my precious Tecra 9000. If no value (0-7) is given as
argument, it simply cycles through the brightness levels, so it's
possible to assign a keyboard shortcut:


- ---snip---

#!/bin/bash
# toshiba laptop lcd brightness control
NEW="$@"
CURRENT=`cat /proc/acpi/toshiba/lcd | grep brightness\: | sed 's/[^0-9]*//g'`
if [ -n "$NEW" ] ; then
  if [[ "$NEW" != [0-7] ]] ; then
    echo -e "error: invalid value" && exit 0
  fi
elif [[ "$CURRENT" == "7" ]] ; then
  NEW=0
else
  NEW=$(($CURRENT+1))
fi
echo -e "brightness:\t\t"$NEW"\nbrightness_levels:\t8"  > /proc/acpi/toshiba/lcd 2> /dev/null &
echo "lcd brightness (0-7) set to "$NEW""

- ---snap---


libre Grüße,

Florian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJZHUiFAAoJEO5FSXn+RB/Wr24P/39zjfnh7fz8V0BuoOacKUQ3
rti4gsRZCuBV3LkYca5IPmvJdE4mh9W5JkL40kf0O2ZSGnAAgQHsuoS/ICpGZFn+
uPIfQRx0yrkmDq8eMbQuWNJfTP1foLJkseQSrJZhdBokmhRQEF452GOoxYYO9nUW
ICMNUNxQ80B2NX076qGDKMiA6hL/5oME/Che5CRD2l5lYdRFj6x1lnYreET//rZ5
O6dKPC58lXyRvNqxmET3T7J+Z8t8x2Wx79yMWMXBSIlYKquIVkjB2CcfOIpnIpiZ
0zRG4RhG7ewsHRFF+DSPBsD48yAKyg3W0I8o5EA/jfKYPuZ5NTluu3KPpF0eKBOL
1AiChPRBWUEPm/bvBU2qaMQ2xyHk0mtFGvCjOXMpF9pcvLshZRiwwWg9oFcZvOWd
O6pRQgULjj6SF+3x4EYp8xu5MjSaMqDtGgwDO7fnhSjCgJiHSXmM6hv3AhwabDMs
o7Hg2Lw8Zw9fP5mfUBF7jMv6xLvf4ImgONUeqg2ghrI3jiCgU/xXN9TfFT0VsxI3
NkBIZs4bqAMYsMCzKqIM8b4oZPfvd5H1SDorc5BE1rgvVb3vNM3fEqGs6UvDaxhO
ZSTTcYJwsHMCSos8+9iQXwZgRXbtMgvEtBqeG42kNF0h+Lh8r8l9QbN+rJ1/6unu
UhQKjWr+LM0dmuS+T5Ad
=aiWr
-----END PGP SIGNATURE-----