Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Switchres 2.002 - Linux - Could not find video mode...  (Read 4003 times)

0 Members and 1 Guest are viewing this topic.

OverRide

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 92
  • Last login:May 04, 2023, 08:06:52 pm
Switchres 2.002 - Linux - Could not find video mode...
« 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



makya

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 77
  • Last login:April 22, 2024, 03:40:11 pm
  • I want to build my own arcade controls!
Re: Switchres 2.002 - Linux - Could not find video mode...
« Reply #1 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.

OverRide

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 92
  • Last login:May 04, 2023, 08:06:52 pm
Re: Switchres 2.002 - Linux - Could not find video mode...
« Reply #2 on: November 20, 2021, 10:24:44 am »
Thanks Makya. Same result when using generic_15.

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: Switchres 2.002 - Linux - Could not find video mode...
« Reply #3 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.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

OverRide

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 92
  • Last login:May 04, 2023, 08:06:52 pm
Re: Switchres 2.002 - Linux - Could not find video mode...
« Reply #4 on: November 20, 2021, 04:34:23 pm »
Thanks Calamity.

Had to install 'libdrm-dev' and rebuild. All good now.

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 818
  • Last login:Today at 03:09:00 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: Switchres 2.002 - Linux - Could not find video mode...
« Reply #5 on: November 21, 2021, 08:34:53 am »
Where you trying on KMS ?

OverRide

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 92
  • Last login:May 04, 2023, 08:06:52 pm
Re: Switchres 2.002 - Linux - Could not find video mode...
« Reply #6 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


Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 818
  • Last login:Today at 03:09:00 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: Switchres 2.002 - Linux - Could not find video mode...
« Reply #7 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 ...

OverRide

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 92
  • Last login:May 04, 2023, 08:06:52 pm
Re: Switchres 2.002 - Linux - Could not find video mode...
« Reply #8 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.

OverRide

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 92
  • Last login:May 04, 2023, 08:06:52 pm
Re: Switchres 2.002 - Linux - Could not find video mode...
« Reply #9 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!