[SHR] Accelerometers

Iain B. Findleton ifindleton at videotron.ca
Mon Oct 26 15:00:26 CET 2009

Al Johnson wrote:
> On Sunday 25 October 2009, Ivo van den Maagdenberg wrote:
>> 2009/10/25 Frederik Sdun <frederik.sdun at googlemail.com>
>>> * Iain B. Findleton <ifindleton at videotron.ca> [25.10.2009 13:19]:
>>>> Where is the device control for the accelerometers on SHR? Was
>>>> /sys/bus/platform/devices/ls302dl.1/2 or some such on the OM distros.
>>>> _______________________________________________
>>>> Openmoko community mailing list
>>>> community at lists.openmoko.org
>>>> http://lists.openmoko.org/mailman/listinfo/community
>>> here's an overview of the sysfs paths:
>>> http://wiki.openmoko.org/wiki/GTA02_sysfs#Accelerometers
>> No luck. The paths specified on the page you refer to do not exits on the
>> SHR release.
>> root at om-gta02 ~ $ ls -a /sys/devices/platform/
>> .                    physmap-flash.0      s3c2440-sdi          s3c-ohci
>> ..                   power                s3c2440-uart.0       soc-audio
>> gta02-led.0          s3c2410-iis          s3c2440-uart.1       uevent
>> gta02-pm-wlan.0      s3c2410-wdt          s3c2440-uart.2
>> neo1973-memconfig.0  s3c2440-i2c          s3c2440-usbgadget
>> neo1973-version.0    s3c2440-nand         s3c24xx_pwm.0
>> http://wiki.openmoko.org/wiki/Accelerometer_data_retrieval#The_.2Fsys_inter
>> facedoes neither point to the right direction in the SHR case.
>> Any other suggestions how to manipulate the accelerometers?
> This is a case of a wiki page in need of an update because it only makes sense 
> if you already know what it means ;-)
> Note the first line on the page:
> "NOTE: These only apply to Linux kernel 2.6.24, 2.6.28 has different paths 
> (see below)"
> The #Accelerometers link you were given points to the paths for 2.6.24 which 
> have explanations, but aren't used by any current distro. Below that is a 
> section that says what each path from 2.6.24 changed to in 2.6.28 and later, 
> and are used by all current distros. Scroll to the very end of the page and 
> you'll find the answer you were looking for.

Okay, in what I can only assume is an effort to make finding the
lis302dl (Accelerometer) control interface easier, the path on the SHR
distro I have installed is:


where the .0 and .1 directories refer to the respective accelerometer

An alternative path is:


I don't know who has permission to modify the wiki page, but someone who
can do so may wish to add this information on the #Accelerometers page.

Here is the output of `cat /etc/shr-version` on my machine:

    Tag Name: mv-packages-to-recipes-pre
    VERSION: 02fe96061411de095776edd314d9ae551e1b2f22
    Branch: shr/import
    Build Host: opmbuild
    Time Stamp: Sun, 06 Sep 2009 16:34:21 +0200

> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community

More information about the community mailing list