[SHR] Accelerometers

Al Johnson openmoko at mazikeen.demon.co.uk
Sun Oct 25 21:22:54 CET 2009


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.



More information about the community mailing list