View Single Post
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#27
@inzimam and @msa, at the moment the app is under construction, the code posted here was rather a POC. It's taking a while, but you know how it is, with Christmas and all.

@bongo, I have written a daemon that sends dbus signals on state change. It is optimized a bit, so it should be good enough to sit there as a standard daemon.

You can access it from

Code:
"/proximityd/signal/state", "proximityd.signal.state",                                "changed"
values are 'open' and 'closed'.
Polling is done every 10ms, footprint is acceptable.
I haven't found any smarter way than actual polling from the file, as inotify read() doesn't work with pseudo-file system.
There is a bug opened for handling of proximity sensor in Maemo.
__________________
Hi! I'm a Maemo Greeter!
Witaj na talk.maemo.org!

Useful links for newcomers:
Użyteczne linki:
Nowi użyktownicy mówią cześć | New members say hello , Tu zaczynają nowi użytkownicy | New users start here, Podforum społeczności | Community subforum, Wiki dla początkujących | Beginners' wiki page, Maemo5 101, Często zadawane pytania | Frequently Asked Questions (FAQ), Google

Jeżeli mogę w czymś pomóc, pytaj!
If I can help with anything else, just ask!

Bored? Follow me
 

The Following User Says Thank You to hopbeat For This Useful Post: