On Sun, 2016-12-11 at 00:37 +0000, marmuta wrote:
> Came across SW_TABLET_MODE in the kernel. There are a bunch of drivers that
> send this, one of them thinkpad_acpi.c. Are you by chance able to load that
> kernel module (according to the documentation probably not)?
> $ sudo modprobe thinkpad_acpi
>
Wow. I wasn't aware they added support for Lenovo Yogas into this driver.
Initially (maybe more than a year ago), this driver wouldn't have any effect on
Yoga. Now its different.
> This creates a flag in
> /sys/devices/platform/thinkpad_acpi/hotkey_tablet_mode
> that could be queried, and also sends sysfs events (for udev I guess) and
> hotkey events through evdev when the mode changes.
>
But the touchscreen is lost now, so I can't give you what the status is in
tablet mode. Let me figure out if the touchscreen loss was because of the
thinkpad_acpi driver.
xinput looks okay, even after touchscreen loss.
rrs@learner:~/rrs-home/Community/linux-upstream_GIT (broken-mmc)$ xinput list⎡
Virtual core pointer id=2 [master
pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointe
r (2)]
⎜ ↳ ELAN Touchscreen id=9 [slave pointe
r (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=13 [slave point
er (2)]
⎣ Virtual core keyboard id=3 [master keyboard
(2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboa
rd (3)]
↳ Power Button id=6 [slave keyboa
rd (3)]
↳ Video Bus id=7 [slave keyboa
rd (3)]
↳ Power Button id=8 [slave keyboa
rd (3)]
↳ Lenovo EasyCamera id=10 [slave keybo
ard (3)]
↳ Ideapad extra buttons id=11 [slave keybo
ard (3)]
↳ AT Translated Set 2 keyboard id=12 [slave keybo
ard (3)]
2016-12-11 / 16:11:25 ♒♒♒ ☺
> > From the source:
>
> TP_HKEY_EV_TABLET_TABLET = 0x5009, /* tablet swivel up */
> TP_HKEY_EV_TABLET_NOTEBOOK = 0x500a, /* tablet swivel down */
>
So though the driver (thinkpad_acpi) loaded, it still doesn't seem to be meant
for Yoga series.
- --
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
-----BEGIN PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
On Sun, 2016-12-11 at 00:37 +0000, marmuta wrote:
> Came across SW_TABLET_MODE in the kernel. There are a bunch of drivers that
> send this, one of them thinkpad_acpi.c. Are you by chance able to load that
> kernel module (according to the documentation probably not)?
> $ sudo modprobe thinkpad_acpi
>
Wow. I wasn't aware they added support for Lenovo Yogas into this driver.
Initially (maybe more than a year ago), this driver wouldn't have any effect on
Yoga. Now its different.
[ 9988.198752] Non-volatile memory driver v1.3 ibm-acpi. sf.net/ platform/ thinkpad_ acpi/input/ input18
[ 9988.201892] thinkpad_acpi: ThinkPad ACPI Extras v0.25
[ 9988.201894] thinkpad_acpi: http://
[ 9988.201895] thinkpad_acpi: ThinkPad BIOS 96CN31WW(V1.17), EC unknown
[ 9988.201897] thinkpad_acpi: Lenovo Lenovo Yoga 2 13, model 20344
[ 9988.281520] thinkpad_acpi: Standard ACPI backlight interface available, not
loading native one
[ 9988.281759] thinkpad_acpi: Console audio control enabled, mode: monitor (read
only)
[ 9988.282273] input: ThinkPad Extra Buttons as
/devices/
2016-12-11 / 16:05:39 ♒♒♒ ☺
> This creates a flag in platform/ thinkpad_ acpi/hotkey_ tablet_ mode
> /sys/devices/
> that could be queried, and also sends sysfs events (for udev I guess) and
> hotkey events through evdev when the mode changes.
>
That isn't available. So I got you the following.
rrs@learner: ~/rrs-home/ Community/ linux-upstream_ GIT (broken-mmc)$ tree platform/ thinkpad_ acpi/ platform/ thinkpad_ acpi/ ./bus/platform/ drivers/ thinkpad_ acpi ./thinkpad_ acpi delay_ms suspended_ time ./../.. /../class/ input delay_ms suspended_ time ./../.. /class/ input delay_ms suspended_ time delay_ms suspended_ time ./../.. /../class/ sound ./thinkpad_ acpi delay_ms suspended_ time ./../.. /class/ sound ./bus/platform
/sys/devices/
/sys/devices/
├── cmos_command
├── driver -> ../../.
├── driver_override
├── input
│ └── input19
│ ├── capabilities
│ │ ├── abs
│ │ ├── ev
│ │ ├── ff
│ │ ├── key
│ │ ├── led
│ │ ├── msc
│ │ ├── rel
│ │ ├── snd
│ │ └── sw
│ ├── device -> ../../.
│ ├── event16
│ │ ├── dev
│ │ ├── device -> ../../input19
│ │ ├── power
│ │ │ ├── async
│ │ │ ├── autosuspend_
│ │ │ ├── control
│ │ │ ├── runtime_active_kids
│ │ │ ├── runtime_active_time
│ │ │ ├── runtime_enabled
│ │ │ ├── runtime_status
│ │ │ ├── runtime_
│ │ │ └── runtime_usage
│ │ ├── subsystem -> ../../.
│ │ └── uevent
│ ├── id
│ │ ├── bustype
│ │ ├── product
│ │ ├── vendor
│ │ └── version
│ ├── modalias
│ ├── name
│ ├── phys
│ ├── power
│ │ ├── async
│ │ ├── autosuspend_
│ │ ├── control
│ │ ├── runtime_active_kids
│ │ ├── runtime_active_time
│ │ ├── runtime_enabled
│ │ ├── runtime_status
│ │ ├── runtime_
│ │ └── runtime_usage
│ ├── properties
│ ├── subsystem -> ../../.
│ ├── uevent
│ └── uniq
├── modalias
├── power
│ ├── async
│ ├── autosuspend_
│ ├── control
│ ├── runtime_active_kids
│ ├── runtime_active_time
│ ├── runtime_enabled
│ ├── runtime_status
│ ├── runtime_
│ └── runtime_usage
├── sound
│ └── card29
│ ├── controlC29
│ │ ├── dev
│ │ ├── device -> ../../card29
│ │ ├── power
│ │ │ ├── async
│ │ │ ├── autosuspend_
│ │ │ ├── control
│ │ │ ├── runtime_active_kids
│ │ │ ├── runtime_active_time
│ │ │ ├── runtime_enabled
│ │ │ ├── runtime_status
│ │ │ ├── runtime_
│ │ │ └── runtime_usage
│ │ ├── subsystem -> ../../.
│ │ └── uevent
│ ├── device -> ../../.
│ ├── id
│ ├── number
│ ├── power
│ │ ├── async
│ │ ├── autosuspend_
│ │ ├── control
│ │ ├── runtime_active_kids
│ │ ├── runtime_active_time
│ │ ├── runtime_enabled
│ │ ├── runtime_status
│ │ ├── runtime_
│ │ └── runtime_usage
│ ├── subsystem -> ../../.
│ └── uevent
├── subsystem -> ../../.
└── uevent
23 directories, 75 files
2016-12-11 / 16:13:43 ♒♒♒ ☺
rrs@learner: ~/rrs-home/ Community/ linux-upstream_ GIT (broken-mmc)$ for item platform/ thinkpad_ acpi/input/ input19/ capabilities/ *; do echo platform/ thinkpad_ acpi/input/ input19/ capabilities/ abs platform/ thinkpad_ acpi/input/ input19/ capabilities/ ev platform/ thinkpad_ acpi/input/ input19/ capabilities/ ff platform/ thinkpad_ acpi/input/ input19/ capabilities/ key platform/ thinkpad_ acpi/input/ input19/ capabilities/ led platform/ thinkpad_ acpi/input/ input19/ capabilities/ msc platform/ thinkpad_ acpi/input/ input19/ capabilities/ rel platform/ thinkpad_ acpi/input/ input19/ capabilities/ snd platform/ thinkpad_ acpi/input/ input19/ capabilities/ sw
in /sys/devices/
$item; cat $item; done
/sys/devices/
0
/sys/devices/
1
/sys/devices/
0
/sys/devices/
0
/sys/devices/
0
/sys/devices/
0
/sys/devices/
0
/sys/devices/
0
/sys/devices/
0
2016-12-11 / 16:14:51 ♒♒♒ ☺
rrs@learner: ~/rrs-home/ Community/ linux-upstream_ GIT (broken-mmc)$ cat button/ lid/LID0/ state
/proc/acpi/
state: open
2016-12-11 / 16:10:08 ♒♒♒ ☺
But the touchscreen is lost now, so I can't give you what the status is in
tablet mode. Let me figure out if the touchscreen loss was because of the
thinkpad_acpi driver.
xinput looks okay, even after touchscreen loss.
rrs@learner: ~/rrs-home/ Community/ linux-upstream_ GIT (broken-mmc)$ xinput list⎡
Virtual core pointer id=2 [master
pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointe
r (2)]
⎜ ↳ ELAN Touchscreen id=9 [slave pointe
r (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=13 [slave point
er (2)]
⎣ Virtual core keyboard id=3 [master keyboard
(2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboa
rd (3)]
↳ Power Button id=6 [slave keyboa
rd (3)]
↳ Video Bus id=7 [slave keyboa
rd (3)]
↳ Power Button id=8 [slave keyboa
rd (3)]
↳ Lenovo EasyCamera id=10 [slave keybo
ard (3)]
↳ Ideapad extra buttons id=11 [slave keybo
ard (3)]
↳ AT Translated Set 2 keyboard id=12 [slave keybo
ard (3)]
2016-12-11 / 16:11:25 ♒♒♒ ☺
> > From the source: EV_TABLET_ TABLET = 0x5009, /* tablet swivel up */ EV_TABLET_ NOTEBOOK = 0x500a, /* tablet swivel down */
>
> TP_HKEY_
> TP_HKEY_
>
So though the driver (thinkpad_acpi) loaded, it still doesn't seem to be meant
for Yoga series.
- -- www.researchut. com
Ritesh Raj Sarraf
RESEARCHUT - http://
"Necessity is the mother of invention."
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiE EQCVDstmIVAB/ Yn02pjpYo/ LhdWkFAlhNLvcAC gkQpjpYo/ Lh Z92BZ9nI2E9RFUS iOJV4CDrPhoJL7m GPvFQ8g76rU3Asq jL2n y+0wCOM8qOzb2wR 1HUpK2tLo4U6Erl oaeH1SLGa8FSXW0 nD9o nTHAX1QllI2cLyj 2tGzVF4gOSfJPI0 /58eFKxZ5uGL4/ b6OiV YNonHBfD8NHR39V odJbUnbvDesX8P8 3NthwlpX4TUu9t5 Jkd3 6NUoklqjQgrjEJN ktLujlIkO/ +N2L1THc6YkRicO DKxyisCpV 3jLXCsq6i5lN8jI BjA40dSkxiImOOV M97qpPbPsgsDLBf AY/z 8xbpGARr0VkUs9S uH7P0Kij1QJ8ktG ta/etCIfd/ kuQo8o3CU X63YfwBDQGDA00J PyLotIW152Ttvpk /eWmpQ70y2FccfU LhZv UervwwlJgdCFsA8 1V71qmW6gnvKW2W CO+6anqbIcVth84 qaBd PppGErloAvWliOt YQCgIML1o2xnTfU GNQYaxP6IXcoUXT cHGo ZwBwKJoL+ Q36WqLVdvkhDYFz viS1yiIjh7Lw=
dWmoOxAAtV7zGtR
mVEAnlj51iAFsVo
t+CdAh32TIfGQ3s
2TBnH1aXkS9WlHc
ElENjVUKoM4CM0e
2coS6tsKqpXpZNL
WYc27AluUjN5Kct
t/Ph360CdD22ZTx
nLZT+yBd0mWJBKE
OM27JSSoUV6eHhx
agtyhTVAct4zh3j
=1DzC
-----END PGP SIGNATURE-----