Re: [ibm-acpi-devel] [PATCH v4 1/4] leds: core: Add support for poll()ing the sysfs brightness attr for changes.

2016-11-11 Thread Jacek Anaszewski
Hi Hans, I've tested it with userspace test application and it seems to work well both with hardware leds-aat1290 driver and drivers/leds/uleds.c. Applied to the for-next branch of linux-leds.git. Thanks, Jacek Anaszewski On 11/01/2016 02:37 PM, Hans de Goede wrote: > Add support for userspace

Re: [ibm-acpi-devel] [PATCH 2/3] thinkpad_acpi: Don't repeat ourselves in hotkey_init_tablet_mode()

2016-11-11 Thread kbuild test robot
Hi Lyude, [auto build test WARNING on platform-drivers-x86/for-next] [also build test WARNING on v4.9-rc3 next-20161028] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for conven

Re: [ibm-acpi-devel] [PATCH] thinkpad_acpi: adding new hotkey ID for Lenovo thinkpad

2016-11-11 Thread Hui Wang
On 11/08/2016 09:43 PM, Henrique de Moraes Holschuh wrote: > On Tue, 08 Nov 2016, Hui Wang wrote: > >> laptops are not released to market yet), the issue is that the >> thinkpad_acpi.ko can't be automatically loaded as before. >> >> Through debugging, we found the HKEY_HID is LEN0268 instead of >>

Re: [ibm-acpi-devel] v4.8-rc1: thinkpad x60: running at low frequency even during kernel build

2016-11-11 Thread Pandruvada, Srinivas
On Fri, 2016-11-04 at 23:16 +0100, Pavel Machek wrote: > Hi! > [...] > So we seem to have thermal or ACPI regression in v4.9-rc3. > It is possible. Can you add either add printk in acpi_processor_ppc_has_changed() or use ftrace and see do you get to these functions acpi_processor_ppc_init() ac

Re: [ibm-acpi-devel] [PATCH v4 2/4] platform: x86: thinkpad: Call led_notify_brightness_change on kbd brightness change

2016-11-11 Thread Pali Rohár
On Tuesday 01 November 2016 14:37:46 Hans de Goede wrote: > Make thinkpad_acpi call led_notify_brightness_change on the kbd_led > led_classdev registered by thinkpad_acpi when the kbd backlight > brightness changes. > > Signed-off-by: Hans de Goede > --- > Changes in v3: > -This is a new patch in

Re: [ibm-acpi-devel] unhandled HKEY event

2016-11-11 Thread Ben Klopfenstein
On Saturday, November 5, 2016 4:54:10 PM MDT you wrote: > Good afternoon; > > I'd like to report a few unhandled HKEY events on my Lenovo Helix 2. > > When performing the following actions, the thinkpad_acpi driver reports > unhandled HKEY events: > > * undocking from the PRO dock: 0x4013 > * d

Re: [ibm-acpi-devel] v4.8-rc1: thinkpad x60: running at low frequency even during kernel build

2016-11-11 Thread Pandruvada, Srinivas
On Fri, 2016-11-04 at 21:44 +0100, Pavel Machek wrote: > Hi! > > > > > > > > > Let me try v4.9-rc2... that works ok (cpus at the high frequency > > > during the kernel build). Unfortunately that sends my cpus to 99C > > > temperature range (and eventually forces emergency shutdown). > > > > Thi

Re: [ibm-acpi-devel] [PATCH v4 1/4] leds: core: Add support for poll()ing the sysfs brightness attr for changes.

2016-11-11 Thread Jacek Anaszewski
On 11/08/2016 01:31 PM, Hans de Goede wrote: > Hi, > > On 08-11-16 12:52, Jacek Anaszewski wrote: >> Hi Hans, >> >> I've tested it with userspace test application and it seems to work >> well both with hardware leds-aat1290 driver and drivers/leds/uleds.c. >> >> Applied to the for-next branch of li

Re: [ibm-acpi-devel] v4.8-rc1: thinkpad x60: running at low frequency even during kernel build

2016-11-11 Thread Pandruvada, Srinivas
On Sat, 2016-11-05 at 15:04 +0100, Pavel Machek wrote: > On Sat 2016-11-05 14:53:13, Pavel Machek wrote: > > > > Hi! > > > > > > > > > > > > > Ok, can do, let me recompile and reboot. > > > > > > > > > > > > > > > > > > > When temperature limit is > > > > > reached acpi_processor_ppc_notifie

Re: [ibm-acpi-devel] [PATCH v3 5/5] platform: x86: dell-*: Simplify dell-rbtn integration with dell-laptop [untested]

