moonlight-stream / moonlight-embedded

Gamestream client for embedded systems
https://github.com/moonlight-stream/moonlight-embedded/wiki
GNU General Public License v3.0
1.49k stars 324 forks source link

Rotated output -- random timing #777

Open DMCShep opened 4 years ago

DMCShep commented 4 years ago

NVidia Geforce Experience version: 3.20.2.34 (latest) Moonlight Embedded version: Latest master as of 2020-01-13 Moonlight Embedded source: compiled from source Moonlight Embedded running on: Raspberry Pi 4B 1GB Moonlight Embedded running on distribution: Raspbian Buster (latest)

Verbose output -verbose of Moonlight Embedded:

Moonlight Embedded 2.4.10 (PI;ALSA;PULSE;EMBEDDED)
Searching for server...
Connect to 192.168.0.13...
NVIDIA GeForce GTX 1060 6GB, GFE 3.20.2.34 (gs_04_15_27341342, 7.1.415.0)
Platform Raspberry Pi (Broadcom)
Loading mappingfile /usr/local/share//moonlight/gamecontrollerdb.txt
No mapping available for USB Keyboard System Control (03000000450c00000376000011010000) on /dev/input/event2
Stream 1280 x 720, 60 fps, 10000 kbps
Initializing platform...done
Resolving host name...done
Starting RTSP handshake...done
Initializing control stream...done
Initializing video stream...done
Initializing audio stream...done
Initializing input stream...done
Starting control stream...done
Starting video stream...done
Starting audio stream...done
Starting input stream...done

What is the expected result? The image displays in the correct orientation when running moonlight stream

What happens instead of that? It displays in the correct orientation, but also sometimes does this: IMG_20200113_230339 It appears to -- even when having zero input -- randomly flip-flip between rotated and correct. I have no idea why.

DMCShep commented 4 years ago

Are there debug logs somewhere I can provide on top of the -verbose option? It still seems pretty bare-bones, and doesn't clue me into much of what is happening behind the scenes. If a log exists I will happily grab that!

Here is what I have attempted to fix the issue since I seem to be the only one with it and the unofficial Discord was also baffled as to a cause:

Self-Diagnostic steps:

Things to try now:

Issue as it stands is still unresolved. Determining if it is a code bug or a problem with my individual setup should prove insightful that said.

BeaudanBrown commented 4 years ago

I am also getting this, incredibly annoying Raspberry pi 4 B moonlight-embedded from apt-get Latest buster

DMCShep commented 4 years ago

There is a suspicion of it being related to the use of an HDMI switch and Pi 4 B compatibility with them. I have no idea why that would cause flipping, that still makes zero sense to me but at least there is a working theory.

Both of us chatted on the Discord and we are borh using HDMI switches so should have an update tonight. If it is in fact an HDMI switch problem, I would like to see in the troubleshooting guide a mention of this issue and a potential fix since it is such an easy one. Fingers crossed!

BeaudanBrown commented 4 years ago

The issue is confirmed still happening for me even with the switch removed 😭

DMCShep commented 4 years ago

Some combination of:

1) Removing HDMI Switch 2) Changing HDMI port from one furthest away from charging port 3) Removing microHDMI to HDMI adapter and using a wire with the correct ends (without adapter)

Fixed my flipping issue. Not sure which one was the culprit or why but I tested for several hours and zero issues during this timeframe. It's the longest I've been able to do it, so I'll go ahead and call this one good.

I will wait on confirmation from @BeaudanBrown to see if these fixed his issue before closing this ticket.