Article 4X4RY Disable sleep using sysctl in pclinuxos 2020

Disable sleep using sysctl in pclinuxos 2020

by
rathorecdn
from LinuxQuestions.org on (#4X4RY)
i'm able to disable sleep into fedora and other distros using the following command

systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

but i recently switched to pclinuxos 2020 and the above command not working it has "sysctl" command.
when i execute following it shows

sysctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

-------------------------------------------------------------
sysctl: cannot stat /proc/sys/mask: No such file or directory
sysctl: cannot stat /proc/sys/sleep/target: No such file or directory
sysctl: cannot stat /proc/sys/suspend/target: No such file or directory
sysctl: cannot stat /proc/sys/hibernate/target: No such file or directory
sysctl: cannot stat /proc/sys/hybrid-sleep/target: No such file or directory
-------------------------------------------------------------

what is the procedure to completely disable sleep ang other all targets using sysctl in pclinuxos?latest?d=yIl2AUoC8zA latest?i=Vd4E4z__Xww:BMztM2zByvg:F7zBnMy latest?i=Vd4E4z__Xww:BMztM2zByvg:V_sGLiP latest?d=qj6IDK7rITs latest?i=Vd4E4z__Xww:BMztM2zByvg:gIN9vFwVd4E4z__Xww
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments