Hi,<br><br>this is what I have when fmradio applet is running and when I strace one of the maemo-launcher processes:<br><br>...<br>open(&quot;/sys/devices/platform/gpio-switch/headphone/state&quot;, O_RDONLY) = 21<br>fstat64(21, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
<br>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40002000<br>read(21, &quot;disconnected\n&quot;, 4096)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 13<br>close(21)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0<br>...<br>I think it happens each 2 sec or so.
<br><br>What I meant before as /proc/something is actually /sys/something ;-)<br>
<br>cheers<br>Pit<br><br><div class="gmail_quote">On Jan 11, 2008 10:42 AM, Luca Olivetti &lt;<a href="mailto:luca@ventoso.org">luca@ventoso.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">En/na Kalle Valo ha escrit:<br></div><div class="Ih2E3d">&gt; &quot;ext Luca Olivetti&quot; &lt;<a href="mailto:luca@ventoso.org">luca@ventoso.org</a>&gt; writes:<br>&gt;<br>&gt;&gt;&gt; Just what I was thinking. My first guess would be that there&#39;s a GPIO
<br>&gt;&gt;&gt; for this. Anyone interested should check the kernel sources. And with<br>&gt;&gt;&gt; luck there&#39;s already a sysfs interface.<br>&gt;&gt; /sys/devices/platform/gpio-switch/headphone/state<br>&gt;<br>&gt; Bingo! Thanks for finding this.
<br><br></div>I don&#39;t deserve the merit, I found it in kagu (maemo.py).<br><br>Bye<br>--<br><font color="#888888">Luca<br></font><div><div></div><div class="Wj3C7c"><br>_______________________________________________<br>
maemo-users mailing list<br><a href="mailto:maemo-users@maemo.org">maemo-users@maemo.org</a><br><a href="https://lists.maemo.org/mailman/listinfo/maemo-users" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-users
</a><br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Piotr<br>-------------------------------------