Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Opening retroarch gives me X error. It closes directly. (Read 331 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Opening retroarch gives me X error. It closes directly.

So, I run Artix linux. I installed all the packages I need. Which are retroarch and the libretro packages, retroarch is an emulator for videogames.

https://www.retroarch.com/index.php

To open I need to run retroarch in my command line, and following is the output.

sosse-artix:[sosse]:~$ retroarch
X Error of failed request:  BadValue (integer parameter out of range for operation)
 Major opcode of failed request:  152 (GLX)
 Minor opcode of failed request:  24 (X_GLXCreateNewContext)
 Value in failed request:  0x0
 Serial number of failed request:  43
 Current serial number in output stream:  44
sosse-artix:[sosse]:~$

So that I am able to install retroarch and the libretro packages I added the arch repos into pacman.conf. I added universe, and the arch community, extra and multilib repos.
is it X11? I dont have wayland, so i would need to fix it like that but i never had this problem and dont even know where yo start. pls halp.

EDIT:
I found the solution. Go to the retroarch.cfg file in ~/.config/retroarch and check if everything is there, there should be a video_driver line, i didnt have that, add video_driver = "vulkan" OR replace the vulkan with either gl or glcore!