Jani Patanen | 17 Apr 08:14 2014
Picon

ibm-acpi-devel@...

Fedora 19 3.13.9-100.fc19.x86_64

Installed Packages
acpid.x86_64                       2.0.20-2.fc19 

journalctl states I need to send you mail :)

Apr 17 08:58:47 ws thinkpad_acpi: ThinkPad ACPI Extras v0.25
Apr 17 08:58:47 ws kernel: thinkpad_acpi: http://ibm-acpi.sf.net/
Apr 17 08:58:47 ws kernel: thinkpad_acpi: ThinkPad BIOS G1ET91WW (2.51 ), EC unknown
Apr 17 08:58:47 ws kernel: thinkpad_acpi: Lenovo ThinkPad T430, model 2350BH1
Apr 17 08:58:47 ws kernel: thinkpad_acpi: Unsupported brightness interface, please contact ibm-acpi-devel@...
Apr 17 08:58:47 ws kernel: thinkpad_acpi: radio switch found; radios are enabled
Apr 17 08:58:47 ws kernel: thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control,
supported by the ACPI video driver
Apr 17 08:58:47 ws kernel: thinkpad_acpi: Disabling thinkpad-acpi brightness events by default...
Apr 17 08:58:47 ws kernel: thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is unblocked

Anything else I can do?

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
Tyler Brock | 6 Apr 03:40 2014
Picon

Unsupported brightness interface on X1 Carbon (1st gen)

I see this error in red during boot so I thought I'd contact you:

"Unsupported brightness interface, please contact ibm-acpi-devel <at> lists.sourceforge.net"

This is the full output from thinkpad_acpi from journalctl:

Apr 01 19:01:36 laphog kernel: thinkpad_acpi: ThinkPad ACPI Extras v0.25
Apr 01 19:01:36 laphog kernel: thinkpad_acpi: http://ibm-acpi.sf.net/
Apr 01 19:01:36 laphog kernel: thinkpad_acpi: ThinkPad BIOS G6ETA1WW (2.61 ), EC unknown
Apr 01 19:01:36 laphog kernel: thinkpad_acpi: Lenovo ThinkPad X1 Carbon, model 344822U
Apr 01 19:01:36 laphog kernel: thinkpad_acpi: Unsupported brightness interface, please contact ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Apr 01 19:01:36 laphog kernel: thinkpad_acpi: radio switch found; radios are enabled
Apr 01 19:01:36 laphog kernel: thinkpad_acpi: possible tablet mode switch found; ThinkPad in laptop mode
Apr 01 19:01:36 laphog kernel: thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver
Apr 01 19:01:36 laphog kernel: thinkpad_acpi: Disabling thinkpad-acpi brightness events by default...

-Tyler
------------------------------------------------------------------------------
_______________________________________________
ibm-acpi-devel mailing list
ibm-acpi-devel@...
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel
Bo Lorentsen | 1 Apr 15:17 2014
Picon

X1C brightness interface

Hi ...

Now that my X1C are working I am quite happy about it, and now I am 
looking at the details.

