2025-02-23 10:39:36 +00:00
|
|
|
#!/bin/bash
|
2025-02-23 14:58:03 +00:00
|
|
|
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;
|
|
|
|
read;
|
|
|
|
echo -n "$pV" >> /sys/class/backlight/intel_backlight/brightness;
|
|
|
|
exit 0;
|
|
|
|
else
|
|
|
|
exit 1;
|
|
|
|
fi
|