Edent, (edited )
@Edent@mastodon.social avatar

At some point in the last few months, Pop_OS has stopped sleeping / suspending when I close my laptop's lid.

Even manually telling it systemctl suspenddoesn't work; it just takes me back to the lock screen.

Running sudo /lib/systemd/systemd-sleep suspend does suspend. As does echo "mem" > /sys/power/state. But when I push the power button I get straight in, no lock screen.

Help! How do I get my laptop to sleep when the lid is closed, and awaken to a lock screen?

#Linux #Ubuntu #PopOS

machineyearning,
@machineyearning@mastodon.social avatar

@Edent I believe the ACPI (advanced configuration power interface) error codes + psmouse (pointer device driver) issue are relevant and not just logspam. Check your mouse driver for recent updates and ensure your mouse/trackpad aren't on the fritz.

I think disabling wakeup for isa0060/serio2 in /proc/acpi/wakeup could fix it at the cost of preventing you from waking your computer from sleep using the trackpad or whatever that pointer device is. But that would be more of a patch than a fix.

Edent,
@Edent@mastodon.social avatar

@machineyearning
My trackpad is working. I use apt update and there's no updates for it.
How do I disable the wake lock for it?

machineyearning,
@machineyearning@mastodon.social avatar

@Edent

  1. find the device that you want to disable in /proc/acpi/wakeup
  2. change 'enabled' to 'disabled' on that line
  3. confirm that it works by putting computer to sleep
  4. find some mechanism to do steps 1&2 every time your computer reboots as the file resets after reboot (see below)
    https://unix.stackexchange.com/questions/417956/make-changes-to-proc-acpi-wakeup-permanent

Best of luck!

Edent,
@Edent@mastodon.social avatar

@machineyearning Any idea which of these is the one I want to disable?
Nothing in that says the name of the device.
Thanks!

machineyearning,
@machineyearning@mastodon.social avatar

@Edent Try seeing if one of these sysfs nodes shows up in lspci -vv (list pci devices) or lsusb -v (list usb devices) and is connected to isa0060?

machineyearning,
@machineyearning@mastodon.social avatar

@Edent Scratch that. serio2 implies the device connected to the second serial port. Does dmesg | grep ttyS1 give you anything useful?

Edent,
@Edent@mastodon.social avatar

@machineyearning sadly not.
Only think similar is
printk: console [tty0] enabled

howtophil,
@howtophil@mastodon.social avatar

@Edent Did you at some point disable the screen blank screensaver either in whatever screensaver configuration tool you use or the power savings settings tool you use?

Edent,
@Edent@mastodon.social avatar

@howtophil Not that I recall. I've never had a screensaver and, after a few minute of idle, the screen still automatically locks.

howtophil,
@howtophil@mastodon.social avatar

@Edent Hmm... What happens when you press the little button that lets the laptop know the screen is down with your finger?

Anything interesting in dmesg after 'systemctl suspend' fails?

Edent,
@Edent@mastodon.social avatar

@howtophil after hitting the button, I checked journalctl --grep='suspend|sleep' --no-pager and got this.

dmesg just seems to show it waking immediately.

dmesg output.

howtophil,
@howtophil@mastodon.social avatar

@Edent It's been a while since I had the problem... "failed to disable mouse" looks interesting since mouse activity often wakes up a computer in sleep mode...

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines