Hi, I had "battery life" problem recently after os2008 installation on my n800. I started investigating this by re-fleshing new instance of OS, gradually install new software and use strace to monitor what was going on. What I found was each second or couple of second there was a process querying /proc/something-i-cant-remember-now against headset connectivity. I stopped fmradio home aplet and it was gone. I don't think it caused my battery lasting only one day, but it may explain how fmradio 'knows' whether headset is connected or not. cheers Pit On Jan 10, 2008 9:32 AM, Andrew Flegg <andrew at bleb.org> wrote: > On Jan 10, 2008 9:28 AM, Klaus Rotter <klaus at rotters.de> wrote: > > Kalle Valo wrote: > > > > > > No, you're not stupid. The application instead is stupid if it does > > > not warn about missing headset. > > > > Interesting. Is there an API that an application can detect if a headset > > is connected or not? > > There must be some software mechanism because the switch to headphone > output for audio is controlled in software, rather than hardware. > > This can be seen by the fact that the FM radio application allows > audio to be output through the speakers when a pair of headphones is > acting as aerial. > > Cheers, > > Andrew > > -- > Andrew Flegg -- mailto:andrew at bleb.org | http://www.bleb.org/ > _______________________________________________ > maemo-users mailing list > maemo-users at maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-users > -- Piotr ------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maemo.org/pipermail/maemo-users/attachments/20080110/41acff56/attachment.htm