From: Valter T. <va...@gm...> - 2006-10-28 04:28:00
|
hi all. i know it's not about fluxbox but about x itself, maybe just a little bit about fluxbox way to detect if there's already a window manager running, but i feel free to ask here as fluxbox users use to know a lot about linux ;) first i will explain what i was planing to do, then then problem, if you dont care about what i was trying to do you can skip the next paragraph, but if you take the time to read thoroughly it would be nice =) well, i have a workstation in my bedroom, but sometimes i wanna use it in the living room. as it's too much work to take the whole computer to the other room, and i have a spare monitor, keyboard and mouse, i built myself a 10m monitor/kbd/mouse cable and surprisingly it worked! my primary monitor is 17" and my primary mouse and keyboard are ps2, and my secondary monitor is 15". then i managed to get a secondary usb mouse/keyboard to use in the other room as all i have to do is connect it and it will be working. so, the first thing i tried was to install a secondary video card so i would attach each monitor to one video card, start one xorg in each video card, and having a monitor attached to each board, when i wanted to switch to the other monitor, all i had to do would be switch between the virtual terminals. but xorg was mean to me and my pc was hanging when i tried to switch between the two x... an odd thing that happened once was that the console appeared on the secondary monitor (attached to the secondary video card, not the one the system was booted in) when i switched back from x to console! then i thought about running two x at the same video card, with different ServerLayout's, so each layout would be apropriate to each monitor. the problem, i want to have two x running, each one with a different layout, so one would be perfect to my 17" monitor and the other would be good to my 15" monitor, even though i would have to disconnect one monitor and connect the other every time i wanted to use the other (which would be in another room, as stated above). so i wrote my xorg.conf in order to have two ServerLayout sections, each one with a different screen, so one screen would run at 1280x960 in order to use with my 17" screen and the other screen running at 1024x768 so it could be used with my 15" monitor. the problem is, if i start one x with "startx" and the other with "startx -- :1" everything works fine, but as i want to have a different layout, i run the first with "startx" and the second with "startx -- -layout secondary :1" so it will match my "secondary" ServerLayout section and run at 1024x768. but in this situation, fluxbox (as well as wmaker, that's why i said it's not a fluxbox only problem) tells me there is already a window manager running, although one is at :0 and the other at :1. note that this problem does not occur if the x at :0 and the one at :1 are running at the same ServerLayout. this is odd to me. i think this should not be the correct behavior. someone has any idea why it happens? or maybe someone has a trick to run an x on each video card without hanging my system when i (try to) switch between then? i would appreciate very much any answer, even if you say only "yes, it's really odd!" as the list has been very quiet and otherwise i wouldn't even know if anybody read it ;) thank you very much if you took the time to read it all =) |