Accelerometer Data

Neil Brown neilb at suse.de
Tue Mar 24 00:01:15 CET 2009


On Monday March 23, ifindleton at videotron.ca wrote:
> Charles-Henri Gros wrote:
> >
> > A known issue in 2008.12.
> > http://docs.openmoko.org/trac/ticket//2145
> >
> > Workaround:
> > echo 10 > /sys/devices/platform/lis302dl.1/threshold
> >
> >
> >
> >   
> ls /sys/devices/platform:
....

They seem to move around a bit..

debian-gta02:/tmp# find /sys | grep thresh
/sys/class/i2c-adapter/i2c-0/0-0073/spi_s3c24xx_gpio.0/spi3.0/threshold
/sys/class/i2c-adapter/i2c-0/0-0073/spi_s3c24xx_gpio.0/spi3.0/wakeup_threshold
/sys/class/i2c-adapter/i2c-0/0-0073/spi_s3c24xx_gpio.0/spi3.1/threshold
/sys/class/i2c-adapter/i2c-0/0-0073/spi_s3c24xx_gpio.0/spi3.1/wakeup_threshold

or 
debian-gta02:/tmp# p=*; while [ "`eval echo /sys/$p/threshold`" = "/sys/$p/threshold" ]; do p=$p/* ; done ; echo /sys/$p/threshold
/sys/bus/spi/devices/spi3.0/threshold /sys/bus/spi/devices/spi3.1/threshold

So look under /sys/bus/spi/devices/spi3.x

I wonder what 'spi' means...

NeilBrown




More information about the community mailing list