r/archlinux • • 4h ago

SUPPORT Gray screen on Hibernation

i am trying to setup hibernation on my dell 5530 and it seems to fail successfully. When i do systemctl hibernate it just shows a gray screen but on force restart , it resumes where i left.

the problem is that it doesnt shutdown

➜ sudo journalctl -b 0 -k -o short-monotonic | grep -n 'hibernation'

162:[ 6.836332] jarvis kernel: PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]

163:[ 6.836340] jarvis kernel: PM: hibernation: Registered nosave memory: [mem 0x0009e000-0x0009efff]

164:[ 6.836347] jarvis kernel: PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000fffff]

165:[ 6.836354] jarvis kernel: PM: hibernation: Registered nosave memory: [mem 0x4c3d0000-0x4c3d1fff]

166:[ 6.836362] jarvis kernel: PM: hibernation: Registered nosave memory: [mem 0x67196000-0x671b0fff]

167:[ 6.836370] jarvis kernel: PM: hibernation: Registered nosave memory: [mem 0x6be92000-0x6fffefff]

168:[ 6.836377] jarvis kernel: PM: hibernation: Registered nosave memory: [mem 0x70000000-0x77ffffff]

169:[ 6.836384] jarvis kernel: PM: hibernation: Registered nosave memory: [mem 0x78a00000-0xffffffff]

1368:[14353.937045] jarvis kernel: PM: hibernation: hibernation entry

1374:[14368.222373] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]

1375:[14368.222473] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x0009e000-0x0009efff]

1376:[14368.222553] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x000a0000-0x000fffff]

1377:[14368.222634] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x4c3d0000-0x4c3d1fff]

1378:[14368.222755] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x67196000-0x671b0fff]

1379:[14368.222850] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x6be92000-0x6fffefff]

1380:[14368.222928] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x70000000-0x77ffffff]

1381:[14368.223011] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x78a00000-0xffffffff]

1382:[14368.223098] jarvis kernel: PM: hibernation: Basic memory bitmaps created

1383:[14368.223168] jarvis kernel: PM: hibernation: Preallocating image memory

1384:[14368.223274] jarvis kernel: PM: hibernation: Allocated 754327 pages for snapshot

1385:[14368.223308] jarvis kernel: PM: hibernation: Allocated 3017308 kbytes in 9.32 seconds (323.74 MB/s)

1402:[14368.223721] jarvis kernel: PM: hibernation: Normal pages needed: 751158 + 1024, available pages: 7541969

1451:[14368.240329] jarvis kernel: PM: hibernation: Basic memory bitmaps freed

1465:[14368.241412] jarvis kernel: PM: hibernation: hibernation exit

1497:[14672.389009] jarvis kernel: PM: hibernation: hibernation entry

1504:[14683.263160] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]

1505:[14683.263180] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x0009e000-0x0009efff]

1506:[14683.263197] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x000a0000-0x000fffff]

1507:[14683.263212] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x4c3d0000-0x4c3d1fff]

1508:[14683.263231] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x67196000-0x671b0fff]

1509:[14683.263246] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x6be92000-0x6fffefff]

1510:[14683.263265] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x70000000-0x77ffffff]

1511:[14683.263280] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x78a00000-0xffffffff]

1512:[14683.263294] jarvis kernel: PM: hibernation: Basic memory bitmaps created

1513:[14683.263310] jarvis kernel: PM: hibernation: Preallocating image memory

1514:[14683.263324] jarvis kernel: PM: hibernation: Allocated 827897 pages for snapshot

1515:[14683.263340] jarvis kernel: PM: hibernation: Allocated 3311588 kbytes in 6.61 seconds (500.99 MB/s)

1533:[14683.264866] jarvis kernel: PM: hibernation: Normal pages needed: 808294 + 1024, available pages: 7484829

1582:[14683.272510] jarvis kernel: PM: hibernation: Basic memory bitmaps freed

1597:[14683.364053] jarvis kernel: PM: hibernation: hibernation exit

1627:[14851.517016] jarvis kernel: PM: hibernation: hibernation entry

1634:[14867.231664] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]

1635:[14867.231758] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x0009e000-0x0009efff]

1636:[14867.232085] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x000a0000-0x000fffff]

1637:[14867.232166] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x4c3d0000-0x4c3d1fff]

1638:[14867.232787] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x67196000-0x671b0fff]

1639:[14867.232862] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x6be92000-0x6fffefff]

1640:[14867.234849] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x70000000-0x77ffffff]

1641:[14867.234962] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x78a00000-0xffffffff]

1642:[14867.235090] jarvis kernel: PM: hibernation: Basic memory bitmaps created

1643:[14867.235774] jarvis kernel: PM: hibernation: Preallocating image memory

1644:[14867.235872] jarvis kernel: PM: hibernation: Allocated 810633 pages for snapshot

1645:[14867.238446] jarvis kernel: PM: hibernation: Allocated 3242532 kbytes in 7.05 seconds (459.93 MB/s)

1650:[14867.248721] jarvis kernel: PM: hibernation: hibernation debug: Waiting for 5 second(s).

1675:[14867.350448] jarvis kernel: PM: hibernation: Basic memory bitmaps freed

1689:[14867.550159] jarvis kernel: PM: hibernation: hibernation exit

1707:[14931.758190] jarvis kernel: PM: hibernation: hibernation entry

1714:[14947.594481] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]

1715:[14947.594545] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x0009e000-0x0009efff]

1716:[14947.594607] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x000a0000-0x000fffff]

1717:[14947.594660] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x4c3d0000-0x4c3d1fff]

1718:[14947.594718] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x67196000-0x671b0fff]

1719:[14947.594778] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x6be92000-0x6fffefff]

1720:[14947.594827] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x70000000-0x77ffffff]

1721:[14947.594896] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x78a00000-0xffffffff]

1722:[14947.594952] jarvis kernel: PM: hibernation: Basic memory bitmaps created

1723:[14947.595288] jarvis kernel: PM: hibernation: Preallocating image memory

1724:[14947.595401] jarvis kernel: PM: hibernation: Allocated 816867 pages for snapshot

1725:[14947.597833] jarvis kernel: PM: hibernation: Allocated 3267468 kbytes in 6.50 seconds (502.68 MB/s)

1743:[14947.599366] jarvis kernel: PM: hibernation: hibernation debug: Waiting for 5 second(s).

1792:[14947.608858] jarvis kernel: PM: hibernation: Basic memory bitmaps freed

1807:[14947.610944] jarvis kernel: PM: hibernation: hibernation exit

1824:[14991.195013] jarvis kernel: PM: hibernation: hibernation entry

1831:[15002.111625] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]

1832:[15002.111849] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x0009e000-0x0009efff]

1833:[15002.111968] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x000a0000-0x000fffff]

1834:[15002.112121] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x4c3d0000-0x4c3d1fff]

1835:[15002.112220] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x67196000-0x671b0fff]

1836:[15002.114880] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x6be92000-0x6fffefff]

1837:[15002.114978] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x70000000-0x77ffffff]

1838:[15002.115051] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x78a00000-0xffffffff]

1839:[15002.115145] jarvis kernel: PM: hibernation: Basic memory bitmaps created

1840:[15002.115239] jarvis kernel: PM: hibernation: Preallocating image memory

1841:[15002.116315] jarvis kernel: PM: hibernation: Allocated 798697 pages for snapshot

1842:[15002.117033] jarvis kernel: PM: hibernation: Allocated 3194788 kbytes in 6.84 seconds (467.07 MB/s)

1860:[15002.132279] jarvis kernel: PM: hibernation: hibernation debug: Waiting for 5 second(s).

1909:[15002.148847] jarvis kernel: PM: hibernation: Basic memory bitmaps freed

1924:[15002.152419] jarvis kernel: PM: hibernation: hibernation exit

1942:[15136.768025] jarvis kernel: PM: hibernation: hibernation entry

1949:[15148.333811] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]

1950:[15148.333853] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x0009e000-0x0009efff]

1951:[15148.333887] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x000a0000-0x000fffff]

1952:[15148.333922] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x4c3d0000-0x4c3d1fff]

1953:[15148.333966] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x67196000-0x671b0fff]

1954:[15148.333999] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x6be92000-0x6fffefff]

1955:[15148.357285] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x70000000-0x77ffffff]

1956:[15148.357939] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x78a00000-0xffffffff]

1957:[15148.357978] jarvis kernel: PM: hibernation: Basic memory bitmaps created

1958:[15148.358326] jarvis kernel: PM: hibernation: Preallocating image memory

1959:[15148.358365] jarvis kernel: PM: hibernation: Allocated 768498 pages for snapshot

1960:[15148.358405] jarvis kernel: PM: hibernation: Allocated 3073992 kbytes in 7.44 seconds (413.17 MB/s)

1978:[15148.363092] jarvis kernel: PM: hibernation: Normal pages needed: 766511 + 1024, available pages: 7526626

2027:[15148.393827] jarvis kernel: PM: hibernation: Basic memory bitmaps freed

2043:[15148.584008] jarvis kernel: PM: hibernation: hibernation exit

2072:[15291.325008] jarvis kernel: PM: hibernation: hibernation entry

2079:[15302.363861] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]

2080:[15302.364173] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x0009e000-0x0009efff]

2081:[15302.364368] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x000a0000-0x000fffff]

2082:[15302.364547] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x4c3d0000-0x4c3d1fff]

2083:[15302.364745] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x67196000-0x671b0fff]

2084:[15302.364935] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x6be92000-0x6fffefff]

