Convertibles (hybrid, 2-in-1): Switching between laptop, tent, and tablet modes needed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
acpid |
Unknown
|
Medium
|
|||
acpid (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
See
https:/
Convertibles (like the Lenovo Thinkpad Twist) have two modes: Laptop mode where the desktop is controlled with the built-in keyboard and the built-in touchpad (or an external mouse) and tablet mode where the keyboard is folded away behind the screen and the desktop is controlled by the touch screen only.
In laptop mode the built-in touchpad must be active and clicking or tapping a text input field should not pop up an on-screen keyboard, whereas in tablet mode the built-in touchpad should be deactivated so that the turned over laptop lid lying on the touchpad does not trigger mouse actions and tapping input fields has to pop-up the on-screen keyboard.
This can be easily done by a an ACPI-triggered script, as described on
http://
There are two files in /etc/acpi/events/ which assign the call of a script in /etc/acpi/ when the device is put into laptop mode or into tablet mode. The script should turn on the keyboard pop-up and turn off the touchpad when going into tablet mode and turn off the keyboard pop-up and turn on the touchpad when going into laptop mode.
Some remarks:
- The ACPI events mentioned on the linked site are for the Lenovo Thinkpad Twist, they can be different on other convertibles.
- The script does not activate keyboard pop-up. One needs to add
----------
if [ "$MODE" = "1" ]; then
sudo -iu $user onboard &
else
sudo -iu $user killall onboard
fi
----------
to get this.
- The script turns off the touch screen in laptop mode. This is not actually needed.
- The script uses two functionalities which got removed in Saucy. First, /usr/share/
When finding a way to turn off and on the touchpad and a way to find the desktop user, one could easily update the script so that it works with Saucy. One also needs to find out the ACPI events for mode switching on the different models of convertibles.
Changed in acpid: | |
importance: | Unknown → Medium |
status: | Unknown → New |
Changed in acpid: | |
status: | New → Incomplete |
Changed in acpid: | |
status: | Incomplete → Unknown |
tags: | added: cosmic touch |
Attaching relevant files for the case that the Thinkwiki article goes away.