crondog / kernel_msm Goto Github PK
View Code? Open in Web Editor NEWThis project forked from aosp-mirror/kernel_msm
License: Other
This project forked from aosp-mirror/kernel_msm
License: Other
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.