Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. Subject: "systemctl suspend" on Linux is not reliable.

Subject: "systemctl suspend" on Linux is not reliable.

Scheduled Pinned Locked Moved Uncategorized
linuxsysrqsync
5 Posts 3 Posters 0 Views
  • 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.
  • ammarfaizi2@social.gnuweeb.orgA This user is from outside of this forum
    ammarfaizi2@social.gnuweeb.orgA This user is from outside of this forum
    ammarfaizi2@social.gnuweeb.org
    wrote last edited by
    #1

    Subject: "systemctl suspend" on Linux is not reliable.

    How long has it been since last time I used the the emergency sync SysRq?

    Today traveled to Surakarta for a family event, I departed from Sragen. I suspended my laptop with "systemctl suspend" and put it into my backpack.

    When I arrived in Surakarta, I opened my bag and felt my bag was so hot. It turned out that my laptop was on (not in a sleep state) and everything was spinning at 100% CPU (especially firefox and vscode).

    I had a chance to check htop and tried to kill firefox with "pkill -9 firefox", but then the system froze.

    When the GUI froze, I could still see my caps lock button was still working indicated by the caps lock LED on-off still responed to my input.

    I tried to jump to tty4 and tried to login, but then soft lockup warnings appeared, everything froze. I could not login from tty4 neither.

    I invoked an emergency sync procedure (Alt+SysRq+s) and forced my laptop off. Unfortunately, the SysRq to print backtrace was disabled. I am not sure how to debug this.

    I hope this was not a kernel bug, just hope it was a random bit flip in my RAM caused by an extrme temperature that led to this scary incident.

    Hopefully, my persistent filesystem will still be ok, not corrupted.

    #linux #sysrq #sync #fs

    Link Preview Image
    ammarfaizi2@social.gnuweeb.orgA sirtao@social.sirtao.itS 2 Replies Last reply
    0
    • ammarfaizi2@social.gnuweeb.orgA ammarfaizi2@social.gnuweeb.org

      Subject: "systemctl suspend" on Linux is not reliable.

      How long has it been since last time I used the the emergency sync SysRq?

      Today traveled to Surakarta for a family event, I departed from Sragen. I suspended my laptop with "systemctl suspend" and put it into my backpack.

      When I arrived in Surakarta, I opened my bag and felt my bag was so hot. It turned out that my laptop was on (not in a sleep state) and everything was spinning at 100% CPU (especially firefox and vscode).

      I had a chance to check htop and tried to kill firefox with "pkill -9 firefox", but then the system froze.

      When the GUI froze, I could still see my caps lock button was still working indicated by the caps lock LED on-off still responed to my input.

      I tried to jump to tty4 and tried to login, but then soft lockup warnings appeared, everything froze. I could not login from tty4 neither.

      I invoked an emergency sync procedure (Alt+SysRq+s) and forced my laptop off. Unfortunately, the SysRq to print backtrace was disabled. I am not sure how to debug this.

      I hope this was not a kernel bug, just hope it was a random bit flip in my RAM caused by an extrme temperature that led to this scary incident.

      Hopefully, my persistent filesystem will still be ok, not corrupted.

      #linux #sysrq #sync #fs

      Link Preview Image
      ammarfaizi2@social.gnuweeb.orgA This user is from outside of this forum
      ammarfaizi2@social.gnuweeb.orgA This user is from outside of this forum
      ammarfaizi2@social.gnuweeb.org
      wrote last edited by
      #2

      The watchdog reported CPU#6 stuck for 5946s (observed from the photo).

      That is roughly 99 minutes bake, lol.

      That means my laptop didn't just wake up right before I checked it.

      It likely woke up and hit soft lockups almost immediately after I put it in my backpack and was running at full tilt for the entire journey from Sragen to Surakarta 😭

      Shit.

      indonische@mstdn.socialI 1 Reply Last reply
      1
      0
      • R relay@relay.infosec.exchange shared this topic
      • ammarfaizi2@social.gnuweeb.orgA ammarfaizi2@social.gnuweeb.org

        The watchdog reported CPU#6 stuck for 5946s (observed from the photo).

        That is roughly 99 minutes bake, lol.

        That means my laptop didn't just wake up right before I checked it.

        It likely woke up and hit soft lockups almost immediately after I put it in my backpack and was running at full tilt for the entire journey from Sragen to Surakarta 😭

        Shit.

        indonische@mstdn.socialI This user is from outside of this forum
        indonische@mstdn.socialI This user is from outside of this forum
        indonische@mstdn.social
        wrote last edited by
        #3

        @ammarfaizi2

        on my PC, I fixed it using :
        https://wiki.archlinux.org/title/Power_management/Wakeup_triggers

        on my ryzen PC, I disabled something : PTXH, and USB sides

        the problem was when electricity is changing : it wakes the PC up

        the only tradeoffs is : it needs power button to wake

        you need to test it

        also certain kernel parameter needed

        ammarfaizi2@social.gnuweeb.orgA 1 Reply Last reply
        0
        • indonische@mstdn.socialI indonische@mstdn.social

          @ammarfaizi2

          on my PC, I fixed it using :
          https://wiki.archlinux.org/title/Power_management/Wakeup_triggers

          on my ryzen PC, I disabled something : PTXH, and USB sides

          the problem was when electricity is changing : it wakes the PC up

          the only tradeoffs is : it needs power button to wake

          you need to test it

          also certain kernel parameter needed

          ammarfaizi2@social.gnuweeb.orgA This user is from outside of this forum
          ammarfaizi2@social.gnuweeb.orgA This user is from outside of this forum
          ammarfaizi2@social.gnuweeb.org
          wrote last edited by
          #4

          @indonische

          Noted, thanks.

          It seems the doc you referred is actually what I am looking for.

          I will try to tweak the wake up sources and play around with those configurations. It is much better to have only the "power button" as a wake up source rather than having random unexpected wakeups.

          I will test suspend-resume after tweaking it later today.

          1 Reply Last reply
          0
          • ammarfaizi2@social.gnuweeb.orgA ammarfaizi2@social.gnuweeb.org

            Subject: "systemctl suspend" on Linux is not reliable.

            How long has it been since last time I used the the emergency sync SysRq?

            Today traveled to Surakarta for a family event, I departed from Sragen. I suspended my laptop with "systemctl suspend" and put it into my backpack.

            When I arrived in Surakarta, I opened my bag and felt my bag was so hot. It turned out that my laptop was on (not in a sleep state) and everything was spinning at 100% CPU (especially firefox and vscode).

            I had a chance to check htop and tried to kill firefox with "pkill -9 firefox", but then the system froze.

            When the GUI froze, I could still see my caps lock button was still working indicated by the caps lock LED on-off still responed to my input.

            I tried to jump to tty4 and tried to login, but then soft lockup warnings appeared, everything froze. I could not login from tty4 neither.

            I invoked an emergency sync procedure (Alt+SysRq+s) and forced my laptop off. Unfortunately, the SysRq to print backtrace was disabled. I am not sure how to debug this.

            I hope this was not a kernel bug, just hope it was a random bit flip in my RAM caused by an extrme temperature that led to this scary incident.

            Hopefully, my persistent filesystem will still be ok, not corrupted.

            #linux #sysrq #sync #fs

            Link Preview Image
            sirtao@social.sirtao.itS This user is from outside of this forum
            sirtao@social.sirtao.itS This user is from outside of this forum
            sirtao@social.sirtao.it
            wrote last edited by
            #5
            TIL SysRq magic key. Thanks.
            1 Reply Last reply
            1
            0
            • R relay@relay.mycrowd.ca shared this topic
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups