nokia-n900: The power button suspends the device in i3.
With this patch the power button (the one you use to turn it on) suspends the device.
This should allow to save more energy with respect to just turning the screen off (slider button).
If this MR gets merged, I will write a section on the N900 wiki page
I tested myself on Nokia N900
Merge request reports
Activity
added 1 commit
- ca99aa19 - nokia-n900: fixed error in previous commit
By Federico Amedeo Izzo on 2019-04-11T18:55:10
added 1 commit
- 9f8a2bca - nokia-n900: Fixed error in APKBUILD and missing newline in 10-noroot-suspend
By Federico Amedeo Izzo on 2019-04-11T19:37:48
I know running i3 kinda goes against what most people are used too on a phone anyway, but suspending the device when the power button is pressed will probably cause a lot of confusion. I assume it's suspending like on desktop, so you won't be able to receive calls and sms anymore right? If so, why would you actually want this?
By Bart Ribbers on 2019-04-11T22:29:38
I think this feature is useful to achieve longer battery runtime (several days) on the N900, also at the moment phone calls are not implemented in N900, so the only drawback is that the WiFi connection is lost.
If you would like to keep the WiFi connection active you could still lock the screen with the side slider.
Also because of its position and small shape i think the power button is hard to press by mistake, and at the moment it has no function, so a documented standby function would be better in my opinion.
It is suspend like on a desktop, but in pratice it behaves just like the slider button, with the difference that the device is actually sleeping and not running with the screen off.
Also the same key wakes the device up and it is very fast, so i think it can become intuitive.
By Federico Amedeo Izzo on 2019-04-12T06:57:52
Edited by Administratoradded 14 commits
-
9f8a2bca...eadb6120 - 13 commits from branch
postmarketOS:master
- 81c44d92 - nokia-n900: The power button suspends the device in i3. (!313 (merged))
By Oliver Smith on 2019-04-12T22:49:00
-
9f8a2bca...eadb6120 - 13 commits from branch
I have tested this on a N900, and it works great. As you say, I doubt that the button would be reached by accident. The "boot up" time is roughly two seconds, which is also very nice. After all it's just a standby, and not a suspend-to-disk or something like that (wasn't sure about that initially). This also means that there won't be a problem with full disk encryption.
I'm wondering what you are using the N900 for, so that you benefit from the longer battery life using standby. Can you explain your use case?
I also agree with @PureTryOut regarding that this would be weird once we have phone calls working. But when that feature comes around, we can re-evaluate how to do this - in the meantime, this is pretty useful. Thanks @Nimayer!
By Oliver Smith on 2019-04-13T08:06:26
Edited by Ghost UserThank you for testing and merging this patch @ollieparanoid!
I plan on using my N900 for taking notes and writing a diary, in particular when I'm travelling.
The reason I'm using it instead of a smartphone is the physical keyboard, the less distraction (no apps) and the fact that I can easily synchronize the notes from the N900 to my home server since they are both Linux machines.P.S. I will mention the standby feature on the N900 wiki page!
By Federico Amedeo Izzo on 2019-04-13T08:07:05
Edited by Administrator
added 1 commit
- a9e53bb0 - nokia-n900: The power button suspends the device in i3. (!313 (merged))
By Oliver Smith on 2019-04-12T22:58:49
enabled an automatic merge when the pipeline for a9e53bb0 succeeds
By Oliver Smith on 2019-04-12T22:59:12
mentioned in commit 6b9ef9fd
By Federico Amedeo Izzo on 2019-04-12T23:00:03