~alpine/users

acpi scripts have started inserting '?' in console

Paul W. Rankin <hello@paulwrankin.com>
Details
Message ID
<7f5e20df441bf7094d4811d7f2fedc08@purelymail.com>
DKIM signature
missing
Download raw message
Hello,

I have the following acpi scripts:

$ cat /etc/acpi/brightness-up
#!/bin/sh
read brightness < /sys/class/backlight/edp-backlight/brightness
read max < /sys/class/backlight/edp-backlight/max_brightness
inc=256
target=$(( brightness + inc ))

echo $(( target < max ? target : max )) > 
/sys/class/backlight/edp-backlight/brightness
$ cat /etc/acpi/brightness-down
#!/bin/sh
read brightness < /sys/class/backlight/edp-backlight/brightness
inc=256
target=$(( brightness - inc ))

echo $(( 0 < target ? target : 0 )) > 
/sys/class/backlight/edp-backlight/brightness

These work to increase/decrease the screen brightness, but recently (not 
sure how recent) they have started to insert '?' at the console (not X). 
This doesn't appear to be a real character, because I can, e.g.

$ ????echo 0
0

Any idea what's wrong with my implementation?

Thanks
Reply to thread Export thread (mbox)