[RFC PATCH] report acpi video hot key event through input device

2007-07-29 Thread Luming Yu
report acpi video hot key event through input device Signed-off-by: Luming Yu [EMAIL PROTECTED] -- diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 00d25b3..03d84db 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c @@ -31,6 +31,7 @@ #include linux/list.h #include linux

Re: Asus M6*, A6*, L5D - can't reboot after suspend/resume

2007-06-28 Thread Luming Yu
Please try the 1st patch: http://bugzilla.kernel.org/show_bug.cgi?id=6655#c8 if not work, please try the 2nd patch: http://bugzilla.kernel.org/show_bug.cgi?id=6655#c23 if still not, I don't know what's the hell about the problem. Need to debug further. Thanks, Luming On 6/29/07, Rafael J.

Re: Asus M6*, A6*, L5D - can't reboot after suspend/resume

2007-06-28 Thread Luming Yu
PROTECTED] wrote: On Thursday, 28 June 2007 23:51, Luming Yu wrote: Please try the 1st patch: http://bugzilla.kernel.org/show_bug.cgi?id=6655#c8 if not work, please try the 2nd patch: http://bugzilla.kernel.org/show_bug.cgi?id=6655#c23 if still not, I don't know what's the hell about

Re: [2.6.22-rc4-mm1] ACPI Exception (processor_throttling)

2007-06-07 Thread Luming Yu
Please test the attached patch. Thanks, Luming On 6/7/07, Maciej Rutecki [EMAIL PROTECTED] wrote: ACPI Exception (processor_throttling-0084): AE_NOT_FOUND, Evaluating _PTC [20070126] ACPI Exception (processor_throttling-0147): AE_NOT_FOUND, Evaluating _TSS [20070126] On 2.6.20.9 I don't have

[PATCH] _TPC,_TSS,_PTC support

2007-05-26 Thread Luming Yu
adds _TPC,_TSS,_PTC support which support Throttling Present Capabilities change for ACPI processor driver signed-off-by: Luming Yu [EMAIL PROTECTED] -- drivers/acpi/processor_core.c |6 drivers/acpi/processor_throttling.c | 380 +++- include/acpi

Re: BenQ S73U - no ACPI

2007-05-14 Thread Luming Yu
please enter a bug on bugzilla.kernel.org in ACPI category On 5/11/07, Jan Willies [EMAIL PROTECTED] wrote: Luming Yu wrote: On 5/9/07, Jan Willies [EMAIL PROTECTED] wrote: I got a BenQ S73U and it doesn't support ACPI very well. I got 23 please describe the problem in detail. What

Re: BenQ S73U - no ACPI

2007-05-09 Thread Luming Yu
On 5/9/07, Jan Willies [EMAIL PROTECTED] wrote: Hello, I got a BenQ S73U and it doesn't support ACPI very well. I got 23 please describe the problem in detail. warnings when compiling /proc/acpi/dsdt with the iasl-compiler, but no errors. This is confusing, it should work well cause they

Re: [patch] ACPI video driver output switch sysfs support

2007-05-09 Thread Luming Yu
: Add output switch sysfs class support for ACPI video driver. signed-off-by: Luming Yu [EMAIL PROTECTED] acpi/Kconfig |2 +- acpi/video.c | 40 video/Kconfig |7 +++ video/Makefile |3 +++ 4 files changed, 51 insertions(+), 1 deletion

Re: [PATCH 8/9] ACPI: thinkpad-acpi: add sysfs support to hotkey subdriver

