• Recent
    • Docs
    • Github
    • 百度网盘
    • Onedrive
    • Official
    • Shop
    • Register
    • Login

    is there a available kernel with hibernate mode enabled to allow for faster booting?

    Scheduled Pinned Locked Moved Pi 4B
    14 Posts 2 Posters 434 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      zensation
      last edited by

      if no, Can someone build a kernel with power management enabled via swap partition or swap file? Is it possible to put the cool pi 4b into suspend or hibernate mode?

      G 1 Reply Last reply Reply Quote 0
      • G
        george @zensation
        last edited by

        @zensation The latest kernel currently supports sleep mode. Please describe the specific operating scenarios required.

        Z 1 Reply Last reply Reply Quote 0
        • Z
          zensation @george
          last edited by

          @george is the new kernel used in the ubuntu 23.04 image? I have tried the ubuntu 22.04 image and the 23.04 image but when i run $ cat /sys/power/state it returns "freeze mem" not "freeze mem disk" indicating that theres no kernel level support for actually saving the ram swap to the disk to reboot from.

          G 1 Reply Last reply Reply Quote 0
          • G
            george @zensation
            last edited by

            @zensation At present, when the machine enters suspend mode, all power supplies in the system will be turned off, and only the memory self refresh function will be retained. Currently, there is no support for exporting the memory data you described to the hard drive.

            Z 1 Reply Last reply Reply Quote 0
            • Z
              zensation @george
              last edited by

              @george when i sett the power button to suspend mode and press it, it reboots the board it doesnt actually suspend it. tried changing the systemd sleep file as well with the same results in every case. I think its sufficient to say that currently it does not actually support suspend mode. at least not ubuntu. have you tried any of the other images?

              G 1 Reply Last reply Reply Quote 0
              • G
                george @zensation
                last edited by

                @zensation The latest images can support suspend operations, including ubuntu. Are you using CP4 or CM5

                Z 1 Reply Last reply Reply Quote 0
                • Z
                  zensation @george
                  last edited by

                  @george im on cp4b. any tips on making it work? since the power button just reboots even though i have it set to suspend function.

                  G 1 Reply Last reply Reply Quote 0
                  • G
                    george @zensation
                    last edited by

                    @zensation I will confirm the CP4 machine and reply to you with the results later.

                    Z 2 Replies Last reply Reply Quote 0
                    • Z
                      zensation @george
                      last edited by

                      @george thanks!

                      G 1 Reply Last reply Reply Quote 0
                      • Z
                        zensation @george
                        last edited by

                        @george also can you test on the latest ubuntu 22.04 release as well? The software im developing is having issues on ubuntu 23.04 but works well on 22.04

                        1 Reply Last reply Reply Quote 0
                        • G
                          george @zensation
                          last edited by

                          @zensation
                          I tested the latest image of ubuntu22.04 and did not find the problem you described. As shown in the following figure, the PWR button is configured as suspend. The first press to enter sleep can be seen from the log information, and the second press to wake up the system.
                          385d3542-618d-435d-b5ac-666e6a27e0bd-image.png
                          ccac5abf-2362-47af-bd16-81b588b990c5-image.png
                          f6862951-85a1-46b8-925c-75f10836949f-image.png

                          Z 1 Reply Last reply Reply Quote 0
                          • Z
                            zensation @george
                            last edited by

                            @george that is very strange ive been chasing the issue for last 12 hours. mine definitely doesnt act that way. i have the 20230424 ubuntu image....i also see ive downloaded the 20230306 image. i cant say which is running on the micro sd card though. does the 20230306 behave the same way?

                            G 1 Reply Last reply Reply Quote 0
                            • G
                              george @zensation
                              last edited by

                              @zensation
                              The firmware I tested is the latest version 20230613, and you can check if there is a problem with your power adapter causing the reboot.

                              Z 1 Reply Last reply Reply Quote 0
                              • Z
                                zensation @george
                                last edited by

                                @george ok so i just figured something out. I removed my power supply hat that i have on my pi so i could connect my serial terminal pins and get you a log, and behold the suspend function works when i powered it on with the usb c port. so seems that for some reason supplying power through the gpio pins for some reason wont let me use the suspend function.

                                1 Reply Last reply Reply Quote 0
                                • 1 / 1
                                • First post
                                  Last post