You are not logged in.

#1 2017-10-12 03:58:07

randNum17
Member
Registered: 2017-10-12
Posts: 2

Suspend troubleshooting wiki help

Hi there!

I recently installed Arch on my Macbook Pro 2015, and I've been having problems suspending. I checked the wiki, and this:
https://wiki.archlinux.org/index.php/Ma … _Hibernate exactly described my problem, where my computer would wake up a few seconds after suspend.

However, I am not sure what I'm supposed to do. It says to disable everything in  /proc/acpi/wakeup except LID0, but I don't know how to do that. There's a section underneath it showing the expected output, but I try executing

echo XHC1 > /proc/acpi/wakeup
cat /proc/acpi/wakeup

but that does absolutely nothing. So what am I actually supposed to run/do?

Sorry if this is trivial.

Offline

#2 2017-10-12 07:43:49

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

Re: Suspend troubleshooting wiki help

"cat /proc/acpi/wakeup" should print some - if there's no XHC1 entry, that won't do anything
Writing the 3/4-byte ID into /proc/acpi/wakeup will toggle the behavior (cat'ing the file again should reflect that) but you need root permissions for this (either su or "echo FOO | sudo tee /proc/acpi/wakeup")

If "cat /proc/acpi/wakeup" doesn't print anything, you've more problems than STR ...

Offline

#3 2017-10-12 22:44:12

randNum17
Member
Registered: 2017-10-12
Posts: 2

Re: Suspend troubleshooting wiki help

Thank you, I got it to work.

However, it resets everything whenever I restart the computer. The wiki does have a section on how to make it permanent, but again, I'm not sure what I'm supposed to do. It says to "cat /etc/udev/rules.d/90-xhc_sleep.rules", but the file doesn't even exist.

Offline

#4 2017-10-12 22:47:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Suspend troubleshooting wiki help

You have to write your own udev rules if you want to make these sorts of settings persistent.

That code snippet is an example.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB