Build Your Own Arcade Controls Forum

Software Support => GroovyMAME => Topic started by: OverRide on November 19, 2021, 08:57:22 pm

Title: Switchres 2.002 - Linux - Could not find video mode...
Post by: OverRide on November 19, 2021, 08:57:22 pm
Hello. Looking for some advice on the below output: "could not find a video mode that meets your specs".
Let me know if any other info is required. Thanks!

OS:
Linux Linux01 5.11.0-40-generic #44~20.04.2-Ubuntu SMP Tue Oct 26 18:07:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Video card info (older onboard NVIDIA):
02:00.0 VGA compatible controller: NVIDIA Corporation C79 [ION] (rev b1)
   Subsystem: AOPEN Inc. C79 [ION]
   Kernel driver in use: nouveau
   Kernel modules: nvidiafb, nouveau

Switchres info and error:
~/src/switchres$ ./switchres 320 240 60 -m ntsc -s
Switchres(v2.002) display[0]: monitor[ntsc] generation[on]
Switchres: Monitor range 15734.26-15734.26,59.94-59.94,1.500,4.700,4.700,0.191,0.191,0.953,0,0,192,240,448,480
Switchres: Calculating best video mode for 320x240@60.000000 orientation: normal
Switchres: could not find a video mode that meets your specs
Press ENTER to exit..

Switchres.ini info:
monitor ntsc
display VGA-1
*Everything else left as default


Title: Re: Switchres 2.002 - Linux - Could not find video mode...
Post by: makya on November 20, 2021, 07:02:14 am
Hello, your range allows 59.94Hz only while your are requesting 60 Hz. Try generic_15 instead of NTSC.
Title: Re: Switchres 2.002 - Linux - Could not find video mode...
Post by: OverRide on November 20, 2021, 10:24:44 am
Thanks Makya. Same result when using generic_15.
Title: Re: Switchres 2.002 - Linux - Could not find video mode...
Post by: Calamity on November 20, 2021, 11:55:28 am
The problem is probably the display name, you're using VGA-1 which looks like a kernel display name, you have to use Xorg names instead, type xrandr to get a list of active display names, or simply use its number 0, or 1, instead of its name. Tip: instead of editing switchres.ini, you can just use the -d command line switch.
Title: Re: Switchres 2.002 - Linux - Could not find video mode...
Post by: OverRide on November 20, 2021, 04:34:23 pm
Thanks Calamity.

Had to install 'libdrm-dev' and rebuild. All good now.
Title: Re: Switchres 2.002 - Linux - Could not find video mode...
Post by: Substring on November 21, 2021, 08:34:53 am
Where you trying on KMS ?
Title: Re: Switchres 2.002 - Linux - Could not find video mode...
Post by: OverRide on November 22, 2021, 08:50:37 am
No. X11. Maybe if I had specified the API type as x11?

Sent from my SM-G991W using Tapatalk

Title: Re: Switchres 2.002 - Linux - Could not find video mode...
Post by: Substring on November 22, 2021, 10:28:34 am
Weird .. The makefile doesn't build the KMS backend if the required libdrm version requirement is not met (part of the 3 top messages when building SR). libdrm is not involved in the X11 backend ...
Title: Re: Switchres 2.002 - Linux - Could not find video mode...
Post by: OverRide on November 22, 2021, 12:42:40 pm
Yeah. I realized that after you posed your question. I plan to start from scratch (hopefully today), document the process and see where things go wrong. Decide from there if it is a bug or just me.
Title: Re: Switchres 2.002 - Linux - Could not find video mode...
Post by: OverRide on November 22, 2021, 02:54:27 pm
Looks like it was just me. Ran through the same setup process as before. Everything appears to be working.  ::)

sudo apt update
sudo apt upgrade
sudo apt install git libxrandr-dev
git clone https://github.com/antonioginer/switchres
cd switchres
make
./switchres 320 240 60 -s -d 0


Thanks Substring!