Comment 27 for bug 1366421

Revision history for this message
marmuta (marmuta) wrote :

We're already using AT-SPI2 on D-Bus for auto-show, word-suggestions and auto-capitalization, but I'm not sure it can help with detecting tablet-mode. At least I haven't found anything in that direction.

/etc/acpi/events/ seems more promising. As I understand it, devices can generate key-strokes on rotation and/or changing from/to tablet-mode. One can then run arbitrary scripts when that happens. See for example
https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/1210823

There doesn't seem to exist a standardized interface for all possible devices, though. Each might have its own set of events. We probably can't easily add that part to Onboard.

Unless someone runs tests on a convertible device, that is. Perhaps dbus-monitor can uncover some action when tablet-mode is entered/left.

What we could do is add PauseAutoshow() (as mentioned in #2) to Onboard's D-Bus interface, ready to be called from scripts in /etc/acpi/events/.