Re: nvram polling for hardware mixer

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

 



On Tue, 29 May 2007, Matthew Garrett wrote:
> On Mon, May 28, 2007 at 11:58:24PM +0100, Richard Hughes wrote:
> > I've been hacking to make the nvram hardware buttons on thinkpad exposed
> > as a hardware mixer device. This requires the nvram to be polled in
> > kernel space, and then examined to see if the volume and mute status has
> > changed. I have attached code to export a simple mono tuner, but this
> > needs further testing and integration. I've also prepared a preliminary
> > patch to add the polling to the thinkpad_acpi driver.
> 
> The recent Thinkpads I've played with have all triggered interrupts on 
> IRQ 9 when hitting the nvram hotkeys. ACPI registers this as a shared 
> interrupt, so possibly there's some hope of being able to hook in there? 
> I'm not sure if this is the case on all machines, so it might require a 
> table for polling/non-polling behaviour.

Err... not only we CAN get them using interrupts, it was already sort of
working(!).  Try an echo 0xffffffff > /proc/acpi/ibm/hotkeys, and watch the
weird ACPI events it generates when you press the volume keys, etc.

I have a patch that fixes and documents the whole stuff almost ready, it
will be pushed to the git tree soon.

BTW, I also got events for the LID switch on the same code path in a T43,
now.  I will be adding EV_SW to thinkpad-acpi soon :p

-- 
  "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