[ibm-acpi-devel] [PATCH 1/2] thinkpad-acpi: add a kernel parameter to disable hardware mute and its led

2013-09-16 Thread Alex Hung
Some new Thinkpad has a mute button with led. This mute led can out-of-sync with mute in user interface. This kernel parameter disables the hardware mute and led to avoid confusion. The hotkey will only issue scancode to UI. Signed-off-by: Alex Hung --- drivers/platform/x86/thinkpad_acpi.c | 14

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

2013-09-16 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 supports to enable/disable and to change mute and its led via thinkpad-acpi. Alex Hung (2): thinkpad-acpi: add a kernel parameter to disable

[ibm-acpi-devel] [PATCH 2/2] thinkpad-acpi: support hardware mute and led

2013-09-16 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 | 89

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

2013-08-14 Thread Alex Hung
Added in David and Tim who also has some ideas to share. On Wed, Aug 14, 2013 at 3:00 PM, Matthew Garrett wrote: > On Wed, 2013-08-14 at 14:41 +0800, Alex Hung wrote: >> Hi Matthew, >> >> The problem is that thinkpad-acpi does not aware of mute is changed by >>

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

2013-08-14 Thread Alex Hung
Hi Mattew, That sounds good. I will work on it. Cheers, Alex Hung On Wed, Aug 14, 2013 at 3:00 PM, Matthew Garrett wrote: > On Wed, 2013-08-14 at 14:41 +0800, Alex Hung wrote: > > Hi Matthew, > > > > The problem is that thinkpad-acpi does not aware of mute is changed

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

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

2013-08-13 Thread Alex Hung
good idea. I will develop another patch. Cheers, Alex Hung On Wed, Aug 14, 2013 at 1:42 PM, Matthew Garrett wrote: > 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 fu

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

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

2013-08-13 Thread Alex Hung
ussed, but it will need to have the sysfs nodes for mute/led controls. On Wed, Aug 14, 2013 at 1:54 PM, Matthew Garrett wrote: > 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

[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

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

2013-08-13 Thread Alex Hung
user changes mute state by user application. This patch gives a chance to disable hardware mute. Signed-off-by: Alex Hung --- drivers/platform/x86/thinkpad_acpi.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform

[ibm-acpi-devel] [PATCH] thinkpad-acpi: add sysfs nodes for thinkpad hardware mute button with led.

2012-07-18 Thread Alex Hung
New thinkpad introduces new BIOS interfaces (aml methods) to control hardware mute and its led. The patch checks whether new new methods are present and provides new sysfs nodes to interfact with BIOS aml methods. Signed-off-by: Alex Hung --- drivers/platform/x86/thinkpad_acpi.c | 113

Re: [ibm-acpi-devel] [PATCH] thinkpad_acpi: added BIOS mute interfaces for volume

2012-07-09 Thread Alex Hung
ces only when the hardware is present. I have a x200 that has no mute led, and I will also test patches on it to make sure the original function does not break. Thanks for highlighting the information to me. I will remember to check systems with two different designs. Best Regards, Alex Hu

Re: [ibm-acpi-devel] [PATCH] thinkpad_acpi: added BIOS mute interfaces for volume

2012-07-08 Thread Alex Hung
one including myself works out a more comprehensive solution. Best Regards, Alex Hung On 04/11/2012 07:42 PM, Henrique de Moraes Holschuh wrote: > On Wed, 11 Apr 2012, Alex Hung wrote: >> I am modifying thinkpad_acpi so it can support the mute led, and I >> am looking for suggest

Re: [ibm-acpi-devel] [PATCH] thinkpad-acpi: fix issuing duplicated key events for brightness up/down

2012-04-24 Thread Alex Hung
On 04/24/2012 04:40 PM, Alex Hung wrote: > The tp_features.bright_acpimode will not be set correctly for brightness > control because ACPI_VIDEO_HID will not be located in ACPI. As a result, > a duplicated key event will always be sent. acpi_video_backlight_support() > is sufficie

[ibm-acpi-devel] [PATCH] thinkpad-acpi: fix issuing duplicated key events for brightness up/down

2012-04-24 Thread Alex Hung
: Alex Hung --- drivers/platform/x86/thinkpad_acpi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 7b82868..7d032d5 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86

Re: [ibm-acpi-devel] [PATCH] thinkpad_acpi: added BIOS mute interfaces for volume

2012-04-11 Thread Alex Hung
cpi_lifecycle != TPACPI_LIFE_INIT)*. 3. However, the changes now will changes the original behaviors (i.e. "up", "down" and so on) if BIOS supports new SSMS and SHDA methods. Any feedbacks and suggestions are most appreciated. Best Regards, Alex Hung On 04/11/2012 06:15 PM, Alex

[ibm-acpi-devel] [PATCH] thinkpad_acpi: added BIOS mute interfaces for volume

2012-04-11 Thread Alex Hung
Signed-off-by: Alex Hung --- drivers/platform/x86/thinkpad_acpi.c | 115 +++--- 1 files changed, 106 insertions(+), 9 deletions(-) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 7b82868..dc22a4c 100644 --- a/drivers