Accelerometer data not updating? #41
Replies: 3 comments 1 reply
-
Hey, which device do you use? |
Beta Was this translation helpful? Give feedback.
-
Oops, I meant to include that. I am using an Acer Spin 5. It is a 2-in-1 laptop. Adding I have tried I added print statements of the variables If I translate the code rotation command to Thank you again for your time! :) |
Beta Was this translation helpful? Give feedback.
-
Do I understand you correctly, that |
Beta Was this translation helpful? Give feedback.
-
Hello,
I tried rot8 on Manjaro Sway and got no update to my display. I checked out the code and noted the
/sys/bus/iio/devices/iio:device*/in_accel_*_raw
path to what seems to be the data location. I ran awatch -d cat /sys/bus/iio/devices/iio:device0/*
and saw no change to the data in all files there on device orientation changes. I inserted some print statements in rot8 and confirmed it was seeing the same lack of data changes from the/sys/bus
files.I installed
iio-sensor-proxy
and ranmonitor-sensor
and received updates on orientation changes, and I also see data changes if I runcat /dev/iio:device0 | xxd
. I read about what files need to be present in/sys/bus/iio/devices/iio:device0/
to enable the buffer and all are present based on what I read. Now I'm lost. Any ideas on what I should check next or something I overlooked?Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions