Re: Bug on ibm-acpi and hal regarding brightness keys

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 05 Jul 2007, Alfredo Matos wrote:
> 4 brigs up the brightness, while 5 lowers. It works, though no change
> detected in the 0x31 register.

That's the old CMOS API for changing brightness.  So, that means we *can*
support it in these machines, and I won't even bitch at Lenovo for switching
back to the old API... as long as it works, I don't think we are in a
position to care much about it.

We can probably get the current brightness from the CMOS api too.

Please check if position 0x5E in the output of
hexdump -C /dev/nvram
has the brightness level (0..7) in the lowest three bits.

What stumps me is that ibm-acpi and thinkpad-acpi already uses *both* APIs
for brightness changes at the same time, so it should be working.  Either
there is a bug in the code, or using the two APIs at the same time confuses
your thinkpad :(

At least it means that we can fix it, somehow.  It would be easy if Lenovo
had had the decency to remove ECOR.HBRV from ACPI since they are not using
it anymore.

It is also a good idea to read the ACPI specification 3.0b, and check what
is the ACPI standard way of dealing with display brightness. If Lenovo is
supporting that one, it is best to just switch to it on Lenovo thinkpads.

> Earlier in the thread i mentioned that g-p-m in Ubuntu Gutsy (7.10)
> using 2.6.22-rcx kernel picks up the correct brightness level. Since
> Richard is following this thread, maybe he can shed some light on why
> g-p-m picks up the brightness change even though thinkpad_acpi does not.

Probably from the CMOS.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
ibm-acpi-devel mailing list
ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel

[Index of Archives]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite Photos]     [Yosemite Advice]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux