Can you patch the kernel (possibly in the mr1 branch) so that you can access the accelerometer data through sysfs? I need that for the autorotate python script.
This already happens in my laptop: the accelerometer is both usable as a joystick (it's /dev/input/js0) and through sysfs:
lis3lv02d/:
input modalias position power rate selftest subsystem uevent
lis3lv02d/input:
input13
lis3lv02d/input/input13:
capabilities device event6 id js0 max min modalias name phys poll power properties subsystem uevent uniq
lis3lv02d/input/input13/capabilities:
abs ev ff key led msc rel snd sw
lis3lv02d/input/input13/event6:
dev device power subsystem uevent
lis3lv02d/input/input13/event6/power:
async control runtime_active_time runtime_status runtime_usage
autosuspend_delay_ms runtime_active_kids runtime_enabled runtime_suspended_time
lis3lv02d/input/input13/id:
bustype product vendor version
lis3lv02d/input/input13/js0:
dev device power subsystem uevent
lis3lv02d/input/input13/js0/power:
async control runtime_active_time runtime_status runtime_usage
autosuspend_delay_ms runtime_active_kids runtime_enabled runtime_suspended_time
lis3lv02d/input/input13/power:
async control runtime_active_time runtime_status runtime_usage
autosuspend_delay_ms runtime_active_kids runtime_enabled runtime_suspended_time
lis3lv02d/power:
async control runtime_active_time runtime_status runtime_usage
autosuspend_delay_ms runtime_active_kids runtime_enabled runtime_suspended_time
"position" output this: (18,-162,990) → (x,y,z)
I read those values in the script and decide the screen orientation.
Can you patch the kernel (possibly in the mr1 branch) so that you can access the accelerometer data through sysfs? I need that for the autorotate python script.
This already happens in my laptop: the accelerometer is both usable as a joystick (it's /dev/input/js0) and through sysfs:
"position" output this: (18,-162,990) → (x,y,z)
I read those values in the script and decide the screen orientation.