@lospompadores
Could You please help me to create and enable service to take may Manjaro Cinnamon PC to sleepsuspend (to ram)? All was good till nV driv this is my outpuers updating about a 10 days ago
When i type cat /proc/acpi/wakeup this is my output:
Device
S-state
Status Sysfs node
SBAZ
S4
*disabled
PS2K
S3
*disabled
PS2M
S3
*disabled
P0PC
S4
*disabled pci:0000:00:14.4
GEC
S4
*disabled
UHC1
S4
*enabled pci:0000:00:12.0
UHC2
S4
*enabled pci:0000:00:12.2
USB3
S4
*enabled pci:0000:00:13.0
UHC4
S4
*enabled pci:0000:00:13.2
USB5
S4
*enabled pci:0000:00:16.0
UHC6
S4
*enabled pci:0000:00:16.2
UHC7
S4
*enabled pci:0000:00:14.5
PE20
S4
*disabled
PE21
S4
*disabled
PE22
S4
*disabled
PE23
S4
*disabled
PC02
S4
*enabled pci:0000:00:02.0
PC03
S4
*disabled
PC04
S4
*enabled pci:0000:00:04.0
PC05
S4
*enabled pci:0000:00:05.0
PC06
S4
*disabled
PC07
S4
*disabled
PC09
S4
*enabled pci:0000:00:09.0
GBE
S4
*disabled pci:0000:04:00.0
PC0A
S4
*disabled
PC0B
S4
*disabled
PC0C
S4
*disabled
PC0D
S4
*disabled
PWRB
S3
*enabled platform:PNP0C0C:00
When i set processes from UHC1->UHC7 to state *disabled with sudo sh -c "echo UHC1 > /proc/acpi/wakeup" my PC went to sleep wery well and no wakening but i am a noob and donāt know how to do that but automation when PC starts.
I donāt know whether Cinnamon has an āautostartā feature that allows you to start things at login, but I presume it does. And in that case, all youād need to put in there would be a small shell scriptā¦
#!/bin/sh
for i in {1..7}
do
sudo sh -c "echo UHC{i} > /proc/acpi/wakeup"
done
Of course, you would need to make the script executable, and you would need to set up /etc/sudoers so that the above script can be executed without prompting for a password. Seeā¦
man sudoers
Disclaimer: I donāt use sleep/suspend/hibernation, so I trust that the command you gave is correct and that it must be sent to /proc/acpi/wakeup for each of the UHC values ā I donāt know about that because as I said, I donāt use it.
I am only trying to help you in automating the process, so if the script breaks your system, then you get to keep both pieces.
Normally, I would say run the script at boot with your rc.local file, but I donāt think arch systems have this. I canāt find it on my KDE system anyway.
Another way, and probably safer, as it does not require messing with sudoers file is to create the script, without sudo and make it run as a systemd-unit:
It is, yes, but what the OP is asking about is very unusual, and I trust they will be responsible and properly inform themselves.
That was my initial thought as well, but as Iāve never written a systemd service file, I would have to sufficiently research this subject myself before giving the OP any advice on how to do it.
Hello.
I found the time only now to try the ellipse-free script again and everything is fine when running, but the output for UHC1 ⦠UHC7 is still the same *enabled
I am trying to state *disable UHC1ā¦UHC7 and USB1ā¦USB3 ports because when state *ensbled my PC wonāt Suspend (to RAM).
Now iām gonna try Your advice and post a result.
@megavolt TNX TNX TNX
The sleep state of my computer now works like a charm thanks to your selfless help!!!