Skip to content
Snippets Groups Projects

nokia-n900: The power button suspends the device in i3.

Merged Imported Administrator requested to merge feature/n900-suspend into master
1 unresolved thread

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

Edited by Administrator

Merge request reports

Merged by AdministratorAdministrator 5 years ago (Apr 12, 2019 11:00pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Administrator added 1 commit · Imported

    added 1 commit

    • ca99aa19 - nokia-n900: fixed error in previous commit

    Compare with previous version

    By Federico Amedeo Izzo on 2019-04-11T18:55:10

  • Administrator changed the description · Imported

    changed the description

    By Federico Amedeo Izzo on 2019-04-11T18:55:24

  • Administrator marked as a Work In Progress · Imported

    marked as a Work In Progress

    By Federico Amedeo Izzo on 2019-04-11T19:06:48

  • Administrator added 1 commit · Imported

    added 1 commit

    • 9f8a2bca - nokia-n900: Fixed error in APKBUILD and missing newline in 10-noroot-suspend

    Compare with previous version

    By Federico Amedeo Izzo on 2019-04-11T19:37:48

  • Administrator changed the description · Imported

    changed the description

    By Federico Amedeo Izzo on 2019-04-11T19:58:34

  • Administrator unmarked as a Work In Progress · Imported

    unmarked as a Work In Progress

    By Federico Amedeo Izzo on 2019-04-11T19:59:02

  • Author Owner

    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

  • Author Owner

    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 Administrator
  • Administrator added 14 commits · Imported

    added 14 commits

    Compare with previous version

    By Oliver Smith on 2019-04-12T22:49:00

  • Administrator approved this merge request · Imported

    approved this merge request

    By Oliver Smith on 2019-04-12T22:50:44

    • Author Owner

      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! :tada:

      By Oliver Smith on 2019-04-13T08:06:26

      Edited by Ghost User
    • Author Owner

      Thank 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
    • Author Owner

      That is a nice use case! With git and a console based editor, I assume?

      By Oliver Smith on 2019-04-15T18:16:43

    • Please register or sign in to reply
  • Administrator added 1 commit · Imported

    added 1 commit

    Compare with previous version

    By Oliver Smith on 2019-04-12T22:58:49

  • Administrator approved this merge request · Imported

    approved this merge request

    By Oliver Smith on 2019-04-12T22:59:09

  • Administrator enabled an automatic merge when the pipeline for a9e53bb0 succeeds · Imported

    enabled an automatic merge when the pipeline for a9e53bb0 succeeds

    By Oliver Smith on 2019-04-12T22:59:12

  • Administrator merged · Imported

    merged

    By Oliver Smith on 2019-04-12T23:00:03

  • Administrator mentioned in commit 6b9ef9fd · Imported

    mentioned in commit 6b9ef9fd

    By Federico Amedeo Izzo on 2019-04-12T23:00:03

Please register or sign in to reply
Loading