When I boot the laptop (Debian Jessie + 3.14rc7 + Shuduo's patch) I end 
up in a blank screen, the only way to get anywhere is to suspend it and 
resume, and then i have a beautiful login screen, and the laptop works 
nicely until next reboot.

In the dmesg i get the following remarks :

[    1.605320] thinkpad_acpi: ThinkPad BIOS GRET32WW (1.09 ), EC unknown
[    1.605322] thinkpad_acpi: Lenovo ThinkPad X1 Carbon 2nd, model 
20A7005LMD
[    1.607060] thinkpad_acpi: Unsupported brightness interface, please 
contact ibm-acpi-devel@...
[    1.607142] thinkpad_acpi: unknown version of the HKEY interface: 0x200
[    1.607198] thinkpad_acpi: please report this to 
ibm-acpi-devel@...

I know the HKEY problem is worked on, but could the "brightness 
interface" problem be related to the blank screen after boot problem ?

/BL

------------------------------------------------------------------------------
Bo Lorentsen | 25 Mar 15:37 2014
Picon

Where is the source ?

Hi ....

Sorry about this question, but I am a bit confused (and new to this kind 
of bleeding edge life style). I have a very nice X1 (2. gen) and I found 
mysef in a situation where the 3.14rc7 kernel surdenly where attractive, 
and now that my haswell are cooled down, and the X1 are steady as a rock 
(while sustpending it all the time), I have one big wish left.

I cant use my function keys ...

Now you guys have the solution (Thanks to Shuduo Sang  and Dan Aloni ) 
but I simply can't find any place where things ends. I cloned the SF git 
repos (that is quite slow) but I only found references to wery old 
kernels, and I simple cant find any of these new patched. You guys even 
have a nice download thing on the SF page ... from 2011 ...

Are these new paches applied directly into the linux kernel, or am I 
missing something totally ? what is the process ?

I am sure there is something I should have been reading, that answers my 
questions, but I can't find any good answers.

Can anyone help me out ?

Regards

/BL

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
Paul Thomson | 19 Mar 23:31 2014
Picon

laptop temp warning

Hi,

I have just received the below syslog message on my laptop (running 
Mint), it had not been doing anything for at least 10 minutes...

Mar 19 22:28:41 pauls-laptop kernel: [ 4805.882985] thinkpad_acpi: 
unknown possible thermal alarm or keyboard event received
Mar 19 22:28:42 pauls-laptop kernel: [ 4806.034739] thinkpad_acpi: 
temperatures (Celsius): 43 0 40 3 0 54 26 54
Mar 19 22:28:42 pauls-laptop kernel: [ 4806.034760] thinkpad_acpi: 
unhandled HKEY event 0x6040
Mar 19 22:28:42 pauls-laptop kernel: [ 4806.034766] thinkpad_acpi: 
please report the conditions when this event happened to 
ibm-acpi-devel@...

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
Vegard Gjuvsland | 18 Mar 09:05 2014

Unsupported brightness interface Lenovo E145(A4-5000)

Hi,

I'm unable to adjust brightness on this system:

Lenovo Thinkpad Edge E145 with AMD A4-5000 APU
Xubuntu 14.04 Trusty Tahr with 3.13.0-17-generic
Using videodriver fglrx-13.35(same problem with mesa).

Dmesg shows this message at boot:
[    0.517202] [Firmware Bug]: ACPI: No _BQC method, cannot determine 
initial brightness
[    0.517245] [Firmware Bug]: ACPI: No _BQC method, cannot determine 
initial brightness
[    3.078471] [Firmware Bug]: ACPI: No _BQC method, cannot determine 
initial brightness
[    3.386730] thinkpad_acpi: Unsupported brightness interface, please 
contact ibm-acpi-devel@...
[    3.404593] thinkpad_acpi: This ThinkPad has standard ACPI backlight 
brightness control, supported by the ACPI video driver
[    3.404596] thinkpad_acpi: Disabling thinkpad-acpi brightness events 
by default...

lspci shows this:
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h 
Processor Root Complex
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. 
[AMD/ATI] Kabini [Radeon HD 8330]
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 9840
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h 
Processor Function 0
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h 
Processor Functions 5:1
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h 
Processor Functions 5:1
00:02.5 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h 
Processor Functions 5:1
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI 
Controller (rev 01)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA 
Controller [AHCI mode]
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI 
Controller (rev 39)
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI 
Controller (rev 39)
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI 
Controller (rev 39)
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI 
Controller (rev 39)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller 
(rev 3a)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia 
Controller (rev 02)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge 
(rev 11)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h 
Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h 
Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h 
Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h 
Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h 
Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h 
Processor Function 5
01:00.0 Network controller: Broadcom Corporation BCM43228 802.11a/b/g/n
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07)
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 
PCI Express Card Reader (rev 01)

