![]() |
n800-s2ram ? What is this ?
I was just on the maemo garage web page and saw a new project with already released files - n800-s2ram. Has anybody heard something about this project? What exactly does this do? I want to install it but I have to be sure first if this is of any kind of importance.
|
Re: n800-s2ram ? What is this ?
Description says: suspend to ram. Doesn't work for me.
|
Re: n800-s2ram ? What is thttp://www.internettablettalk.com/forums/newreply.php?his ?
Quote:
|
Re: n800-s2ram ? What is this ?
|
Re: n800-s2ram ? What is this ?
Quote:
|
Re: n800-s2ram ? What is thttp://www.internettablettalk.com/forums/newreply.php?his ?
|
Re: n800-s2ram ? What is this ?
If it was working - probably.
|
Re: n800-s2ram ? What is this ?
This one works for me great, diablo shipped stock kernel. using ftd to do this would wake up my tablet after 10 secs
|
Re: n800-s2ram ? What is this ?
I'm not with Diablo shipped kernel. Hell I'm not with shipped Diablo even :)
|
Re: n800-s2ram ? What is this ?
I believe [some] suspend to ram support was added in the diablo kernel based on my observations :)
|
Re: n800-s2ram ? What is this ?
Well. Suddenly I've faced with this thread.
1) There is no s2ram built into Diablo. All things are the same as in Chinook. Only when screen rotates, the keypad rotates too :) 2) 3rd release (1.0.2) - now it works, test it. I left my n800 for a night, no charge leaked. But time was the same as before sleeping. I'll add system time recovery when stop sleeping. 3) By this moment you can not control whether to s2ram or simply block t.s. and k.p. I'll think about how to implement this feature. |
Re: n800-s2ram ? What is this ?
1.0.4 works well. I've written code for time correction after wakeup. And there are two symlinks n800-s2ram-start/n800-s2ram-start to control if daemon should watch when you block a device.
You should shortcut n800-s2ram-start / n800-s2ram-start commands somewhere. I myself placed them into osso-statusbar-cpu applet. |
Re: n800-s2ram ? What is this ?
If this works well, and you get a stable release, do you think uploading to extras-devel would be worthwhile?
|
Re: n800-s2ram ? What is this ?
I've not done this yet before. It will occupy some time, I think.
|
Re: n800-s2ram ? What is this ?
Is there a reason why this is flagged for n800 only? Can i safely try it on n810?
|
Re: n800-s2ram ? What is this ?
Yes. You can try it. May be LED blinking will be disabled. And may be it will not detect when touchscreen and keypad are locked. But I think all will work on n810 too. Test it and write me if it works ok.
|
Re: n800-s2ram ? What is this ?
OK I'll be trying it out. If it works on the n810 too the project name should be changed IMO.
After install I got this error: killall: n800-s2ram: no process killed I rebooted my NIT and now its stuck during boot screen doing nothing... not sure if its related to s2ram though. |
Re: n800-s2ram ? What is this ?
It works fine for me and the battery life is much longer with this.
|
Re: n800-s2ram ? What is this ?
Quote:
As to stuck during boot screen, I got the same thing in Diablo. It seems to happen while I reboot my tablet. Earlier versions (<1.0.6) eventually freezed tablet due to watchdog, reboot needed. Version 1.0.7 has been running on my n800 for 4 days, no issues. So, if you have n810, you should draw attention at the following things: 1) Whether tablet comes to a sleep-to-ram state in few seconds after blocking keypad and screen (by pinging it). It happens when light goes down to zero level. 2) Whether LED is blinking while sleep (it is hardware PWM controller, no CPU involved). |
Re: n800-s2ram ? What is this ?
Okay then maybe hide the error, or solve this matter in a prettier way?
I have 1.0.7 installed. Somehow it was able to boot again. Don't know why. Later I put it off and on again, and rebooted even. All was well. /etc/n800-s2ram.cfg says '1' So with this now installed, and then locking touch screen & keys, the device should suspend itself to RAM? I think it is working because after the light goes off I'm not able to ping it anymore. I can unlock it but this doesn't function. Tapping does nothing. The ambient light is still blinking (maybe it should be put off, or make be red for this current state?). I just send myself an e-mail and Modest shouldn't detect this e-mail because it doesn't have a network connection. Is it really working? Is it this easy and 'transparent'? If yes, might be great to have included in extras! (After it has a more accurate name?) (I have autolock installed as well.) |
Re: n800-s2ram ? What is this ?
Is anyone using this with Powerlaunch? (0.8.4)
It caused my N800 to reboot when I attempted to unlock. With an earlier version of Powerlaunch (0.7.0), it seemed to work, but the LED continued blinking after unlock, I ended up restarting powerd to make it stop. |
Re: n800-s2ram ? What is this ?
Nope, I removed Powerlaunch, it was too powerful for me :) I've simply removed the commented out lines in /etc/systemui/systemui.xml which gave me the options on my NIT I wanted.
|
Re: n800-s2ram ? What is this ?
>Somehow it was able to boot again. Don't know why.
I see, you have Diablo (because of Modest). I suspect Diablo in booting fault (I even had to reflash it). >/etc/n800-s2ram.cfg says '1' - it means that daemon watching when you lock the device. It is convenient to shortcut n800-s2ran-start / n800-s2ran-start commands, they change 1/0 in /etc/n800-s2ram.cfg >I can unlock it but this doesn't function. Tapping does nothing. What do you mean? Ping doesn't continue? Or touchscreen is not react? I unlock in usual way (power button, then joystick button which mapped as <space>) and touchscreen works. >...because it doesn't have a network connection. Yes, I see that connection sometimes does not re-enabled automatically. I just enable it "by hands". I'll find out how to send d-bus messages to re-enable connection. >The ambient light is still blinking (maybe it should be put off, or make be red for this current state?). On my N800 it stops to blink. So, I even didn't think about it.Well, I'll put a chunk of code to disable blinking. And the last one. Did you locked it for more than one minute? Because I kick a watchdog every minute lest it will shutdown NIT. On my n800 watchdog kicked properly, and it slept for day and night. |
Re: n800-s2ram ? What is this ?
Yes, Diablo.
I don't think I want to disable s2ram if it just works so I don't need these symlinks and such. However last night I forgot to switch off the device and when I woke up it was off. I put in charcher, and again the strange boot problems so I'm again with the problem of not being able to boot. I let my battery becoming completely full now. Previous time I did that, and magically the device booted up. No clue if that is what solved it though. Yes, I locked it more than a minute, If I'm able to boot my device again (without reflashing), I'll do s2ram before I go sleep (won't forget it again) and let you know here how it went this time. |
Re: n800-s2ram ? What is this ?
I released 1.0.8 (disabled blinking after wakeup), and then I eventually discovered that it really doesn't sleep :(
don't use it. |
Re: n800-s2ram ? What is this ?
Quote:
That's why I made these symlinks. |
Re: n800-s2ram ? What is this ?
Hmm but does it automagically s2ram? Or only when I lock? So for example, it would perform s2ram with autolock?
I guess WOL doesn't really have anything to say in this situation. I've solved the problem again in the same fashion as I did before: let battery load till it is full, disconnect the charger, boot. 1st time it hangs. Then boot again, then it somehow works. Don't ask me why... Right now the device is off power, blinking LED, s2ram'ed (AFAIK?!). Fixing the connection to its state before it went s2ram might be nice... don't know... the device might have moved to a place where that connection isn't available...? PS: Approx every minute the screen lights up a bit to a very dark screen. Is this related to the watchdog you talk about? |
Re: n800-s2ram ? What is this ?
I don't want to discourage experimentation, in fact it's really cool to see such projects, if nothing else because they promote knowledge of runtime embedded power management.
However I have a question: did anybody measure the increased battery lifetime with this mod? If not, the first step would be to check how many days a specific unit (pair device-battery) lasts with the stock idle power saving and stock image, and then how long the same unit can live in idle with s2ram. When i say idle, i really mean it, no usage at all, so this is probably for somebody with a spare / old unit. |
Re: n800-s2ram ? What is this ?
Hmm odd, after a suspend I couldn't use my onboard keyboard anymore... I've rebooted it. Now it is stuck again. I'll try to reproduce this.
|
Re: n800-s2ram ? What is this ?
yes, autolock "supported", because it waits for two conditions: a) screen brightness==0, b) touchscreen is locked.
My n800 does not turn backlight on when alarm awakes it in 1 minute in order to kick 63-second watchdog. In two weeks I'll get bt-keyboard and test it. But, as to bt-GPS (globalsat bt-338), it works normally: maemo-mapper asks to reconnect and it is reconnected, if bt-gps is turned on. It seems, n800 and n810 are different slightly from each other (for example, I heard about colors in keypad leds). I'll read about it over internet. In 1.0.9 (yes, it works, not hangs, I tested several times.) contains code to switch-off blinking, and symlink to n800-s2ram-batt which shows charger and battery voltages, battery percentage and temperature as well as timestamps. |
Re: n800-s2ram ? What is this ?
Still trying to avoid seldom hangs. 1.0.10 - test it. May be better to restore wifi connection.
|
Re: n800-s2ram ? What is this ?
Is it possible to add suspend to power button menu instead of lock button?
I like listen music via a2dp. Tablet should be locked because I put it into pocket. Then If I lock tablet with power connected screen doesn't turn off. I test 1.0.10: CPU utilization n810-s2ram > 90% Thank you. |
Re: n800-s2ram ? What is this ?
Right now I really bricked it :rolleyes:
I'll give it a few retries, but I already tried my previous trick and it didn't work. With the battery hanging lose in it I'm throwing the towel in the ring... IOW another reflash :D ...and although last night I thought about giving up I'm changing my mind due to your recent versions. IMO this feature is essential for a device like this. I was surprised to learn it was missing when I first got my N810. Thanks for the great work! |
Re: n800-s2ram ? What is this ?
ough. 1.0.10 is really ****. I had to remove battery. I'm deep-thinking. There's no place where daemon could hang, but it sometimes hangs ant uses all CPU time.
|
Re: n800-s2ram ? What is this ?
Which version is the most safe?
|
Re: n800-s2ram ? What is this ?
Now I'm testing 11.
|
Re: n800-s2ram ? What is this ?
Sorry, I might have attributed the reflashing debacle to n800-s2ram while it was due to a different program. I'll be more than happy to try the next testing n800-s2ram!
|
Re: n800-s2ram ? What is this ?
I tested 1.0.11.Works fine.
Thank you. Is it possible to add suspend to power button menu instead of lock button? I like listen music via a2dp. Tablet should be locked because I put it into pocket. Now lock button suspend tablet. |
Re: n800-s2ram ? What is this ?
Quote:
|
Re: n800-s2ram ? What is this ?
Quote:
s2ram project is indeed cool but there are only some use cases where this is really useful. 1. you really want to save battery when somewhere in the desert with no electricity 2. you are running buggy software on the background which eats CPU Since case 2 is quite frequent it really makes sense to have some sort of real device suspend. BTW, writing kernel thread that kicks watchdog (without waking up userspace) could be interesting (but dangerous). |
All times are GMT. The time now is 05:55. |
vBulletin® Version 3.8.8