Re: [patch 2.6.25-rc2-git] crosslink ACPI and "real" device nodes

2008-02-25 Thread Zhang, Rui
On Tue, 2008-02-26 at 14:45 +0800, David Brownell wrote: > On Monday 25 February 2008, Zhang, Rui wrote: > > > + if (!ACPI_FAILURE(status)) { > > > + int ret; > > > + > > > + ret = sysfs_create

Re: [patch 2.6.25-rc2-git] crosslink ACPI and "real" device nodes

2008-02-25 Thread Zhang, Rui
he ACPI device has > instead > a "physical_node" link pointing back to the PNP device. Other > firmware > frameworks, like OpenFirmware, could do the same thing to couple their > firmware tables to the rest of the system. > > (Based on a patch from Zhang Rui. This versio

[PATCH 2/2] ACPI: show temperature in millidegree Celsius

2008-02-25 Thread Zhang, Rui
Show the temperature in Millidegree Celsius. Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> --- drivers/acpi/thermal.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) Index: linux-2.6.25-rc2/drivers/acpi/the

[PATCH 1/2] thermal: add hwmon sys I/F for thermal device

2008-02-25 Thread Zhang, Rui
Add hwmon sys I/F for the generic thermal device. Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> --- Documentation/thermal/sysfs-api.txt | 22 + drivers/thermal/Kconfig |1 drivers/thermal/thermal.c | 86 include

Re: The new thermal management sysfs class, and hwmon

2008-02-24 Thread Zhang, Rui
On Sat, 2008-02-23 at 16:29 +0800, Jean Delvare wrote: > On Fri, 22 Feb 2008 11:54:06 +0100, Hans de Goede wrote: > > Zhang, Rui wrote: > > > Hi, Hans, > > > > > > On Fri, 2008-02-22 at 16:00 +0800, Hans de Goede wrote: > > > > > >> I thi

Re: [lm-sensors] The new thermal management sysfs class, and hwmon

2008-02-22 Thread Zhang, Rui
Hi, Hans, On Fri, 2008-02-22 at 16:00 +0800, Hans de Goede wrote: > I think all that is really needed and asked for is for the new thermal > ACPI > code to: > 1) provide temp readings in the same format as hwmon (so milli degrees > celcius, > not degrees celcius Agree. > 2) provide a hwmon interf

Re: The new thermal management sysfs class, and hwmon

2008-02-03 Thread Zhang Rui
Hi, henrique, On Sun, 2008-02-03 at 10:26 +0800, Henrique de Moraes Holschuh wrote: > The new thermal managemeny sysfs class that was just merged into > acpi-test, > especially when dealing with temperature measurement and fan control, > has a > lot of common ground with the hwmon interface. Yes,

[PATCH 4/4] ACPI: video: call ACPI notifier chain for ACPI video notifications

2008-01-24 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> Call notifier chain for display/brightness switch events. The kernel mode graphics driver is interested in this. Sign-off-by: Zhang Rui <[EMAIL PROTECTED]> --- drivers/acpi/video.c |2 ++ 1 file changed, 2 insertions(+) Index: linux-2.6/

[PATCH 2/4] ACPI: video: prevent ACPI video actions upon display switch notifications

2008-01-24 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> Display switching via ACPI control methods are known to work on none platform AFAIK. And graphics people want to control the display switching all by themselves. Prevent ACPI from handling display switch hotkey events in this patch. Signed-off-by: Zha

[PATCH 3/4] ACPI: create ACPI notifier chain

2008-01-24 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> This patch is needed by the kernel mode graphics drivers. Create an ACPI notifier chain so that they can get notified upon hotkey events. Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> --- drivers/acpi/event.c| 28 +

[PATCH 1/4] ACPI: video: introduce new flag for enabling/disabling ACPI video actions upon brightness switch notifications

2008-01-24 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> Introduce new module parameter for brightness control. "brightness_switch_enabled" is set by default which means nothing changes upon brightness switch events. When "brightness_switch_enabled" is cleared via "echo 0

Re: [PATCH 9/10] introduce intel_menlow platform specific driver

2008-01-24 Thread Zhang Rui
> >> You can just eliminate variable result, because result will be > >> -ENODEV only. > > I disagree. "result" is required to store the return value from > acpi_bus_register_driver which may be different from ENODEV. Otherwise > it's all -ENODEV. > &g

Re: [PATCH] Ignore ACPI video devices that aren't present in hardware

2008-01-22 Thread Zhang Rui
On Thu, 2008-01-17 at 20:02 +0800, Matthew Garrett wrote: > On Thu, Jan 17, 2008 at 11:57:11AM +0100, Thomas Renninger wrote: > > > Does it make sense to add this as a separate function, searching for > a > > physical PCI device for an ACPI device may pop up more often in the > > future? This is a

Re: [PATCH] Rationalise ACPI backlight implementation

2008-01-22 Thread Zhang Rui
On Wed, 2007-12-26 at 02:03 +, Matthew Garrett wrote: > The sysfs backlight class provides no mechanism for querying the > acceptable brightness for a backlight. The ACPI spec states that values > are only valid if they are reported as available by the firmware. Since > we can't provide that

