Public bug reported:

See

https://blueprints.launchpad.net/ubuntu/+spec/client-1305-convertibles-
and-touch-desktop

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://www.thinkwiki.org/wiki/Installing_Ubuntu_12.10_on_Thinkpad_Twist#Automatic

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/acpi-support/power-funcs with the function getXconsole to
find out who the user logged in on the desktop is ($user, the script
runs as root), and second, xinput support for the touchpad (can also be
a bug).  Perhaps one needs to use gsettings now.

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.

** Affects: acpid (Ubuntu)
     Importance: High
         Status: New

** Changed in: acpid (Ubuntu)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1210823

Title:
  Convertibles: Switching between laptop mode and tablet mode needed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/1210823/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to