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?


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?