Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xephyr setup under fedora
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
mvaterlaus
Apprentice
Apprentice


Joined: 01 Oct 2010
Posts: 155
Location: Switzerland

PostPosted: Mon Dec 17, 2012 2:43 pm    Post subject: Xephyr setup under fedora Reply with quote

hi guys,
I have allready made a thread [1] in the fedora forums, but since I didn't receive an answer, I'm trying to get some support from you guys. It would be great, if you could help me on solving my problem. Since the members on this forum are very experienced, I bet that someone allready has made some experience with Xephyr. I don't want to double post, so I only provide the link to my post on the fedora forums.


[1]http://forums.fedoraforum.org/showthread.php?t=286454
Back to top
View user's profile Send private message
mvaterlaus
Apprentice
Apprentice


Joined: 01 Oct 2010
Posts: 155
Location: Switzerland

PostPosted: Fri Dec 21, 2012 10:59 am    Post subject: Reply with quote

since I do not get any replies, I tried a different approach with 2 running xserver instances. but I also have a problem with that. I configured the first xserver to only use one monitor. i disabled the second monitor with the following entry in the monitor.conf from xorg:
Code:
Option      "Ignore"   "true"


this setting works, the second monitor does not get a signal. now i want to start the second x server with the following command:
Code:
X -config xorg_second.conf :1


the xorg_second.conf is located in /etc/X11/xorg_second.conf and contains the following entries:
Code:

Section "Serverflags"
    Option   "Xinerama" "off"
EndSection

Section "ServerLayout"
    Identifier  "Layout1"
    Screen      0 "Screen1" 0 0
    Option   "Xinerama" "off"
    Option   "Clone" "off"
#    Option   "AutoEnableDevices" "false
#    Option   "AutoAddDevices" "false"
    Option   "AllowEmptyInput" "true"
EndSection

Section "Device"
   Identifier   "Card0"
   Driver      "intel"
   BusID      "PCI:0:2:0"
   Option      "Monitor-DP2" "Monitor0"
   Option      "Monitor-VGA1" "Monitor1"
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device      "Card0"
    Monitor      "Monitor1"
    DefaultDepth    24
    SubSection     "Display"
   Modes      "1024x768"
        Depth       24
    EndSubSection
EndSection

Section "Monitor"
   Identifier   "Monitor0"
   Option      "DPMS"
   Option      "Ignore"   "true"
EndSection

Section "Monitor"
   Identifier   "Monitor1"
   Option      "DPMS"
   Option      "Enable"   "true"
EndSection

Section "Extensions"
   Option   "Composite"   "on"
EndSection