lsmod:
Module                  Size  Used by
michael_mic            12612  8
arc4                   12608  4
joydev                 17381  0
ip6t_REJECT            12939  1
xt_hl                  12521  6
ip6t_rt                13537  3
nf_conntrack_ipv6      18894  8
nf_defrag_ipv6         34768  1 nf_conntrack_ipv6
ipt_REJECT             12541  1
xt_LOG                 17717  10
xt_limit               12711  13
xt_tcpudp              12884  26
xt_addrtype            12635  4
rfcomm                 69160  12
nf_conntrack_ipv4      15012  8
nf_defrag_ipv4         12758  1 nf_conntrack_ipv4
amd_freq_sensitivity    12589  0
bnep                   19624  2
xt_conntrack           12760  16
kvm                   451519  0
ip6table_filter        12815  1
ip6_tables             27025  1 ip6table_filter
crct10dif_pclmul       14289  0
btusb                  32412  0
nf_conntrack_netbios_ns    12665  0
nf_conntrack_broadcast    12589  1 nf_conntrack_netbios_ns
crc32_pclmul           13113  0
ghash_clmulni_intel    13259  0
nf_nat_ftp             12770  0
nf_nat                 21798  1 nf_nat_ftp
nf_conntrack_ftp       18638  1 nf_nat_ftp
aesni_intel            55624  0
nf_conntrack           96976  8 
nf_nat_ftp,nf_conntrack_netbios_ns,nf_nat,xt_conntrack,nf_conntrack_broadcast,nf_conntrack_ftp,nf_conntrack_ipv4,nf_conntrack_ipv6
bluetooth             395423  22 bnep,btusb,rfcomm
aes_x86_64             17131  1 aesni_intel
iptable_filter         12810  1
lrw                    13286  1 aesni_intel
uvcvideo               80885  0
gf128mul               14951  1 lrw
videobuf2_vmalloc      13216  1 uvcvideo
ip_tables              27239  1 iptable_filter
x_tables               34059  13 
ip6table_filter,xt_hl,ip_tables,xt_tcpudp,xt_limit,xt_conntrack,xt_LOG,iptable_filter,ip6t_rt,ipt_REJECT,ip6_tables,xt_addrtype,ip6t_REJECT
snd_hda_codec_realtek    61356  1
videobuf2_memops       13362  1 videobuf2_vmalloc
videobuf2_core         40664  1 uvcvideo
glue_helper            13990  1 aesni_intel
ablk_helper            13597  1 aesni_intel
cryptd                 20359  3 ghash_clmulni_intel,aesni_intel,ablk_helper
videodev              134688  2 uvcvideo,videobuf2_core
lib80211_crypt_tkip    17619  0
snd_hda_codec_hdmi     46207  1
fglrx                8081247  140
snd_hda_intel          52355  10
thinkpad_acpi          80817  1
snd_hda_codec         192906  3 
snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
nvram                  14411  1 thinkpad_acpi
psmouse               101945  0
snd_hwdep              13602  1 snd_hda_codec
serio_raw              13462  0
snd_pcm               102099  3 
snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
wl                   4207846  0
fam15h_power           13119  0
snd_seq_midi           13324  0
k10temp                13126  0
nfsd                  280297  2
snd_seq_midi_event     14899  1 snd_seq_midi
edac_core              62291  0
edac_mce_amd           22617  0
auth_rpcgss            59338  1 nfsd
nfs_acl                12837  1 nfsd
snd_page_alloc         18710  2 snd_pcm,snd_hda_intel
snd_rawmidi            30144  1 snd_seq_midi
nfs                   236636  0
i2c_piix4              22155  0
lockd                  93977  2 nfs,nfsd
sunrpc                284404  6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
lib80211               14381  2 wl,lib80211_crypt_tkip
fscache                63988  1 nfs
snd_seq                61560  2 snd_seq_midi_event,snd_seq_midi
rtsx_pci_ms            18151  0
memstick               16966  1 rtsx_pci_ms
snd_seq_device         14497  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              29482  2 snd_pcm,snd_seq
cfg80211              490477  1 wl
snd                    69238  32 
snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,thinkpad_acpi,snd_seq_device,snd_seq_midi
amd_iommu_v2           19054  1 fglrx
soundcore              12680  1 snd
wmi                    19177  0
video                  19421  0
mac_hid                13205  0
lp                     17759  0
parport                42348  1 lp
rtsx_pci_sdmmc         23274  0
ahci                   25819  1
libahci                32168  1 ahci
r8169                  67581  0
rtsx_pci               45956  2 rtsx_pci_ms,rtsx_pci_sdmmc
mii                    13934  1 r8169

