maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2007 / Maemo 3 / Bora (https://talk.maemo.org/forumdisplay.php?f=23)
-   -   Screen lock/suspend mode? (https://talk.maemo.org/showthread.php?t=4966)

freeman 2007-02-27 08:31

Screen lock/suspend mode?
 
I'm more frustrated w/ the n800 every day. In the old day, the nokia 770, I fliped the case over, and boom, screen lock& suspend mode all in one. On N800, I usually lock the screen every after use eg: hit power button follow by the square button, still it doesn't put the n800 into suspend(sleep) mode. I thrown(not literally) the n800 right into my DSlite case. And some time, after I picked up the n800 out of the case, the system ran out of the battery because it didn't go to sleep. I wonder if anyone have a hack that if I hit the sequence keys(power follow by square) and it put the unit into sleep+screenlock. Then I don't have to worry about the key or screen being press(sqeezed) in the case before it went to sleep.

TA-t3 2007-02-27 10:37

Re: Screen lock/suspend mode?
 
If you configure the device to not automatically try to connect to wi-fi then the two-button screenlock mode is equivalent to what you think of as 'sleep' mode of the 770. There is no sleep mode, just very efficient power saving and it goes on all the time.
Another thing (and this is reported as a bug on buzilla) is that you must also configure the two timeouts (you find them in the screen setting IIRC in the control panel) to be the same value.

schmots 2007-02-27 13:11

Re: Screen lock/suspend mode?
 
Quote:

Originally Posted by TA-t3 (Post 36759)
(you find them in the screen setting IIRC in the control panel) to be the same value.

Correct.

I actually put my device into offline mode then lock mode. Whole process takes 2 maybe 3 seconds. I charge my battery every few days mainly because I am pretty heavy user.. if its not the net, or an ebook, its hacking in something new on the dual boot.

freeman 2007-02-27 17:48

Re: Screen lock/suspend mode?
 
Quote:

Originally Posted by TA-t3 (Post 36759)
If you configure the device to not automatically try to connect to wi-fi then the two-button screenlock mode is equivalent to what you think of as 'sleep' mode of the 770. There is no sleep mode, just very efficient power saving and it goes on all the time.
Another thing (and this is reported as a bug on buzilla) is that you must also configure the two timeouts (you find them in the screen setting IIRC in the control panel) to be the same value.

You missed my point. What I tired to say is, if I hit the combo key, I want the unit to screen/button lock and power off the screen, if I touch the screen it will not power on and tell me how to unlock the unit unless I start with the power button. On the other hand, if the screen brightness time out and screenlock time out, leave them as usual.

schmots 2007-02-27 18:25

Re: Screen lock/suspend mode?
 
Quote:

Originally Posted by freeman (Post 36844)
You missed my point. What I tired to say is, if I hit the combo key, I want the unit to screen/button lock and power off the screen, if I touch the screen it will not power on and tell me how to unlock the unit unless I start with the power button. On the other hand, if the screen brightness time out and screenlock time out, leave them as usual.

I am sorry, I don't understand what your trying to say.. your comes back on when you hit the screen? Then you didn't set the time outs to be equal.. if you do, then only the power button allows unlock.

TA-t3 2007-02-27 18:45

Re: Screen lock/suspend mode?
 
freeman: As schmots said. See my earlier posting. The timeouts must be equal.

w14 2007-02-27 18:55

Re: Screen lock/suspend mode?
 
Also, as far as I can see, you have to lock the device from the home screen. If you lock the device when viewing another app, the screen continues to respond to taps.

edit: ignore me ... I'm talking bollocks. It seems to be a bit inconsistent in its behaviour sometimes! ;o)

9a6or 2007-02-27 19:40

Re: Screen lock/suspend mode?
 
This might be the answer you are looking for:
http://www.internettablettalk.com/fo...ead.php?t=4625

(Long push on the power button switches off the LCD and the touchscreen, until you push long again.)

Karel Jansens 2007-02-27 20:26

Re: Screen lock/suspend mode?
 
Quote:

Originally Posted by freeman (Post 36844)
You missed my point. What I tired to say is, if I hit the combo key, I want the unit to screen/button lock and power off the screen, if I touch the screen it will not power on and tell me how to unlock the unit unless I start with the power button. On the other hand, if the screen brightness time out and screenlock time out, leave them as usual.

There is a thread on how to reconfigure the power key so that a long keypress invokes the "softpoweroff" state (which is not mentioned on the power menu, but is a valid option). If you enter the terms "longkeypress" and "softpoweroff" in the search box, it's the only thread that'll show up. Just browse for the instructions.

For all intents and purposes, setting longkeypress to softpoweroff gives you the same result on the N800 as sliding the cover over the 770, minus the fact that on the N800 network connections are not automatically shut down, but you can always set their timeout to a low value if you're concerned about the minimal power drain.

In any case, I found that, after setting WLAN power to 10mA, the effect of an open WLAN connection on the N800's battery life is negligeable.

schmots 2007-02-27 20:39

Re: Screen lock/suspend mode?
 
I did wonder about one thing.. what about bluetooth.. You can set wireless to timeout after 5 minutes (if you don't set it to auto scan), but what about bluetooth? I use my keyboard a lot, but when I have it locked I want that off too.

I post to this thread because its currently active

Karel Jansens 2007-02-27 20:55

Re: Screen lock/suspend mode?
 
Quote:

Originally Posted by schmots (Post 36904)
I did wonder about one thing.. what about bluetooth.. You can set wireless to timeout after 5 minutes (if you don't set it to auto scan), but what about bluetooth? I use my keyboard a lot, but when I have it locked I want that off too.

I post to this thread because its currently active

The Bluetooth plugin is incredibly badly implemented on the N800 -- probably because Nokia thought they could improve on the excellent community-developed BT applet on the 770.

The result was -- in hindsight predictably -- disastrous: on the 770 you could turn off BT and the applet would grey out, but stay on the menu bar of the home screen. On the N800, if you turn off BT, you have to go through Control Panel every freakin' time to turn it back on again.

Way to go, Nokia. Idjits!

schmots 2007-02-27 21:02

Re: Screen lock/suspend mode?
 
That blows.. but thanks for letting me know.

Looks like for me its still faster to go offline mode then lock screen and keys. What does softpoweroff buy me over that?

Karel Jansens 2007-02-27 21:16

Re: Screen lock/suspend mode?
 
Quote:

Originally Posted by schmots (Post 36918)
That blows.. but thanks for letting me know.

Looks like for me its still faster to go offline mode then lock screen and keys. What does softpoweroff buy me over that?

screen blacks out and locks immediately (well, it does on my tablet; see the bug on different timeouts). The two-button shutdown has a strange quirk: if I play a movie and shut down via the menu (powerkey, enter key), my screen will not black out completely and will not lock. The tablet needs a certain amount of time to sort itself out before the menu-standby will work again. I don't get this with softpoweroff.

Also, powering up the device doesn't need two keypresses, just the long keypress on the power key.

schmots 2007-02-27 21:24

Re: Screen lock/suspend mode?
 
Gotcha.. so maybe offline mode, long press (softpower off)

Karel Jansens 2007-02-27 21:45

Re: Screen lock/suspend mode?
 
Quote:

Originally Posted by schmots (Post 36923)
Gotcha.. so maybe offline mode, long press (softpower off)

No! The default action linked to [longkeypress] of the powerkey is shutdown. You have to edit a configuration file to give it the softpoweroff action.

Please see the thread I hinted at earlier.

9a6or 2007-02-27 22:45

Re: Screen lock/suspend mode?
 
I gave a link to the "softpoweroff" thread a few entries back (on page 1 of this thread)...

Karel Jansens 2007-02-27 22:50

Re: Screen lock/suspend mode?
 
Quote:

Originally Posted by 9a6or (Post 36943)
I gave a link to the "softpoweroff" thread a few entries back (on page 1 of this thread)...

Yeah, I'm always slow. :o

schmots 2007-02-27 23:31

Re: Screen lock/suspend mode?
 
oh yeah, I know to edit the file

freeman 2007-02-28 05:28

Re: Screen lock/suspend mode?
 
Sorry, for the late response, I work the late shift. Yes I know about the 2 timer settings that have to be equal, but that is not the point. Let's say I read e-mail/rss, it's okey for the system top drop the brightness w/o turning off the screen when it time out. But if I hit the power combo buttons, that mean mean I did that on purpose, I want to put it away, and therefore it make more sense to pretty much shut everything down w/o powering off. While letting it timeout doesn't neccessary mean you want to put the unit away. That's why the two settings shouldn't be the same, but there should be a shortcut key to do what the 770 does when the cover is on.

Milhouse 2007-02-28 05:46

Re: Screen lock/suspend mode?
 
Quote:

Originally Posted by freeman (Post 36993)
That's why the two settings shouldn't be the same, but there should be a shortcut key to do what the 770 does when the cover is on.

You might want to add a comment or vote for bug #943 in that case.

TA-t3 2007-02-28 12:02

Re: Screen lock/suspend mode?
 
Quote:

Originally Posted by freeman (Post 36993)
Sorry, for the late response, I work the late shift. Yes I know about the 2 timer settings that have to be equal, but that is not the point. Let's say I read e-mail/rss, it's okey for the system top drop the brightness w/o turning off the screen when it time out. But if I hit the power combo buttons, that mean mean I did that on purpose, I want to put it away, and therefore it make more sense to pretty much shut everything down w/o powering off. While letting it timeout doesn't neccessary mean you want to put the unit away. That's why the two settings shouldn't be the same, but there should be a shortcut key to do what the 770 does when the cover is on.

So the short version is that you're _only_ talking about the bug (well, considered enough of a bug that it's been reported as one long ago already) with the timeout settings having to be equal? Or am I missing something?

freeman 2007-02-28 17:25

Re: Screen lock/suspend mode?
 
Quote:

Originally Posted by TA-t3 (Post 37010)
So the short version is that you're _only_ talking about the bug (well, considered enough of a bug that it's been reported as one long ago already) with the timeout settings having to be equal? Or am I missing something?

NO, what I'm saying is that the setting is still valid, it could be equal or independent as they want, but there should be another setting in the menu that pretty much turn the unit into deep sleep.

TA-t3 2007-02-28 18:06

Re: Screen lock/suspend mode?
 
Well, with the two timeouts set equal, and wi-fi turned off, then pressing those two buttons is as much deep sleep as you can get, certainly as much as you got with the 770 case mechanism. I bet the 770 wouldn't last more than 10 days in that mode either.

freeman 2007-03-03 06:23

Re: Screen lock/suspend mode?
 
Updated issue, well, got myself into another problem again.
Sometime, when I wake the unit up from the "softpoweroff", the system doesn't recognize any of the buttons on the left, which mean I can't get back into the system, and I cannot turn it off again. And if I remove the battery, it will corrupt the /home directory. What's the your workaround?

Xyzo 2007-03-03 13:07

Re: Screen lock/suspend mode?
 
HI!

Interesting thread IMO. I've applied the softpoweroff trick for a while but I've noticed that when I (long)press the power on/off button, the screen switch off (no problem!) but then immediately switch on for less than 1 sec. to re-switch off by itself :-/ Anyone having noticed the same?

TIA.

Karel Jansens 2007-03-03 13:44

Re: Screen lock/suspend mode?
 
Quote:

Originally Posted by Xyzo (Post 37482)
HI!

Interesting thread IMO. I've applied the softpoweroff trick for a while but I've noticed that when I (long)press the power on/off button, the screen switch off (no problem!) but then immediately switch on for less than 1 sec. to re-switch off by itself :-/ Anyone having noticed the same?

TIA.

Yep, me. It generally goes away after some time, or after a reboot. I think it's related to the crappiness of the Media Player.

mve 2007-03-03 13:51

Re: Screen lock/suspend mode?
 
Quote:

Originally Posted by freeman (Post 37461)
Updated issue, well, got myself into another problem again.
Sometime, when I wake the unit up from the "softpoweroff", the system doesn't recognize any of the buttons on the left, which mean I can't get back into the system, and I cannot turn it off again. And if I remove the battery, it will corrupt the /home directory. What's the your workaround?

If I pop out camera, it seems to reset button lock.

heavyt 2007-03-03 14:03

Re: Screen lock/suspend mode?
 
Quote:

Originally Posted by mve (Post 37485)
If I pop out camera, it seems to reset button lock.

I have been having the same problem a few times, will keep your camera trick in mind.

mbm 2007-03-04 09:59

Re: Screen lock/suspend mode?
 
wrote a quickk script to do a real suspend when the screen turns off
http://mbm.openwrt.org/n800/suspend.sh

9a6or 2007-03-04 11:19

Re: Screen lock/suspend mode?
 
Quote:

Originally Posted by Xyzo (Post 37482)
...but then immediately switch on for less than 1 sec. to re-switch off by itself :-/ Anyone having noticed the same?

Yes, I think I reported the same thing first in this thread. This happens only if I release the power button close to the 1000ms (or whatever is specified in the file). My solution is to keep it pushed for a bit longer and this prevents the brief comeback of the screen.

Xyzo 2007-03-04 13:32

Re: Screen lock/suspend mode?
 
Quote:

Originally Posted by 9a6or (Post 37585)
Yes, I think I reported the same thing first in this thread. This happens only if I release the power button close to the 1000ms (or whatever is specified in the file). My solution is to keep it pushed for a bit longer and this prevents the brief comeback of the screen.

Thank you! I'll try this.

z2n 2008-03-03 16:31

Re: Screen lock/suspend mode?
 
Quote:

Originally Posted by mbm (Post 37580)
wrote a quickk script to do a real suspend when the screen turns off
http://mbm.openwrt.org/n800/suspend.sh

Hmmm...I've just tried your script (v.1.3) on my N810 (running Chinook 2007-50.2). It seems to suspend the tablet just fine, and pressing the power (|) key reactivates the display. Unfortunately, after suspending, all other keys--the hardware keyboard, the D-pad, the Menu button, the Home and Escape buttons--are disabled. After pressing the power button, I can tap on the screen, but cannot do anything else.

Since I ran suspend.sh from a full-screen X-terminal window, I cannot close the window or change to another application, so I'm forced to reboot.

Have you seen this kind of behavior, and do you know of a fix or other method for suspending the tablet?

Karel Jansens 2008-03-03 18:29

Re: Screen lock/suspend mode?
 
Quote:

Originally Posted by 9a6or (Post 37585)
Yes, I think I reported the same thing first in this thread. This happens only if I release the power button close to the 1000ms (or whatever is specified in the file). My solution is to keep it pushed for a bit longer and this prevents the brief comeback of the screen.

<Pedantic remark warning!!>

The Itablets recognize three types of presses on the ON/OFF button: shortkeypress, mediumkeypress and longkeypress. I'd advize not to mess too much with the mediumkeypress timing; weird things tend to happen...

iamthewalrus 2008-03-03 19:26

Re: Screen lock/suspend mode?
 
I fixed this problem by installing powerlaunch. Now I can set it to sleep and wake it up with the power button . I'm using a n800 with os2008, don't know if it works with os2007. Got the deb from this thread. The maker of powerlaunch posted some info there as well.

cool_guy 2008-04-09 00:03

Re: Screen lock/suspend mode?
 
MAJOR ISSUE:
1) The clock gets suspedet as well. I found that the clock shows the same time as before suspend.
2) Looks like usb has problems. couldn't mount neither sd card. something did show up with n800 or nokia in the name but not mountable, fixed with reboot.

