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("/sys/devices/platform/gpio-switch/headphone/state", 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, "disconnected\n", 4096) = 13<br>close(21) = 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 <<a href="mailto:luca@ventoso.org">luca@ventoso.org</a>> 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">> "ext Luca Olivetti" <<a href="mailto:luca@ventoso.org">luca@ventoso.org</a>> writes:<br>><br>>>> Just what I was thinking. My first guess would be that there's a GPIO
<br>>>> for this. Anyone interested should check the kernel sources. And with<br>>>> luck there's already a sysfs interface.<br>>> /sys/devices/platform/gpio-switch/headphone/state<br>><br>> Bingo! Thanks for finding this.
<br><br></div>I don'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>-------------------------------------