I use the following script to VNC into my computer using an old tablet to turn the tablet into a second monitor:
xrandr --fb 3840x1080 --output eDP-1 --panning 3840x1080+0+0/3840x1080+0+0
sleep 3
xrandr --fb 3840x1080 --output eDP-1 --panning 1920x1080+0+0/3840x1080+0+0
x11vnc -clip 1920x1080+1921+0 -nocursorshape -nocursorpos -ncache 10 -ncache_cr
xrandr --fb 1920x1080
I don't think there is an equivalent of xrandr on (any major) Wayland (implementations), so I wonder if there is any other ways to use an old tablet as a second monitor. Sorry for the bad title, I just didn't know how else to phrase it.
I am using Ubuntu 18.04 if that matters.
Thanks!