need help. asus-a6m+brightness control

Sergey V. Dyatko sergey.dyatko at gmail.com
Wed Feb 10 11:51:30 UTC 2010


On Wed, 10 Feb 2010 11:20:54 +0000
Rui Paulo <rpaulo at freebsd.org> wrote:

RP> 
RP> On 9 Feb 2010, at 21:33, Sergey V. Dyatko wrote:
RP> 
RP> > Hi, 
RP> > 
RP> > I have asus-a6m laptop running HEAD.  But unfortunately brightness
RP> > control not working when I boot with acpi support. 
RP> > 
RP> > I made some changes on acpi_asus.c but it doesn't help - 
RP> > brightness is still not regulated. Good news: the volume keys
RP> > started working and now I have /dev/led/wled, /dev/led/mled :)
RP> > 
RP> > result of `acpidump -dt | gzip -c9 >asus_a6m.asl.gz`:
RP> > http://tiger.ipfw.ru/files/asus_a6m.asl.gz
RP> > 
RP> > Thanks for any help
RP> > 
RP> > notebook# svn diff acpi_asus.c
RP> > Index: acpi_asus.c
RP> > ===================================================================
RP> > --- acpi_asus.c (revision 203701)
RP> > +++ acpi_asus.c (working copy)
RP> > @@ -357,6 +357,15 @@
RP> >                .lcd_set        = "\\Q10"
RP> >        },
RP> >        {
RP> > +               .name           = "A6M",
RP> > +               .wled_set       = "WLED",
RP> > +               .mled_set       = "MLED",
RP> > +               .brn_get        = "GPLV",
RP> > +               .brn_set        = "SPLV",
RP> > +               .brn_up         = "\\_SB.PCI0.SBRG.EC0._Q0F",
RP> > +               .brn_dn         =
RP> > "\\_SB.PCI0.SBRG.EC0._Q0E"           
RP> > +       },
RP> 
RP> 
RP> According to your ASL, the methods are
RP> 
RP> brn_get=\\_SB.PCI0.SBRG.EC0._Q11
RP> brn_dn=\\_SB.PCI0.SBRG.EC0._Q0E
RP> brn_up=\\_SB.PCI0.SBRG.EC0._Q0F
thanks fo reply

RP> 
RP> So I'm not sure what you have doesn't work...
I did as you advised, but:
i. when I do `kldload acpi_asus` sysctl hw.acpi.asus.lcd_brightness is
"1"
ii. fn+f5,f6 still doesn't work...

I hope this helps:
notebook# sysctl hw.acpi.verbose=1
Fn+F5: Feb 10 13:40:48 notebook kernel: acpi_asus0: Brightness decreased
Fn+F6: <no any messages>
after 1st Fn+f5 value of hw.acpi.asus.lcd_brightness is 14.
I can press 'Fn+f5' many times but value doesn't change.

Fn+F7: Feb 10 13:41:27 notebook kernel: acpi_asus0: LCD turned off
Fn+F7 again: Feb 10 13:41:28 notebook kernel: acpi_asus0: LCD turned on


RP> 
RP> --
RP> Rui Paulo
RP> 



--
wbw, tiger


More information about the freebsd-acpi mailing list