Hibernation on Laptop

Hi,

i have just installed Manjaro Gnome version but i have one problem my laptop does not hibernate good enough.

first in the power settings i can pause my laptop, restart, turn off and log out but there is no hibernate option.

second if i close the lid of my laptop my laptop does not automatically go to hibernate mode after a while but just stays in suspend mode and so the battery drains in a couple of hours.

third i have to go in the settings menu to change on/off button to hibernate my laptop but when i return to my laptop after it went into hibernation mode my laptop does not recognize my ethernet connection anymore and so i have to enable my wifi to get an internet connection again.

so my question is how can i enable my laptop to go automatically into hibernation mode after a while when i close my lid and when i return to my laptop how can i have ethernet connection recognized by my laptop?

kind regards

provide system information - see the introductory threads on how to request assistance
inxi -Fazy
could be a start

Hibernation requires a swap file or a swap partition (the system state is written to it and reloaded from there).
It also requires a bit of configuration of the initial RAM disk and of the boot loader - so that the saved (to swap) state can be found and loaded and used.

Without that, only suspend is possible.

sorry im not that familiar with all the jargon where are the introductory threads and what is inxi -Fazy and how can i provide system information?

… no, I’m not going to answer that :man_shrugging: - there is a search function and you could read some threads …

@Mirdarthos has got some template ready and will likely post it here :wink:

Hi @NSS,

In order for us, or anyone for that matter, to be able to provide assistance, more information is necessary. To that end, please see:

Please also note and heed: Forum Rules - Manjaro

Hope you manage!


:bangbang: Tip: :bangbang:

To provide terminal output, copy the text you wish to share, and paste it here, surrounded by three (3) backticks, a.k.a grave accents. Like this:

```
pasted text
```

Or three (3) tilde signs, like this:

~~~
pasted text
~~~

This will just cause it to be rendered like this:

Portaest sed
elementum
cursus nisl nisi
hendrerit ac quis
sit
adipiscing
tortor sit leo commodo.

Instead of like this:

Portaest sed elementum cursus nisl nisi hendrerit ac quis sit adipiscing tortor sit leo commodo.

Alternatively, paste the text you wish to format as terminal output, select all pasted text, and click the </> button on the taskbar. This will indent the whole pasted section with one TAB, causing it to render the same way as described above.

Thereby improving legibility and making it much easier for those trying to be of assistance.


:bangbang::bangbang: Additionally

If your language isn’t English, please prepend any and all terminal commands with LC_ALL=C. For example:

LC_ALL=C bluetoothctl

This will just cause the terminal output to be in English, making it easier to understand and debug.

Please edit your post accordingly.

Edit:

I’m famous!!!

Hopefully not for the wrong reasons!

:smile:

1 Like

System:
  Kernel: 6.6.8-2-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: hpet,acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.6-x86_64
    root=UUID=34f066c3-d5a3-4218-8561-0b2714b46c06 rw quiet splash apparmor=1
    security=apparmor resume=UUID=e90db8fb-e25b-4dd8-85ba-4e8e16171bdd
    udev.log_priority=3
  Desktop: GNOME v: 45.2 tk: GTK v: 3.24.39 wm: gnome-shell dm: GDM v: 45.0.1
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: Notebook product: NL5xNU v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Notebook model: NL5xNU serial: <superuser required> UEFI: INSYDE
    v: 1.07.14LWL date: 07/12/2021
Battery:
  ID-1: BAT0 charge: 38.6 Wh (93.5%) condition: 41.3/48.3 Wh (85.5%)
    volts: 17.2 min: 15.2 model: Notebook BAT type: Li-ion serial: <filter>
    status: charging
CPU:
  Info: model: AMD Ryzen 5 5625U with Radeon Graphics bits: 64 type: MT MCP
    arch: Zen 3 gen: 4 level: v3 note: check built: 2021-22
    process: TSMC n7 (7nm) family: 0x19 (25) model-id: 0x50 (80) stepping: 0
    microcode: 0xA50000C
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB L3: 16 MiB
    desc: 1x16 MiB
  Speed (MHz): avg: 660 high: 2219 min/max: 400/4388 scaling:
    driver: amd-pstate-epp governor: powersave cores: 1: 400 2: 400 3: 1707
    4: 400 5: 400 6: 400 7: 400 8: 2219 9: 400 10: 400 11: 400 12: 400
    bogomips: 55107
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Vulnerable: Safe RET, no microcode
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: always-on, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Barcelo vendor: CLEVO/KAPOK driver: amdgpu v: kernel
    arch: GCN-5 code: Vega process: GF 14nm built: 2017-20 pcie: gen: 3
    speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s ports:
    active: eDP-1 empty: DP-1,DP-2 bus-ID: 05:00.0 chip-ID: 1002:15e7
    class-ID: 0300 temp: 50.0 C
  Device-2: Bison BisonCam NB Pro driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-4:3 chip-ID: 5986:9102
    class-ID: 0e02
  Display: wayland server: X.org v: 1.21.1.10 with: Xwayland v: 23.2.3
    compositor: gnome-shell driver: gpu: amdgpu display-ID: 0
  Monitor-1: eDP-1 model: BOE Display 0x0700 built: 2016 res: 1920x1080
    dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
    ratio: 16:9 modes: max: 1920x1080 min: 640x480
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
    device: 1 drv: swrast surfaceless: drv: radeonsi wayland: drv: radeonsi x11:
    drv: radeonsi inactive: gbm
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 23.1.9-manjaro1.1
    glx-v: 1.4 direct-render: yes renderer: AMD Radeon Graphics (renoir LLVM
    16.0.6 DRM 3.54 6.6.8-2-MANJARO) device-ID: 1002:15e7 memory: 500 MiB
    unified: no display-ID: :0.0
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio vendor: CLEVO/KAPOK
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 05:00.1 chip-ID: 1002:1637
    class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: CLEVO/KAPOK
    driver: N/A alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x,
    snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps,
    snd_sof_amd_renoir, snd_sof_amd_rembrandt, snd_sof_amd_vangogh pcie: gen: 3
    speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 05:00.5
    chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: CLEVO/KAPOK
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 05:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  API: ALSA v: k6.6.8-2-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: CLEVO/KAPOK driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: 2000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlo1 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-3:2 chip-ID: 8087:0029
    class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Drives:
  Local Storage: total: 465.76 GiB used: 76.87 GiB (16.5%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 980 500GB
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 2B4QFXO7 temp: 38.9 C
    scheme: GPT
Partition:
  ID-1: / raw-size: 457.84 GiB size: 449.59 GiB (98.20%)
    used: 75.36 GiB (16.8%) fs: ext4 dev: /dev/nvme0n1p3 maj-min: 259:3
  ID-2: /boot/efi raw-size: 477 MiB size: 476 MiB (99.80%)
    used: 296 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: partition size: 7.45 GiB used: 1.51 GiB (20.2%)
    priority: -2 dev: /dev/nvme0n1p2 maj-min: 259:2
Sensors:
  System Temperatures: cpu: 57.9 C mobo: N/A gpu: amdgpu temp: 51.0 C
  Fan Speeds (rpm): N/A
Info:
  Processes: 375 Uptime: 51m wakeups: 0 Memory: total: 8 GiB note: est.
  available: 7.1 GiB used: 5.49 GiB (77.2%) Init: systemd v: 254
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 Packages: 1124
  pm: pacman pkgs: 1094 libs: 311 tools: gnome-software,pamac pm: flatpak
  pkgs: 30 Shell: Zsh v: 5.9 running-in: gnome-terminal inxi: 3.3.31

im new to linux and what else should i provide?

That makes me think hibernation isn’t enabled.

For that you’ll have to look at suspend-then-hybernate, IIRC.

That, I think, is simply power management of the NIC. Which I know very little to nothing about. It might “simply” (read: magically) start working if the hibernate is sorted.

For hibernation, you’ll have to look here:

https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation

Specifically starting at

4. Hibernation

…I think

(I don’t use it, so don’t have it set up.)

There is 8 GB swap
and

resume=UUID=e90db8fb-e25b-4dd8-85ba-4e8e16171bdd

is also present.

So: hibernation itself should work.

To try, open a terminal and issue:
systemctl hibernate
and see what happens.

If it works, it is a configuration issue with Gnome itself that causes these options not to be available to you.
I cannot help with that.

Actually, no:

The recommendation for swap is, IIRC 150% of you RAM. So according to thaat the SWAP space should be 12GB…

:man_shrugging:

Edit:

But, I might be wrong:

https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#About_swap_partition/file_size

Edit #2:

Also have a look at:

https://wiki.archlinux.org/title/GNOME#Power

(I think this might be your best bet.)

Close enough :grin:.

It’s perhaps not ideal, but if not too much swap is already used it should work
(I have 8 GB Ram and only a 4 GB swap(file) - and I just hibernated and came back successfully).

… let’s see what he gets …
perhaps Gnome itself refuses because of the minimum recommended size not being there? No idea.
But from terminal it should work nonetheless.

How much physical RAM is available in your system?

If it is greater than the amount of swap space defined (your swap partition suggests 7.45 GiB) then hibernation might not be recommended. Hibernation generally requires at least as much swap space as there is RAM in the system, for safe hibernation.

This might help focus your research. Cheers.

That was my thoughts as well, but:

From the first paragraph of your link:

Even if your swap partition is smaller than RAM, you still have a good chance of hibernating successfully.

I agree, there is a good chance that a smaller swap partition might still allow successful hibernating. It really depends on how much data is actually held in RAM at the time of hibernating.

If that RAM amount is greater than the size the swap partition (or file) can possibly hold, when written to disk, then the data held in RAM stands a good chance of being damaged or lost. It’s for this reason that adequate swap space (at least as much as system RAM) is a generally recommended rule-of-thumb if hibernation is desired.

All things considered, it’s the safest approach.

I recall a time when up to four times the capacity of available RAM was generally postulated. However, that was many years ago and times, along with the technologies we use, have changed.
Such a recommendation today would be considered ludicrous, given the amounts of RAM commonly used in newer systems.

However, even then, at least as much as system RAM was the general recommendation for hibernation.

:end pseudo-historical-swap-rave

2 Likes

Considering the drivers for both devices are installed, it might be related to DNS and/or gateway.

Try having only one connected at boot.

I do use hibernation with Manjaro and Gnome.

Once you’re done checking
https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation

Then download this extension and enable ‘Show hibernate button’ and also disable unused buttons like the ‘Lock’ to keep it neat.

Enjoy Manjaro Gnome.

hi i have solved everything the problem i found out was not with manjaro but with the uefi bios of my laptop which would not let my laptop hibernate thanks for the support everyone

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.