AndrewFromMelbourne / raspi2png

Utility to take a snapshot of the Raspberry Pi screen and save it as a PNG file
MIT License
213 stars 78 forks source link

Raspberry Pi 4 can't take screenshot of second screen. #32

Open elbombillopublic opened 3 years ago

elbombillopublic commented 3 years ago

On a Raspberry Pi 4 with no GUI, I have two monitors connected and I have a video playing using omxplayer on screen 0 (display 2) and just the login screen on the second monitor. All screenshots are from HDMI0, I can't get one from the second screen. I tried the following commands...

/usr/bin/raspi2png -D 1 --pngname /unit/hdmi1_screenshot.png /usr/bin/raspi2png -D 2 --pngname /unit/hdmi1_screenshot.png /usr/bin/raspi2png -D 7 --pngname /unit/hdmi1_screenshot.png

elbombillopublic commented 3 years ago

My mistake. This binary is awesome. This seems to work....

/usr/bin/raspi2png --display 7 --pngname /unit/hdmi1_screenshot.png