maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [Announce - #MCCXII] Timenow: Proximity enabled lock screen (https://talk.maemo.org/showthread.php?t=83682)

qwazix 2012-08-22 08:32

Re: [Announce] Proximity enabled idle screen with time [was:turn the screen on programmatically]
 
Indeed source isn't downloadable for a strange reason. I will upload later. As for the power consumption issue I believe the solution proposed by Estel to use proximityd is the way to go, but I have to finish some other things before I dive into it. Any help is of course welcome.

qwazix 2012-08-22 14:58

Re: [Announce] Proximity enabled idle screen with time [was:turn the screen on programmatically]
 
Timenow 0.0.2 should hit devel for real now.

I forgot however to bump the version, but I have changed it to use proximityd. Please test and report battery consumption.

The phone bug is not fixed yet, in fact I may need a little help there. I thought it would be enough to suppress timenow from displaying whenever the screen is both off and locked, but this is not sufficient. What other check should I run?

Checking if phone is running is not ok as it may well be in the background.
Checking if a call is active may be correct, but if the other party has hung up?

Sources are on http:://github.com/qwazix/timenow and hopefully now on the package system

hxka 2012-08-22 15:53

Re: [Announce] Proximity enabled idle screen with time [was:turn the screen on programmatically]
 
Quote:

Originally Posted by qwazix (Post 1254547)
Please test and report battery consumption.

It's about 7 mA. Better, but far from perfect.

qwazix 2012-08-22 16:16

Re: [Announce] Proximity enabled idle screen with time [was:turn the screen on programmatically]
 
I think I can set the polling interval to 200ms or even 500ms, what do you think?

hxka 2012-08-22 16:36

Re: [Announce] Proximity enabled idle screen with time [was:turn the screen on programmatically]
 
200ms seems ok. What it is now?

qwazix 2012-08-22 18:11

Re: [Announce] Proximity enabled idle screen with time [was:turn the screen on programmatically]
 
100ms ..........

hxka 2012-08-23 06:33

Re: [Announce] Proximity enabled idle screen with time [was:turn the screen on programmatically]
 
I'm not a programmer and I don't know how d-bus works, but AFAIK it does not require programs to poll itself and it can notify them if state changed, isn't that true?

qwazix 2012-08-23 10:15

Re: [Announce] Proximity enabled idle screen with time [was:turn the screen on programmatically]
 
Dbus does that, but the proximity sensor doesn't have this ability, so I am using proximityd a daemon written by the author of shortcutd which polls the proximity sensor by default every 100ms (but can be instructed to do so with a custom interval) and sends a signal to dBus, which then in it's turn notifies timenow to do it's thing.

qtMobility has a function to notify on proximity sensor changes but it doesn't seem to work on the N900 (using code that wirks on the N9). There should be a method to do that without polling using GPIO according to joergrw but I admit it's too low level for my taste.

cantruchd 2012-08-24 10:22

Re: [Announce] Proximity enabled idle screen with time [was:turn the screen on programmatically]
 
Quote:

Originally Posted by hxka (Post 1254572)
It's about 7 mA. Better, but far from perfect.

@hxka: 7mA is for timenow only? How did you measure this?

But if this is overall standby discharge then I think this is quite good (the same as my rate without previous version of timenowd)

cantruchd 2012-08-24 10:36

Re: [Announce] Proximity enabled idle screen with time [was:turn the screen on programmatically]
 
Have installed now. proximityd installed as well.

But no time shown on proximity change.What can i do?

@hxka: did it run on you device?


All times are GMT. The time now is 11:23.

vBulletin® Version 3.8.8