Re: [PATCH 6/10] ACPI: register ACPI Video LCD as generic thermal cooling device

2008-01-21 Thread Zhang Rui
Hi, Matthew, On Fri, 2008-01-18 at 09:42 +0800, Matthew Garrett wrote: > On Fri, Jan 18, 2008 at 09:31:40AM +0800, Zhang Rui wrote: > > > Just like I don't think lcd should be used for ACPI thermal > management > > before I saw it is listed in _TZD and intel_menlow req

Re: Problem with the Fn+F3 key. acpi problem ?

2008-01-21 Thread Zhang Rui
On Sat, 2008-01-12 at 14:08 +0100, giggz wrote: > Matthew Garrett a écrit : > > On Sat, Jan 12, 2008 at 01:33:38PM +0100, giggz wrote: > > > >> What is the acpi video module ? > > > > If you have /proc/acpi/video, it's loaded. > > > >> I don't have any /var/log/acpid.log > > > > In that case, t

Re: [PATCH 9/10] introduce intel_menlow platform specific driver

2008-01-17 Thread Zhang Rui
ust {} for the terminating entry, right? Yes, I use this just to be consistent with other ACPI device drivers. Thanks for your comments, please review the patch below, From: Thomas Sujith <[EMAIL PROTECTED]> Intel menlow platform specific driver for thermal management extension. Signed-off-b

Re: [PATCH 6/10] ACPI: register ACPI Video LCD as generic thermal cooling device

2008-01-17 Thread Zhang Rui
Hi, Mattew, thanks for your comments. On Thu, 2008-01-17 at 20:24 +0800, Matthew Garrett wrote: > On Thu, Jan 17, 2008 at 03:51:22PM +0800, Zhang Rui wrote: > > From: Zhang Rui <[EMAIL PROTECTED]> > > > > Register ACPI video device as thermal cooling devices as they

[PATCH 3/10] ACPI: ACPI thermal zone handle notification correctly

2008-01-16 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> Change the ACPI thermal action upon notification 0x81 and 0x82. According to the ACPI spec, we should: re-evaluate _PSV and _ACx methods upon notification 0x81 re-evaluate _PSL and _ALx and _TZD upon notificaiton 0x82. But the current code re-evaluates a

[PATCH 5/10] ACPI: register ACPI Processor as generic thermal cooling device

2008-01-16 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> Register ACPI processor as thermal cooling devices. A combination of processor T-state and P-state are used for thermal throttling. the processor will reduce the frequency first and then set the T-state. we use cpufreq_thermal_reduction_pctg to calcula

[PATCH 4/10] ACPI: register ACPI Fan as generic thermal cooling device

2008-01-16 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> Register ACPI Fan as thermal cooling device. Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> Signed-off-by: Thomas Sujith <[EMAIL PROTECTED]> --- drivers/acpi/fan.c | 90 - 1 file changed, 8

[PATCH 7/10] ACPI: attach thermal zone info

