[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/linux

[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/thermal.c

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

2008-02-25 Thread Zhang, Rui
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 version is modified to not depend on the patch makig ACPI initialize driver model wakeup flags.) Signed-off

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 think all that is really needed and asked for is for the new thermal ACPI

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,

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

2008-01-24 Thread Zhang Rui
management extension. Signed-off-by: Thomas Sujith [EMAIL PROTECTED] Signed-off-by: Zhang Rui [EMAIL PROTECTED] --- drivers/misc/Kconfig|9 drivers/misc/Makefile |1 drivers/misc/intel_menlow.c | 526 3 files changed, 536

[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 /sys/module/video/parameters

[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: Zhang Rui

[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 include/acpi

[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/drivers/acpi/video.c

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] 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 kind of

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, try catting

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 requires to throttle it when

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 may be listed in _TZD method

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

2008-01-17 Thread Zhang Rui
, please review the patch below, From: Thomas Sujith [EMAIL PROTECTED] Intel menlow platform specific driver for thermal management extension. Signed-off-by: Thomas Sujith [EMAIL PROTECTED] Signed-off-by: Zhang Rui [EMAIL PROTECTED] --- drivers/misc/Kconfig|9 drivers/misc/Makefile

[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,

[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 [EMAIL PROTECTED

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

2008-01-16 Thread Zhang Rui
?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(-) Index: linux-2.6

[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 result. Queues the hot-removal function for deferred

[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

[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 |2 drivers

[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: the current

[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 |1 drivers/misc/intel_menlow.c

[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/acpi/thermal.c | 42

[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 [EMAIL PROTECTED] --- drivers/acpi

[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] --- drivers/acpi/video.c

[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 calculate

[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, 83 insertions(+), 7

[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 all

Re: ACPI Error (utglobal-0126)

2008-01-15 Thread Zhang Rui
as /class/input/input7 Please try this patch first. From: Zhang Rui [EMAIL PROTECTED] acpi_video_bus_get_one_device() is returning -errno style status, but acpi_video_bus_get_devices() is expecting an ACPICA style status Fix this and check the return value of acpi_video_device_enumerate as well

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 a sysfs

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 AM

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 On Mon, 2007-11-26 at 09:20 +0800

[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 no _Lxx

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

2007-11-20 Thread Zhang Rui
] 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 storm Bob, Rui's Linux patch below modifies an ACPICA file. thanks, -Len commit

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 triggerred when an extra CRT

[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 no _Lxx

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 - cable,

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 2/8] ACPI: video - add missing input_free_device()

2007-11-13 Thread Zhang Rui
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 insertions(+), 36 deletions(-) Index: work/drivers/acpi/video.c

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 changed, 11 insertions(+), 10 deletions

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

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/video.c

RE: Problem with GPRS modem

2007-10-11 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

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: _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 unloaded.

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:

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, I found a bug that linux/acpi may execute notify handler

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

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 ---BeginMessage--- add battery hotplug support for ACPI battery driver. http

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 device

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

2007-09-19 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 drivers/acpi/sleep/wakeup.c | 117

[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 modifies some

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

2007-09-11 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: Am Montag 20 August 2007 schrieb Zhang Rui: Files name must

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 anything

[PATCH] ACPI video: introduce module parameter auto_handle

2007-08-29 Thread Zhang Rui
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: Zhang Rui [EMAIL PROTECTED

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 the

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 missed something you think needs to make

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

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 certainly

[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/bus.c|4

[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/include/linux/input.h

[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 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, 89 insertions(+), 1

[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/generic.c

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=8798 Then I'd say fix the callers

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

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

2007-08-17 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 of passed device object. SBS needs to supply

[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/generic.c

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 are

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, Matthew Garrett [EMAIL PROTECTED] wrote: On Sun

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-context like everybody else does? Mattia has

[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/linux/input.h

[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: linux

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-08 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. */

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

2007-08-08 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-08 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. */

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

2007-08-08 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,

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

2007-07-31 Thread Zhang Rui
/... 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] --- drivers/acpi/bus.c| 29

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 twice in the

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
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/drivers/acpi/event.c

[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-removal-schedule.txt

RE: [PATCH][ACPI][BUTTON] remove procfs-interface

2007-07-12 Thread Zhang, Rui
interface When: July 2007 Why:After ACPI sysfs conversion, ACPI attributes will be duplicated in sysfs and the ACPI procfs interface should be removed. Who:Zhang Rui [EMAIL PROTECTED] The button driver uses acpi_root_dir which won't be available if acpi is removed this month

[PATCH] ACPI: ACPI_PROCFS removal schedule

2007-07-12 Thread Zhang Rui
From: Zhang Rui [EMAIL PROTECTED] ACPI sysfs conversion is not finished yet and some user space tools still depends on the ACPI procfs I/F. Change the ACPI_PROCFS removal schedule to Jan 08. Signed-off-by: Zhang Rui [EMAIL PROTECTED] --- Documentation/feature-removal-schedule.txt |2 +- 1

[PATCH] ACPI: remove /sys/firmware/acpi/namespace

2007-07-12 Thread Zhang Rui
From: Zhang Rui [EMAIL PROTECTED] The /sys/firmware/acpi/namespace has already been removed in 2.6.21. Signed-off-by: Zhang Rui [EMAIL PROTECTED] --- Documentation/feature-removal-schedule.txt | 14 -- 1 file changed, 14 deletions(-) Index: linux-2.6.22/Documentation/feature

RE: need support for MSI-9625 ACPI

2007-07-10 Thread Zhang, Rui
Hi, Norman, Please submit a new bug at http://bugzilla.kernel.org/ and attach all the information you sent here. Thanks, Ray -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Norman Ziert Sent: 2007年7月11日 5:36 To: linux-acpi@vger.kernel.org Subject: Re:

Re: [PATCH] ACPI: export acpi events via generic netlink

2007-07-05 Thread Zhang Rui
On Wed, 2007-07-04 at 14:01 +0200, Johannes Berg wrote: On Tue, 2007-07-03 at 15:45 -0400, Len Brown wrote: Thanks for including the demo program, Rui, it works for me (tm). Applied -- with the incremental patch below, which I think is correct because the only caller is bus.c, which is

Re: [linux-pm] Re: [2.6.22-rc1-mm1] vaio laptop (SZ72B) immediately resumes after STR

2007-06-21 Thread Zhang Rui
On Thu, 2007-06-21 at 15:42 +0900, Mattia Dongili wrote: On Wed, Jun 20, 2007 at 12:33:04PM -0400, Alan Stern wrote: On Wed, 20 Jun 2007, Mattia Dongili wrote: Just as with Raphael, I suggest you build a kernel with CONFIG_USB_DEBUG turned on and then post the dmesg log showing the

Re: [2.6.22-rc1-mm1] vaio laptop (SZ72B) immediately resumes after STR

2007-06-19 Thread Zhang Rui
On Sun, 2007-05-20 at 15:14 +0900, Mattia Dongili wrote: On Sat, May 19, 2007 at 12:04:13AM -0700, Andrew Morton wrote: On Sat, 19 May 2007 15:48:29 +0900 Mattia Dongili [EMAIL PROTECTED] wrote: On Fri, May 18, 2007 at 12:22:40AM -0700, Andrew Morton wrote: On Fri, 18 May 2007

Re: [2.6.22-rc1-mm1] vaio laptop (SZ72B) immediately resumes after STR

2007-06-19 Thread Zhang Rui
On Tue, 2007-06-19 at 18:30 +0900, Mattia Dongili wrote: On Tue, Jun 19, 2007 at 04:57:55PM +0800, Zhang Rui wrote: On Sun, 2007-05-20 at 15:14 +0900, Mattia Dongili wrote: On Sat, May 19, 2007 at 12:04:13AM -0700, Andrew Morton wrote: On Sat, 19 May 2007 15:48:29 +0900 Mattia Dongili

Re: Fwd: [PATCH] [-mm] ACPI: export ACPI events via netlink

2007-06-18 Thread Zhang Rui
On Mon, 2007-06-18 at 11:01 -0400, jamal wrote: On Fri, 2007-15-06 at 09:01 +0800, Zhang Rui wrote: I dont have much time to look at your code given travel, but did you try to use your group id instead of the controller's? i.e: rtnl_open_byproto(rth, nl_mgrp(mydiscoveredacpiid

[PATCH] ACPI: export acpi events via generic netlink

2007-06-18 Thread Zhang Rui
From: Zhang Rui [EMAIL PROTECTED] Export ACPI events via Generic Netlink. An acpi_event genetlink family message is sent when an ACPI event is generated. Note: The behavior of how ACPI event works nowadays is not changed. Use genetlink to export ACPI event instead of /proc/acpi

Re: Fwd: [PATCH] [-mm] ACPI: export ACPI events via netlink

2007-06-14 Thread Zhang Rui
and only parses the ones sent by acpi_event genl family. Thanks, Rui On Sun, 2007-05-27 at 09:34 -0400, jamal wrote: On 5/27/07, Zhang Rui [EMAIL PROTECTED] wrote: I need to write a user application to test my patch. Netlink messages can be sent/received using the standard socket API. sure

[PATCH] [-mm]: ACPI: expose ACPI tables in sysfs

2007-06-14 Thread Zhang Rui
From: Zhang Rui [EMAIL PROTECTED] This is the basic functionality of exposing ACPI tables in sysfs. Only static tables are exposed to user space in this patch. Every static table has a file under /sys/firmware/acpi/tables/. The file name is constituted of the table signature and instance number

Re: Fwd: [PATCH] [-mm] ACPI: export ACPI events via netlink

2007-06-14 Thread Zhang Rui
On Thu, 2007-06-14 at 07:28 -0400, jamal wrote: On Thu, 2007-14-06 at 16:59 +0800, Zhang Rui wrote: Hi, Jamal, Now the genl utility can find the acpi event genetlink family. And a simple user space demo is finished for handling acpi event. I really appreciate your help. :) np. I

Re: [PATCH] [-mm]: ACPI: expose ACPI tables in sysfs

2007-06-14 Thread Zhang Rui
On Thu, 2007-06-14 at 08:31 -0300, Henrique de Moraes Holschuh wrote: Will we get the dynamic tables exported in a later patch? Yes. I send the patch for static tables first in hopes of it can hit 2.6.23. The patch for dynamic tables needs some hooks in ACPICA code. And it may take some time,

Re: [PATCH]: add parameter struct bin_attribute * in .read/.write methods for sysfs binary attributes

2007-06-08 Thread Zhang Rui
From: Zhang Rui [EMAIL PROTECTED] Well, first of all, I don't want to change so many files either. What I do: Adding a new parameter struct bin_attribute * in the .read/.write methods for the sysfs binary attributes. In fact, only the four lines change in fs/sysfs/bin.c

  1   2   >