Notices


Reply
Thread Tools
Posts: 263 | Thanked: 108 times | Joined on May 2008
#11
Originally Posted by smoku View Post
It's a hildon-desktop plugin. It does not launch any additional process.
isn't it a daemon?
it checks if it's open or not.. !? so it'll check every X seconds to show the status, or am I wrong?
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#12
No, it is not a daemon.

It is a plugin module for the statusbar. Most of the time it does absolutly
nothing. It only registers function to be called on some events.
(open/close the lens cover and the screen lock).

nicolai
 
Posts: 692 | Thanked: 264 times | Joined on Dec 2009
#13
Great! I actually made a DECW widget to do something similar, but this is way better!
__________________
"Impossible is not in the Maemo vocabulary" - Caballero
 
Posts: 82 | Thanked: 44 times | Joined on Feb 2010
#14
One possible piece of cool intelligence would be to set a timer after the vibration and recheck the status, then play a sound if it's still open after say 10 seconds.

Another cool feature would be to set a similar timeout to take a brightness reading from the camera (is it possible?) or take photo and analyse the darkness. If it is dark (like in a pocket, laying on a table etc) then it is probably covered and you really want to close the lens cover as it is at high risk of scratching/dust getting in, so then the sound should be played.

(and for those who don't want sound, they can set it to off, or a silent sound file)
 
CepiPerez's Avatar
Posts: 1,023 | Thanked: 4,421 times | Joined on Feb 2010 @ Argentina
#15
@benh_n900:
Check after a determinated time needs a timer, and it will drain the battery

@nicolai:
Try hildon_play_system_sound()
 
smoku's Avatar
Posts: 1,716 | Thanked: 3,007 times | Joined on Dec 2009 @ Warsaw, Poland
#16
Originally Posted by CepiPerez View Post
@benh_n900:
Check after a determinated time needs a timer, and it will drain the battery
Linux is an event driven system. You don't need to actively track time. Just tell the kernel "please wake me up in X seconds" and go to sleep.

You may see g_timeout_add () for more details.
__________________
smoku @xiaoka.com (SMTP/XMPP) ...:.:....:... pebbled . Poky Fish : sixaxis . psx4m . uae4all
Jolla Phone post-mortem . . . . . . . . . . -> 1+1 VGN-UX390N
 

The Following User Says Thank You to smoku For This Useful Post:
smoku's Avatar
Posts: 1,716 | Thanked: 3,007 times | Joined on Dec 2009 @ Warsaw, Poland
#17
Originally Posted by benh_n900 View Post
One possible piece of cool intelligence would be to set a timer after the vibration and recheck the status, then play a sound if it's still open after say 10 seconds.
Good synthesis. I like the idea.
__________________
smoku @xiaoka.com (SMTP/XMPP) ...:.:....:... pebbled . Poky Fish : sixaxis . psx4m . uae4all
Jolla Phone post-mortem . . . . . . . . . . -> 1+1 VGN-UX390N
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#18
Originally Posted by benh_n900 View Post
Another cool feature would be to set a similar timeout to take a brightness reading from the camera (is it possible?) or take photo and analyse the darkness. If it is dark (like in a pocket, laying on a table etc) then it is probably covered and you really want to close the lens cover as it is at high risk of scratching/dust getting in, so then the sound should be played.
Rather complicated for something that you can just check by reading the proximity sensor's state.
 
fpp's Avatar
Posts: 2,853 | Thanked: 968 times | Joined on Nov 2005
#19
This happens to me all the time, so thanks for this small but hugely useful app !
 
mthmob's Avatar
Posts: 378 | Thanked: 206 times | Joined on Dec 2009 @ Denmark
#20
Brilliant Very needed indeed... Constantly forget to close it, mostly because im used to a digi cam that covers the lens automaticly when off

Thx for sharing your work with us

---

But maybe its time for the mobile developers to take a look at the digital camera designs out there... an auto open/close lens cover system has been used for years now... maybe its time to move this system to the mobile phones aswell
 

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

Thread Tools

 
Forum Jump


All times are GMT. The time now is 22:39.