Laptop in suspend wakes up when lid is closed

I have put Manjaro on a Samsung Galaxy Chromebook 4K using this guide

The reason I’m going about the suspend in a weird way (manually clicking “suspend” on start/task bar) is the lid close doesn’t suspend the laptop. When it does “turn off” the battery still drains too quickly.

I’m on kernel 6.3

I have done the following:

  • cat /sys/power/mem_sleep has [deep] selected
  • /etc/default/grub has GRUB_CMDLINE_LINUX_DEFAULT set to quiet splash mem_sleep_default=deep
  • /etc/systemd/logind.conf has HandleLidSwitch=ignore seems to do nothing
  • I added 3GB of swap
  • turned the lid actions off in Energy Saving (still wakes up from suspend on lid close)

Ideally I’d like to have it where I can just close the lid and it goes into real suspend (saves battery not as much as hibernate). Sample figure using systemctl suspend 7% drop of battery in 45 mins. I will try the start button sleep in the mean time.

Full dump of journalctl regarding suspend.

May 19 11:50:43 jacob-galaxy-chromebook systemd-logind[362]: The system will suspend now!
May 19 11:50:43 jacob-galaxy-chromebook ModemManager[378]: <info>  [sleep-monitor-systemd] system is about to suspend
May 19 11:50:44 jacob-galaxy-chromebook systemd[1]: Starting System Suspend...
May 19 11:50:44 jacob-galaxy-chromebook systemd-sleep[1416]: Entering sleep state 'suspend'...
May 19 11:50:44 jacob-galaxy-chromebook kernel: PM: suspend entry (deep)
May 19 11:50:46 jacob-galaxy-chromebook kernel: printk: Suspending console(s) (use no_console_suspend to debug)
May 19 11:50:46 jacob-galaxy-chromebook kernel: PM: suspend exit
May 19 11:50:46 jacob-galaxy-chromebook systemd[1]: systemd-suspend.service: Deactivated successfully.
May 19 11:50:46 jacob-galaxy-chromebook systemd[1]: Finished System Suspend.
May 19 11:50:46 jacob-galaxy-chromebook 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'
May 19 11:50:46 jacob-galaxy-chromebook 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'
May 19 11:50:46 jacob-galaxy-chromebook kernel: audit: type=1130 audit(1684515046.693:101): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=?>
May 19 11:50:46 jacob-galaxy-chromebook kernel: audit: type=1131 audit(1684515046.693:102): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=?>
May 19 11:50:46 jacob-galaxy-chromebook systemd[1]: Reached target Suspend.
May 19 11:50:46 jacob-galaxy-chromebook systemd[1]: Stopped target Suspend.
May 19 11:51:33 jacob-galaxy-chromebook systemd-logind[362]: The system will suspend now!
May 19 11:51:33 jacob-galaxy-chromebook ModemManager[378]: <info>  [sleep-monitor-systemd] system is about to suspend
May 19 11:51:34 jacob-galaxy-chromebook systemd[1]: Starting System Suspend...
May 19 11:51:34 jacob-galaxy-chromebook systemd-sleep[1607]: Entering sleep state 'suspend'...
May 19 11:51:34 jacob-galaxy-chromebook kernel: PM: suspend entry (deep)
May 19 11:51:41 jacob-galaxy-chromebook kernel: printk: Suspending console(s) (use no_console_suspend to debug)
May 19 11:51:41 jacob-galaxy-chromebook kernel: PM: suspend exit
May 19 11:51:41 jacob-galaxy-chromebook systemd[1]: systemd-suspend.service: Deactivated successfully.
May 19 11:51:41 jacob-galaxy-chromebook systemd[1]: Finished System Suspend.

Suspend does seem to be working at least I noted a 4% drop of battery in 2 hours… extrapolating I think I could expect an overnight drop of 16-20%. This is okay as long as I can keep going/just plug it in.

I just need to figure out how to stop it from waking when I close the lid.

Yeah I’m looking into power devil

https://unix.stackexchange.com/questions/717438/how-to-disable-kde-power-devil

I also set all the lidAction values here to 0

.config/powermanagementprofilesrc

no effect, I was trying to downgrade upower as per this thread, but can’t seem to do so

https://bbs.archlinux.org/viewtopic.php?id=274488

Using sudo pacman -S upower-0.99.16

A hardcore fix is to remove the magnet on the bottom lid since I saw it before/know where it is. Although that might be for tablet mode though.

I was trying to get it to suspend using Energy Saving settings eg. “Suspend in 3 minutes” that doesn’t work. – it seems like it tries to, when opening lid it’s a black screen/cursor, I put some blacklist configs in (as per the chromebook guide in OP) maybe those aren’t set right somehow.

Ooh I think I’m onto something here.

ACPI: PM: Low-level resume complete

Trying some things

Yes… it works

Fix is here

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

Hi, I have the same samsung galaxy chromebook. I installed Fedora 40 and ran audio script to set up audio and mic. I followed the link to set up (manual suspend, then close lid). But have you found out the solution to have close lid doing real suspend?

Also, are you able to get fingerprint working?