maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [ANNOUNCE] lens cover reminder (https://talk.maemo.org/showthread.php?t=52534)

nicolai 2010-05-12 23:10

[ANNOUNCE] lens cover reminder
 
Hi,

actually I don't use the camera often, but every time I forget
to close the lens cover. Like others too:
http://talk.maemo.org/showthread.php?t=37520

In Extras-devel
is my lens-cover-reminder statusbar plugin. It shows a little icon
while the lens is open. And alerts you by vibration, if you lock the
screen.
I hope it helps others.

regards
nicolai

clasificado 2010-05-12 23:19

Re: [ANNOUNCE] lens cover reminder
 
dont be shy and promote it to extras-testing, youll get my thumbs up for sure ;)

rpgAmazon 2010-05-12 23:19

Re: [ANNOUNCE] lens cover reminder
 
Great idea, but I can't find it

EDIT
yes, now it is. GREAT

CepiPerez 2010-05-13 00:14

Re: [ANNOUNCE] lens cover reminder
 
Excelent!
Can you add a sound like the notifications one?

Tigerite 2010-05-13 10:04

Re: [ANNOUNCE] lens cover reminder
 
Brilliant!

nicolai 2010-05-13 12:57

Re: [ANNOUNCE] lens cover reminder
 
Quote:

Originally Posted by CepiPerez (Post 656217)
Excelent!
Can you add a sound like the notifications one?

I don't know. Sound notification would be a little more
complicated. I think the vibtation alert is enough.
Or do you know a situation where it would be necessary?

nicolai

smoku 2010-05-13 13:29

Re: [ANNOUNCE] lens cover reminder
 
I don't want something to interrupt music listening just because I didn't close the lid. Vibration is enough.

CepiPerez 2010-05-13 14:26

Re: [ANNOUNCE] lens cover reminder
 
What if I take a Photo and let the phone in my desk and not in my hands?
It vibrates when the screens goes black, but how do I noticed that?

Anyways, this is a "must have" app.
I really apreciate your work in this.
Promote to extras-testing and you'll get my vote for sure.

ivnvir 2010-05-13 14:35

Re: [ANNOUNCE] lens cover reminder
 
This is a daemon, right? Will this drain my battery, even by a little?

smoku 2010-05-13 14:40

Re: [ANNOUNCE] lens cover reminder
 
It's a hildon-desktop plugin. It does not launch any additional process.

ivnvir 2010-05-13 17:27

Re: [ANNOUNCE] lens cover reminder
 
Quote:

Originally Posted by smoku (Post 656896)
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 2010-05-13 17:35

Re: [ANNOUNCE] lens cover reminder
 
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

GameboyRMH 2010-05-13 17:47

Re: [ANNOUNCE] lens cover reminder
 
Great! I actually made a DECW widget to do something similar, but this is way better! :D

benh_n900 2010-05-13 18:03

Re: [ANNOUNCE] lens cover reminder
 
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 2010-05-13 18:54

Re: [ANNOUNCE] lens cover reminder
 
@benh_n900:
Check after a determinated time needs a timer, and it will drain the battery

@nicolai:
Try hildon_play_system_sound()

smoku 2010-05-13 19:18

Re: [ANNOUNCE] lens cover reminder
 
Quote:

Originally Posted by CepiPerez (Post 657282)
@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 2010-05-13 19:23

Re: [ANNOUNCE] lens cover reminder
 
Quote:

Originally Posted by benh_n900 (Post 657201)
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.

qwerty12 2010-05-13 19:42

Re: [ANNOUNCE] lens cover reminder
 
Quote:

Originally Posted by benh_n900 (Post 657201)
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 2010-05-13 21:28

Re: [ANNOUNCE] lens cover reminder
 
This happens to me all the time, so thanks for this small but hugely useful app !

mthmob 2010-05-13 21:45

Re: [ANNOUNCE] lens cover reminder
 
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 :)

menno 2010-05-14 13:56

Re: [ANNOUNCE] lens cover reminder
 
Nice one, thanks!

nilchak 2010-05-14 14:02

Re: [ANNOUNCE] lens cover reminder
 
Bight idea for a helpful app.
Thanks for this nice reminder app... as I often forget to close the back cover.

rich c 2010-05-14 14:28

Re: [ANNOUNCE] lens cover reminder
 
Had to have it as soon as I saw this thread as I'm ALWAYS leaving the cover open! Superb! :D

F2thaK 2010-05-18 03:30

Re: [ANNOUNCE] lens cover reminder
 
whats these updates do?

(changelog)?

nicolai 2010-05-18 07:53

Re: [ANNOUNCE] lens cover reminder
 
Current version is 0.3

Sorry, no new features.
I made new versions only to change the package description (bugtracker-link),
the appmanager icon and promoted it for extras-testing.
You can vote for it now.

I want to keep it simple at the moment. So that it goes to extras, as soon as possible.
Once it is there, I may add new features.

Just to be clear. This is a really simple application.
The implementation took me less than a day.
But once I implement new features,
I have to make those configurable.
And building a new settings dialog is what
would take most of the time.

