![]() ![]() Add this line last in the file: hass ALL=NOPASSWD:/usr/sbin/pm-suspend, where you replace hass with the name of your user on the target, if different, and /usr/sbin/pm-suspend with the command of your choice, if different. On the target, using an account with sudo access (typically your main account), sudo visudo.On my system, this is /usr/sbin/pm-suspend. I use the following command to turn on another computer (running Windows): wakeonlan 74:d0:2b:92:0f:fa. First, get the full path: which pm-suspend. Can I use Wake-on-LAN to turn my computer off Ask Question. Here is it pm-suspend, use poweroff to turn off the computer. On the target, we need to let the hass user execute the program needed to suspend/shut down the target computer. ![]()
0 Comments
Leave a Reply. |