2008-01-16 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> Intel menlow driver needs to get the pointer of themal_zone_device structure of an ACPI thermal zone. Attach this to each ACPI thermal zone device object. Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> Signed-off-by: Thomas Sujith <[

[PATCH 6/10] ACPI: register ACPI Video LCD as generic thermal cooling device

2008-01-16 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> Register ACPI video device as thermal cooling devices as they may be listed in _TZD method and the backlight control can be used for throttling. Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> Signed-off-by: Thomas Sujith <[EMAIL PROTECTED]>

[PATCH 8/10] ACPI: CELSIUS_TO_KELVIN fixup

2008-01-16 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> Fix an imprecision in CELSIUS_TO_KELVIN and move these two macroes to a proper place. Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> Signed-off-by: Thomas Sujith <[EMAIL PROTECTED]> --- drivers/acpi/thermal.c |3 --- include/linux/therma

[PATCH 9/10] introduce intel_menlow platform specific driver

2008-01-16 Thread Zhang Rui
From: Thomas Sujith <[EMAIL PROTECTED]> Intel menlow platform specific driver for thermal management. Signed-off-by: Thomas Sujith <[EMAIL PROTECTED]> Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> --- drivers/misc/Kconfig| 10 drivers/misc/Makefile |

[PATCH 10/10] ACPI: thermal fixup

2008-01-16 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> The alias name may be used in _PSL, _ALx and _TZD, so we bind the cooling device only if the acpi_device node matches. Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> Signed-off-by: Thomas Sujith <[EMAIL PROTECTED]> --- drivers/acp

[PATCH 1/10] the generic thermal sysfs driver

2008-01-16 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> The Generic Thermal sysfs driver for thermal management. Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> Signed-off-by: Thomas Sujith <[EMAIL PROTECTED]> --- Documentation/thermal/sysfs-api.txt | 247 drivers/Kconfig

[PATCH 2/10] ACPI: register ACPI thermal zone as generic thermal zone devices

2008-01-16 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> Register ACPI thermal zone as thermal zone device. the new sys I/F for ACPI thermal zone will be like this: /sys/class/thermal: |thermal_zone1: |-type: "ACPI thermal zone". RO |-temp:

[PATCH 0/10] generic thermal management

2008-01-16 Thread Zhang Rui
Hi, all, This patch series introduces a new generic thermal sysfs driver which provides a set of interfaces for thermal zone devices (sensors) and thermal cooling devices (fan, processor...) to register with the thermal management solution and to be a part of it. And it also includes the implemen

[PATCH 4/4] ACPI: support ejecting device in userspace

2008-01-16 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> "/sys/devices/LNXSYSTM:00/.../eject" is used to evaluate _EJx method and eject a device in user space. But "echo 1 > eject" causes deadlock because the device hot-removal code will try to remove the "eject" file as a resu

[PATCH 1/4] ACPI: flush kacpi_notify_wq before removing notify handler

2008-01-16 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> Flush kacpi_notify_wq before notify handler is removed. Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> --- drivers/acpi/osl.c |1 + 1 file changed, 1 insertion(+) Index: linux-2.6/driver

[PATCH 2/4] ACPI: introduce new acpi execute type for device hotplug

2008-01-16 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> Introduce new acpi_execute_type OSL_DEVICE_HOTPLUG_HANDLER for device hotplug. so that we can move the device hotplug notify handler to keventd_wq and flush kacpi_notify_wq before removing the per-device notify handler. Signed-off-by: Zhang Rui &

[PATCH 3/4] ACPI: add battery hotplug support

2008-01-16 Thread Zhang Rui
el.org/show_bug.cgi?id=2884 Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> --- drivers/acpi/bus.c | 58 +- drivers/acpi/scan.c | 123 +++- include/acpi/acpi_bus.h |2 3 files changed, 168 insertions(+), 15 deletions(-) Inde

[PATCH 0/4] ACPI: Battery hotplug support

2008-01-16 Thread Zhang Rui
Hi, all, This patch series is for battery hotplug support. Please refer to http://bugzilla.kernel.org/show_bug.cgi?id=2884 Patch 01 flushes kacpi_notify_wq before removing the notify handler as well as the kacpid_wq. Patch 02 adds a new acpi execute type, OSL_DEVICE_HOTPLUG_HANDLER,

Re: ACPI Error (utglobal-0126)

2008-01-15 Thread Zhang Rui
function+0x0/0x30 > [] system_call+0x7e/0x83 > > ACPI Exception (video-1721): UNKNOWN_STATUS_CODE, Cant attach device > [20070126] > input: Video Bus as /class/input/input7 > Please try this patch first. From: Zhang Rui <[EMAIL PROTECTED]> acpi_video_bus_get_one_device() i

Re: [PATCH] ACPI: Add sysfs interface for acpi device wakeup

2008-01-11 Thread Zhang Rui
On Thu, 2008-01-10 at 09:43 +0200, Maxim Levitsky wrote: > On Thursday, 10 January 2008 00:21:46 Yi Yang wrote: > > Subject: ACPI: convert procfs to sysfs for /proc/acpi/wakeup > > From: Yi Yang <[EMAIL PROTECTED]> > > > > /proc/acpi/wakeup is deprecated but it has to exist because > > we haven't

RE: backlight regration from kernel 2.6.22 to 2.6.23

2007-12-26 Thread Zhang, Rui
Hi, Sergio, Please open a bug at http://bugzilla.kernel.org/enter_bug.cgi?product=ACPI And attach the dmesg and acpidump output. Thanks, Rui >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of Sergio Monteiro Basto >Sent: Thursday, December 27, 2007 4:43

RE: No blacklight Re: [patch] remove debug info in acpi video

2007-11-26 Thread Zhang, Rui
>-Original Message- >From: Sergio Monteiro Basto [mailto:[EMAIL PROTECTED] >Sent: Tuesday, November 27, 2007 3:39 AM >To: Wang, Zhenyu Z >Cc: Zhang, Rui; linux-acpi@vger.kernel.org >Subject: Re: No blacklight Re: [patch] remove debug info in acpi video > > >

RE: ACPI: disable stray GPE, prevent ACPI interrupt storm

2007-11-20 Thread Zhang Rui
gt; >-Original Message- > >From: Len Brown [mailto:[EMAIL PROTECTED] > >Sent: Tuesday, November 20, 2007 10:43 AM > >To: Moore, Robert > >Cc: linux-acpi@vger.kernel.org; Zhang, Rui; Alexey Starikovskiy > >Subject: ACPI: disable stray GPE, prevent ACPI interrupt

[PATCH -v2] ACPI: disable the gpe that doesn't have a GPE handler correctly

2007-11-20 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> The current code only disable the GPE by judging the GPE type, which is one of WAKE, RUNTIME and WAKE_RUN. In bug 6217, GPE 17 is enabled by the AML code ... And it will be triggerred when an extra CRT is connected. As GPE 17 is not ec gpe, and there is n

Re: [PATCH] ACPI: disable the gpe that doesn't have a GPE handler correctly

2007-11-19 Thread Zhang Rui
On Mon, 2007-11-19 at 15:32 +0800, Zhang Rui wrote: > From: Zhang Rui <[EMAIL PROTECTED]> > > The current code only disable the GPE by judging the > GPE type, which is one of WAKE, RUNTIME and WAKE_RUN. > In bug 6217, GPE 17 is enabled by the AML code ... > And it will be

[PATCH] ACPI: disable the gpe that doesn't have a GPE handler correctly

2007-11-18 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> The current code only disable the GPE by judging the GPE type, which is one of WAKE, RUNTIME and WAKE_RUN. In bug 6217, GPE 17 is enabled by the AML code ... And it will be triggerred when an extra CRT is connected. As GPE 17 is not ec gpe, and there is n

Re: no acpi events generated at all Sony Vaio SZ61

2007-11-15 Thread Zhang Rui
On Thu, 2007-11-15 at 11:38 +0100, Frank Munsche wrote: > Hello, > > I've got a Sony Vaio SZ61 running gentoo, 2.6.22-gentoo-r9 . Although there > is > acpi - information available in /proc/acpi (e.g. battery, ac_adapter, > processor) I never get apci - events reported. > If I pull the ac - ca

Re: [patch 8/8] ACPI: video - fix permissions on some proc entries

2007-11-13 Thread Zhang Rui
On Tue, 2007-11-06 at 00:43 +0800, Dmitry Torokhov wrote: > ACPI: video - fix permissions on some proc entries > > POST and DOS are supposed to be writable but permissions > did not allow it. The same reason as patch 6. :) > Signed-off-by: Dmitry Torokhov <[EMAIL PROTECTED]> > --- > drivers/acpi/

Re: [patch 7/8] ACPI: video - more cleanups

2007-11-13 Thread Zhang Rui
On Tue, 2007-11-06 at 00:43 +0800, Dmitry Torokhov wrote: > ACPI: video - more cleanups > > Remove unneeded checks and initializations, implement proper > unwinding after errors in initialization code, get rid of > unneeded casts, adjust formatting. A big patch with a large number of minor cleanup

Re: [patch 6/8] ACPI: video - properly handle errors when registering proc elements

2007-11-13 Thread Zhang Rui
On Tue, 2007-11-06 at 00:43 +0800, Dmitry Torokhov wrote: > ACPI: video - properly handle errors when registering proc elements > > Have acpi_video_device_add_fs() and acpi_video_bus_add_fs() > properly unwind proc creation after error. Hi, Dmitry, The patch is good. But I'm afraid we don't need

Re: [patch 5/8] ACPI: video - simplify handling of attached devices

2007-11-13 Thread Zhang Rui
On Tue, 2007-11-06 at 00:43 +0800, Dmitry Torokhov wrote: > ACPI: video - simplify handling of attached devices > > The old code needlessly stored invalid entries in attached_array list. > > Signed-off-by: Dmitry Torokhov <[EMAIL PROTECTED]> Acked-by: Zhang

Re: [patch 4/8] ACPI: video - convert semaphore to a mutex

2007-11-13 Thread Zhang Rui
On Tue, 2007-11-06 at 00:43 +0800, Dmitry Torokhov wrote: > ACPI: video - convert semaphore to a mutex > > Signed-off-by: Dmitry Torokhov <[EMAIL PROTECTED]> Acked-by: Zhang Rui <[EMAIL PROTECTED]> > --- > drivers/acpi/video.c | 21 +++-- > 1 file

Re: [patch 3/8] ACPI: video - remove unsafe uses of list_for_each_safe()

2007-11-13 Thread Zhang Rui
g accessed from several threads. > > Signed-off-by: Dmitry Torokhov <[EMAIL PROTECTED]> Acked-by: Zhang Rui <[EMAIL PROTECTED]> > --- > drivers/acpi/video.c | 71 > --- > 1 file changed, 34 insertions(+), 37 delet

Re: [patch 2/8] ACPI: video - add missing input_free_device()

2007-11-13 Thread Zhang Rui
() > and handle input_allocate_device() failures. > > Signed-off-by: Dmitry Torokhov <[EMAIL PROTECTED]> Acked-by: Zhang Rui <[EMAIL PROTECTED]> > --- > drivers/acpi/video.c | 71 > +-- > 1 file changed, 35 inserti

Re: [patch 1/8] ACPI: video - fit input device into sysfs tree

2007-11-13 Thread Zhang Rui
On Tue, 2007-11-06 at 00:43 +0800, Dmitry Torokhov wrote: > ACPI: video - fit input device into sysfs tree > > Properly set up parent on input device registered by the video driver. > > Signed-off-by: Dmitry Torokhov <[EMAIL PROTECTED]> Acked-by: Zhang Rui <[EMAIL PROT

Re: [patch 0/8] ACPI Video various cleanups & fixes

2007-11-13 Thread Zhang Rui
On Tue, 2007-11-06 at 00:43 +0800, Dmitry Torokhov wrote: > Hi Len, Rui, > > Here is a group of cleanups and patches to the acpi video driver. > Originally I just wanted to fix sysfs placement of input devices > created by the driver, but then I saw some more potential issues. > > The patches are

Re: [patch] remove debug info in acpi video

2007-11-12 Thread Zhang Rui
On Tue, 2007-11-13 at 08:50 +0800, Zhenyu Wang wrote: > > Remove acpi video debug message. > > Signed-off-by: Zhenyu Wang <[EMAIL PROTECTED]> Acked-by: Zhang Rui <[EMAIL PROTECTED]> > --- > drivers/acpi/video.c |3 --- > 1 files changed, 0 insertions(+),

RE: HP dv2125nr suspend to ram problems

2007-10-11 Thread Zhang, Rui
Hi, Ryan, Please open a bug in http://bugzilla.kernel.org/enter_bug.cgi?product=ACPI And attach the dmesg and lspci output. acpidump is needed as well. Thanks, Rui -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan May Sent: Thursday, October 11, 2007

RE: Problem with GPRS modem

2007-10-10 Thread Zhang, Rui
Hi, Grzeniek, Please open a bug in http://bugzilla.kernel.org/enter_bug.cgi?product=ACPI And attach the dmesg and "cat /proc/interrupt" both with and without "acpi=off" boot parameter. acpidump may be needed as well. Thanks, Rui -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL P

Re: _DOS in video.c

2007-10-08 Thread Zhang Rui
On Fri, 2007-10-05 at 22:50 +0100, Peter Clifton wrote: > Hi, > > I've been investigating some backlight vs. lidswitch problems with my HP > Compaq nc6432 laptop, and have been digging in video.c > > At start of the video driver, the _DOS method is executed, and similarly > when the driver is unl

RE: Fujitsu notebook hotkeys

2007-09-28 Thread Zhang, Rui
Hi, Jedrzej, Please attach the acpidump and dmesg output.:). The latest acpidump tools can be found at: http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/utils/ Thanks, Rui -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jedrzej Solecki Sent: Satur

Re: Bug: linux/acpi may execute notify handler that has been removed

2007-09-27 Thread Zhang Rui
On Thu, 2007-09-27 at 14:33 +0800, Alexey Starikovskiy wrote: > Shaohua Li wrote: > > On Thu, 2007-09-27 at 10:24 +0400, Alexey Starikovskiy wrote: > >> Shaohua Li wrote: > >>> On Thu, 2007-09-27 at 11:30 +0800, Zhang Rui wrote: > >>>> Hi, all, &g

Re: Bug: linux/acpi may execute notify handler that has been removed

2007-09-26 Thread Zhang Rui
On Thu, 2007-09-27 at 12:53 +0800, Alexey Starikovskiy wrote: > Zhang Rui wrote: > > Attachment is the patch for battery hotplug support. > There is it? Oops, the battery hotplug patch is attached. Thanks, Rui --- Begin Message --- add battery hotplug support for ACPI battery

Bug: linux/acpi may execute notify handler that has been removed

2007-09-26 Thread Zhang Rui
Hi, all, I found a bug that linux/acpi may execute notify handler that has been removed. When a system notify(0~0x7f) is received, linux/acpi will first invoke the generic system notify handler (acpi_bus_notify) and then invoke the per-device notify handler if present. In my case, I add some cod

Re: [PATCH RESEND] ACPI video: guess flags for devices with non-standard addressing

2007-09-24 Thread Zhang Rui
On Sun, 2007-06-17 at 08:02 +0800, Daniel Drake wrote: > Dell laptops seem to address video devices without the > device_id_scheme bit, > which means that Linux doesn't know the device types of the video > devices. > > This patch makes the ACPI video driver guess the device type based on > the > d

Re: [PATCH] ACPI: Clean-up GPE handling across suspend/resume for wake-up devices

2007-09-18 Thread Zhang Rui
Acked-by: Zhang Rui <[EMAIL PROTECTED]> On Wed, 2007-09-12 at 14:04 +0400, Alexey Starikovskiy wrote: > Signed-off-by: Alexey Starikovskiy <[EMAIL PROTECTED]> > --- > > drivers/acpi/sleep/poweroff.c |1 > drivers/acpi/sleep/sleep.h|1 > driver

[PATCH] ACPI video hotkey: set _DOS to 0 by default

2007-09-13 Thread Zhang Rui
Subject: set _DOS to 0 by default From: Zhang Rui <[EMAIL PROTECTED]> Many ACPI machines currently reprogram the active display output automatically when the user presses the display toggle switch on the keyboard. However, this behavior violates the ACPI spec, because the system modifie

Re: [PATCH] [-mm] FS: file name must be unique in the same dir in procfs

2007-09-10 Thread Zhang Rui
On Mon, 2007-09-10 at 15:49 +0800, Andrew Morton wrote: > On Mon, 20 Aug 2007 23:50:05 +0800 Zhang Rui <[EMAIL PROTECTED]> > wrote: > > > Hi, Oliver, > > Thanks for your comments, > > > > On Mon, 2007-08-20 at 18:45 +0800, Oliver Neukum wrote: > >

Re: [PATCH] ACPI: event: fix acpi_bus_generate_netlink_event call

2007-09-03 Thread Zhang Rui
On Mon, 2007-09-03 at 20:06 -0300, Henrique de Moraes Holschuh wrote: > On Mon, 03 Sep 2007, Len Brown wrote: > > Wow, do you really build with CONFIG_NET=n, > > or did randconfig find this? > > My build-it-quick config for thinkpad-acpi has CONFIG_NET=n :-) > > It is not a kernel I use to test a

[PATCH] ACPI video: introduce module parameter auto_handle

2007-08-29 Thread Zhang Rui
can either handle the events itself or do nothing but export them to userspace. eg. the X people surely want to "echo 0 > /sys/module/video/parameters/auto_handle" so that they can take full charge of the video switch thing. :P Note: auto_handle is disabled by default. Signed-off-by: Zhan

Re: ACPI patches for Linux-2.6.23-rc3

2007-08-24 Thread Zhang Rui
On Sat, 2007-08-25 at 07:37 +0800, Len Brown wrote: > On Friday 24 August 2007 04:07, Zhang Rui wrote: > > On Fri, 2007-08-24 at 03:20 -0400, Len Brown wrote: > > > please speak up if you see any problem with these patches. > > > Also, please let me know if I've

Re: ACPI patches for Linux-2.6.23-rc3

2007-08-24 Thread Zhang Rui
On Fri, 2007-08-24 at 03:20 -0400, Len Brown wrote: > please speak up if you see any problem with these patches. > Also, please let me know if I've missed something you > think needs to make 2.6.23. > What about the latest patch in bug 8798? It can fix the duplicate name problem without changing t

Re: [PATCH] ACPI: add "Fujitsu laptop extras" module

2007-08-23 Thread Zhang Rui
On Fri, 2007-08-24 at 02:32 +0100, Matthew Garrett wrote: > > +static int acpi_fuj02b1_get_volume_state(void *data) > > This probably wants to be exported as an ALSA mixer rather than a > special device in /proc. > > > +static int acpi_fuj02b1_get_brightness_state(void *data) > > And this certa

RE: Getting ACPI data like CPU and FBDIMM temperature / fan speeds on ASUS DSBV-DX/SAS

2007-08-23 Thread Zhang, Rui
? Thanks, Rui -Original Message- From: Bernd Bartmann [mailto:[EMAIL PROTECTED] Sent: Monday, August 20, 2007 10:48 PM To: Zhang, Rui Cc: linux-acpi@vger.kernel.org Subject: Re: Getting ACPI data like CPU and FBDIMM temperature / fan speeds on ASUS DSBV-DX/SAS On 8/20/07, Zhang, Rui wrote

[PATCH] ACPI: don't send netlink events for those that go into input layer

2007-08-22 Thread Zhang Rui
thinkpad_acpi hotkey events button events asus_acpi/asus-laptop hotkey events sonypi/sonylaptop events Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> --- drivers/acpi/ac.c |3 +++ drivers/acpi/battery.c|3 +++ drivers/acpi

Re: [PATCH] [-mm] FS: file name must be unique in the same dir in procfs

2007-08-20 Thread Zhang Rui
Hi, Oliver, Thanks for your comments, On Mon, 2007-08-20 at 18:45 +0800, Oliver Neukum wrote: > Am Montag 20 August 2007 schrieb Zhang Rui: > > Files name must be unique in the same directory. > > > > Bug is reported here: > > http://bugzilla.kernel.org/show_bug.cgi?id

[PATCH] [-mm] FS: file name must be unique in the same dir in procfs

2007-08-20 Thread Zhang Rui
Files name must be unique in the same directory. Bug is reported here: http://bugzilla.kernel.org/show_bug.cgi?id=8798 Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> --- fs/proc/generic.c |8 1 file changed, 8 insertions(+) Index: linux-2.6.23-rc3/fs/proc/gen

[PATCH V3 3/3] ACPI video hotkey: export ACPI video hotkey events via input layer

2007-08-20 Thread Zhang Rui
From: Yu Luming <[EMAIL PROTECTED]> Export ACPI video hotkey events via input layer. Signed-off-by: Yu Luming <[EMAIL PROTECTED]> Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> --- drivers/acpi/video.c | 90 ++- 1 file changed, 8

[PATCH V3 2/3] ACPI video hotkey: remove invalid events handler for video output devices

2007-08-20 Thread Zhang Rui
Both ACPI_VIDEO_NOTIFY_SWITCH and ACPI_VIDEO_NOTIFY_PROBE are valid for video bus devices only. Actually ACPI video output device should never be notified for a output device switch/probe. ACPI bus devices notify handler already has the code to handle these kinds of events. Signed-off-by: Zhang

[PATCH V3 1/3] ACPI video hotkey: add new input key code for ACPI video hotkey events

2007-08-20 Thread Zhang Rui
From: Yu Luming <[EMAIL PROTECTED]> Add keycode for ACPI video driver hotkey events. Signed-off-by: Yu Luming <[EMAIL PROTECTED]> Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> --- include/linux/input.h |7 +++ 1 file changed, 7 insertions(+) Index: linux-2.6.23-rc3/inc

RE: Getting ACPI data like CPU and FBDIMM temperature / fan speeds on ASUS DSBV-DX/SAS

2007-08-19 Thread Zhang, Rui
Hi, Bernd, First please set the ACPI version to 2.0 and see if there is any difference. And please attach the acpidump output when you are running ACPI 2.0. Thanks, Rui -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bernd Bartmann Sent: Monday, August 2

Re: [PATCH 06/12] ACPI: Add acpi_bus_generate_event4() function

2007-08-16 Thread Zhang Rui
On Fri, 2007-08-17 at 13:11 +0800, Alexey Starikovskiy wrote: > Zhang Rui wrote: > > On Thu, 2007-08-16 at 18:03 +0400, Alexey Starikovskiy wrote: > >> From: Alexey Starikovskiy <[EMAIL PROTECTED]> > >> > >> acpi_bus_generate_event() takes two strings out

Re: [PATCH 06/12] ACPI: Add acpi_bus_generate_event4() function

2007-08-16 Thread Zhang Rui
On Thu, 2007-08-16 at 18:03 +0400, Alexey Starikovskiy wrote: > From: Alexey Starikovskiy <[EMAIL PROTECTED]> > > acpi_bus_generate_event() takes two strings out of passed device object. > SBS needs to supply these strings directly. > This doesn't make sense. acpi_dev->dev.bus_id is the name we a

[PATCH] FS: file name should be unique in the same dir in procfs

2007-08-16 Thread Zhang Rui
Files name should be unique in the same directory. Bug is reported here: http://bugzilla.kernel.org/show_bug.cgi?id=8798 Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> --- fs/proc/generic.c |8 1 file changed, 8 insertions(+) Index: linux-2.6.23-rc3/fs/proc/gen

Re: [PATCH] [-mm] ACPI: use GFP_KERNEL instead of GFP_ATOMIC

2007-08-15 Thread Zhang Rui
On Thu, 2007-08-16 at 11:36 +0800, Len Brown wrote: > On Tuesday 31 July 2007 19:00, Zhang Rui wrote: > > Use GFP_KERNEL instead of GFP_ATOMIC. > > > > GFP_ATOMIC is still needed by the sonypi and sony-laptop driver. > > Why? > Sony can't events from user-conte

Re: [RFC PATCH] report acpi video hot key event through inputdevice

2007-08-15 Thread Zhang Rui
On Tue, 2007-08-14 at 18:43 +0800, Zhang Rui wrote: > On Tue, 2007-08-14 at 19:58 +0800, Richard Hughes wrote: > > > > On Wed, 2007-08-08 at 14:37 +0800, Zhang Rui wrote: > > > On Mon, 2007-07-30 at 12:47 +0100, Richard Hughes wrote: > > > > On 30/07/07, Matth

Re: [RFC PATCH] report acpi video hot key event through inputdevice

2007-08-14 Thread Zhang Rui
On Tue, 2007-08-14 at 19:58 +0800, Richard Hughes wrote: > > On Wed, 2007-08-08 at 14:37 +0800, Zhang Rui wrote: > > On Mon, 2007-07-30 at 12:47 +0100, Richard Hughes wrote: > > > On 30/07/07, Matthew Garrett <[EMAIL PROTECTED]> wrote: > > > > On Sun, Jul

RE: [PATCH] [28/2many] MAINTAINERS - ACPI VIDEO DRIVER

2007-08-13 Thread Zhang, Rui
Hi, Len, I can take charge of the ACPI video driver. Thanks, Rui -Original Message- From: Len Brown [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 14, 2007 1:16 PM To: [EMAIL PROTECTED]; Zhang, Rui Cc: [EMAIL PROTECTED]; Yu, Luming; [EMAIL PROTECTED]; linux-acpi@vger.kernel.org

[RFC] [PATCH V2 3/3] ACPI video hotkey: export ACPI video hotkey events via input layer

2007-08-10 Thread Zhang Rui
From: Yu Luming <[EMAIL PROTECTED]> Export ACPI video hotkey events via input layer. Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> --- drivers/acpi/video.c | 87 ++- 1 file changed, 86 insertions(+), 1 deletion(-) Index: linux-2.6.23

[RFC] [PATCH V2 2/3] ACPI video hotkey: remove invalid events handled by video output devices

2007-08-10 Thread Zhang Rui
Both ACPI_VIDEO_NOTIFY_SWITCH and ACPI_VIDEO_NOTIFY_PROBE are valid for video Display Devices only. ACPI video output devices should not handle these kinds of events. Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> --- drivers/acpi/video.c |4 1 file changed, 4 deletions(-) Index:

[RFC] [PATCH V2 1/3] ACPI video hotkey: add new input key codes for ACPI video hotkey events

2007-08-10 Thread Zhang Rui
From: Yu Luming <[EMAIL PROTECTED]> Add keycode for ACPI video hotkey event. Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> --- include/linux/input.h |5 + 1 file changed, 5 insertions(+) Index: linux-2.6.23-rc2/include/l

Re: fan problem on new mainboard

2007-08-09 Thread Zhang Rui
On Thu, 2007-08-09 at 10:54 +0200, Robert Lemmen wrote: > hi folks, > > i got a new mainboard, an asrock conroe1333 (intel socket 775 thing). so > far everything is nice except the cpu fan, which is always spinning at > top speed. from what i understand, it should be possible to change this > with

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

2007-08-07 Thread Zhang Rui
On Mon, 2007-07-30 at 12:47 +0100, Richard Hughes wrote: > On 30/07/07, Matthew Garrett <[EMAIL PROTECTED]> wrote: > > On Sun, Jul 29, 2007 at 12:40:16PM -0400, Luming Yu wrote: > > > switch (event) { > > > case ACPI_VIDEO_NOTIFY_SWITCH: /* User requested a switch, > > >

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

2007-08-07 Thread Zhang Rui
On Mon, 2007-07-30 at 01:50 +0100, Matthew Garrett wrote: > On Sun, Jul 29, 2007 at 12:40:16PM -0400, Luming Yu wrote: > > switch (event) { > > case ACPI_VIDEO_NOTIFY_SWITCH: /* User requested a switch, > > * most likely via hotkey. */ > > a

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

2007-08-07 Thread Zhang Rui
On Mon, 2007-07-30 at 12:47 +0100, Richard Hughes wrote: > On 30/07/07, Matthew Garrett <[EMAIL PROTECTED]> wrote: > > On Sun, Jul 29, 2007 at 12:40:16PM -0400, Luming Yu wrote: > > > switch (event) { > > > case ACPI_VIDEO_NOTIFY_SWITCH: /* User requested a switch, > > >

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

2007-08-07 Thread Zhang Rui
On Mon, 2007-07-30 at 01:50 +0100, Matthew Garrett wrote: > On Sun, Jul 29, 2007 at 12:40:16PM -0400, Luming Yu wrote: > > switch (event) { > > case ACPI_VIDEO_NOTIFY_SWITCH: /* User requested a switch, > > * most likely via hotkey. */ > > a

[RFC] [PATCH] ACPI: use unique ACPI device names in procfs

2007-07-31 Thread Zhang Rui
/proc/acpi/... won't be removed in a short time, I still think it's worth doing. Does this patch miss something? Or are there any better ideas to make the ACPI device name unique in procfs? Any comments are appreciated. Thanks. Signed-off-by: Zhang Rui <[EMAIL PROTECTED]&

[PATCH] [-mm] ACPI: use GFP_KERNEL instead of GFP_ATOMIC

2007-07-31 Thread Zhang Rui
Use GFP_KERNEL instead of GFP_ATOMIC. GFP_ATOMIC is still needed by the sonypi and sony-laptop driver. Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> --- drivers/acpi/ac.c |3 ++- drivers/acpi/asus_acpi.c |2 +- drivers/acpi/battery.c

Re: [2.6.22] ACPI video problems with T60p laptop

2007-07-24 Thread Zhang Rui
On Tue, 2007-07-24 at 22:34 +0100, Chris Rankin wrote: > Hi, > > I have noticed the following problems with the ACPI video functionality on my > Thinkpad T60p > laptop: > > - The kernel is likely to lock up when the video.ko modules loads, if > nmi_watchdog=1 > - The VID/ directory appears twic

RE: [PATCH] ACPI: export ACPI events via acpi_mc_group multicast group

2007-07-21 Thread Zhang, Rui
Oops. Sorry. Attached here. :) Thanks, Rui -Original Message- From: Len Brown [mailto:[EMAIL PROTECTED] Sent: Sunday, July 22, 2007 1:01 PM To: Zhang, Rui Cc: linux-acpi@vger.kernel.org; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PATCH] ACPI: export ACPI events via acpi_mc_group

[PATCH] ACPI: export ACPI events via acpi_mc_group multicast group

2007-07-20 Thread Zhang Rui
s' help on developing this patch and the user space demo. Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> --- drivers/acpi/event.c | 29 + 1 file changed, 9 insertions(+), 20 deletions(-) Index: linux-2.6.22

Re: acpi_bus_generate_genetlink_event

2007-07-19 Thread Zhang Rui
On Fri, 2007-07-20 at 04:25 +0800, Andrew Morton wrote: > > It's quite sad that this uses GFP_ATOMIC. Because GFP_ATOMIC is quite > unreliable. > > Is it just not possible to use GFP_KERNEL here? I thought of this problem before, but GFP_ATOMIC is required in some cases. > If _any_ of the calle

[PATCH] ACPI: update ACPI proc I/F removal schedule

2007-07-18 Thread Zhang Rui
ACPI sysfs conversion is not finished yet and some user space tools still depend on the ACPI proc I/F. We plan to finish all the sysfs conversion by January 2008 and remove the ACPI proc I/F in July 2008. Signed-off-by: Zhang Rui <[EMAIL PROTECTED]> --- Documentation/feature-r

RE: ACPI cpufreq broken on 2.6.22 for core2 duo

2007-07-17 Thread Zhang, Rui
Hi, Patrizio, > > ACPI Exception (processor_core-0781): AE_NOT_FOUND, Processor Device is > > not present [20070126] > > ACPI Exception (processor_core-0781): AE_NOT_FOUND, Processor Device is > > not present [20070126] This is just a debug message output and should have no impact on the cpufreq d

  1   2   3   >