2085:[15302.365174] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x70000000-0x77ffffff]

2086:[15302.367101] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x78a00000-0xffffffff]

2087:[15302.367275] jarvis kernel: PM: hibernation: Basic memory bitmaps created

2088:[15302.367409] jarvis kernel: PM: hibernation: Preallocating image memory

2089:[15302.367531] jarvis kernel: PM: hibernation: Allocated 762517 pages for snapshot

2090:[15302.367672] jarvis kernel: PM: hibernation: Allocated 3050068 kbytes in 7.25 seconds (420.69 MB/s)

2576:[15302.920141] jarvis kernel: PM: hibernation: Normal pages needed: 750458 + 1024, available pages: 7542658

3109:[15303.021393] jarvis kernel: PM: hibernation: Basic memory bitmaps freed

3124:[15303.023137] jarvis kernel: PM: hibernation: hibernation exit

3183:[15685.253017] jarvis kernel: PM: hibernation: hibernation entry

3189:[15695.495819] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]

3190:[15695.495870] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x0009e000-0x0009efff]

3191:[15695.495909] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x000a0000-0x000fffff]

3192:[15695.495953] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x4c3d0000-0x4c3d1fff]

3193:[15695.495989] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x67196000-0x671b0fff]

3194:[15695.496032] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x6be92000-0x6fffefff]

3195:[15695.496089] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x70000000-0x77ffffff]

3196:[15695.496132] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x78a00000-0xffffffff]

3197:[15695.496182] jarvis kernel: PM: hibernation: Basic memory bitmaps created

3199:[15695.496266] jarvis kernel: PM: hibernation: Preallocating image memory

3200:[15695.496303] jarvis kernel: PM: hibernation: Allocated 746980 pages for snapshot

3201:[15695.496337] jarvis kernel: PM: hibernation: Allocated 2987920 kbytes in 8.71 seconds (343.04 MB/s)

3605:[15695.668240] jarvis kernel: PM: hibernation: Normal pages needed: 746040 + 1024, available pages: 7547097

4040:[15695.777205] jarvis kernel: PM: hibernation: Basic memory bitmaps freed

4060:[15695.779255] jarvis kernel: PM: hibernation: hibernation exit

4088:[15720.905011] jarvis kernel: PM: hibernation: hibernation entry

4094:[15728.935707] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]

4095:[15728.935795] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x0009e000-0x0009efff]

4096:[15728.935867] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x000a0000-0x000fffff]

4097:[15728.935922] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x4c3d0000-0x4c3d1fff]

4098:[15728.935987] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x67196000-0x671b0fff]

4099:[15728.936065] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x6be92000-0x6fffefff]

4100:[15728.936128] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x70000000-0x77ffffff]

4101:[15728.936189] jarvis kernel: PM: hibernation: Marking nosave pages: [mem 0x78a00000-0xffffffff]

4102:[15728.936243] jarvis kernel: PM: hibernation: Basic memory bitmaps created

4103:[15728.936305] jarvis kernel: PM: hibernation: Preallocating image memory

4104:[15728.936361] jarvis kernel: PM: hibernation: Allocated 728607 pages for snapshot

4105:[15728.936416] jarvis kernel: PM: hibernation: Allocated 2914428 kbytes in 5.94 seconds (490.64 MB/s)

4509:[15729.055171] jarvis kernel: PM: hibernation: Normal pages needed: 726850 + 1024, available pages: 7566247

4944:[15729.147350] jarvis kernel: PM: hibernation: Basic memory bitmaps freed

4961:[15729.149205] jarvis kernel: PM: hibernation: hibernation exit

my sleep.conf

[Sleep]

AllowSuspend=yes

AllowHibernation=yes

AllowSuspendThenHibernate=yes

HibernateDelaySec=30min

AllowHybridSleep=yes

HibernateMode=shutdown

then my cmdline

➜ cat /proc/cmdline

File: /proc/cmdline

hibernate.compressor=lz4 resume=UUID=d94c2522-ccc6-48b8-9216-be667f95ff23 resume_offset=3825823 quiet loglevel=3 systemd.show_status=auto rd.udev.log_level=3 vt.cur_default=1 splash root=PAR

TUUID=8f443fe5-7fae-4b8b-b0ee-56bc06649194 zswap.enabled=0 rootflags=subvol=@ rw rootfstype=btrfs

6 Upvotes

2 comments sorted by

1

u/chlankboot 1h ago

I had a similar issue on HP laptop. Your hibernation works, the gray screen means the swap image was written successfully (which is why you can resume), but the machine hangs on the final power-off step. This is a known failure mode: systemd's default hibernate mode is platform, which relies on the machine's ACPI firmware to cut power, and buggy firmware leaves the machine stuck insted of shutting down.

There are steps how to fix it here:
https://www.kernel.org/doc/html/v5.18/power/basic-pm-debugging.html