maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N810 (https://talk.maemo.org/forumdisplay.php?f=28)
-   -   Automatically lock whenever the N810 light sensor is covered (https://talk.maemo.org/showthread.php?t=19127)

qwerty12 2008-05-24 08:16

Re: Automatically lock whenever the N810 light sensor is covered
 
Reminds me a bit of my W810 turning off the keypad light in bright sunlight (not great for me anymore as I patched it to stay off in dark light anyway :))

maillaxa 2008-05-24 12:45

Re: Automatically lock whenever the N810 light sensor is covered
 
Great app. Thank you.

PinCushionQueen 2008-05-24 14:27

Re: Automatically lock whenever the N810 light sensor is covered
 
Quote:

Originally Posted by twaelti (Post 185397)
I thought about a derivative software of this application:
Once the sensor "senses" bright sunlight, the app could completely reduce the backlight of the N810. This would help conserve energy that would otherwise be wasted (in bright sunlight, the backlight is irrelevant).
Would that make sense or be practical?

Yes that makes sense and would be very practical :D When I'm reading on the bus and it's sunny outside, I usually cover the light sensor with my thumb to dim the screen and save power. The sunlight and the N810's transreflective screen provide all the light I need. Never understood why the screen got brighter in bright sunlight. :confused:

As an aside I've had to remove this app due to a memory leak. With this autolock removed the memory leak is gone. I've switched to using the Keyboard Autolock instead. It works without leaking.

sparkling 2008-05-25 22:13

Re: Automatically lock whenever the N810 light sensor is covered
 
Quote:

Originally Posted by PinCushionQueen (Post 185459)
... switched to using the Keyboard Autolock...

Is this a built-in feature, or another application? I know I can unlock the screen by opening the keyboard, but closing the keyboard does not relock except in the special case where i have not touched the display.

PinCushionQueen 2008-05-26 12:59

Re: Automatically lock whenever the N810 light sensor is covered
 
Quote:

Originally Posted by sparkling (Post 185789)
Is this a built-in feature, or another application? I know I can unlock the screen by opening the keyboard, but closing the keyboard does not relock except in the special case where i have not touched the display.


It's a separate app called Slidelock It just adds the ability to lock the N810 by closing the keyboard and you just use the existing unlock by opening keyboard. If you want the keyboard shut and yet have the tablet unlocked you can still use the little slidy switch on top. :D

I've been using Slidelock for about a month now and have had no problems.

Dusty 2008-06-28 23:22

Re: Automatically lock whenever the N810 light sensor is covered
 
I've released a new version of autolock (0.3). It now works with Diablo. It also displays the enable/disable notifications longer, and should be harder to accidently disable. I have no clue what is causing memory leaks for some people - It doesn't seem to happen on my tablet. I would appreciate if someone with more experience with DBUS could look at my code to see if they can spot a leak. Anyways, it is Works on My Machine certified :)

Dusty 2008-06-29 14:36

Re: Automatically lock whenever the N810 light sensor is covered
 
If anyone downloaded Autolock 0.3 before now, please re-download it; I accidently uploaded an old version last night. The new version is now uploaded. To check your version, run /usr/sbin/autolock -v. (Previous versions will ignore the -v option, so press Ctrl-C to stop it.)

brontide 2008-07-01 17:27

Re: Automatically lock whenever the N810 light sensor is covered
 
Diablo install. Worked until I rebooted it. Also... was there supposed to be a control panel item to control the timeout?

I see it's supposed to start in /etc/rc2.d/ and restarting it manually /etc/init.d/autolock start seems to have fixed the problem.

Dusty 2008-07-01 19:29

Re: Automatically lock whenever the N810 light sensor is covered
 
Thanks - I will fix this shortly.

Meanwhile, run as root:

Code:

update-rc.d -f autolock remove
update-rc.d autolock defaults 99

That should fix it.

I have no interest in adding a timeout (more complexity, little or no benefit). When I am somewhere that is so dark that I keep accidentally triggering Autolock, I either slide the keyboard out (which temporarily disables it) or disable it with the lock slider.

brontide 2008-07-01 19:52

Re: Automatically lock whenever the N810 light sensor is covered
 
Quote:

Originally Posted by Dusty (Post 198217)
Thanks - I will fix this shortly.

Meanwhile, run as root:

Code:

update-rc.d -f autolock remove
update-rc.d autolock defaults 99

That should fix it.

Seems to have worked like a charm. Thanks again


All times are GMT. The time now is 09:14.

vBulletin® Version 3.8.8