Re: [ibm-acpi-devel] [PATCH 0/2] add sysfs for acpi interfaces of thinkpad hardware mute

2013-08-13 Thread Alex Hung
Hi Matthew, The problem is that thinkpad-acpi does not aware of mute is changed by either hotkey presses or in desktop. I believe Lenovo has an application to handle it Windows in similar ways, and the design makes controlling by user-applications more feasible. Cheers, Alex Hung On Wed, Aug 1

Re: [ibm-acpi-devel] [PATCH 0/2] add sysfs for acpi interfaces of thinkpad hardware mute

2013-08-13 Thread Alex Hung
Hi Matthew, The scenario will be to have an user-application to listen to the mute key event, compare to hardware mute against OS mute, and sync both mute. When the application is loaded, it can use this interface to enable it; when it is unloaded it can disable it. A config option is also a good

Re: [ibm-acpi-devel] [PATCH 0/2] add sysfs for acpi interfaces of thinkpad hardware mute

2013-08-13 Thread Alex Hung
On Wed, Aug 14, 2013 at 2:11 PM, Alex Hung wrote: > We are seeing bugs that mute led is out-of-sync with OS's mute. > Steps to duplicate: > 1. Press mute hotkey - it generates scancode and turns on mute led > 2. Unmute by desktop application. > > Expected result: System is un-muted and led is tur

Re: [ibm-acpi-devel] [PATCH 0/2] add sysfs for acpi interfaces of thinkpad hardware mute

2013-08-13 Thread Matthew Garrett
On Wed, 2013-08-14 at 14:11 +0800, Alex Hung wrote: > One solution to the problem is to disable hardware mute. Mute hotkey > will only generate scancode but led will not be toggled. So this works, but muting doesn't control the LED? It seems like this is something that ought to be fixed in-kernel

Re: [ibm-acpi-devel] [PATCH 0/2] add sysfs for acpi interfaces of thinkpad hardware mute

2013-08-13 Thread Alex Hung
We are seeing bugs that mute led is out-of-sync with OS's mute. Steps to duplicate: 1. Press mute hotkey - it generates scancode and turns on mute led 2. Unmute by desktop application. Expected result: System is un-muted and led is turned off Actual result: System, depending on models, can be mute

Re: [ibm-acpi-devel] [PATCH 0/2] add sysfs for acpi interfaces of thinkpad hardware mute

2013-08-13 Thread Matthew Garrett
On Wed, 2013-08-14 at 13:53 +0800, Alex Hung wrote: > Hi Matthew, > > > The scenario will be to have an user-application to listen to the mute > key event, compare to hardware mute against OS mute, and sync both > mute. When the application is loaded, it can use this interface to > enable it; whe

Re: [ibm-acpi-devel] [PATCH 0/2] add sysfs for acpi interfaces of thinkpad hardware mute

2013-08-13 Thread Matthew Garrett
On Wed, 2013-08-14 at 13:40 +0800, Alex Hung wrote: > Newer Thinkpad models comes with a mute hotkey with a mute led. It also comes > with ACPI AML functions to control hardware mute + led. The patches add sysfs > nodes so it is possible to enable, disable and control from user-space. What's expec

[ibm-acpi-devel] [PATCH 1/2] thinkpad-acpi: add sysfs for getting and setting hardware mute

2013-08-13 Thread Alex Hung
Newer thinkpad models have a mute hotkey with a led to indicate current mute states. Thinkpad BIOS provides ACPI interfaces for getting and changing the hardware mute along with the led. Signed-off-by: Alex Hung --- drivers/platform/x86/thinkpad_acpi.c | 50

[ibm-acpi-devel] [PATCH 0/2] add sysfs for acpi interfaces of thinkpad hardware mute

2013-08-13 Thread Alex Hung
Newer Thinkpad models comes with a mute hotkey with a mute led. It also comes with ACPI AML functions to control hardware mute + led. The patches add sysfs nodes so it is possible to enable, disable and control from user-space. Alex Hung (2): thinkpad-acpi: add sysfs for getting and setting har

[ibm-acpi-devel] [PATCH 2/2] thinkpad-acpi: add sysfs for enabling and disabling hardware mute

2013-08-13 Thread Alex Hung
Thinkpad BIOS provides an ACPI interface to disable hardware mute. When enabled (as default), Thinkpad issues a scancode and toggles hardware mute + led. Once disabled, Thinkpad will only issues the scancode. When hardware mute is enabled, hardware mute can be out-of-sync with user-space if a user

[ibm-acpi-devel] Unhandled HKEY event

2013-08-13 Thread Simon Plasger
Hi there, I'm using a Lenovo Thinkpad L530 with Linux Mint 14 and a 3.5.0-37-generic Kernel that uses the thinkpad drivers. When plugging in or plugging out my external power source, there appears the following message in the Kernel Ring Buffer: [ 2148.317725] thinkpad_acpi: unknown possible ther