I added acpi_brightness=vendor as boot parameter, but it didnt do 
anything but disable the brightness adjust keys which worked before, but 
didnt change brightness.

Greetings
Vegard

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
David Anderson | 19 Mar 00:18 2014

Unhandled HKEY event 0x60c0

I am getting:

Mar 18 18:01:15 liver kernel: thinkpad_acpi: unknown possible thermal alarm or keyboard event received
Mar 18 18:01:15 liver kernel: thinkpad_acpi: unhandled HKEY event 0x60c0
Mar 18 18:01:15 liver kernel: thinkpad_acpi: please report the conditions when this event happened to ibm-acpi-devel@...

When I put my Thinkpad Yoga into tablet mode.  I have an ACPI event that handles the tablet switch, and it works
fine, but dmesg tells me to report this and I obey.

Best,
DA

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
Aleksejs Popovs | 7 Mar 17:51 2014
Picon

Unsupported brightness interface

Hi!

I'm using a ThinkPad x121e, and thinkpad_acpi started outputting this
after a recent (or maybe not-so-recent) update:

~ → dmesg | grep thinkpad
[    8.407732] thinkpad_acpi: ThinkPad ACPI Extras v0.25
[    8.407745] thinkpad_acpi: http://ibm-acpi.sf.net/
[    8.407752] thinkpad_acpi: ThinkPad BIOS 8RET54WW (1.17 ), EC unknown
[    8.407758] thinkpad_acpi: Lenovo ThinkPad X121e, model 3051CTO
[    8.417280] thinkpad_acpi: Unsupported brightness interface, please
contact ibm-acpi-devel <at> lists.sourceforge.net
[    8.420725] thinkpad_acpi: radio switch found; radios are enabled
[    8.420762] thinkpad_acpi: possible tablet mode switch found;
ThinkPad in laptop mode
[    8.420787] thinkpad_acpi: This ThinkPad has standard ACPI
backlight brightness control, supported by the ACPI video driver
[    8.420790] thinkpad_acpi: Disabling thinkpad-acpi brightness
events by default...
[    8.445935] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio
is unblocked
[    8.448996] thinkpad_acpi: Console audio control enabled, mode:
monitor (read only)

Brightness control works (at least with the hardware buttons, as I
don't know any other way to do it), but since it said “please
contact”, I thought I should still do just that :)

My kernel is 3.13.5, my distro is Arch.

--

-- 
Best regards,
Aleksejs Popovs
Riga, Latvia

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
ibm-acpi-devel mailing list
ibm-acpi-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel
Sean Hunt | 13 Mar 22:53 2014
Picon
Picon

unhandled HKEY event 0x6060

Hey guys,

I got the message in the subject line when I press the FnLk key (Fn +
Escape) on my new ThinkPad T440p. I just noticed it in my kernlog
today.

Hope that you find this helpful!
Sean Hunt

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
Dan Aloni | 14 Mar 15:28 2014

thinkpad_acpi: fix for adaptive keyboard state after suspend/resume

Hello, 

I have been experiencing an issue with the Lenovo Carbon X1 Gen 2 - 
after resuming from suspend-to-RAM, the adaptive keyboard bar was 
completely off and did not respond to any touch.

Thanks to Shuduo San's patches for supporting the Lenovo adaptive
keyboard, I was inspired to device a fix. Seems that simply calling 
the ACPI function to set the state of the adaptive keyboard after 
resume takes from it off state.

This fix is not perfect because it does not remember the last mode
used. But it makes it useful enough for me (one can't work without
the function keys...). I hope you integrate this anyway into your 
proposed changes.

Signed-off-by: Dan Aloni <dan@...>
---
 drivers/platform/x86/thinkpad_acpi.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index 866b42a..13a10ba 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
 <at>  <at>  -3880,6 +3880,12  <at>  <at>  static void hotkey_resume(void)
 	hotkey_wakeup_reason_notify_change();
 	hotkey_wakeup_hotunplug_complete_notify_change();
 	hotkey_poll_setup_safe(false);
