![]() |
Re: Automatically lock whenever the N810 light sensor is covered
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. |
Re: Automatically lock whenever the N810 light sensor is covered
Yeah, I barely caught it the first time, and then paid closer attention. The message is only shown for about a second (maybe less).
|
Re: Automatically lock whenever the N810 light sensor is covered
Quote:
|
Re: Automatically lock whenever the N810 light sensor is covered
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. |
Re: Automatically lock whenever the N810 light sensor is covered
Quote:
Code:
cat /sys/bus/i2c/devices/*/lux 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. |
Re: Automatically lock whenever the N810 light sensor is covered
Quote:
|
Re: Automatically lock whenever the N810 light sensor is covered
Quote:
:D |
Re: Automatically lock whenever the N810 light sensor is covered
Not if you had the backlight turned up bright enough...
|
Re: Automatically lock whenever the N810 light sensor is covered
It was a dark and stormy night......
|
Re: Automatically lock whenever the N810 light sensor is covered
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. |
All times are GMT. The time now is 04:09. |
vBulletin® Version 3.8.8