Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

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

Need help with peripherals or devices?
Post Reply
Message
Author
TCPMeta2k1
Posts: 4
Joined: 2019-08-03 19:30

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

#1 Post by TCPMeta2k1 »

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?

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

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

#2 Post by phenest »

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

CwF
Global Moderator
Global Moderator
Posts: 2636
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

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

#3 Post by CwF »

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...

TCPMeta2k1
Posts: 4
Joined: 2019-08-03 19:30

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

#4 Post by TCPMeta2k1 »

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.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#5 Post by Head_on_a_Stick »

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.
deadbang

TCPMeta2k1
Posts: 4
Joined: 2019-08-03 19:30

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

#6 Post by TCPMeta2k1 »

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

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#7 Post by Head_on_a_Stick »

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.
deadbang

CwF
Global Moderator
Global Moderator
Posts: 2636
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

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

#8 Post by CwF »

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

TCPMeta2k1
Posts: 4
Joined: 2019-08-03 19:30

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

#9 Post by TCPMeta2k1 »

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.

CwF
Global Moderator
Global Moderator
Posts: 2636
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

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

#10 Post by CwF »

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.

Post Reply