Re: ASUS U46E laptop brightness

Sergiy Mikhailushko <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
On 10/30/2013 17:41, Henry Hu wrote:
>
>
> On Wed, Oct 30, 2013 at 11:12 AM, Sergiy Mikhailushko <[email protected]
> <mailto:[email protected]>> 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.





_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.