Would like to be able to keep remote device awake that doesn't have typical "sleep" settings.
Linked from:
- Michael Lynch @michael2021-02-24 21:20:59.884Z2023-07-03 16:24:45.502Z
Edit (2023-07-23): We now have an official solution for this.
- GAlfredo Granados @granadosjr
exactly what i needed! thanks for the script!
- Michael Lynch @michael2023-07-03 16:25:18.701Z
@granadosjr - We now have a better solution that's more robust.
- TIn reply toppxntwq⬆:Brandon Friesen @TCW
I would like to see this added to the WebUI. I have a hardware based jiggler that moves the mouse cursor 1pixel at a time but it would be nice not to have to plug another device into the target machine.
- Michael Lynch @michael2022-06-24 19:32:55.897Z
Thanks for the feedback!
Have you tried using the software-based jiggle script above?
- TIn reply toppxntwq⬆:@tinyuser2022
Hi, the script works but how can you run it in the backround without a permanent ssh connection?
- TMike @tiny_flyer
To run any script to persist in the background add you would execute the command as follows
nohup ./tinypilot-jiggle.bash &
The nohup portion runs the command regardless of console connection. The ampersand "&" runs the process in the background. Used together it runs the script in the background and doesn't stop when the connection is dropped
- CCharles Hague @cghague2022-11-29 18:23:50.943Z
Thanks for sharing this Mike! It's worth noting that the script won't automatically restart if the TinyPilot device has been rebooted when using this method - you'll need to SSH in and manually launch it each time that happens. There are ways to get the script to automatically launch on startup but I'd advise against that as it's caused issues for troubleshooting in the past.
- TMike @tiny_flyer
Thank you for clarifying Charles. You are correct.
- TIn reply toppxntwq⬆:@tinyuser2022
Hi, i added a cronjob with the specific mouse parameters from the script. So it just runs in the background even after a reboot. Since now i do not have any hassle.
# m h dom mon dow command */5 * * * * /bin/echo -ne "\0\x03\x16\x58\x4c\0\0" > /dev/hidg1 */5 * * * * /bin/echo -ne "\0\xbc\x1b\xdd\x2a\0\0" > /dev/hidg1
- CCharles Hague @cghague2022-11-29 21:49:43.598Z
Thanks for sharing this with us @tinyuser2022!