Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3626

Troubleshooting • How to move the mouse pointer automatically?

$
0
0
I'm making a (usually) non-interactive sign, that simply displays a web page full screen. I haven't been impressed with the dedicated OS's that do exactly that, so I'm using the standard Raspberry Pi OS with some bash scripts that run on startup:
  • One is called from /etc/rc.local, and does a weekly update and reboot.
  • Another is called from a desktop file in ~/.config/autostart, and actually starts the browser.
All of that works.

(I'd rather have one script in root's cron @reboot and the other in the user's cron @reboot, but for some reason, cron doesn't seem to do anything either. Doesn't even [echo test > logfile]. Don't know why. But the above does work. Oh well, document it for future maintenance and move on.)

---

Now I can't seem to get the mouse pointer out of the way. I thought briefly about just hiding it, so it's technically still in the middle of the screen but not visible, but the web page can still display differently with a hover-over, which is what that would be.

Don't want that. It does actually have to *move* to somewhere that doesn't matter, like the bottom right corner of the screen, which would also mean that the visibility doesn't matter anymore for normal use. In fact, it should probably stay visible, so that occasional maintenance can plug in a mouse and keyboard and work with it like a normal PC.

There are lots of questions and answers and forum threads and tutorials and etc. and so on...that are all old and don't seem to work anymore. For example,

Code:

xdotool mousemove 1920 1080
does absolutely nothing now. No effect, no messages of any kind, and returns immediately, in both script and terminal.

So, how to do it on TODAY'S Raspberry Pi OS, that was downloaded yesterday and updated today?

Statistics: Posted by AaronD — Tue Sep 03, 2024 7:44 pm — Replies 1 — Views 46



Viewing all articles
Browse latest Browse all 3626

Trending Articles