How to take a remote screenshot on the Raspberry Pi
You can login to your Raspi using ssh -CX pi@IPADDRESS and then run
remote-screenshot.sh
DISPLAY=:0 scrot screenshot.pngto take a screenshot of the display that is currently attached. After that, use
view_screenshot_local.sh
feh screenshot.png(due to ssh -CX this will display the image locally on your Linux desktop) or copyscreenshot.png to your local computer using scp, rsync, WinSCP or any other tool.
This is useful for debugging what is happening on your display.
Check out similar posts by category:
Raspberry Pi
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow