B
B
Berkutman2018-10-17 17:50:37
linux
Berkutman, 2018-10-17 17:50:37

How do I turn off my computer after a period of inactivity?

It is necessary to turn off the computer after a period of inactivity, the mouse does not move there, etc.
Tell me how this can be done, the MATE graphical environment. It is necessary to turn off the computer, not to sleep or hibernation.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Berkutman, 2018-10-19
@Berkutman

Decided in the following way.

yum -y install xfce4-power-manager


echo "HandlePowerKey=poweroff" >> /etc/systemd/logind.conf
echo "IdleAction=poweroff" >> /etc/systemd/logind.conf
echo "IdleActionSec=10min" >> /etc/systemd/logind.conf
xfce4-power-manager
mkdir -p /home/user/.config/xfce4/xfconf/xfce-perchannel-xml/
cp $PATH_SCRIPT/config/xfce4-power-manager.xml /home/user/.config/xfce4/xfconf/xfce-perchannel-xml/
chown -R user:user /home/user/.config/xfce4

S
Sanes, 2018-10-17
@Sanes

https://www.ostechnix.com/auto-shutdown-reboot-sus...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question