You are not logged in.

#21 2016-06-11 20:10:34

gree
Member
Registered: 2016-06-08
Posts: 74

Re: Tablet - screen rotation

regarding sensors on linux; how can someone address/read the sensors data in realtime?
I've found lsmod + modinfo hid_sensor_rotation shows some information. But I can't tell rather the display is rotated or not.

any input really helpful, thanks.

https://launchpad.net/magick-rotation

Last edited by gree (2016-06-11 20:25:33)

Offline

#22 2016-06-11 20:25:27

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Tablet - screen rotation

gree wrote:

regarding sensors on linux; how can someone address/read the sensors data in realtime?

Try looking in /sys/class/hid or /dev/input/wacom*

Offline

#23 2016-06-12 15:34:46

gree
Member
Registered: 2016-06-08
Posts: 74

Re: Tablet - screen rotation

If anyone wants to move on from here smile

... I found all sensor devices within /sys/bus/iio/devices[0-9]/*.*
to read data; example:
cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw

it takes more time than expected to get it somehow right.

Good Luck!

Last edited by gree (2016-06-12 15:36:45)

Offline

#24 2016-06-12 19:28:48

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Tablet - screen rotation

@gree, I'm going to remove the added tags -- "closed" is reserved for Mod & Admin usage and having "solved" in the thread title when it isn't may frustrate future searches.

Offline

Board footer

Powered by FluxBB