I used ydotool (similar to xdotool for X11) to move the mouse pointer off screen, on my RPi4.
The HOWTO is described here:
https://askubuntu.com/questions/1470593/how-can-i-write-a-program-to-press-keys-such-as-windows-d-in-wayland-repla/1473061#1473061
And below the summary + some additions:
1/ Obtain build tools
sudo apt install git cmake scdoc
2/ Get the latest version off GitHub (note: ydotool on the RPi apt sources will not work) and build
git clone https://github.com/ReimuNotMoe/ydotool.git
cd ydotool
mkdir build
cd build
cmake ..
time make -j "$(nproc)"
sudo make install
4/ Verify version:
$ ydotoold --version
v1.0.4-33-gb0c5da3
3/ Run the daemon and connect to the socket, to test
sudo -b /usr/local/bin/ydotoold --socket-path="$HOME/.ydotool_socket" --socket-own="$(id -u):$(id -g)"
YDOTOOL_SOCKET="$HOME/.ydotool_socket" /usr/local/bin/ydotool mousemove -a -x 1800 -y 1000
4/ Allow ydotoold to execute without the need for entering the sudo password
sudo visudo /etc/sudoers
myuser ALL=(ALL)NOPASSWD: /usr/local/bin/ydotoold
5/ Use systemd or similar to start ydotoold at boot and move the mouse pointer (using the two commands under step 3).