kivy/plyer — pull request #51 by Davideddu (2014-04-02 02:43:04+00:00)
Title: Linux accel

Please check the comments in line 23. I didn't know which behavior was better, the choice is up to you.

Apparently there's no need to use evdev or stuff: according to IBM sysfs is reliable. You just need a glob to look for an accelerometer.
I'm not sure though about the range of the acceleration: on my PC it's from 1000 to -1000 (on android it's 10 to -10), but I don't know if it's related to the hardware used. I wanted to make it consisted so I simply divided it by 100, but if sysfs is not consistent we need to fix that and figure something out.