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

TV sercvice error on latest Raspbian #12

Closed gkreidl closed 8 years ago

gkreidl commented 8 years ago

tvservice-client: Failed to connect to TV service: -1 raspi2png: unable to open display 0

Using latest firmware on RPi3

AndrewFromMelbourne commented 8 years ago

Thanks for the report. Unfortunately, I don't have a RPI3. Can you try rebuilding the executable and see if that helps?

gkreidl commented 8 years ago

I compiled it again, but doesn't make a difference. I suppose it won't work on a RPi2 either after updating to the latest firmware (not using rpi-update, just the official release).

Thanks for the report. Unfortunately, I don't have a RPI3. Can you try rebuilding the executable and see if that helps?

AndrewFromMelbourne commented 8 years ago

Do you have the experimental OpenGL driver enabled?

gkreidl commented 8 years ago

No

AndrewFromMelbourne commented 8 years ago

I can't reproduce the problem on a Pi2. I had been on the NEXT branch of the Raspberry Pi, but re-installed the raspberrypi-bootloader package.

$ uname -a
Linux rpi1024b 4.1.18-v7+ #846 SMP Thu Feb 25 14:22:53 GMT 2016 armv7l GNU/Linux
$ vcgencmd version
Feb 25 2016 14:25:47
Copyright (c) 2012 Broadcom
version dea971b793dd6cf89133ede5a8362eb77e4f4ade (clean) (release)
gkreidl commented 8 years ago

Strangely enough it is working now after rebooting. I had another problem with tvservice command a few days ago. Maybe it crashed in special circumstances and the problem is not related to raspi2png at all. I'll report if it happens again.

AndrewFromMelbourne commented 8 years ago

I would be surprised if raspi2png stopped working and other programs that use the DispmanX interface still worked. It is possible that another program you are using is corrupting the GPU. The raspi2png program is very simple, most of the issues relate to issues with the firmware.

AndrewFromMelbourne commented 8 years ago

Closing ... reopen if as necessary.