-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect Resolution Set in /dev/shm/retroarch.cfg #3338
Comments
video_refresh_rate is also set incorrectly to 60 instead of the reported 59.93Hz but according to the code that is the desired function (to round to an integer) |
output from xrandr --verbose to help debug the issue
|
This code was done by @psyke83 - maybe he has an idea The code grabs the primary display and all modes supported by it then references them via the connected display ID (0x18d in this case). Although the first reference has 1280x720 the first mode is actually 720x1280. We might be able to workaround it by adding an option to ignore xrandr completely or swap the values based on the string "inverted" , but not sure the best fix if retroarch requires the values swapped as it would seem correct how we have them set in regards to the orientation. |
I will need to look at the retroarch code also. |
I think that this part of the log signifies the orientation: "DSI-0 connected primary 1280x720+0+0 (0x18d) left (normal left inverted right x axis y axis) 0mm x 0mm" The possible orientation types reported by xrandr are normal, left, right and inverted. When I have time, I'll check the retroarch config to see if there's an additional setting that we need to map to handle the specific orientation type, as simply doing an x/y resolution flip may not work for everybody. |
Thanks. |
If I might ask, what is the reason for this functionality at all? I will note xrandr is a mess.. you have to be careful how you get that resolution and rotation info, you can get different output depending if your xrandr backend uses v1.2 and newer commands or v1.1 older (one might say 720x1280 normal while the other will say 1280x720 left) |
@psyke83 can you look at this again? still an issue |
basically the issue is this function RetroPie-Setup/scriptmodules/supplementary/runcommand/runcommand.sh Lines 272 to 323 in f271ce9
doesn't take into account rotation values left/right/inverted etc, AT ALL here is verbose output to help with your fixing. you will need to switch to reading the resolution from the first line since this is the only correct spot to query it
|
Screen is rotated with xrandr left at boot time on this system (nintendo switch)
Retropie incorrectly populates the /dev/shm/retroarch.cfg with
the X and Y values are backwards and causes all retroarch emulators to crash with output such as
reversing the X and Y values manually in this file and launching with the same command works fine
this is not an issue for display configurations where the screen is not rotated
RetroPie-Setup/scriptmodules/supplementary/runcommand/runcommand.sh
Line 1089 in d6d715b
RetroPie-Setup/scriptmodules/supplementary/runcommand/runcommand.sh
Line 404 in d6d715b
applicable code linked above
The text was updated successfully, but these errors were encountered: