Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    [Announce - #MCCXII] Timenow: Proximity enabled lock screen

    Reply
    Page 8 of 25 | Prev |   6     7   8   9     10   18 | Next | Last
    qwazix | # 71 | 2012-08-22, 08:32 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    qwazix | # 72 | 2012-08-22, 14:58 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 4 Users Say Thank You to qwazix For This Useful Post:
    cantruchd, Estel, foobar, hxka

     
    hxka | # 73 | 2012-08-22, 15:53 | Report

    Originally Posted by qwazix View Post
    Please test and report battery consumption.
    It's about 7 mA. Better, but far from perfect.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by hxka; 2012-08-22 at 15:57.
    The Following 3 Users Say Thank You to hxka For This Useful Post:
    Estel, qwazix, whayong

     
    qwazix | # 74 | 2012-08-22, 16:16 | Report

    I think I can set the polling interval to 200ms or even 500ms, what do you think?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to qwazix For This Useful Post:
    Estel

     
    hxka | # 75 | 2012-08-22, 16:36 | Report

    200ms seems ok. What it is now?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to hxka For This Useful Post:
    qwazix

     
    qwazix | # 76 | 2012-08-22, 18:11 | Report

    100ms ..........

    Edit | Forward | Quote | Quick Reply | Thanks

     
    hxka | # 77 | 2012-08-23, 06:33 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to hxka For This Useful Post:
    qwazix

     
    qwazix | # 78 | 2012-08-23, 10:15 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to qwazix For This Useful Post:
    cantruchd, Estel, hxka

     
    cantruchd | # 79 | 2012-08-24, 10:22 | Report

    Originally Posted by hxka View Post
    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)

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to cantruchd For This Useful Post:
    Estel, qwazix

     
    cantruchd | # 80 | 2012-08-24, 10:36 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to cantruchd For This Useful Post:
    qwazix

     
    Page 8 of 25 | Prev |   6     7   8   9     10   18 | Next | Last
vBulletin® Version 3.8.8
Normal Logout