How to get a copy of the xorg.conf that startx uses when none is present?

Xorg -configure is strongly discouraged to use, since it produces nothing useful, really.

Simply place a config-file like from handbook's chapter 5.4.5 in /usr/local/etc/X11/xorg.conf.d/ (copy paste) - In most cases (such as if your card ain't not on an "exotic" PCIe-Slot) that will be all you need.

I had a similar issue a couple of weeks ago, nearly despaired
and I learned:
If xorg will not start automatically after standard installation (just like written in handbook) you either may have not installed the right packages for you graphics adapter (e.g. drm or nvidia [don't forget the correct entries in /boot/loader.conf and /etc/rc.conf!]), or your card is not supported by X.
I also nearly despaired after several complete reinstallations until I realized what I didn't want to be true:
My brandnew Radeon card was simply not supported by X.
I bought a Nvidia and - voilà - running X.
 
It works with the framebuffer, I just want the configuration it used to get the framebuffer to work.
 
This doesn't seem to be possible. At the very least, I believe it would end up looking like this config, that checks for matches (check out MatchDriver in the manpage for more info):

Code:
Section "Device"
  Identifier "Autodetected"
  MatchDriver "modesetting"
  Driver "modesetting"
EndSection

Section "Device"
  Identifier "Autodetected"
  MatchDriver "intel"
  Driver "intel"
EndSection

Section "Device"
  Identifier "Autodetected"
  MatchDriver "nv"
  Driver "nv"
EndSection

[...]

Instead it seems the only way (that I know of) is to look through the Xorg.#.log (in /var/log) and work out which one it matched against.
 
There is no 'default' xorg.conf, stop looking for it. Xorg automatically scans various devices and based on what it finds it's going to use whatever it thinks fits best. Just look through /var/log/Xorg.0.log to see what it does.

Nowadays you basically rely on this automatic configuration detection. Only if it automatically switches to a 'wrong' one should you configure for a specific driver.
 
There is no 'default' xorg.conf, stop looking for it
I know.

Xorg automatically scans various devices and based on what it finds it's going to use whatever it thinks fits best
I know that too. What I want is its list of decisions.

Just look through /var/log/Xorg.0.log to see what it does.
That... is like picking through poop to see what Xorg ate for dinner instead of getting a straight answer from it.

Nowadays you basically rely on this automatic configuration detection. Only if it automatically switches to a 'wrong' one should you configure for a specific driver.
That's exactly what happens when I turn on the nVidia driver, which is why I want the default config so I can just switch files instead of having to reboot because some piece of trash gets left behind and Xorg keeps on trying to activate nVidia instead of the framebuffer.
 
What I want is its list of decisions.
But the problem ther is subsystems.
For instance xinput/libinput does a probe of its own.

That... is like picking through poop to see what Xorg ate for dinner instead of getting a straight answer from it.
I agree. Just trying to find out what driver is in use seemed way too hard.
Since we now have scfb and vesa in base Xorg it is harder to tell what driver is running.
In the old days you knew. No driver. No Xorg.
 
Back
Top