LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Moving windows between two monitors (https://www.linuxquestions.org/questions/linux-general-1/moving-windows-between-two-monitors-268279/)

ProtoMan 12-20-2004 12:42 AM

Moving windows between two monitors
 
Ok, I finally have my dual monitors working, and I love it. However, one thing that kind of bugs me, is that i can't find a way to move my windows between the two monitors. First of all, I'm running Fluxbox 0.9.10, and my distro is slackware 10. I am aware that enabling Xinerama would take care of this issue, but I like having two individual desktops. I just want to be able to warp a window to the other desktop, similarly to moving a window to a different workspace by right clicking the toolbar and selecting "send to -> [workspace]." I can control which monitor the window opens up on by using the "-display" flag, but i can't find a way to change it after it has been created. I tried to start simple by trying to move an xterm window by changing its env DISPLAY variable from :0.0 to :0.1, but even though the env variable says it's display is :0.1, it's still on :0.0. Any help would be appreciated. Or you could just tell me that i'm an idiot and should just enable xinerama.

Sean

rjlee 12-20-2004 05:08 AM

An X-windows application makes a connection to a given X server when it starts, and there's no easy way to change which server is being used after the window has opened.
Changing the DISPLAY environment variable of the xterm didn't work because the window was already open. But if you run a command from that xterm, you should expect the new window to open on the other server.

Xinerama will put your two desktops side-by-side, giving you effectively one large desktop (except that it tries not to put windows overlapping the two displays). The difference here is that there's only one X server on the two monitors, so you can easily warp windows between them.

Jaster150 12-20-2004 11:48 PM

Hey, could you maybe post your xorg.conf? I'm also running fluxbox on slack 10 and I can't seem to get dual monitors to work. My video card is an ATI Radeon 9500 pro. When I run fglrxconfig and create a new xorg.conf with dual monitor settings, I restart X using it and I can still only get one monitor to display.

ProtoMan 12-21-2004 08:29 AM

Just to let you know, i've got two gfx cards (radeon AIW 8500, radeon 7500). So the setup is a little different. Also, i'm not using the fglrx module. I did at first, but it doesn't work for my radeon 7500, i got both monitors working at one point, with the fglrx and radeon modules, but it was really unstable, and X would randomly crash. So i just said screw it and and disabled dri and made them both radeon drivers.


##########################################################
Section "ServerLayout"
Identifier "Server Layout"

Screen "Screen0"
Screen "Screen2" RightOf "Screen0"

# Screen "Screen1"

InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection


Section "ServerFlags"
Option "NoPM" "true"
Option "Xinerama" "true"
EndSection

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "/usr/X11R6/lib/X11/fonts/local/"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
Load "dbe" # Double buffer extension
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection

Load "type1"
Load "freetype"
# This loads the GLX module
Load "glx" # libglx.a
# Load "dri" # libdri.a
EndSection


Section "InputDevice"
Identifier "Keyboard1"
Driver "keyboard"
Option "AutoRepeat" "500 30"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
Option "XkbRules" "xfree86"
Option "XkbModel" "pc101"
Option "XkbLayout" "us"
EndSection


Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/mouse"
EndSection


Section "Monitor"
Identifier "Monitor0"
HorizSync 31.5 - 79.0
VertRefresh 60.0 - 100.0
Option "DPMS"
EndSection


Section "Monitor"
Identifier "Monitor1"
HorizSync 31.5 - 31.5
VertRefresh 50.0 - 70.0
EndSection


Section "Monitor"
Identifier "Monitor2"
HorizSync 31.5 - 79.0
VertRefresh 60.0 - 100.0
Option "DPMS"
EndSection


Section "Device"
Identifier "ATI Graphics Adapter connector 0"
# Driver "fglrx"
Driver "ati"
Option "no_accel" "no"
Option "no_dri" "no"
# === misc DRI settings ===
Option "mtrr" "off" # disable DRI mtrr mapper, driver has its own code for mtrr
Option "DesktopSetup" "0x00000000"
Option "MonitorLayout" "CRT, AUTO" #"CRT, STV"
Option "IgnoreEDID" "off"
Option "HSync2" "31.5 "
Option "VRefresh2" "50 - 70"
Option "ScreenOverlap" "0"
# === TV-out Management ===
Option "NoTV" "yes" #"no"
Option "TVStandard" "NTSC-M"
Option "TVHSizeAdj" "0"
Option "TVVSizeAdj" "0"
Option "TVHPosAdj" "0"
Option "TVVPosAdj" "0"
Option "TVHStartAdj" "0"
Option "TVColorAdj" "0"
Option "GammaCorrectionI" "0x00000000"
Option "GammaCorrectionII" "0x00000000"
# === OpenGL specific profiles/settings ===
Option "Capabilities" "0x00000000"
# === Video Overlay for the Xv extension ===
Option "VideoOverlay" "on"
# === OpenGL Overlay ===
Option "OpenGLOverlay" "off"
# === Center Mode (Laptops only) ===
Option "CenterMode" "off"
# === Pseudo Color Visuals (8-bit visuals) ===
Option "PseudoColorVisuals" "off"
# === QBS Management ===
Option "Stereo" "off"
Option "StereoSyncEnable" "1"
# === FSAA Management ===
Option "FSAAEnable" "yes"
Option "FSAAScale" "6"
Option "FSAADisableGamma" "no"
Option "FSAACustomizeMSPos" "no"
Option "FSAAMSPosX0" "0.000000"
Option "FSAAMSPosY0" "0.000000"
Option "FSAAMSPosX1" "0.000000"
Option "FSAAMSPosY1" "0.000000"
Option "FSAAMSPosX2" "0.000000"
Option "FSAAMSPosY2" "0.000000"
Option "FSAAMSPosX3" "0.000000"
Option "FSAAMSPosY3" "0.000000"
Option "FSAAMSPosX4" "0.000000"
Option "FSAAMSPosY4" "0.000000"
Option "FSAAMSPosX5" "0.000000"
Option "FSAAMSPosY5" "0.000000"
# === Misc Options ===
Option "UseFastTLS" "0"
Option "BlockSignalsOnLock" "on"
Option "UseInternalAGPGART" "yes"
Option "ForceGenericCPU" "no"
BusID "PCI:1:0:0"
Screen 0
EndSection


Section "Device"
Identifier "ATI Graphics Adapter connector 1"
# Driver "fglrx"
Driver "ati"
BusID "PCI:1:0:0"
Screen 1
EndSection


Section "Device"
Identifier "R8500"
Driver "radeon"
Option "no_accel" "no"
# Option "no_dri" "no"
Option "MonitorLayout" "CRT, CRT"
# Option "NoTV" "no"
BusID "PCI:1:0:0"
Screen 0
EndSection

Section "Device"
Identifier "R8500tv"
Driver "radeon"
# Option "no_accel" "no"
# Option "no_dri" "no"
# Option "MonitorLayout" "CRT, CRT"
BusID "PCI:1:0:0"
Screen 1
EndSection


Section "Device"
Identifier "R7500"
Driver "radeon"
Option "no_accel" "no"
Option "MonitorLayout" "CRT, AUTO"
BusID "PCI:0:8:0"
Screen 0
IRQ 11
EndSection


Section "Device"
Identifier "R7500 2"
Driver "radeon"
BusID "PCI:0:8:0"
Screen 1
EndSection


Section "Screen"
Identifier "Screen0"
Device "R8500"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600"
EndSubSection
EndSection


Section "Screen"
Identifier "Screen2"
Device "R7500"
Monitor "Monitor2"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600"
EndSubSection
EndSection

##########################################################


I took out some of the unnecessary comments. Also, you'll notice that I still kept my old fglrx specs in there, I was too lazy to remove it, and they aren't even loaded if i don't attach it to a screen. I have attempted to make the "Screen1" my TVout, but i don't think the radeon drivers support that, I'm still working on it though. The best way to figure out what's going on though is to look at your log file (/var/log/Xorg.0.log). That will tell you exactly why your other monitor isn't loading.


All times are GMT -5. The time now is 06:27 PM.