<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Am 02.04.2014 um 03:17 schrieb L. B.:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div>Hi,<br><br></div>I'd like to play with the compass but the info from the documentation page does not correspond with what I got on my phone (using qtmoko v58). The page I use is that one:<br><a href="http://projects.goldelico.com/p/gta04-kernel/page/Sensors/">http://projects.goldelico.com/p/gta04-kernel/page/Sensors/</a><br>
<br></div>In the 'compass' section there is a switch to enable/disable sampling. On my phone there is a directory <br><pre><code>/sys/bus/i2c/devices/i2c-2/2-001e/</code></pre><div><div>but there is no 'rate' file in there. Same applies for the gyroscope.<br>
</div><div>Has anything been changed?<br></div></div></div></blockquote><div><br></div>No. The kenrel doc is for the Goldelico kernels which were 2.6.32 some years ago and now reflect the drivers of 3.12 (ff).</div><div><br></div><div>QtMoko AFAIK uses a 3.7 kernel and since the /sys node names are not stable (and never will be) you might have to do a little guesswork and look into the 3.7 kernel source code to find out how the driver works.</div><div><br></div><div>Hope this helps,</div><div>Nikolaus</div><div><br></div></body></html>