You are not logged in.
I have recently installed arch with KDE and was wondering how to properly set up suspending on the laptop lid close. I went into power management in system settings and set it to suspend but it seemed to only work one time and my touch screen disappears after I open the lid again. So for the time being I have set it as so,
I know that I also can change logind.conf at
/etc/systemd/logind.conf I know the wiki has more info on it but nothing helped. https://wiki.archlinux.org/title/Power_ … th_systemd
By the way, I use wayland. Here is my inxi output if that helps.
System:
Kernel: 5.18.11 arch: x86_64 bits: 64 Console: pty pts/1 Distro: Arch Linux
Machine:
Type: Convertible System: LENOVO product: 82QF v: Yoga 7 14ARB7
serial: <filter>
Mobo: LENOVO model: LNVNB161216 v: SDK0T76463 WIN serial: <filter>
UEFI: LENOVO v: K5CN28WW date: 05/13/2022
Battery:
ID-1: BAT0 charge: 28.3 Wh (38.7%) condition: 73.1/71.0 Wh (102.9%)
volts: 15.1 min: 15.4
CPU:
Info: 8-core model: AMD Ryzen 7 6800U with Radeon Graphics bits: 64
type: MT MCP cache: L2: 4 MiB
Speed (MHz): avg: 1668 min/max: 1600/4767 cores: 1: 1600 2: 1600 3: 1600
4: 1600 5: 1600 6: 1600 7: 1600 8: 1600 9: 1600 10: 1600 11: 1600 12: 2700
13: 1600 14: 1600 15: 1600 16: 1600
Graphics:
Device-1: AMD Rembrandt [Radeon 680M] driver: amdgpu v: kernel
Device-2: Luxvisions Innotech Integrated RGB Camera type: USB
driver: uvcvideo
Display: server: X.Org v: 22.1.3 with: Xwayland v: 22.1.3 driver: X:
loaded: amdgpu unloaded: modesetting gpu: amdgpu resolution: 1688x1059~90Hz
OpenGL: renderer: AMD YELLOW_CARP (LLVM 14.0.6 DRM 3.46 5.18.11)
v: 4.6 Mesa 22.1.3
Audio:
Device-1: AMD Rembrandt Radeon High Definition Audio driver: snd_hda_intel
Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: snd_pci_acp6x
Device-3: AMD Family 17h/19h HD Audio driver: snd_hda_intel
Sound Server-1: ALSA v: k5.18.11 running: yes
Sound Server-2: PipeWire v: 0.3.55 running: yes
Network:
Device-1: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
driver: mt7921e
IF: wlan0 state: up mac: <filter>
Drives:
Local Storage: total: 476.94 GiB used: 79.51 GiB (16.7%)
ID-1: /dev/nvme0n1 vendor: Lenovo model: UMIS RPJTJ512MGE1QDY
size: 476.94 GiB
Partition:
ID-1: / size: 476.44 GiB used: 79.15 GiB (16.6%) fs: btrfs
dev: /dev/nvme0n1p2
ID-2: /boot size: 510 MiB used: 369.6 MiB (72.5%) fs: vfat
dev: /dev/nvme0n1p1
ID-3: /home size: 476.44 GiB used: 79.15 GiB (16.6%) fs: btrfs
dev: /dev/nvme0n1p2
ID-4: /var/log size: 476.44 GiB used: 79.15 GiB (16.6%) fs: btrfs
dev: /dev/nvme0n1p2
Swap:
ID-1: swap-1 type: zram size: 4 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 49.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 364 Uptime: 27m Memory: 13.35 GiB used: 4.25 GiB (31.9%)
Shell: fish inxi: 3.3.19Here is my libinput output
Device: Video Bus
Kernel: /dev/input/event3
Group: 1
Seat: seat0, default
Capabilities: keyboard
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: n/a
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: n/a
Rotation: n/a
Device: Power Button
Kernel: /dev/input/event1
Group: 2
Seat: seat0, default
Capabilities: keyboard
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: n/a
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: n/a
Rotation: n/a
Device: Lid Switch
Kernel: /dev/input/event0
Group: 3
Seat: seat0, default
Capabilities: switch
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: n/a
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: n/a
Rotation: n/a
Device: HD-Audio Generic Headphone
Kernel: /dev/input/event16
Group: 4
Seat: seat0, default
Capabilities: keyboard
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: n/a
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: n/a
Rotation: n/a
Device: Integrated RGB Camera: Integrat
Kernel: /dev/input/event10
Group: 5
Seat: seat0, default
Capabilities: keyboard
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: n/a
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: n/a
Rotation: n/a
Device: Integrated RGB Camera: Integrat
Kernel: /dev/input/event11
Group: 5
Seat: seat0, default
Capabilities: keyboard
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: n/a
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: n/a
Rotation: n/a
Device: Ideapad extra buttons
Kernel: /dev/input/event12
Group: 6
Seat: seat0, default
Capabilities: keyboard
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: n/a
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: n/a
Rotation: n/a
Device: MSFT0001:00 06CB:CE44 Mouse
Kernel: /dev/input/event5
Group: 7
Seat: seat0, default
Capabilities: pointer
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: disabled
Nat.scrolling: disabled
Middle emulation: n/a
Calibration: n/a
Scroll methods: *button
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: flat *adaptive
Rotation: n/a
Device: MSFT0001:00 06CB:CE44 Touchpad
Kernel: /dev/input/event6
Group: 7
Seat: seat0, default
Size: 117x72mm
Capabilities: pointer gesture
Tap-to-click: disabled
Tap-and-drag: enabled
Tap drag lock: disabled
Left-handed: disabled
Nat.scrolling: disabled
Middle emulation: disabled
Calibration: n/a
Scroll methods: *two-finger edge
Click methods: *button-areas clickfinger
Disable-w-typing: enabled
Disable-w-trackpointing: enabled
Accel profiles: flat *adaptive
Rotation: n/a
Device: Wacom HID 52D3 Pen
Kernel: /dev/input/event13
Group: 8
Seat: seat0, default
Size: 302x189mm
Capabilities: tablet
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: identity matrix
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: none
Rotation: n/a
Device: Wacom HID 52D3 Finger
Kernel: /dev/input/event14
Group: 8
Seat: seat0, default
Size: 302x189mm
Capabilities: touch
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: identity matrix
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: n/a
Rotation: n/a
Device: AT Translated Set 2 keyboard
Kernel: /dev/input/event2
Group: 9
Seat: seat0, default
Capabilities: keyboard
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: n/a
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: n/a
Rotation: n/aIf you need more info please let me know.
Offline
After some investigating, I found out that the laptop lid closing works fine, it's just the suspending that doesn't seem to work. When I run
sudo systemctl suspend the screen goes to black for a second then the lock screen just pops up. When I run
suspend in the terminal it just says
⋊ suspend
Suspending 3592: run kill -CONT 3592 from another terminal to resumeit just does nothing. I'm still confused as to why it doesn't work as expected
When looking at
journalctlI see that it tries to suspend as in goes to the sleep state but then proceeds to exit straight after
Journal file /var/log/journal/2b3a629fcd024897a96fe0bdc39be0f2/user-1000@0005e45fd11faee4-230ce5845737ffc1.journal~ is truncated, ignoring file.
Jul 22 00:10:00 rodude123s-yoga7 systemd-sleep[5601]: Entering sleep state 'suspend'...
Jul 22 00:10:00 rodude123s-yoga7 kernel: PM: suspend entry (s2idle)
Jul 22 00:10:02 rodude123s-yoga7 kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Jul 22 00:10:02 rodude123s-yoga7 kernel: queueing ieee80211 work while going to suspend
Jul 22 00:10:02 rodude123s-yoga7 kernel: PM: suspend exit
Jul 22 00:10:02 rodude123s-yoga7 systemd[1]: systemd-suspend.service: Deactivated successfully.
Jul 22 00:10:02 rodude123s-yoga7 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jul 22 00:10:02 rodude123s-yoga7 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jul 22 00:10:02 rodude123s-yoga7 kernel: audit: type=1130 audit(1658445002.175:104): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jul 22 00:10:02 rodude123s-yoga7 kernel: audit: type=1131 audit(1658445002.175:105): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jul 22 00:10:56 rodude123s-yoga7 pipewire[1142]: pw.node: (alsa_output.pci-0000_33_00.6.analog-stereo-57) suspended -> error (Start error: No such file or directory)
Jul 22 00:11:34 rodude123s-yoga7 kernel: nvme 0000:02:00.0: platform quirk: setting simple suspend
Jul 22 00:13:03 rodude123s-yoga7 baloo_file_extractor[2207]: kf.baloo: "/home/rodude123/Downloads/linux-5.18.11/Documentation/admin-guide/pm/suspend-flows.rst" id seems to have changed. Perhaps baloo was not running, and this file was deleted + re-created
Jul 22 00:13:10 rodude123s-yoga7 baloo_file_extractor[2207]: kf.baloo: "/home/rodude123/Downloads/linux-5.18.11/Documentation/arm/samsung-s3c24xx/suspend.rst" id seems to have changed. Perhaps baloo was not running, and this file was deleted + re-created
Jul 22 00:14:22 rodude123s-yoga7 dbus-daemon[508]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.140' (uid=0 pid=4316 comm="sudo suspend")Offline
I'm having the same issue and I'm also on a Yoga 7 (6800U). Any suggestions?
Offline
I'm having the same issue and I'm also on a Yoga 7 (6800U). Any suggestions?
Post a complete journal and logind.conf.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline