Create a Xorg.conf file that from info loaded into memory

Getting your soundcard to work, using Debian on non-i386 hardware, etc

Create a Xorg.conf file that from info loaded into memory

Postby TCPMeta2k1 » 2019-08-03 19:37

I'm trying to setup some Multiseat clients by using some older hardware. The system sees the added Video Card but Xorg ignores it. I have all of the micro-code firmware and drivers installed. I need to create a xorg.conf file but I need to know what Xorg can already use by what it has auto generated. I tried to create the whole configuration file by scratch and end up with a dead xorg. Is there a hidden config file somewhere or a log file I can pull info from?
TCPMeta2k1
 
Posts: 4
Joined: 2019-08-03 19:30

Re: Create a Xorg.conf file that from info loaded into memor

Postby phenest » 2019-08-03 20:04

Welcome to FDN.

What version of Debian? Stretch? Buster? The answer will depend on whether you will be using X11 or Wayland, and the version of Debian will help determine that.

Also, what video card do you have?
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D
User avatar
phenest
 
Posts: 1704
Joined: 2010-03-09 09:38
Location: The Matrix

Re: Create a Xorg.conf file that from info loaded into memor

Postby CwF » 2019-08-04 01:54

To create a starting point for customization, do the following.
Switch to a console (VT1) as root (not a terminal emulator in X),
then stop stuff...and...
Code: Select all
# /etc/init.d/gdm stop || /etc/init.d/gdm3 stop || /etc/init.d/kdm stop || /etc/init.d/xdm stop || /etc/init.d/lightdm stop
# cd /etc/X11/
# Xorg -configure

gives /root/xorg.conf.new undeclared option summary for detected devices.
Start there...
CwF
 
Posts: 510
Joined: 2018-06-20 15:16

Re: Create a Xorg.conf file that from info loaded into memor

Postby TCPMeta2k1 » 2019-08-04 15:13

I had this configured before with Solus Linux and when Debian 10 Buster was released I switched over to Buster. Currently running KDE Plasma with Xorg.

AMD R7 onboard Video (screen0) and a old nVidia 220GT for my second seat client (screen1).

I'll give that command a try.
TCPMeta2k1
 
Posts: 4
Joined: 2019-08-03 19:30

Re: Create a Xorg.conf file that from info loaded into memor

Postby Head_on_a_Stick » 2019-08-04 15:32

TCPMeta2k1 wrote:I tried to create the whole configuration file by scratch and end up with a dead xorg

You only need the relevant "Device" section to change the video drivers.

Here's an example for Intel cards:
Code: Select all
Section "Device"
   Identifier "Intel Graphics"
   Driver "intel"
EndSection

But that wouldn't do anything if you're using Wayland, as phenest notes.

EDIT: the xorg.conf(5) man page explains how to configure multiple screens in the SCREEN section.

CwF wrote:
Code: Select all
# /etc/init.d/gdm stop || /etc/init.d/gdm3 stop || /etc/init.d/kdm stop || /etc/init.d/xdm stop || /etc/init.d/lightdm stop

To disable the graphical desktop use
Code: Select all
# systemctl isolate multi-user.target

^ That will work even if the OP isn't using a display manager.
Don't break DebianHow to report bugs

SharpBang GNU/Linux — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10683
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Create a Xorg.conf file that from info loaded into memor

Postby TCPMeta2k1 » 2019-08-04 16:28

Instead of doing the multiseat I'll just set it up as a plain old second display. I got a xorg.conf file made but each time I run xorg KDE breaks and Krunner crashes. Here is my xorg.conf file.

Code: Select all
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        Screen      1  "Screen1" RightOf "Screen0"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/X11/misc"
        FontPath     "/usr/share/fonts/X11/cyrillic"
        FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
        FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
        FontPath     "/usr/share/fonts/X11/Type1"
        FontPath     "/usr/share/fonts/X11/100dpi"
        FontPath     "/usr/share/fonts/X11/75dpi"
        FontPath     "built-ins"