Nicolai

ivgalvez 2010-05-18 08:06

Re: [ANNOUNCE] lens cover reminder
 
Voted thumbs up. Thank for this useful application.

p900 2010-05-18 08:07

Re: [ANNOUNCE] lens cover reminder
 
good app.
i agree about the sound notification. it's better.
if i hold the phone and i don't close the lid there is no big deal.
if i put it on a desk (probably dusty or with some liquid) and leave there is no way to understand that with vibration. sound will be heard from some distance.
if you like put 2 check boxes so we will be able to chose what we like. one of them or both of them.

thanks again

GameboyRMH 2010-05-18 13:18

Re: [ANNOUNCE] lens cover reminder
 
Hey I got a little problem with this package...

I was just trying to install it and it says it requires libsdl-mixer = 1:1.2.6-5+0m5, but I've manually installed a newer version with OGG and FLAC support (1:1.2.6-5+0m5b1). Is this strict dependency really necessary?

nicolai 2010-05-18 13:54

Re: [ANNOUNCE] lens cover reminder
 
Quote:

Originally Posted by GameboyRMH (Post 664109)
Hey I got a little problem with this package...

I was just trying to install it and it says it requires libsdl-mixer = 1:1.2.6-5+0m5, but I've manually installed a newer version with OGG and FLAC support (1:1.2.6-5+0m5b1). Is this strict dependency really necessary?

Sure we are talking about the same application here?
I am pretty sure my application does not need libsdl-mixer.

nicolai

RafaLL92 2010-05-18 14:19

Re: [ANNOUNCE] lens cover reminder
 
Great idea and works perfectly :)
However for me the vibration 'signal' for open lens is a bit misleading as it is exactly the same as when a text message is received.

I would suggest a simple chang in vibration pattern. Something like two guick vibrations?

GameboyRMH 2010-05-18 14:50

Re: [ANNOUNCE] lens cover reminder
 
Quote:

Originally Posted by nicolai (Post 664170)
Sure we are talking about the same application here?
I am pretty sure my application does not need libsdl-mixer.

nicolai

Oh turns out it depends on mp-fremantle-002-pr which depends on libsdl-mixer (or that's what it says when I try to install it from Extras with apt-get.) It installs fine from the .deb installer.

F2thaK 2010-05-21 07:24

Re: [ANNOUNCE] lens cover reminder
 
any progress nicolai??

nicolai 2010-05-21 07:41

Re: [ANNOUNCE] lens cover reminder
 
Quote:

Originally Posted by f2thak (Post 668834)
any progress nicolai??

On what?


nicolai

Gazzlam 2010-05-21 07:43

Re: [ANNOUNCE] lens cover reminder
 
Quote:

Originally Posted by smoku (Post 656804)
I don't want something to interrupt music listening just because I didn't close the lid. Vibration is enough.

Doesn't activating the camera stop music/video playback anyway?

It does on mine.

nicolai 2010-06-05 23:13

Re: [ANNOUNCE] lens cover reminder
 
Hi,

two weeks since lens-cover-reminder is in extras.
Thank you for testing and voting.

Time for a new version 0.4:
cfh11 asked me to make an application for
this (closing the lens cover to lock the screen).
I put this function in my application.
Some other asked, if I can change the vibration pattern, as it may
be confusing with the incoming message notification. (In fact
I use the same pattern).
And weather I can include a recurrent reminder like a ringtone
every x minutes. (I don't like to include audio reminder).
Instead I added the notifcation light as a reminder.
And to make all this configurable, this version includes a control
panel applet.
You can:
- enable the screenlock function
- select or disable a vibrator pattern and
- select or disable the led notification pattern.

regards
nicolai

F2thaK 2010-06-06 04:19

Re: [ANNOUNCE] lens cover reminder
 
nice one nicolai !!!!

this is what I meant by "any progress"


XD



Is there possibly any way you could make it only lock when you close lens if camera app is open ?? thanks

Saturn 2010-06-06 11:46

Re: [ANNOUNCE] lens cover reminder
 
Tested both .3 and .4 version and haven't seen any issues.

.4 version's features are really nice. In my opinion you're a great programmer. Thanks for sharing.

Berserk 2010-06-06 22:42

Re: [ANNOUNCE] lens cover reminder
 
Nicolai :D

I didn't know you made this, I was very pleased about v0.3 (first version I saw), which I have installed for a while now, this v0.4 is lots better! I like the integrations in Settings, nice that you let us choose lock/rumble/led.

Thanks for this!
And thanks again for your Calendar Home Widget :D

davbost 2010-06-07 01:57

Re: [ANNOUNCE] lens cover reminder
 
Thanks so much Nicolai. Great app!

Aydan 2010-06-08 20:37

Re: [ANNOUNCE] lens cover reminder
 
Hi,

nice app but I noticed that it notifies if the flashlight is on also. Would it be possible to incorporate that notofications are disabled if the flashlight is on?

Thanks
Aydan


All times are GMT. The time now is 13:13.

vBulletin® Version 3.8.8