On Tue, 15 May 2007, Richard Hughes wrote: > Hi, sorry for the direct mail, please feel free to CC this message to > the revelant lists. That would be ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxxx CC added. > I've been asked to add tpd-like interfaces to userspace for an x60, so > that the volume up, down and mute buttons are working in userspace. To Why? Did Lenovo break those keys in the X60? They usually manipulate the machine's hardware mixer in firmware, and trying to process them in userspace just ends up causing problems... > do this I need to use nvram as this is not exported in ACPI. Correct. > I really have two options, add the code to the thinkpad_acpi.c kernel > driver and export the nvram functions and then push the buttons > through INPUT so that we can deal with them in the normal way or to > add a HAL addon to do the polling in userspace. thinkpad-acpi has a feature scheduled to export control of the mixer these keys control as an alsa mixer device, so I wouldn't mind much adding input processing too. We will need to get there for properly handling the fn+x keys anyway. But it needs to be optional, and before I accept any such things, I need to know why are them necessary. No other recent thinkpad I know needs something messing with the volume keys, unless you are using the audio interface in the dock/port-replicator, which for some foolish reason is derived *before* the internal hardware mixer. > The HAL addon is quite trivial (~30 LOC) but means that input events > are going via uinput which is oviously non-ideal. I can add code to > thinkpad_acpi to do this fairly cleanly (with your help) if this is > acceptable to you guys. It has to be optional, and it needs to support all tpb-like keys. Other than that, yes, it might be acceptable. -- "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