PC stops wake up after sleep in a week after installation

Hi, there! I love Manjaro like a distr which works and allows to undo most user mistake. I want report some behaviour. Last Year I have reinstalled os the second time after two years to document scripts and check my first assumptions. There is a weird behaviour i remember from the first install which repeat that time again. The first seven days is all perfect! Later when I leave pc in idle mode I can not wake up pc from the (sleep?). I used mouse and keyboard, may be it started fans, but display does not fresh. I pressed RESET button every time. I have USB keyboard. Then i found a rule which wake ups pc from keyboard. I do not want mouse movement touch pc state.
ACTION==“add”, SUBSYSTEM==“usb”, ATTRS{idVendor}==“046d”, ATTRS{idProduct}==“c328”, ATTR{power/wakeup}=“enabled”
inside /etc/udev/rules.d/10-wakeup.rules
Is it possible to solve it from the installation? I do not know because this rule has my keyboard vendor values. And I found this on a forum, while other 5 prev changes does not solved the issue.
And this behavior starts occasionally in exactly seven days after installation. It felt like something was broken inside my pc. Because everything was configured to this time.
Is it related to usb power bios settings somehow?
I have Manjaro KDE 6 Wayland
Amd Ryzen 7 2700
KDE Power settings: sent pc to sleep mode after idle

Hmm - the first seven days?

What do you mean - or how should it be understood?

What do you mean - do you mean that some little green midget is fiddling with your system at predefined intervals?

Check how your system is configured. Example from my workstation

 $ cat /sys/power/mem_sleep
s2idle [deep]

If the response contains [deep] (brackets indicate default) you should look into your swap configuration/size.

You can also change the default by sending a valid text to the system as root e.g.

echo s2idle /sys/power/mem_sleep

You can test how the value work by using systemctl

systemctl sleep

See man systemctl for more information

1 Like

Is it normal to have “USB power delivery in Soft Off state(S5)” Enabled - in BIOS ?

It is the same for me.

I do not reproduce it after updates. You can close it.

The first 7 days system woke up after sleep mode as usual, display reacts to my actions. And later it stopped to do that. I see pc starts fan and ligts, but nothing left then power reset computer. I have usb not ps/2 keyboard.

Assuming this is what you really meant, I’ve done the honours for you. If not, let us know. :wink: