Update the intel backlight toggle to use the saved brightness pre-toggle.
This commit is contained in:
parent
1e92a40689
commit
6cd1364821
@ -1,5 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
if [ -f /sys/class/backlight/intel_backlight/brightness ]; then
|
||||||
|
pV=$(cat /sys/class/backlight/intel_backlight/brightness);
|
||||||
echo -n "0" >> /sys/class/backlight/intel_backlight/brightness;
|
echo -n "0" >> /sys/class/backlight/intel_backlight/brightness;
|
||||||
read;
|
read;
|
||||||
echo -n "24000" >> /sys/class/backlight/intel_backlight/brightness;
|
echo -n "$pV" >> /sys/class/backlight/intel_backlight/brightness;
|
||||||
exit 0;
|
exit 0;
|
||||||
|
else
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user