2016-11-11 Thread Pali Rohár
On Thursday 27 October 2016 13:46:33 Hans de Goede wrote: > Hi, > > On 27-10-16 12:38, Pali Rohár wrote: > >On Wednesday 26 October 2016 19:41:18 Hans de Goede wrote: > >>Use dell_smbios*notifier for dell-laptop to listen to dell-rbtn slider > >>events, replace dell_rbtn_notifier_register() / > >>

Re: [ibm-acpi-devel] [PATCH 2/3] thinkpad_acpi: Don't repeat ourselves in hotkey_init_tablet_mode()

2016-11-11 Thread kbuild test robot
Hi Lyude, [auto build test ERROR on platform-drivers-x86/for-next] [also build test ERROR on v4.9-rc3 next-20161028] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenienc

Re: [ibm-acpi-devel] [PATCH v3 5/5] platform: x86: dell-*: Simplify dell-rbtn integration with dell-laptop [untested]

2016-11-11 Thread Pali Rohár
On Wednesday 26 October 2016 19:41:18 Hans de Goede wrote: > Use dell_smbios*notifier for dell-laptop to listen to dell-rbtn slider > events, replace dell_rbtn_notifier_register() / > dell_rbtn_notifier_unregister() with a single dell_rbtn_has_rfkill() used > by dell-laptop to decide whether or not

[ibm-acpi-devel] s2disk broken at a ThinkPad since 4.6.5

2016-11-11 Thread Toralf Förster
This is a hardened stable Gentoo Linux ThinkPad T440s. After wakeup from s2disk the console stays at line "clocksource: tsc: mask:" forever. FWIW (and maby completely unrelated) I do wonder why since that version I do have a dmesg line : amd_nb: Cannot enumerate AMD northbridges The har

Re: [ibm-acpi-devel] v4.8-rc1: thinkpad x60: running at low frequency even during kernel build

2016-11-11 Thread Pandruvada, Srinivas
On Sat, 2016-11-05 at 14:37 +0100, Pavel Machek wrote: > Hi! > > > > > [...] > > > > > > > > So we seem to have thermal or ACPI regression in v4.9-rc3. > > > > > It is possible. Can you add either add printk > > in acpi_processor_ppc_has_changed() or use ftrace and see do you > > get to > > th

Re: [ibm-acpi-devel] v4.8-rc1: thinkpad x60: running at low frequency even during kernel build

2016-11-11 Thread Pandruvada, Srinivas
On Sat, 2016-11-05 at 14:20 +0100, Pavel Machek wrote: > On Fri 2016-11-04 23:20:53, Pandruvada, Srinivas wrote: > > > > On Fri, 2016-11-04 at 23:16 +0100, Pavel Machek wrote: > > > > > > Hi! > > > > > > > [...] > > > > > > > > So we seem to have thermal or ACPI regression in v4.9-rc3. > > >

Re: [ibm-acpi-devel] [PATCH v4 2/4] platform: x86: thinkpad: Call led_notify_brightness_change on kbd brightness change

2016-11-11 Thread Pali Rohár
On Friday 11 November 2016 15:33:48 Hans de Goede wrote: > Hi, > > On 11-11-16 15:12, Pali Rohár wrote: > > On Tuesday 01 November 2016 14:37:46 Hans de Goede wrote: > >> Make thinkpad_acpi call led_notify_brightness_change on the > >> kbd_led led_classdev registered by thinkpad_acpi when the kbd

Re: [ibm-acpi-devel] [PATCH v4 3/4] platform: x86: dell-*: Add a generic dell-laptop notifier chain

