On Mon, 2016-12-05 at 14:58 +0000, 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.
>
Yes. I use this mode, here, on Debian too.
> /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
>
Umm.. I'm not sure if acpi events really trap that event.
On my Debian box, these are the contents. And these are all provided by Laptop
Mode Tools, which is only involved for power savings.
> 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/.
I don't have the full context, but as I understand, you are looking for a way to
determine if the convertible is in normal or table mode.
Are you looking for something like the following ?
Connected to D-Bus.
Received reply from :1.5
Arguments: [Variant(QString): "normal"]
Received reply from :1.5
Arguments: [Variant(QString): "right-up"]
Received reply from :1.5
Arguments: [Variant(QString): "bottom-up"]
Received reply from :1.5
Arguments: [Variant(QString): "normal"]
iio-sensor-proxy can provide orientation information over dbus, provided your
device has the supported sensors.
PS: I have a convertible laptop (Lenovo Yoga 2 13). If there is anything I can
help with to improve onboard, please let me know. But the OS running on it will
be Debian.
- --
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
-----BEGIN PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
On Mon, 2016-12-05 at 14:58 +0000, marmuta wrote: tion, but I'm not sure it can help with detecting tablet-
> We're already using AT-SPI2 on D-Bus for auto-show, word-suggestions and
> auto-capitaliza
> mode. At least I haven't found anything in that direction.
>
Yes. I use this mode, here, on Debian too.
> /etc/acpi/events/ seems more promising. As I understand it, devices can /bugs.launchpad .net/ubuntu/ +source/ acpid/+ bug/1210823
> 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:/
>
Umm.. I'm not sure if acpi events really trap that event.
On my Debian box, these are the contents. And these are all provided by Laptop
Mode Tools, which is only involved for power savings.
rrs@learner: /var/tmp$ ls /etc/acpi/events/
lm_ac_adapter lm_battery lm_lid
2016-12-05 / 23:42:07 ♒♒♒ ☺
> 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/.
I don't have the full context, but as I understand, you are looking for a way to
determine if the convertible is in normal or table mode.
Are you looking for something like the following ?
Connected to D-Bus.
Received reply from :1.5
Arguments: [Variant(QString): "normal"]
Received reply from :1.5
Arguments: [Variant(QString): "right-up"]
Received reply from :1.5
Arguments: [Variant(QString): "bottom-up"]
Received reply from :1.5
Arguments: [Variant(QString): "normal"]
iio-sensor-proxy can provide orientation information over dbus, provided your
device has the supported sensors.
PS: I have a convertible laptop (Lenovo Yoga 2 13). If there is anything I can
help with to improve onboard, please let me know. But the OS running on it will
be Debian.
- -- www.researchut. com
Ritesh Raj Sarraf
RESEARCHUT - http://
"Necessity is the mother of invention."
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiE EQCVDstmIVAB/ Yn02pjpYo/ LhdWkFAlhFr/ 0ACgkQpjpYo/ Lh +IG9b9Vp30QHeBn sjcHKfhpbda1rm6 Nfk3aN8Y9GegNM/ 5JkePr8muBzu SM5RoDLKF4RYdvG 0RCWOD1OZ7LXkrv yHewm5Nz0Rczky+ KqFM UOUc6E7JwvC1pm+ xlGLIxjBauc20vz 6l83Hd787VemDso THPO yl/cIdojbSMhRPV APBZkp28WAr12ly f9/3ssKrwKeFVHg FSns DlR1a3KgnNSmxna 9b0PtfhCbg73mvB pGMYcaOWB+ 3dtX5eDp3 uFO/VdKnIB/ ZiqB3AnuyuNbYpJ NVb/gMBjhalcIn0 PuCx3Znt bvbpj1z7sAeifS2 7Okg73rxRTSngmy 03odryjJoiOqpzN Xpw4 GINMSaxDK+ /iSSCbG1Kn3sMCY L6dY1Y+ xY+2wueycHbMcQK e8 fR5juO1XLsG3Y96 mewctKQqKjvHF2p DgOIZEnD1zSM9R1 jhCm IHneNARD04OEhv9 1StGqkyzqBU9zdR ymhzSi2WIdHCqSd HxYjkQmmj9E7 hfYkR8FjuI7Fbsd urZh18WvnmE6WvY SrzP9s=
dWlLfQ/
6DKrtkI0v6BY5LM
HPqdlDZBfAGMqfJ
4qm08NEScRTh6b8
Wi/ETaktFvc4oJf
jLjnUKvlHOYfDvT
yEtIe7aLHroPvku
twdG9zbL2RFx1u6
FhUI5cLQ3nVtkI3
ACVT6x+
GcPKnaiz9Y0aFT+
=DHgZ
-----END PGP SIGNATURE-----