+
+	if (hkey_handle) {
+		/* Re-awake the the adaptive keyboard if it exists */
+		acpi_evalf(hkey_handle,
+			   NULL, "STRW", "vd", FUNCTION_MODE);
+	}
 }

 /* procfs -------------------------------------------------------------- */
-- 
1.8.5.3

--

-- 
Dan Aloni

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
Taegil Bae | 14 Mar 09:06 2014
Picon

[PATCH] support Thinkpad Yoga tablet mode HKEY 0x60c0

Hi all,

I got a message "unhandled HKEY 0x60c0" when turning my Thinkpad Yoga into tablet mode and turning back to
normal mode.
According to a message in this mailing list, this HKEY was also reported for Thinkpad Helix.
I have tried to figure out this issue and got a solution by looking into DSDT.

Thanks,

Taegil

---
 drivers/platform/x86/thinkpad_acpi.c | 25 ++++++++++++++++++++++---
 1 file changed, 22 insertions(+), 3 deletions(-)

diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index defb6af..5a4c72e 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
 <at>  <at>  -207,6 +207,9  <at>  <at>  enum tpacpi_hkey_event_t {
 	/* AC-related events */
 	TP_HKEY_EV_AC_CHANGED		= 0x6040, /* AC status changed */

+	/* Tablet mode of Thinkpad Yoga */
+	TP_HKEY_EV_TABLET_MODE		= 0x60c0, /* into or back from tablet */
+
 	/* Misc */
 	TP_HKEY_EV_RFKILL_CHANGED	= 0x7000, /* rfkill switch changed */
 };
 <at>  <at>  -300,7 +303,7  <at>  <at>  static struct {
 	u32 hotkey:1;
 	u32 hotkey_mask:1;
 	u32 hotkey_wlsw:1;
-	u32 hotkey_tablet:1;
+	u32 hotkey_tablet:2;
 	u32 light:1;
 	u32 light_status:1;
 	u32 bright_acpimode:1;
 <at>  <at>  -2059,10 +2062,15  <at>  <at>  static int hotkey_get_tablet_mode(int *status)
 {
 	int s;

-	if (!acpi_evalf(hkey_handle, &s, "MHKG", "d"))
+	if (tp_features.hotkey_tablet == 1
+	    && acpi_evalf(hkey_handle, &s, "MHKG", "d"))
+		*status = ((s & TP_HOTKEY_TABLET_MASK) != 0);
+	else if (tp_features.hotkey_tablet == 2
+		 && acpi_evalf(hkey_handle, &s, "GMMS", "dd", 0))
+		*status = (s == 0x00010003);
+	else
 		return -EIO;

-	*status = ((s & TP_HOTKEY_TABLET_MASK) != 0);
 	return 0;
 }

 <at>  <at>  -3316,6 +3324,11  <at>  <at>  static int __init hotkey_init(struct ibm_init_struct *iibm)
 	if (!res && acpi_evalf(hkey_handle, &status, "MHKG", "qd")) {
 		tp_features.hotkey_tablet = 1;
 		tabletsw_state = !!(status & TP_HOTKEY_TABLET_MASK);
+	} else if (!res && acpi_evalf(hkey_handle, &status, "GMMS", "qdd", 0)) {
+		tp_features.hotkey_tablet = 2;
+		tabletsw_state = (status == 0x00010003);
+	}
+	if (tp_features.hotkey_tablet) {
 		pr_info("possible tablet mode switch found; "
 			"ThinkPad in %s mode\n",
 			(tabletsw_state) ? "tablet" : "laptop");
 <at>  <at>  -3612,6 +3625,12  <at>  <at>  static bool hotkey_notify_6xxx(const u32 hkey,
 		*ignore_acpi_ev = true;
 		return true;

+	case TP_HKEY_EV_TABLET_MODE:   /* Thinkpad Yoga */
+		tpacpi_input_send_tabletsw();
+		hotkey_tablet_mode_notify_change();
+		*send_acpi_ev = false;
+		return true;
+
 	default:
 		pr_warn("unknown possible thermal alarm or keyboard event received\n");
 		known = false;
--

-- 
1.9.0

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech

Gmane