LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-20-2004, 12:42 AM   #1
ProtoMan
LQ Newbie
 
Registered: Aug 2004
Posts: 2

Rep: Reputation: 0
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
 
Old 12-20-2004, 05:08 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 67
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.
 
Old 12-20-2004, 11:48 PM   #3
Jaster150
LQ Newbie
 
Registered: Sep 2004
Distribution: Slackware
Posts: 29

Rep: Reputation: 15
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.
 
Old 12-21-2004, 08:29 AM   #4
ProtoMan
LQ Newbie
 
Registered: Aug 2004
Posts: 2

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Monitor: Can't drag windows between monitors - what gives? oddbec Linux - Hardware 4 01-17-2007 04:10 PM
moving windows from one X to another. jonaskoelker Linux - Software 2 06-18-2005 06:53 AM
Multiple monitors in windows LinuxBlackBox General 1 10-16-2004 05:04 PM
Moving windows between XServers... smudge Linux - Software 1 07-02-2004 12:35 AM
Why Windows sets up monitors so easily? jasontn Linux - Hardware 3 03-11-2004 04:23 PM


All times are GMT -5. The time now is 06:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration