Thread
:
proximity dashboard
View Single Post
hopbeat
2009-12-21 , 11:16
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
Quote & Reply
|
The Following User Says Thank You to hopbeat For This Useful Post:
iKneaDough
hopbeat
View Public Profile
Send a private message to hopbeat
Find all posts by hopbeat