Question: How come people chaarge iit only every couple days but my device barelly survives a day?
Background:
I chargee during the day if use a lott or have to avoid using it if I know I won't havve power till evening.
I've increased battery live by disabling metacrawler (hack).
Leaving programs (like dictinary and browser) open drains power even when not inn use.
Swap sems to cause more power consumtion also.
Even bright screen is a luctury which I can't afford.
I read that things likke wifi don't use much power because of the excellent power saving (10 days when idle 7h when in use).
But that doesn't seem true at all!

Benson 2008-04-09 01:22

Re: Screen lock/suspend mode?
 
I charge it every day; but I use it at least 5 hours a day. And I charge all the time, just in case.
WiFi doesn't use much power, if you leave it connected to a stable connection, doing nothing. Connection drops and subsequent scans are bad, so make sure you have it set not to scan automatically. Are you running the RSS reader? it's said to be bad.

cool_guy 2008-04-09 12:15

Re: Screen lock/suspend mode?
 
Thanks benson. Maybe I'm just a really heavy user. It is my main computer right now.

Is gtalk take much power? It is trying to reconnect most of the time because it looses connection to the account (wi-fi is fine and stable).

Anything can be done about time stopping in suspend? It is really usefull feature when I know i'm not going to use the tablet for a while but I can't set clock every time i use it.

cool_guy 2008-04-09 18:12

Re: Screen lock/suspend mode?
 
The problems turns out is that system time is not updated but harware time is fine.
This can be fixed by syncing system time to hwclock. on n800 it is donnee using:
/mnt/initfs/usr/bin/retutime --system-from-rtc

Adding the line to suspend.sh solves that problem.

cool_guy 2008-04-10 07:15

Re: Screen lock/suspend mode?
 
I'd like to swithch the power button actions around, i.e.:
long key press - call menu
short key press - softpoweroff

It was easy in the original nokia's system but it doesn't lock keys.
In the powerlaunch I'm not sure about syntax.

The idea is to put device to softpoweroff as powerlaunch doess (and suspend if script runing) on single short key press and get it back the same way. If I need the menu I keep the button down longer.

On the other hand it would be satisfactory if the power menu would stop from reapearing after going back from softpoweroff

cool_guy 2008-04-10 08:03

Re: Screen lock/suspend mode?
 
alternatively it would sufficient to stop the power menu from reapering after returning frrom softpoweeroff whenn using powerrlaunch


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

vBulletin® Version 3.8.8