Video modes failed - Ubuntu x64
-
Dear all,
Trying to choose a video mode failed through the command menu :
Here is what then will be written to videomodes.cfg :
lr-mame2016 = "
Error: Expected at least 5 tokens for --menu, have 4.
Use --help to list options."I have an Nvidia Card properly installed (proprietary driver with drm activated), I analyzed the command.sh file, tried modetest command as follows
/opt/retropie/supplementary/mesa-drm# ./modetest -r result is :
trying to open device 'vc4'...failed
trying to open device 'i915'...failed
trying to open device 'amdgpu'...failed
trying to open device 'radeon'...failed
trying to open device 'nouveau'...failed
trying to open device 'vmwgfx'...failed
trying to open device 'omapdrm'...failed
trying to open device 'exynos'...failed
trying to open device 'tilcdc'...failed
trying to open device 'msm'...failed
trying to open device 'sti'...failed
trying to open device 'tegra'...failed
trying to open device 'imx-drm'...failed
trying to open device 'rockchip'...failed
trying to open device 'atmel-hlcdc'...failed
trying to open device 'fsl-dcu-drm'...failed
trying to open device 'virtio_gpu'...failed
trying to open device 'mediatek'...failed
trying to open device 'meson'...failed
trying to open device 'pl111'...failed
trying to open device 'stm'...failed
trying to open device 'sun4i-drm'...failed
trying to open device 'armada-drm'...failed
no device foundAny idea ?
-
modetest
is not used for PC installations, only for the Pi4 (at the moment). For PC installs,xrandr
is used - can you post the output ofxrandr --verbose
on pastebin.com ?Please also add the info requested in https://retropie.org.uk/forum/topic/3/read-this-first.
-
Thank you for your prompt answer!
Please find below the result of xrandr
https://pastebin.com/uA8b3a9i -
May be similar to https://retropie.org.uk/forum/topic/26362/low-resolution-no-options-in-ubuntu/20, can you try the same workaround ?
-
Yes, you rock !
it works with this change
indeed in the file /opt/retropie/supplementary/runcommand/runcommand.shchanged the line : id="$(echo "$line" | awk '{ print $2 }' | grep "([0-9]\{1,\}x[0-9]\{1,\})")" with this line id="$(echo "$line" | awk '{ print $2 }' | grep -o "(0x[a-f0-9]\{1,\})")" And the line : mode_id[1]="$($XRANDR --verbose | grep " connected" | grep -o "([0-9]\{1,\}x[0-9]\{1,\})")" with this line mode_id[1]="$($XRANDR --verbose | grep " connected" | grep -o "(0x[a-f0-9]\{1,\})")"
Now the video mode selection is working great
Many thanks
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.