You are not logged in.

#1 2023-05-19 19:47:32

jcun4128
Member
Registered: 2023-05-19
Posts: 2

[SOLVED] When lid is closed, laptop wakes from suspend

I put Manjaro KDE Plasma on a Samsung Galaxy Chromebook (intel i5)

Suspend does seem to work (4% battery drop in 2 hours)

I've tried the following:

- /etc/systemd/logind.conf has HandleLidSwitch=ignore seems to do nothing
- turned the lid actions off in Energy Saving (still wakes up from suspend on lid close)

Journalctl dump example (suspend then close lid):

-- Boot 9596538b48d7499e95aa60a96dda617c --
May 19 14:22:05 jacob-galaxy-chromebook kded5[641]: kscreen.kded: PowerDevil SuspendSession action not available!
May 19 14:39:48 jacob-galaxy-chromebook systemd-logind[363]: The system will suspend now!
May 19 14:39:49 jacob-galaxy-chromebook ModemManager[379]: <info>  [sleep-monitor-systemd] system is about to suspend
May 19 14:39:50 jacob-galaxy-chromebook systemd[1]: Starting System Suspend...
May 19 14:39:50 jacob-galaxy-chromebook systemd-sleep[2130]: Entering sleep state 'suspend'...
May 19 14:39:50 jacob-galaxy-chromebook kernel: PM: suspend entry (deep)
May 19 14:40:13 jacob-galaxy-chromebook kernel: printk: Suspending console(s) (use no_console_suspend to debug)
May 19 14:40:13 jacob-galaxy-chromebook kernel: PM: suspend exit
May 19 14:40:13 jacob-galaxy-chromebook systemd[1]: systemd-suspend.service: Deactivated successfully.
May 19 14:40:13 jacob-galaxy-chromebook audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/u>
May 19 14:40:13 jacob-galaxy-chromebook audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/us>
May 19 14:40:13 jacob-galaxy-chromebook systemd[1]: Finished System Suspend.
May 19 14:40:13 jacob-galaxy-chromebook kernel: audit: type=1130 audit(1684525213.709:109): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-su>
May 19 14:40:13 jacob-galaxy-chromebook kernel: audit: type=1131 audit(1684525213.709:110): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-su>
May 19 14:40:13 jacob-galaxy-chromebook systemd[1]: Reached target Suspend.
May 19 14:40:13 jacob-galaxy-chromebook systemd[1]: Stopped target Suspend.

I did try to disable powerdevil but it had no effect

systemd-inhibit output

WHO                     UID  USER  PID COMM                   WHAT                                                                                                    WHY                               >
ModemManager   0       root      379 ModemManager    sleep                                                                                                     ModemManager needs to reset device>
NetworkManager  0       root      369 NetworkManager   sleep                                                                                                     NetworkManager needs to turn off n>
UPower                0       root       521 upowerd                sleep                                                                                                     Pause device polling              >
PowerDevil          1000  jacob    765 org_kde_powerde handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch KDE handles power events          >
Screen Locker     1000  jacob    639 ksmserver             sleep                                                                                                      Ensuring that the screen gets lock>

Ideally I would close the lid and it suspends, wakes up as expected. However I've been using the suspend button on start bar.
In the past when I would close the lid, while the screen would turn off eventually it was not in suspend, even if the

cat /sys/power/mem_sleep

had

[deep]

selected

Where else should I check? Thanks for any ideas.

Side note: I'm also looking for a way to run functions on wake since my keyboard backlight is set to 100% every time it wakes up.

Last edited by jcun4128 (2023-05-19 21:21:23)

Offline

#2 2023-05-19 20:07:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,244

Re: [SOLVED] When lid is closed, laptop wakes from suspend

I put Manjaro KDE Plasma on a Samsung Galaxy Chromebook (intel i5)

https://bbs.archlinux.org/misc.php?action=rules

PowerDevil          1000  jacob    765 org_kde_powerde handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch KDE handles power events          >/

https://bbs.archlinux.org/viewtopic.php?id=274488
https://docs.kde.org/stable5/en/powerde … index.html

Offline

#3 2023-05-19 20:19:13

jcun4128
Member
Registered: 2023-05-19
Posts: 2

Re: [SOLVED] When lid is closed, laptop wakes from suspend

Ahh okay, I thought Arch is under Manjaro but okay. I shall take my leave then.

Thanks for the other info.

Edit: found fix here: https://wiki.archlinux.org/title/Power_ … om_suspend

My clue was this

ACPI: PM: Low-level resume complete

from jouirnalctl -n 150 logs

Last edited by jcun4128 (2023-05-19 21:21:59)

Offline

Board footer

Powered by FluxBB