but this approach leads to other problems. when I start the second xserver with the command above, it also looks for configuration files in the following directories: /etc/X11/xorg.conf.d/* and /usr/share/X11/xorg.conf.d/* . the second problem is, that the main screen goes dark and does not show any graphics. I also tried to write two indipendend server layouts located in /usr/share/X11/xorg.conf.d/* and start the second x server with the following command:
Code:
X -layout Layout1 :1


but this approach also blanks the primary screen.

if someone has a tipp for me or could direct me to a link which explains how to get this setup working, I would be very thankful.
Back to top
View user's profile Send private message
gerard82
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2228
Location: Netherlands

PostPosted: Fri Dec 21, 2012 3:37 pm    Post subject: Reply with quote

I never used Fedora much less 2 monitors.
Maybe this will be useful to you:
http://www.gentoo.org/doc/en/xorg-config.xml
There's a part about configuring 2 monitors.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
mvaterlaus
Apprentice
Apprentice


Joined: 01 Oct 2010
Posts: 155
Location: Switzerland

PostPosted: Thu Jan 03, 2013 1:52 pm    Post subject: Reply with quote

sorry for not answering such a long time, but I didn't work over xmas.
thank you for the tipp, but when I do specify two monitors, the xserver allways enables them both. I will have a try with the following options
Code:

Option   "AutoAddDevices" "false"
Option   "AutoEnableDevices" "false

and add all needed devices by hand, so I don't have to disable the second monitor explicitly, because I think, this is what makes my second approach failing. I will report back, if I had any luck or the solution still does not work.
Back to top
View user's profile Send private message
Q-collective
Advocate
Advocate


Joined: 22 Mar 2004
Posts: 2056

PostPosted: Fri Jan 04, 2013 8:31 pm    Post subject: Reply with quote

You're setting up Xephyr on Fedora. Both software projects which aren't related to Gentoo.

Why do you think you can receive proper support here? I'd suggest bumping your thread on the Fedora forums instead.
Back to top
View user's profile Send private message
mvaterlaus
Apprentice
Apprentice


Joined: 01 Oct 2010
Posts: 155
Location: Switzerland

PostPosted: Mon Jan 07, 2013 1:09 pm    Post subject: Reply with quote

Q-collective wrote:

You're setting up Xephyr on Fedora. Both software projects which aren't related to Gentoo.

Why do you think you can receive proper support here? I'd suggest bumping your thread on the Fedora forums instead.

hi, I did not think that I get proper support here. thats also why I posted it in unsupported software, since it is not gentoo related. I asked here because I know there are a lot of talented and expirienced users on the gentoo forums and hoped, that someone could give me a tip or a hint for a propper solution. sometimes it is better to have other people looking at a problem so you get a different point of view.

as you suggested, I bumped the thread on fedora forums, but for my expirience with this forum, I won't get any reply.
Back to top
View user's profile Send private message
Q-collective
Advocate
Advocate


Joined: 22 Mar 2004
Posts: 2056

PostPosted: Mon Jan 07, 2013 9:45 pm    Post subject: Reply with quote

mvaterlaus wrote:
hi, I did not think that I get proper support here. thats also why I posted it in unsupported software, since it is not gentoo related.

The "unsupported software" denominator is more meant in a sense where software is still used on Gentoo or Gentoo-derived software (like Sabayon), but which is otherwise not supported in portage. The Unity overlay thread is a good example. Fedora is such a different ecosphere, that people here, who are not familiar with Fedora, can only give general advise, as we don't know the specifics of that system without digging into their documentation.

Quote:
I asked here because I know there are a lot of talented and expirienced users on the gentoo forums and hoped, that someone could give me a tip or a hint for a propper solution. sometimes it is better to have other people looking at a problem so you get a different point of view.

Of course, and if you think we can offer useful perspectives, keep posting. But keep what I said above in mind.

Quote:
as you suggested, I bumped the thread on fedora forums, but for my expirience with this forum, I won't get any reply.

Maybe a good reason to switch distros. Why not Gentoo? ;)
Back to top
View user's profile Send private message
mvaterlaus
Apprentice
Apprentice


Joined: 01 Oct 2010
Posts: 155
Location: Switzerland

PostPosted: Tue Jan 08, 2013 7:35 am    Post subject: Reply with quote

Q-collective wrote:

Maybe a good reason to switch distros. Why not Gentoo? ;)


I am a gentoo user since 5 years or so. Sadly, I have to deal with fedora at work. My company has choosen this distro and I can not change that deciscion :( I personally would be happier with gentoo.
Back to top
View user's profile Send private message
Q-collective
Advocate
Advocate


Joined: 22 Mar 2004
Posts: 2056

PostPosted: Tue Jan 08, 2013 6:29 pm    Post subject: Reply with quote

mvaterlaus wrote:
Q-collective wrote:

Maybe a good reason to switch distros. Why not Gentoo? ;)


I am a gentoo user since 5 years or so. Sadly, I have to deal with fedora at work. My company has choosen this distro and I can not change that deciscion :( I personally would be happier with gentoo.

In that case, don't you have professional support in your company or from Redhat?
Back to top
View user's profile Send private message
i13m
n00b
n00b


Joined: 26 Jun 2003
Posts: 46
Location: UK / China PR

PostPosted: Wed Jan 09, 2013 7:08 am    Post subject: Reply with quote

Hi,

I haven't use RH stuffs for more than 8 yrs. But hope this one can still help you.

I can use two screens under gentoo with Xephyr. My graphic card is GM45, but still using the xf86-video-intel driver.

My WM is awesome, and by following this, I can successfully run two awesome instances under two different screens.

My xorg.conf is very simple
Code:

Section "ServerFlags"
        Option      "DontZap" "on"

        Option      "BlankTime" "5"
        Option      "StandbyTime" "10"
        Option      "SuspendTime" "15"
        Option      "OffTime" "30"
EndSection

Section "Module"
        SubSection "extmod"
          Option "omit XFree86-DGA"
        EndSubSection
EndSection

Section "Device"
        Identifier  "X4500MHD"
        Driver      "intel"

        Option      "BackingStore" "True"
EndSection

Section "Screen"
        Identifier "Integrated"
        Device     "X4500MHD"
EndSection

#Section "Device"
#        Identifier  "Mobility Radeon HD 3470"
#        Driver      "radeon"
#EndSection
#
#Section "Screen"
#        Identifier "Discrete"
#        Device     "Mobility Radeon HD 3470"
#EndSection

Section "InputClass"
  Identifier "wizardpen-on-evdev class"
  MatchIsTablet "on"
  MatchDevicePath "/dev/input/event*"
  Driver "evdev"
EndSection

Section "ServerLayout"
  Identifier "Default"
  Screen "Integrated"
#  Screen "Discrete"
EndSection


I hope this can help you, but I will sure RH many compile/configure their SW differently.

PS:
what you need may be something like
Code:

 Xephyr -ac -br -noreset -screen 1024x768 :1.0 &
 sleep 1
 DISPLAY=:1.0 your_program
Back to top
View user's profile Send private message
mvaterlaus
Apprentice
Apprentice


Joined: 01 Oct 2010
Posts: 155
Location: Switzerland

PostPosted: Thu Jan 10, 2013 9:19 am    Post subject: Reply with quote

thanks i13m, your link showed me, that I have made a conceptual mistake about Xephyr. Now I understand it's concept better.

Q-collective wrote:
In that case, don't you have professional support in your company or from Redhat?


I asked my boss and he told me with a little twinkle: thats what we hired you for :D
Back to top
View user's profile Send private message
mvaterlaus
Apprentice
Apprentice


Joined: 01 Oct 2010
Posts: 155
Location: Switzerland

PostPosted: Mon Jan 14, 2013 4:01 pm    Post subject: Reply with quote

so, after a bit of experimenting, I finally have my setup as deserved ;-). now here is what I did, to get to my prefered solution:

my xorg config:
Code:

[user@box ~]$ for x in /usr/share/X11/xorg.conf.d/0* ; do echo "$x"; cat $x; done
/usr/share/X11/xorg.conf.d/01-serverlayout.conf
Section "Serverflags"
   Option   "DontZap" "on"
EndSection

Section "ServerLayout"
    Identifier  "Layout0"
    Screen      0 "Screen0" 0 0
    Option   "Clone" "off"
    Option   "Xinerama" "off"
EndSection

/usr/share/X11/xorg.conf.d/02-device.conf
Section "Device"
   Identifier   "Card0"
   Driver      "intel"
   BusID      "PCI:0:2:0"
   Option      "BackingStore"   "True"
   Option      "Monitor-DP2" "Monitor0"
   Option      "Monitor-VGA1" "Monitor1"
EndSection

/usr/share/X11/xorg.conf.d/03-screens.conf
Section "Screen"
    Identifier     "Screen0"
    Device      "Card0"
    Monitor      "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
   Viewport   0 0
   Modes      "1366x768"
        Depth       24
    EndSubSection
EndSection

/usr/share/X11/xorg.conf.d/04-monitor.conf
Section "Monitor"
   Identifier   "Monitor0"
   Option      "Position"   "0 0"
   Option      "DPMS"
   Option      "Enable"   "true"
EndSection

Section "Monitor"
   Identifier   "Monitor1"
   Option      "DPMS"
   Option      "RightOf"   "Monitor0"
EndSection

/usr/share/X11/xorg.conf.d/05-extensions.conf
Section "Extensions"
   Option   "Composite"   "on"
EndSection


These config scripts start the xserver with one big virtual screen spanning over both physical monitors. I have to test, if I really need the xserver configs, but thats a task for later.
The last thing is to start the Xephyr instances, which I do in .xinitrc:
Code:

[user@box ~]$ cat .xinitrc
/bin/Xephyr -ac -br -noreset -screen 1366x768 :1 &
sleep 1
DISPLAY=:1.0 startxfce4 &

/bin/Xephyr -name advert -ac -br -noreset -screen 1024x768+1366+0 :2 &
sleep 1

#get window id of Xephyr with name advert
winid=`DISPLAY=:0.0 xwininfo -tree -root | grep -i advert | cut -d'"' -f1`
DISPLAY=:0.0 /usr/bin/xdotool windowmove "$winid" 1366 0

DISPLAY=:2.0 xterm &

wait "$@"


What is left to do now is, that the main xserver does not grab keyboard, mouse and touchscreen device. Only the first Xephyr session does need input devices.
And thanks again for your help, especially because I'm doing this on fedora17.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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