Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem/Help starting second X server on another Display.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
GenProm
Tux's lil' helper
Tux's lil' helper


Joined: 18 Aug 2011
Posts: 100
Location: Germany

PostPosted: Tue Sep 22, 2015 12:08 pm    Post subject: Problem/Help starting second X server on another Display. Reply with quote

Hi

My goal is to use KDE (5 on NVIDIA btw) and in that start a new Xserver on a second Display (:2) On this new server should run the Steamclient in Bigpicture and sometimes directly a game (Kerbal Space Programm).

I googled around on how to do it. Here i encountered these things:

1. Many different solutions available
2. None of them worked (anymore)

So my guess is that i'm missing some steps before that. My tips would be execution rights or config file path or something. (i have a fairly new gentoo install so maybe im missing some programs who are not installed yet...)

However, here is what i i have tried and with it has failed:

1. Problem: the second Xserver does not use my nvidia driver it tries to use vesa. Why and how to fix ?

Script:
Code:

#!/bin/sh

X :2 -ac -terminate & nvidia-settings --config=/mnt/data/games/linux/steam/nvidia_cfg
sleep 10
DISPLAY=:2
xterm -display :2 -e "steam -bigpicture" &


What i get:
Code:

./steam_sep_X_Server

X.Org X Server 1.16.4
Release Date: 2014-12-20
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.19.0-15-generic x86_64 Gentoo
Current Operating System: Linux orion 4.0.5-gentoo #1 SMP PREEMPT Fri Sep 4 02:15:52 CEST 2015 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-4.0.5-gentoo root=/dev/sda3 ro init=/usr/lib/systemd/systemd
Build Date: 04 September 2015  10:36:57AM
 
Current version of pixman: 0.32.6
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.2.log", Time: Tue Sep 22 13:52:59 2015
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
vesa: Ignoring device with a bound kernel driver
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/var/log/Xorg.2.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.



Any idea why it is not using the normal nvidia driver ? Also what would be the best way to start it (So that i have keyboard control and sound and so on...)?

I've also tried:
Code:

DISPLAY=:1.0
xinit steam -bigpicture -- :1


Code:

startx steam -- :1 vt1

But gives the same error.

