Reply
Thread Tools
Posts: 186 | Thanked: 56 times | Joined on Mar 2008
#21
Well, IcelandDreams, if it's any consolation:
My N810 seems to have woken up on its own some time last night, which ultimately killed its battery. At least, that's what I think happened. (Unless my battery is completely messed up, which I hope not).

That Autolock enabled / disabled popup, unfortunately, appears right underneath (depth-wise) the locked / unlocked popup. Libnotify popups should really be stacked so that I can actually read what's going on.

Last edited by Picklesworth; 2008-04-16 at 15:17.
 
Posts: 134 | Thanked: 57 times | Joined on Mar 2008 @ South Bend IN
#22
Yeah, I barely caught it the first time, and then paid closer attention. The message is only shown for about a second (maybe less).
 
PinCushionQueen's Avatar
Posts: 538 | Thanked: 168 times | Joined on Dec 2007 @ Seattle
#23
Originally Posted by Picklesworth View Post
Well, IcelandDreams, if it's any consolation:
My N810 seems to have woken up on its own some time last night, which ultimately killed its battery. At least, that's what I think happened. (Unless my battery is completely messed up, which I hope not).
Sounds like another app - perhaps an alarm or something of the sort woke it up. I don't see how this app could wake it up during the night (unless of course you sleep with the lights on). Also, don't you still have automatic screen off after xx amt of time?
__________________
When you wish upon a star, your dreams really can come true... Unless it's an asteroid hurtling towards earth that will destroy all life.
 
Posts: 1,097 | Thanked: 650 times | Joined on Nov 2007
#24
This is so simple and yet its such a useful and well though out app.

I always thought pressing the hardware button on top would wear it out fast - seems a bit too flaky. Now this option seems perfect and works like a charm.

But one thought here, I often carry the N810 in my shirt pocket and not always in its pouch.
Will sunlight streaming in thru flimsy shirt switch it on again ?

How do i keep it locked after covering the light sensr and then taking my finger off from it and putting it in shirt pocket ? The moment I take the figer off, it seems to come back on.
 
Posts: 227 | Thanked: 53 times | Joined on Feb 2008 @ Lyon, France
#25
Originally Posted by Picklesworth View Post
My N810 seems to have woken up on its own some time last night, which ultimately killed its battery.
I had a similar problem in a dark room this morning: my N810 was inactive and the light sensor uncovered, but I noticed that the N810 sometimes automatically woke up and messages concerning lock/unlock were displayed (fortunately my N810 was on sector during all night). I checked the value of the light sensor with
Code:
cat /sys/bus/i2c/devices/*/lux
and I got 1. So, I suppose that it could sometimes be 0 as well, hence the problem.

IMHO, there should be a way to disable automatic unlocks based on the light sensor, or perhaps to enable them only when the sensor value is above some threshold. And the autolock daemon should ensure that there are no possible lock/unlock cycles when there is no user activity.
 
Posts: 227 | Thanked: 53 times | Joined on Feb 2008 @ Lyon, France
#26
Originally Posted by PinCushionQueen View Post
I don't see how this app could wake it up during the night (unless of course you sleep with the lights on).
If the N810 is close enough to a window, external lights can be sufficient to make the sensor value different from 0, and this could happen several times during the night (e.g. car lights, the moonlight which could change due to clouds and wind, etc.), though I haven't tried.
 
Posts: 1,097 | Thanked: 650 times | Joined on Nov 2007
#27
Originally Posted by vinc17 View Post
If the N810 is close enough to a window, external lights can be sufficient to make the sensor value different from 0, and this could happen several times during the night (e.g. car lights, the moonlight which could change due to clouds and wind, etc.), though I haven't tried.
But once the car passed away or the moon was shrouded up by the dark ominous night clouds, and the wind stopped howling like mad, and the night went back to its peaceful slumber, wouldn't the N810 go back to sleep like a child again ?
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#28
Not if you had the backlight turned up bright enough...
 
IcelandDreams's Avatar
Posts: 228 | Thanked: 30 times | Joined on Mar 2008 @ Ontario & Iceland
#29
It was a dark and stormy night......
 
Posts: 16 | Thanked: 25 times | Joined on Dec 2005
#30
Wow. A lot of discussion over my simple program

Thanks for the suggestions. I thought about adding something to prevent quick lock/unlock cycles, but it didn't seem worth it, as I didn't have any trouble with it, and it might not lock/unlock when you want it too (when slipping the NIT out too check the weather quickly). Right now it also turns the screen on when uncovered - maybe that wasn't a good idea.

The program was designed for people (me) who put the NIT in a thick cover (like the one that comes with it) when not using it - the light sensor reads 0 lux in all but direct sunlight when in the gray cover.

I also suggest anyone that uses it read the web page or check the source code (it's short).

There's two ways to disable autolock: either use the lock button or slide out the keyboard.

I consciously tried to avoid any configuration options to make it easy to use.

I also hope it works as a proof of concept to Nokia, so they include something like it in later OSs.

Last edited by Dusty; 2008-04-17 at 17:59.
 

The Following 10 Users Say Thank You to Dusty For This Useful Post:
Reply

Tags
autolock, light sensor


 
Forum Jump


All times are GMT. The time now is 07:00.