ASUS U46E laptop brightness
Sergiy Mikhailushko
ooomka at yandex.ru
Wed Oct 30 17:29:31 UTC 2013
On 10/30/2013 17:41, Henry Hu wrote:
>
>
> On Wed, Oct 30, 2013 at 11:12 AM, Sergiy Mikhailushko <ooomka at yandex.ru
> <mailto:ooomka at yandex.ru>> wrote:
>
> I'm using ASUS UX51VZ and I can use this to adjust the brightness:
>
> acpi_call -p "\_SB.ATKD.SPLV" -i $2
> acpi_call -p "\ISMI" -i 154
>
> I found these statements in acpidump, so you may find similar statements.
>
Hooray!
Your method works, you saved my eyes. I can change brightness level with
"acpi_call -p "\_SB.ATKD.SPLV" -i $[1-10]. Thanks a lot!
I've made keyboard shortcuts for brightness control. Maybe someone may
need it -- here I leave the recipe:
1) Granted access to acpi to anybody from wheel group by adding the
following to /etc/devfs.conf (don't forget to restart devfs service
after changing the file):
perm acpi 0660
2) Created two tiny scripts in ~/bin:
brup.sh...
#!/bin/sh
if [ ! -f /tmp/brightlvl ]; then
echo 1 > /tmp/brightlvl
fi
lvl=`cat /tmp/brightlvl`
if [ $lvl -gt 9 ]; then
exit 0
fi
lvl=`expr $lvl + 1`
echo $lvl > /tmp/brightlvl
echo $lvl
exit 0
...and brdown.sh
#!/bin/sh
if [ ! -f /tmp/brightlvl ]; then
echo 10 > /tmp/brightlvl
fi
lvl=`cat /tmp/brightlvl`
if [ $lvl -lt 2 ]; then
exit 0
fi
lvl=`expr $lvl - 1`
echo $lvl > /tmp/brightlvl
echo $lvl
exit 0
2) Added the following to ~/.fluxbox/keys (if you use another WM/DE then
you'll have another way to bind hotkeys):
Control Right :Exec acpi_call -p "\_SB.ATKD.SPLV" -i `brup.sh`
Control Left :Exec acpi_call -p "\_SB.ATKD.SPLV" -i `brdown.sh`
Now I can adjust brightness by pressing Ctrl+Left/Ctrl+Right. Somewhat
more convenient then typing the command in the terminal.
More information about the freebsd-mobile
mailing list