Doesnt hibernate with a monitor external connected

Hi, I have my laptop Lenovo 82RJ IdeaPad 3 14IAU7 and other monitor external connected. I have configured after 20 min sleep and then hibernate. When i connect external monitor, never hibernate and then Laptop battery drains and shuts down.

I have configured these file: sleep,conf and login.conf.

Version Kernel: 6.3.13-1-MANJARO

I remember, i was use kernel 6.2 (I dont remember exactly) but without external monitor, my laptop after 20 min sleep and then hibernate work fine and with kernel 6.3 too. Also i checked hibernate service work fine, because i have configured: when i press button power key then hibernate, and work fine. But I need hibernate automatically after 20min with a monitor external connected.

  Kernel: 6.3.13-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.3-x86_64
    root=UUID=6dcfb610-c04c-4089-8f6c-525d4445a805 rw quiet splash
    resume=UUID=dd2292be-5e58-4339-8fa6-5a02ad875e8e udev.log_priority=3
  Desktop: KDE Plasma v: 5.27.6 tk: Qt v: 5.15.10 wm: kwin_wayland vt: 1
    dm: SDDM Distro: Manjaro Linux base: Arch Linux
  Type: Laptop System: LENOVO product: 82RJ v: IdeaPad 3 14IAU7
    serial: <superuser required> Chassis: type: 10 v: IdeaPad 3 14IAU7
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0T76465 WIN
    serial: <superuser required> UEFI: LENOVO v: JKCN29WW date: 06/20/2022
  ID-1: BAT0 charge: 19.4 Wh (42.3%) condition: 45.9/45.0 Wh (102.0%)
    power: 7.0 W volts: 11.3 min: 11.1 model: LGC L20L3PF0 type: Li-poly
    serial: <filter> status: discharging cycles: 42
  Info: model: 12th Gen Intel Core i5-1235U bits: 64 type: MST AMCP
    arch: Alder Lake level: v3 note: check built: 2021+
    process: Intel 7 (10nm ESF) family: 6 model-id: 0x9A (154) stepping: 4
    microcode: 0x42A
  Topology: cpus: 1x cores: 10 mt: 2 tpc: 2 st: 8 threads: 12 smt: enabled
    cache: L1: 928 KiB desc: d-8x32 KiB, 2x48 KiB; i-2x32 KiB, 8x64 KiB
    L2: 6.5 MiB desc: 2x1.2 MiB, 2x2 MiB L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 1696 high: 2500 min/max: 400/1300:900 scaling:
    driver: intel_pstate governor: powersave cores: 1: 573 2: 492 3: 2500 4: 2500
    5: 536 6: 2500 7: 2500 8: 2500 9: 693 10: 567 11: 2500 12: 2500
    bogomips: 59916
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  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_store_bypass mitigation: Speculative Store Bypass disabled via
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
  Type: spectre_v2 mitigation: Enhanced / Automatic IBRS, IBPB: conditional,
    RSB filling, PBRSB-eIBRS: SW sequence
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
  Device-1: Intel Alder Lake-UP3 GT2 [Iris Xe Graphics] vendor: Lenovo
    driver: i915 v: kernel arch: Gen-12.2 process: Intel 10nm built: 2021-22+
    ports: active: eDP-1 empty: DP-1,HDMI-A-1 bus-ID: 00:02.0
    chip-ID: 8086:46a8 class-ID: 0300
  Device-2: Bison Integrated Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-8:4 chip-ID: 5986:2155
    class-ID: 0e02
  Display: wayland server: v: with: Xwayland v: 23.1.2
    compositor: kwin_wayland driver: X: loaded: intel dri: i965 gpu: i915
    display-ID: 0
  Monitor-1: eDP-1 res: 1600x900 size: N/A modes: N/A
  API: OpenGL v: 4.6 Mesa 23.0.4 renderer: Mesa Intel Graphics (ADL GT2)
    direct-render: Yes
  Device-1: Intel Alder Lake PCH-P High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_tgl
    bus-ID: 00:1f.3 chip-ID: 8086:51c8 class-ID: 0403
  API: ALSA v: k6.3.13-1-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: 0.3.74 status: off with: wireplumber status: active
    tools: pw-cli,wpctl
  Server-3: PulseAudio v: 16.1 status: active with: pulseaudio-alsa
    type: plugin tools: pacat,pactl,pavucontrol
  Device-1: Realtek vendor: Lenovo driver: rtw89_8852be v: kernel
    modules: rtw_8852be pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000
    bus-ID: 02:00.0 chip-ID: 10ec:b852 class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
  Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 1.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-10:5 chip-ID: 0bda:4853
    class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 4 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
  Local Storage: total: 953.87 GiB used: 68.68 GiB (7.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: A-Data model: LEGEND 700 GOLD
    size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: V0620A0 temp: 44.9 C
    scheme: GPT
  ID-1: / raw-size: 140 GiB size: 136.74 GiB (97.67%) used: 24.5 GiB (17.9%)
    fs: ext4 dev: /dev/nvme0n1p7 maj-min: 259:7
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 292 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-3: /home raw-size: 181.3 GiB size: 177.39 GiB (97.85%)
    used: 44.18 GiB (24.9%) fs: ext4 dev: /dev/nvme0n1p8 maj-min: 259:8
  Kernel: swappiness: 10 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 20 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p6 maj-min: 259:6
  System Temperatures: cpu: 37.0 C mobo: N/A
  Fan Speeds (RPM): N/A
  Processes: 260 Uptime: 1h 16m wakeups: 13415 Memory: total: 16 GiB note: est.
  available: 15.35 GiB used: 4 GiB (26.0%) Init: systemd v: 253
  default: graphical tool: systemctl Compilers: gcc: 13.1.1 clang: 15.0.7
  Packages: 1255 pm: pacman pkgs: 1242 libs: 346 tools: octopi,pamac,yay
  pm: flatpak pkgs: 13 Shell: Zsh v: 5.9 default: Bash v: 5.1.16
  running-in: konsole inxi: 3.3.28

Here is my log file: log day 24

I go out from my home at: Jul 23 20:35:56. So you can help me, you can look after this time log.
Thanks !

Hello @rodrigonrob :wink:

Without any knowledge about what is going on in the background, it would be just a hit-and-miss. So please provide a full log where the problem happens.

journalctl --list-boots
journalctl --boot IDX --no-hostname --no-pager

:notebook: replace IDX

You can upload it like that:

journalctl --boot IDX --no-hostname --no-pager | curl -F'file=@-'

since such logs exceed the limit of a post, commonly. Share the link then here.

1 Like

I solve this, creating the file inside this path /etc/systemd/sleep.conf.d/custom.conf

Accord this page : sleep.conf

Accord the documentation:

Initially, the main configuration file in /etc/systemd/ contains commented out entries showing the defaults as a guide to the administrator. Local overrides can be created by editing this file or by creating drop-ins, as described below. Using drop-ins for local configuration is recommended over modifications to the main configuration file.

In addition to the "main" configuration file, drop-in configuration snippets are read from /usr/lib/systemd/*.conf.d/, /usr/local/lib/systemd/*.conf.d/, and /etc/systemd/*.conf.d/. Those drop-ins have higher precedence and override the main configuration file. Files in the *.conf.d/ configuration subdirectories are sorted by their filename in lexicographic order, regardless of in which of the subdirectories they reside. When multiple files specify the same option, for options which accept just a single value, the entry in the file sorted last takes precedence, and for options which accept a list of values, entries are collected as they occur in the sorted files.

And then, works fine the hibernation.

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