2016-11-11 Thread Pali Rohár
On Tuesday 01 November 2016 14:37:47 Hans de Goede wrote: > @@ -43,4 +45,13 @@ void dell_smbios_release_buffer(void); > void dell_smbios_send_request(int class, int select); > > struct calling_interface_token *dell_smbios_find_token(int tokenid); > + > +enum dell_laptop_notifier_actions { > +

[ibm-acpi-devel] unhandled HKEY event

2016-11-11 Thread Ben Klopfenstein
Good afternoon; I'd like to report a few unhandled HKEY events on my Lenovo Helix 2. When performing the following actions, the thinkpad_acpi driver reports unhandled HKEY events: * undocking from the PRO dock: 0x4013 * docking to the PRO dock: 0x4012 The laptop also has a number of built in

Re: [ibm-acpi-devel] [PATCH v3 2/5] platform: x86: thinkpad: Call led_notify_brightness_change on kbd brightness change

2016-11-11 Thread Pali Rohár
On Wednesday 26 October 2016 19:41:15 Hans de Goede wrote: > + TP_HKEY_EV_THINKLIGHT = 0x1012, /* Thinklight/kbd backlight */ Hi! Do you have some documentation for this number? When it is send? When keyboard baklight level is changed or when thinklight is turned on/off? Or in both

[ibm-acpi-devel] unhandled HKEY event 0x6031

2016-11-11 Thread Richard Jelinek
Hi, [735945.672113] thinkpad_acpi: unknown possible thermal alarm or keyboard event received [735945.672116] thinkpad_acpi: unhandled HKEY event 0x6031 [735945.672117] thinkpad_acpi: please report the conditions when this event happened to ibm-acpi-devel@lists.sourceforge.net [737715.248129] thi

[ibm-acpi-devel] Linux Bug Report As requested - unhandled HKEY event 0x6031

2016-11-11 Thread Robert Lee
from /var/log/syslog Nov 9 00:06:26 rob-ThinkPad-P70 cinnamon-screensaver-dialog: pam_ecryptfs: >> seteuid error > > Nov 9 00:06:47 rob-ThinkPad-P70 kernel: [18773.898701] thinkpad_acpi: >> unknown possible thermal alarm or keyboard event received > > Nov 9 00:06:47 rob-ThinkPad-P70 kernel: [18

[ibm-acpi-devel] [PATCH] thinkpad_acpi: Add support for X1 Yoga (2016) Tablet Mode

2016-11-11 Thread Lyude
For whatever reason, the X1 Yoga doesn't support the normal method of querying for tablet mode. Instead of providing the MHKG method under the hotkey handle, we're instead given the CMMD method under the EC handle. Values on this handle are either 0x1, laptop mode, or 0x6, tablet mode. Signed-off-

[ibm-acpi-devel] [PATCH] thinkpad_acpi: adding new hotkey ID for Lenovo thinkpad

2016-11-11 Thread Hui Wang
Recently we met an issue on lots of Lenovo thinkpad laptops (those laptops are not released to market yet), the issue is that the thinkpad_acpi.ko can't be automatically loaded as before. Through debugging, we found the HKEY_HID is LEN0268 instead of LEN0068 on those machines, and the MHKV is 0x20

[ibm-acpi-devel] [PATCH v4 1/2] thinkpad_acpi: Move tablet detection into separate function

2016-11-11 Thread Lyude
The hotkey events and ACPI handles used for detecting tablet mode on a few of the newer thinkpad models (Yoga X1 and the Yoga 260 specifically) have been changed around, so unfortunately this means we're definitely going to need to probe for multiple types of tablet mode support. Since the hotkey_i

[ibm-acpi-devel] [PATCH v5 2/2] thinkpad_acpi: Add support for X1 Yoga (2016) Tablet Mode

2016-11-11 Thread Lyude
For whatever reason, the X1 Yoga doesn't support the normal method of querying for tablet mode. Instead of providing the MHKG method under the hotkey handle, we're instead given the CMMD method under the EC handle. Values on this handle are either 0x1, laptop mode, or 0x6, tablet mode. Tested-by:

Re: [ibm-acpi-devel] [PATCH v4 2/4] platform: x86: thinkpad: Call led_notify_brightness_change on kbd brightness change

2016-11-11 Thread Kevin Locke
On Fri, 2016-11-11 at 15:33 +0100, Hans de Goede wrote: > On 11-11-16 15:12, Pali Rohár wrote: >> My question remains. Is this for Thinklight or keyboard backlight? >> Because Thinklinght has led device "tpacpi_led_thinklight" and keyboard >> backlight has led device "tpacpi_led_kbdlight". > > I w

Re: [ibm-acpi-devel] [PATCH v4 3/4] platform: x86: dell-*: Add a generic dell-laptop notifier chain

2016-11-11 Thread Hans de Goede
Hi, On 11-11-16 15:17, Pali Rohár wrote: > On Tuesday 01 November 2016 14:37:47 Hans de Goede wrote: >> @@ -43,4 +45,13 @@ void dell_smbios_release_buffer(void); >> void dell_smbios_send_request(int class, int select); >> >> struct calling_interface_token *dell_smbios_find_token(int tokenid); >>

Re: [ibm-acpi-devel] [PATCH v4 2/4] platform: x86: thinkpad: Call led_notify_brightness_change on kbd brightness change

2016-11-11 Thread Hans de Goede
Hi, On 11-11-16 15:12, Pali Rohár wrote: > On Tuesday 01 November 2016 14:37:46 Hans de Goede wrote: >> Make thinkpad_acpi call led_notify_brightness_change on the kbd_led >> led_classdev registered by thinkpad_acpi when the kbd backlight >> brightness changes. >> >> Signed-off-by: Hans de Goede