2007-05-06 Thread Luming Yu
I was wondering how you know what action should be associated with what key? I don't. I could though, using model-specific knowledge (i.e. a table) and help from the linux thinkpad community and thinkwiki.org. I don't like the idea of stuffing kernel space with model-specific knowledge (i.e.

Re: [PATCH] ACPI video: Don't export sysfs backlight interface if query _BCL fail

2007-05-06 Thread Luming Yu
Ack! On 4/27/07, Danny Kukawka [EMAIL PROTECTED] wrote: Hi, currently the acpi video module export the backlight interface to sysfs also if acpi_video_device_lcd_query_levels() fails to read _BLC method (e.g. because the method is not available). In this case the userspace don't know which

Re: toshiba video brightness

2007-03-29 Thread Luming Yu
Hi Len, There are three issues according to your description. Issue 1: The missing of /sys/backlight on your Toshiba seems just due to the sysfs backlight requires bios expose _BCL, _BCM, and _BQC for returning levels supported, controlling brightness, querying the current brightness

Re: test

2007-03-28 Thread Luming Yu
why do you think so? On 3/29/07, Conke Hu [EMAIL PROTECTED] wrote: my mail does not work ? - To unsubscribe from this list: send the line unsubscribe linux-acpi in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html - To unsubscribe

[RFC patch] add GPE count under firmware acpi sysfs

2007-03-19 Thread Luming Yu
Add GPE count under /sys/firmware/acpi/gpe. signed-off-by: Luming Yu [EMAIL PROTECTED] -- drivers/acpi/Makefile |1 drivers/acpi/bus.c | 44 - drivers/acpi/events/evgpe.c |1 drivers/acpi/gpe_stats.c| 104 +++ drivers/acpi/osl.c

[patch] ACPI video driver output switch sysfs support

2007-03-12 Thread Luming Yu
Add output switch sysfs class support for ACPI video driver. signed-off-by: Luming Yu [EMAIL PROTECTED] --- drivers/acpi/Kconfig |2 +- drivers/acpi/video.c | 38 ++ drivers/video/Kconfig|7 +++ drivers/video/Makefile |3

Re: hwsusp defunct

2007-02-07 Thread Luming Yu
For acpi issues, please enter bug into bugzilla.kernel.org with dmesg, acpidump output . On 2/7/07, Jiri Slaby [EMAIL PROTECTED] wrote: Cc: linux-acpi not-cc: linux-pm Rafael J. Wysocki napsal(a): On Tuesday, 6 February 2007 12:18, Jiri Slaby wrote: This is blindly written dmesg after

Re: Fan speeds on HP nc6400 and nc8430

2007-02-06 Thread Luming Yu
declares itself is NC6330. On 2/6/07, Thomas Renninger [EMAIL PROTECTED] wrote: On Wed, 2007-01-24 at 09:54 -0700, Bjorn Helgaas wrote: On Tuesday 23 January 2007 21:38, Bjorn Helgaas wrote: On Tuesday 23 January 2007 21:19, Luming Yu wrote: On 1/19/07, emisca [EMAIL PROTECTED] wrote

Re: ACPI bytecode hardware registers access

2007-02-06 Thread Luming Yu
features. But do these features make sense to the designer of the box. On 2/5/07, Rudolf Marek [EMAIL PROTECTED] wrote: Hello, To all: Please continue CCing me and the lm-sensors list thanks. Luming Yu wrote: Yes, that is bad to simultaneously access same hardware by ACPI and native drivers

Re: ACPI bytecode hardware registers access

2007-02-05 Thread Luming Yu
Yes, that is bad to simultaneously access same hardware by ACPI and native drivers without coordination. But the problem is if nativer driver is really needed with the existence of the ACPI support for that device? Do you know the features that are NOT supported by ACPI? Probably, just writing a

Re: 2.6.20 poweroff regression on se7525gp2

2007-02-04 Thread Luming Yu
Sounds like a regression of patch from linus ACPI: Allow setting SCI_EN bit in PM1_CONTROL register Linus Torvalds [Wed, 11 Oct 2006 00:14:44 + (17:14 -0700)] This is needed by at least the Mac Mini's, which (incorrectly) come back from suspend with SCI_EN clear. On 2/5/07, Len Brown

Re: Strange things on 2.6.19/20 for a dual-core CPU

2007-02-04 Thread Luming Yu
Well, enter a acpi bug on bugzilla with acpidump output and dmesg attached. Another interesting thing is shown here: [EMAIL PROTECTED]:~$ cat /proc/acpi/processor/CPU1/info processor id:0 acpi id: 1 bus mastering control: no power management:no throttling

Re: Fan speeds on HP nc6400 and nc8430

2007-01-19 Thread Luming Yu
Do you have psmouse module loaded ? (i.e. CONFIG_MOUSE_PS2=m) If yes, Please try remove it, and re-test it. Thanks, Luming On 1/19/07, Pieter De Wit [EMAIL PROTECTED] wrote: Hello List, I have noted that the fan speed on idle is much higher in Linux compared to XP. I have also noted that once

Re: PROBLEM: CPU fan shuts down on load of fan.ko in kernel 2.6.18 and later

2007-01-16 Thread Luming Yu
But, _ON and _OFF methods set \_TZ.THRM.FNON object to 1 and 0 respectively, so, I think, it could be used as value returned by _STA method. Attached patch for DSDT should solve the fan issue. For reference, it does solve the fan issue - fan stays on during boot, echo 0 and 3 to

Re: HP Compaq nc6320 - Booting on battery power causes softlock

2007-01-16 Thread Luming Yu
The first thing is to make sure you are running the latest bios, kernel. Then, you need to sort out the kernel component/modules/drivers that cause the problem. If you guess it is ACPI issue, pleas test boot option acpi=off to see if the problem goes away. If you guess it is battery issue, please

Re: [PATCH 0/11] sony_acpi: prepare for prime time (resend)

2007-01-16 Thread Luming Yu
On 1/15/07, Mattia Dongili [EMAIL PROTECTED] wrote: Hello and sorry for the delay On Mon, Jan 15, 2007 at 04:01:14AM -0500, Luming Yu wrote: Patch series is not clean against 2.6.20-rc5. patch -p1 ../malattia_sony/1_snc_device_support_for_sony_va io.patch patching file Documentation/acpi

Re: [PATCH 0/11] sony_acpi: prepare for prime time (resend)

2007-01-15 Thread Luming Yu
Patch series is not clean against 2.6.20-rc5. patch -p1 ../malattia_sony/1_snc_device_support_for_sony_va io.patch patching file Documentation/acpi/sony_acpi.txt patching file drivers/acpi/Kconfig Hunk #1 succeeded at 252 with fuzz 2 (offset -9 lines). patching file drivers/acpi/Makefile Hunk

Re: HP nc6400 v.03 or v.05 laptop ACPI fails after reboot, works again after booting windows

2007-01-11 Thread Luming Yu
Since it is somewhat related to ACPI, please open a bug in ACPI category on bugzilla.kernel.org. It is a great place to track this kind of issues. On 12/13/06, Peter Clifton [EMAIL PROTECTED] wrote: On Wed, 2006-12-13 at 02:54 -0500, Lincoln Baxter, III wrote: Wow. You're completely right...

Re: [patch 1/5] video sysfs support - take 2: Add dev argument for backlight_device_register.

2007-01-09 Thread Luming Yu
-off-by: Luming Yu [EMAIL PROTECTED] --- drivers/acpi/asus_acpi.c|2 +- drivers/acpi/ibm_acpi.c |2 +- drivers/acpi/toshiba_acpi.c |3 ++- drivers/video/backlight/backlight.c |7 +-- include/linux/backlight.h |2 +- 5 files

Re: sonypc with Sony Vaio VGN-SZ1VP

2007-01-09 Thread Luming Yu
Luming has a sony laptop and can help with this, but he can't be the permanent maintainer any more than I can, for the same reason. If we can get past #1, then I recommend we apply the patch series in -mm to the acpi-test tree and go from there. Yes, I happen to have a sony laptop. So, I can

Re: [PATCH 2.6.18-mm2] acpi: add backlight support to the sony_acpi driver

2006-10-30 Thread Luming Yu
100644 index 000..4142662 --- /dev/null +++ b/drivers/video/output.c @@ -0,0 +1,129 @@ +/* + * output.c - Display output swither driver + * + * Copyright (C) 2006 Luming Yu [EMAIL PROTECTED] + * + * ~~ + * + * This program

Re: [PATCH 2.6.18-mm2] acpi: add backlight support to the sony_acpi driver

2006-10-25 Thread Luming Yu
+ + +MODULE_DESCRIPTION(Output Lowlevel Control Abstraction); +MODULE_LICENSE(GPL); +MODULE_AUTHOR(Luming Yu [EMAIL PROTECTED]); + +static ssize_t video_output_show_state (struct class_device *dev, char *buf) +{ + ssize_t ret_size = 0; + struct output_device *od = to_output_device(dev); + + if(od-props