Also by all of the above specifiing a config with -xf86config does also not work :-(

2. Problem after executing these commands im not able anymore to go to my tty-Consoles. So all Strg+ALt+F1-12 seems to be blocked or non functioning.

Thanks for the help!
_________________
Thank you for your help.

Manuel
Back to top
View user's profile Send private message
GenProm
Tux's lil' helper
Tux's lil' helper


Joined: 18 Aug 2011
Posts: 100
Location: Germany

PostPosted: Tue Sep 22, 2015 7:01 pm    Post subject: Reply with quote

Hi

Progress!

It turns out i did not use the full path to specify a config and also that gentoo works without a nvidia.conf file so i had to create that.

So now i get a xorg crash:

Code:

manuel@orion ~ $ xinit /usr/bin/xterm -- :1 "vt${XDG_VTNR}"


X.Org X Server 1.16.4
Release Date: 2014-12-20
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.19.0-15-generic x86_64 Gentoo
Current Operating System: Linux orion 4.0.5-gentoo #1 SMP PREEMPT Fri Sep 4 02:15:52 CEST 2015 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-4.0.5-gentoo root=/dev/sda3 ro init=/usr/lib/systemd/systemd
Build Date: 04 September 2015  10:36:57AM
 
Current version of pixman: 0.32.6
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Tue Sep 22 20:58:17 2015
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
(EE) Backtrace:
(EE) 0: X (xorg_backtrace+0x42) [0x590fe2]
(EE) 1: X (0x400000+0x195109) [0x595109]
(EE) 2: /lib64/libc.so.6 (0x7f49df88f000+0x34ef0) [0x7f49df8c3ef0]
(EE) 3: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7f49da77b000+0xef524) [0x7f49da86a524]
(EE) 4: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7f49da77b000+0xe2092) [0x7f49da85d092]
(EE) 5: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7f49da77b000+0xe3c80) [0x7f49da85ec80]
(EE) 6: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7f49da77b000+0xfd8da) [0x7f49da8788da]
(EE) 7: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7f49da77b000+0xfddc4) [0x7f49da878dc4]
(EE) 8: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7f49da77b000+0xe325c) [0x7f49da85e25c]
(EE) 9: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7f49da77b000+0xe345a) [0x7f49da85e45a]
(EE) 10: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7f49da77b000+0xe3a8b) [0x7f49da85ea8b]
(EE) 11: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7f49da77b000+0xd2bef) [0x7f49da84dbef]
(EE) 12: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7f49da77b000+0xd23c8) [0x7f49da84d3c8]
(EE) 13: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7f49da77b000+0xcfacb) [0x7f49da84aacb]
(EE) 14: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7f49da77b000+0xd113b) [0x7f49da84c13b]
(EE) 15: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7f49da77b000+0x65c52) [0x7f49da7e0c52]
(EE) 16: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7f49da77b000+0xb2189) [0x7f49da82d189]
(EE) 17: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7f49da77b000+0xb21de) [0x7f49da82d1de]
(EE) 18: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7f49da77b000+0xb44fa) [0x7f49da82f4fa]
(EE) 19: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7f49da77b000+0x56bdde) [0x7f49dace6dde]
(EE)
(EE) Segmentation fault at address 0x20
(EE)
Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting
(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/var/log/Xorg.1.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.


In the log is this:
Code:

[   895.362] (II) NVIDIA: Allocated GPU:0 (GPU-3d336a7e-dc77-cb0d-5d1d-7f81a9a27ecc) @
[   895.362] (II) NVIDIA:     PCI:0000:01:00.0
[   895.386] (EE) NVIDIA: GPU:0: EVO Push buffer channel allocation failed
[   895.387] (EE) NVIDIA: GPU:0: Failed to allocate EVO core DMA push buffer
[   895.388] (EE)
[   895.388] (EE) Backtrace:


Why could it not allocate the buffer ?

Any Ideas ? Thanks
_________________
Thank you for your help.

Manuel
Back to top
View user's profile Send private message
kikko
Apprentice
Apprentice


Joined: 29 Apr 2014
Posts: 256
Location: Milan, IT

PostPosted: Tue Sep 22, 2015 7:45 pm    Post subject: Reply with quote

Hi GenProm,
I've never played with X directly, it is very intresting! :mrgreen:

Anyway, here is what I've discovered: lacking of Xterm, I've searched a way of starting applications without relying on it
I've tried using xinit, like this (from a TTY):
Code:
xinit /usr/bin/openbox-session -- :10

This creates a parallel X session (Crtl+Alt+F8) running the command "/usr/bin/openbox-session"; it works also with Firefox directly, but I haven't obtained fullscreen for it :?
I guess you can try it out using "steam -bigpicture" directly
Let me know!
Regards
Back to top
View user's profile Send private message
GenProm
Tux's lil' helper
Tux's lil' helper


Joined: 18 Aug 2011
Posts: 100
Location: Germany

PostPosted: Tue Sep 22, 2015 7:57 pm    Post subject: Reply with quote

Hi Kikko,

Yes this should work if i start if from a tty. But when i try to start it inside an running xserver i get the error above :-(.

So while this is ok it is still not the perfect solution. Also as i mentioned in my firt post. If i try to start an second x Server, the switsching with STRG+ALT+Fx does not work anymore so i can't change into a tty right now to verify.
_________________
Thank you for your help.

Manuel
Back to top
View user's profile Send private message
kikko
Apprentice
Apprentice


Joined: 29 Apr 2014
Posts: 256
Location: Milan, IT

PostPosted: Tue Sep 22, 2015 8:29 pm    Post subject: Reply with quote

Hi GenProm,
I've tried to launch xinit inside my KDE session, and it works: I'm able to switch back and forth between displays :?
I'm not on NVIDIA, anyway, don't know if it is related
You can try stop your actual X session and try to launch 2 X servers at the same time... more or less like this:
Code:
rc-service xdm stop
xinit /your/program/1 -- :0 & xinit /your/program/2 -- :10 &
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum