Lid closed does not suspend the laptop

  Kernel: 6.4.11-zen2-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=f199b624-ffa0-40b4-945c-c4e71ca3d9ec rw rootflags=subvol=@
    quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
  Desktop: i3 v: 4.22 info: i3bar vt: 7 dm: LightDM v: 1.32.0
    Distro: Garuda Linux base: Arch Linux
  Type: Laptop System: Dell product: XPS 9320 v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Dell model: 0V0059 v: A00 serial: <superuser required> UEFI: Dell
    v: 1.11.0 date: 12/09/2022
  ID-1: BAT0 charge: 47.5 Wh (87.6%) condition: 54.2/54.4 Wh (99.6%)
    volts: 12.8 min: 11.6 model: SMP DELL J7H5M23 type: Li-poly serial: <filter>
    status: discharging
  Info: model: 12th Gen Intel Core i7-1260P 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: 3
    microcode: 0x42C
  Topology: cpus: 1x cores: 12 mt: 4 tpc: 2 st: 8 threads: 16 smt: enabled
    cache: L1: 1.1 MiB desc: d-8x32 KiB, 4x48 KiB; i-4x32 KiB, 8x64 KiB
    L2: 9 MiB desc: 4x1.2 MiB, 2x2 MiB L3: 18 MiB desc: 1x18 MiB
  Speed (MHz): avg: 1601 high: 2500 min/max: 400/4700:3400 scaling:
    driver: intel_pstate governor: powersave cores: 1: 1200 2: 1200 3: 1186
    4: 2500 5: 505 6: 2500 7: 1200 8: 2500 9: 401 10: 2500 11: 2500 12: 1201
    13: 2500 14: 1340 15: 1192 16: 1199 bogomips: 79872
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
  Device-1: Intel Alder Lake-P Integrated Graphics vendor: Dell driver: i915
    v: kernel arch: Gen-12.2 process: Intel 10nm built: 2021-22+ ports:
    active: eDP-1 empty: DP-1, DP-2, DP-3, DP-4 bus-ID: 00:02.0
    chip-ID: 8086:46a6 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.8 compositor: Picom v: git-b700a
    driver: X: loaded: modesetting alternate: fbdev,intel,vesa dri: iris
    gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1200 s-dpi: 96 s-size: 508x317mm (20.00x12.48")
    s-diag: 599mm (23.57")
  Monitor-1: eDP-1 model: Sharp 0x1548 built: 2021 res: 1920x1200 hz: 60
    dpi: 169 gamma: 1.2 size: 288x180mm (11.34x7.09") diag: 340mm (13.4")
    ratio: 16:10 modes: 1920x1200
  API: OpenGL v: 4.6 Mesa 23.1.6 renderer: Mesa Intel Graphics (ADL GT2)
    direct-render: Yes
  Device-1: Intel Alder Lake Imaging Signal Processor vendor: Dell
    driver: intel-ipu6 alternate: intel_ipu6, intel_ipu6_psys, intel_ipu6_isys
    bus-ID: 00:05.0 chip-ID: 8086:465d class-ID: 0480
  Device-2: Intel Alder Lake PCH-P High Definition Audio vendor: Dell
    driver: sof-audio-pci-intel-tgl
    alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 00:1f.3
    chip-ID: 8086:51c8 class-ID: 0401
  API: ALSA v: k6.4.11-zen2-1-zen status: kernel-api
    tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 0.3.77 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
  Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:51f0 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  Device-1: Intel driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 3-10:4 chip-ID: 8087:0033 class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.3
    lmp-v: 12 status: discoverable: no pairing: yes class-ID: 7c010c
  Local Storage: total: 476.94 GiB used: 43.75 GiB (9.2%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: PM9A1 NVMe 512GB
    size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 36308229 temp: 49.9 C
    scheme: GPT
  ID-1: / raw-size: 457.45 GiB size: 457.45 GiB (100.00%)
    used: 43.66 GiB (9.5%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
  ID-2: /boot/efi raw-size: 240 MiB size: 236 MiB (98.33%)
    used: 98.8 MiB (41.9%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 457.45 GiB size: 457.45 GiB (100.00%)
    used: 43.66 GiB (9.5%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
  ID-4: /var/log raw-size: 457.45 GiB size: 457.45 GiB (100.00%)
    used: 43.66 GiB (9.5%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
  ID-5: /var/tmp raw-size: 457.45 GiB size: 457.45 GiB (100.00%)
    used: 43.66 GiB (9.5%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 15.24 GiB used: 1024 KiB (0.0%)
    priority: 100 comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 16
    dev: /dev/zram0
  System Temperatures: cpu: 53.0 C mobo: 41.0 C sodimm: SODIMM C
  Fan Speeds (rpm): cpu: 2773
  Processes: 405 Uptime: 2m wakeups: 4882 Memory: total: 16 GiB note: est.
  available: 15.24 GiB used: 3.34 GiB (21.9%) Init: systemd v: 254
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 Packages:
  pm: pacman pkgs: 1426 libs: 352 tools: pamac,paru,yay Shell: fish v: 3.6.1
  running-in: alacritty inxi: 3.3.29
Garuda (2.6.16-1):
  System install date:     2023-02-16
  Last full system update: 2023-08-23
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager mkinitcpio
  Windows dual boot:       Probably (Run as root to verify)
  Failed units:

I'm trying to solve one small issue. When I close the lid of my laptop it does not suspend.

I've tried then to tweak the logind.conf but without any result. This is how it looks like


any other ideas?

Sorry, no.

You got (in your language)?

Since it hasn't bothered me much so far (on desktop PC), I haven't thought about it further. I just noticed it on the notebooks. Since the boot times are so short, I either leave the notebook open directly or do a shutdown.

Am grateful for any merge request on gitlab.

can you be more descriptive?
Merge request exactly on which part? what part can be tweaked?

I have no idea at the moment.

Maybe it’s the lack of swap?

Who has a solution, please post.

Please post the output of:

systemctl status systemd-logind.service
 ╰─λ sudo systemctl status systemd-logind.service
[sudo] password for salvatoremazz:
● systemd-logind.service - User Login Management
     Loaded: loaded (/usr/lib/systemd/system/systemd-logind.service; static)
     Active: active (running) since Wed 2023-08-23 20:38:50 CEST; 11h ago
       Docs: man:sd-login(3)
   Main PID: 733 (systemd-logind)
     Status: "Processing requests..."
      Tasks: 1 (limit: 18640)
   FD Store: 0 (limit: 512)
     Memory: 2.2M
        CPU: 236ms
     CGroup: /system.slice/systemd-logind.service
             └─733 /usr/lib/systemd/systemd-logind

Aug 23 21:05:13 salvatore-xps9320 systemd-logind[733]: The system will suspend now!
Aug 24 08:31:53 salvatore-xps9320 systemd-logind[733]: Lid closed.
Aug 24 08:31:53 salvatore-xps9320 systemd-logind[733]: Lid opened.
Aug 24 08:31:53 salvatore-xps9320 systemd-logind[733]: Operation 'sleep' finished.
Notice: journal has been rotated since unit was started, output may be incomplete.

That looks good actually.

What happens if you run this command:

systemctl suspend

my laptop gets suspended

Are you sure it is not suspending when you close the lid? It looks like the feature is working.


Maybe you could try also with xfce4-power-manager, which should be shipped in the i3wm edition.
I really don't know how it works, I just saw a hint here


100% sure. I have the message that say it was not possible to lock the laptop the one posted in German by @SGS

Giving it a try right now. let's see. i will post the results

Not quite, it is not important to me, not necessary.
Therefore, I did not look into it further.

I know it work in Sway, but there is no hint, just type the password enter.

I will look what Hyprland do, maybe I found a solution. :slight_smile:


LANG=C xfce4-power-manager 
Xfce Power Manager: Another power manager is already running

Seems the first maintainer use something else. :slight_smile:

1 Like

I dos not work with closing the lid but there is a keybinding in i3 config and work here.

# Lock screen
bindsym $super+l exec i3lock -i $lockScreenWallpaper

but I must check why the wallpaper doesn't work :smiley:

Ok, a maintainer change the wallpaper names and remove the "-" :slight_smile:

set $lockScreenWallpaper /usr/share/wallpapers/garuda-wallpapers/Garuda-Desert.png

Must be changed to

set $lockScreenWallpaper /usr/share/wallpapers/garuda-wallpapers/Dr460nized\ Honeycomb.png

Password, Enter

1 Like

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