EndSection

Section "Module"
        Load  "glx"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "LG TV"
        ModelName    "32LJ500B-UB"
        Option       "DPMS"
EndSection

Section "Monitor"
        Identifier   "Monitor1"
        VendorName   "Gateway"
        ModelName    "HX1953L"
        Option       "DPMS"

EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "amdgpu"
        BusID       "PCI:0:1:0"
EndSection

Section "Device"
        Identifier  "Card1"
        Driver      "nvidia"
        BusID       "PCI:8:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     1
                Modes     "1366x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
                Modes     "1366x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
                Modes     "1366x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
                Modes     "1366x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes     "1366x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes     "1366x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen1"
        Device     "Card1"
        Monitor    "Monitor1"
        SubSection "Display"
                Viewport   0 0
                Depth     1
                Modes     "1600x900" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
                Modes     "1600x900" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
                Modes     "1600x900" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
                Modes     "1600x900" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes     "1600x900" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes     "1600x900" "800x600" "640x480"
        EndSubSection
EndSection
TCPMeta2k1
 
Posts: 4
Joined: 2019-08-03 19:30

Re: Create a Xorg.conf file that from info loaded into memor

Postby Head_on_a_Stick » 2019-08-04 17:08

Try removing the extraneous sections.

For example:
Code: Select all
Section "Monitor"
   Identifier "Monitor0"
   VendorName "LG TV"
   ModelName "32LJ500B-UB"
EndSection

Section "Monitor
   Identifier "Monitor1"
   VendorName "Gateway"
   ModelName "HX1953L"
EndSection

Section "Device"
   Identifier "Card0"
   Driver "amdgpu"
   BusID "PCI:0:1:0"
EndSection

Section "Device"
   Identifier "Card1"
   Driver "nvidia"
   BusID "PCI:8:0:0"
EndSection

Section "Screen"
   Identifier "Screen0"
   Device "Card0"
   Monitor "Monitor0"
EndSection

Section "Screen"
   Identifier "Screen1"
   Device "Card1"
   Monitor "Monitor1"
EndSection

Check the X.org log to see where the problem is.
Don't break DebianHow to report bugs

SharpBang GNU/Linux — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10683
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Create a Xorg.conf file that from info loaded into memor

Postby CwF » 2019-08-04 17:25

Head_on_a_Stick wrote:Try removing the extraneous sections.

Good idea, simplify!
Actually, you can delete and ignore the xorg file and put only exceptions in usr/share/X11/xorg.conf.d/custom_config.conf
CwF
 
Posts: 510
Joined: 2018-06-20 15:16

Re: Create a Xorg.conf file that from info loaded into memor

Postby TCPMeta2k1 » 2019-08-05 02:38

I tried that and the odd thing is KDE crashes still so I tried LightDM and Awesome WM and got further. However the second screen acts like it's own X session but I can move the Mouse cursor to that screen but instead of a Arrow Cursor I get the X target cursor. Can't drag any windows to it or anything. xrandr also still just reported the AMD video.
Even had a friend on the phone getting me to try a few things and made it worse so I just decided to hop on eBay and bought a couple of HP Multiseat Thinclients. Might do a Office Space montage on the nVidia GT 220.
TCPMeta2k1
 
Posts: 4
Joined: 2019-08-03 19:30

Re: Create a Xorg.conf file that from info loaded into memor

Postby CwF » 2019-08-05 03:48

Though I have more than one computer with more than one video card I have never set up more than one in X, no need, prefer a multihead single card. I do use a usr/share/X11/xorg.conf.d/52_vm.conf file for vm's that use the secondary cards and the conf file sets the passed video as primary and the QXL as secondary and not used.

So if you have the horsepower, use the secondary card in a vm and connect with x2x (or X2vnc and needs a nic). Similar in effect to multi-seat, better than two cards under one X, and seamless.
CwF
 
Posts: 510
Joined: 2018-06-20 15:16


Return to Hardware

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable