Dual monitors with fluxbox


Page 1 of 4 1234 LastLast
Results 1 to 15 of 47

Thread: Dual monitors with fluxbox

  1. #1
    Join Date
    Oct 2002
    Location
    Republic of Texas
    Posts
    5,909

    Dual monitors with fluxbox

    Howdy folks,
    I've got an NVidia 6800GT with dual outputs, one DVI and one VGA. I wanted to use dual monitors, one LCD, the other a CRT. Note that this does not use TwinVIew or Xinerama. These are separate screens, but I can pass the mouse pointer between screens. Here's what I did...edit /etc/X11/xorg.conf thusly:

    Code:
     **********************************************************************
    # Module section -- this  section  is used to specify
    # which dynamically loadable modules to load.
    # **********************************************************************
    #
    Section "Module"
    
    # This loads the DBE extension module.
    
        Load        "dbe"  	# Double buffer extension
        Load	"extmod"
        Load	"xtrap"
        Load	"record"
        Load        "type1"
        Load        "freetype"
        Load        "glx"
        Load        "v4l"
    
    EndSection
    
    # **********************************************************************
    # Files section.  This allows default font and rgb paths to be set
    # **********************************************************************
    
    Section "Files"
    
        RgbPath	"/usr/lib/X11/rgb"
    
        FontPath   "/usr/share/fonts/misc/"
        FontPath   "/usr/share/fonts/TTF/"
        FontPath   "/usr/share/fonts/Type1/"
        FontPath   "/usr/share/fonts/artwiz/"
        FontPath   "/usr/share/fonts/75dpi/"
        FontPath   "/usr/share/fonts/100dpi/"
        FontPath   "/usr/share/fonts/Speedo/"
        FontPath   "/usr/share/fonts/TrueType/"
        FontPath   "/usr/share/fonts/freefont/"
    
    # The module search path.  The default path is shown here.
    
        ModulePath "/usr/X11R6/lib/modules"
    
    EndSection
    
    # **********************************************************************
    # Server flags section.
    # **********************************************************************
    
    Section "ServerFlags"
    
    EndSection
    
    # **********************************************************************
    # Input devices
    # **********************************************************************
    
    # **********************************************************************
    # Core keyboard's InputDevice section
    # **********************************************************************
    
    Section "InputDevice"
    
        Identifier	"Keyboard1"
        Driver	"kbd"
        Option "AutoRepeat" "500 30"
        Option "XkbModel"   "logicordless"
        Option "XkbLayout"	"us"
    
    EndSection
    
    
    # **********************************************************************
    # Core Pointer's InputDevice section
    # **********************************************************************
    
    Section "InputDevice"
    
    # Identifier and driver
    
        Identifier	"Mouse1"
        Driver	"mouse"
        Option "Protocol"    "IMPS/2"
    #    Option "Protocol"    "evdev"
        Option "Device"      "/dev/input/mice"
        Option "Dev Name"	"Logitech USB Receiver"
    #    Option "Dev Phys"	"usb-0000:03:00.1-1/input1"
        Option "Buttons" "7"
        Option "ZAxisMapping" "4 5"
    #    Option "ZAxisMapping" "6 7"
    # Mouse-speed setting for PS/2 mouse.
    
    #    Option "Resolution"	"256"
    
    EndSection
    
    
    
    # **********************************************************************
    # Monitor section
    # **********************************************************************
    
    # Any number of monitor sections may be present
    
    Section "Monitor"
    	Identifier  "Dell 2405FPW"
    	DisplaySize 520 330
    	ModelName "Dell 2405FPW"
    	Option "DPMS" "1"
    	VendorName "Dell"
    	HorizSync 30-81
    	VertRefresh 56-76
    	Modeline "1920x1200_60.00" 154 1920 1968 2000 2080 1200 1203 1209 1235 +HSync -VSync
    	Modeline "1680x1050_60.00" 147.14 1680 1784 1968 2256 1050 1051 1054 1087 -HSync +Vsync
    EndSection
    
    Section "Monitor"
    	Identifier  "Sun GDM5010PT"
    	Option "DPMS" "1"
    	HorizSync   38-96
    	VertRefresh 48-160
    EndSection
    
    # **********************************************************************
    # Graphics device section
    # **********************************************************************
    
    Section "Device"
        Identifier  "Nvidia 6800-0"
        Driver      "nvidia"
        BusID       "PCI:5:0:0"
        Screen	0
            Option "RenderAccel" "On"
            Option "NoLogo" "On"
            Option "HWCursor" "On"
            Option "UseEdidFreqs" "true"
            Option "NvAGP" "1"
    EndSection
    Section "Device"
        Identifier  "Nvidia 6800-1"
        Driver      "nvidia"
        BusID       "PCI:5:0:0"
        Screen 	1
            Option "RenderAccel" "On"
            Option "NoLogo" "On"
            Option "HWCursor" "On"
            Option "UseEdidFreqs" "true"
            Option "NvAGP" "1"
    EndSection
    
    # **********************************************************************
    # Screen sections
    # **********************************************************************
    
    Section "Screen"
        Identifier  "Screen 0"
        Device      "Nvidia 6800-0"
        Monitor     "Sun GDM5010PT"
        DefaultDepth 24
    
        Subsection "Display"
            Depth       24
            Modes       "1600x1200"
            ViewPort    0 0
        EndSubsection
    EndSection
    
    Section "Screen"
        Identifier  "Screen 1"
        Device      "Nvidia 6800-1"
        Monitor     "Dell 2405FPW"
        DefaultDepth 24
    
        Subsection "Display"
            Depth       24
            Modes       "1920x1200_60.00"
            ViewPort    0 0
        EndSubsection
    EndSection
    # **********************************************************************
    # ServerLayout sections.
    # **********************************************************************
    
    Section "ServerLayout"
    
        Identifier  "Simple Layout"
        Screen	0	"Screen 0" 0 0
        Screen      1       "Screen 1" LeftOf "Screen 0"
        InputDevice "Mouse1" "CorePointer"
        InputDevice "Keyboard1" "CoreKeyboard"
    
    EndSection
    
    # Section "DRI"
    #    Mode 0666
    # EndSection
    NVidia makes the CRT the first device no matter what, that's why the ServerLayout section is arranged like that.
    Next I wanted different backgrounds using fluxbox...here are the resulting configs:

    Code:
    & cat ~/.fluxbox/startup
    DISPLAY=:0.0 fbsetbg -f ~/files/images/backgrounds/1600x1200.jpg &
    DISPLAY=:0.1 fbsetbg -f ~/files/images/backgrounds/1920x1200/caffeine_blue1920x1200.jpg &
    DISPLAY=:0.1 gkrellm2 -w &
    DISPLAY=:0.0 xscreensaver &
    DISPLAY=:0.1 xscreensaver &
    xset m 1 10 &
    xrdb -merge ~/.Xdefaults &
    xmodmap ~/.Xmodmap &
    /usr/bin/gnome-volume-manager &
    /usr/libexec/gnome-vfs-daemon &
    exec /usr/bin/fluxbox
    cat ~/.fluxbox/init

    Code:
    session.titlebar.left:	Stick 
    session.titlebar.right:	Minimize Maximize Close 
    session.screen1.overlay.lineWidth:	1
    session.screen1.overlay.lineStyle:	LineSolid
    session.screen1.overlay.joinStyle:	JoinMiter
    session.screen1.overlay.capStyle:	CapNotLast
    session.screen1.iconbar.mode:	Workspace
    session.screen1.iconbar.iconTextPadding:	10l
    session.screen1.iconbar.usePixmap:	true
    session.screen1.iconbar.iconWidth:	70
    session.screen1.iconbar.alignment:	Relative
    session.screen1.iconbar.wheelMode:	Screen
    session.screen1.iconbar.deiconifyMode:	Follow
    session.screen1.toolbar.onhead:	0
    session.screen1.toolbar.maxOver:	false
    session.screen1.toolbar.widthPercent:	65
    session.screen1.toolbar.autoHide:	false
    session.screen1.toolbar.visible:	true
    session.screen1.toolbar.height:	0
    session.screen1.toolbar.placement:	BottomCenter
    session.screen1.toolbar.layer:	Desktop
    session.screen1.toolbar.alpha:	255
    session.screen1.toolbar.tools:	workspacename, prevworkspace, nextworkspace, iconbar, systemtray, prevwindow, nextwindow, clock
    session.screen1.slit.alpha:	255
    session.screen1.slit.placement:	BottomRight
    session.screen1.slit.maxOver:	false
    session.screen1.slit.onhead:	0
    session.screen1.slit.layer:	Dock
    session.screen1.slit.direction:	Vertical
    session.screen1.slit.autoHide:	false
    session.screen1.menu.alpha:	255
    session.screen1.window.focus.alpha:	255
    session.screen1.window.unfocus.alpha:	255
    session.screen1.windowScrollAction:	
    session.screen1.edgeSnapThreshold:	0
    session.screen1.autoRaise:	false
    session.screen1.workspaceNames:	Workspace 1,Workspace 2,Workspace 3,Workspace 4,
    session.screen1.strftimeFormat:	%k:%M
    session.screen1.menuMode:	Delay
    session.screen1.followModel:	Ignore
    session.screen1.clickRaises:	true
    session.screen1.desktopwheeling:	true
    session.screen1.workspaces:	4
    session.screen1.imageDither:	false
    session.screen1.rootCommand:	DISPLAY=:0.1 fbsetbg -f ~/files/images/backgrounds/1920x1200/caffeine_blue1920x1200.jpg &	
    session.screen1.sloppywindowgrouping:	true
    session.screen1.windowScrollReverse:	false
    session.screen1.menuDelayClose:	0
    session.screen1.menuDelay:	0
    session.screen1.rowPlacementDirection:	LeftToRight
    session.screen1.tabFocusModel:	ClickToTabFocus
    session.screen1.showwindowposition:	true
    session.screen1.decorateTransient:	false
    session.screen1.focusNewWindows:	true
    session.screen1.opaqueMove:	false
    session.screen1.workspacewarping:	true
    session.screen1.antialias:	false
    session.screen1.fullMaximization:	true
    session.screen1.resizeMode:	Bottom
    session.screen1.windowMenu:	
    session.screen1.colPlacementDirection:	TopToBottom
    session.screen1.windowPlacement:	RowSmartPlacement
    session.screen1.focusLastWindow:	true
    session.screen1.focusModel:	ClickFocus
    session.screen0.overlay.lineWidth:	1
    session.screen0.overlay.lineStyle:	LineSolid
    session.screen0.overlay.joinStyle:	JoinMiter
    session.screen0.overlay.capStyle:	CapNotLast
    session.screen0.iconbar.iconTextPadding:	10l
    session.screen0.iconbar.mode:	AllWindows
    session.screen0.iconbar.usePixmap:	true
    session.screen0.iconbar.alignment:	Left
    session.screen0.iconbar.wheelMode:	Screen
    session.screen0.iconbar.iconWidth:	70
    session.screen0.iconbar.deiconifyMode:	Follow
    session.screen0.tab.placement:	Top
    session.screen0.tab.height:	16
    session.screen0.tab.rotatevertical:	True
    session.screen0.tab.alignment:	Left
    session.screen0.tab.width:	64
    session.screen0.slit.layer:	Normal
    session.screen0.slit.alpha:	97
    session.screen0.slit.onhead:	0
    session.screen0.slit.maxOver:	false
    session.screen0.slit.placement:	BottomRight
    session.screen0.slit.onTop:	false
    session.screen0.slit.direction:	Vertical
    session.screen0.slit.autoHide:	false
    session.screen0.menu.alpha:	150
    session.screen0.toolbar.widthPercent:	91
    session.screen0.toolbar.onhead:	0
    session.screen0.toolbar.maxOver:	true
    session.screen0.toolbar.autoHide:	false
    session.screen0.toolbar.visible:	true
    session.screen0.toolbar.layer:	Desktop
    session.screen0.toolbar.tools:	workspacename, prevworkspace, nextworkspace, iconbar, systemtray, prevwindow, nextwindow, clock
    session.screen0.toolbar.placement:	BottomCenter
    session.screen0.toolbar.alpha:	255
    session.screen0.toolbar.height:	0
    session.screen0.toolbar.onTop:	false
    session.screen0.window.focus.alpha:	255
    session.screen0.window.unfocus.alpha:	180
    session.screen0.edgeSnapThreshold:	0
    session.screen0.windowScrollAction:	
    session.screen0.workspaceNames:	one,two,three,four,
    session.screen0.autoRaise:	false
    session.screen0.clickRaises:	true
    session.screen0.followModel:	Ignore
    session.screen0.strftimeFormat:	%l:%M
    session.screen0.menuMode:	Delay
    session.screen0.workspaces:	4
    session.screen0.rootCommand:	DISPLAY=:0.0 fbsetbg -f ~/files/images/backgrounds/1600x1200.jpg	
    session.screen0.imageDither:	true
    session.screen0.desktopwheeling:	true
    session.screen0.sloppywindowgrouping:	true
    session.screen0.menuDelayClose:	0
    session.screen0.windowScrollReverse:	false
    session.screen0.menuDelay:	0
    session.screen0.decorateTransient:	true
    session.screen0.tabFocusModel:	ClickToTabFocus
    session.screen0.showwindowposition:	true
    session.screen0.rowPlacementDirection:	LeftToRight
    session.screen0.focusNewWindows:	true
    session.screen0.workspacewarping:	true
    session.screen0.antialias:	true
    session.screen0.opaqueMove:	true
    session.screen0.menuAlpha:	255
    session.screen0.resizeMode:	Bottom
    session.screen0.fullMaximization:	true
    session.screen0.windowMenu:	
    session.screen0.windowPlacement:	RowSmartPlacement
    session.screen0.focusModel:	ClickFocus
    session.screen0.colPlacementDirection:	TopToBottom
    session.screen0.focusLastWindow:	true
    session.menuFile:	~/.fluxbox/user.menu
    session.iconbar:	true
    session.doubleClickInterval:	250
    session.keyFile:	~/.fluxbox/keys
    session.focusTabMinWidth:	0
    session.cacheMax:	200l
    session.tabPadding:	0
    session.appsFile:	~/.fluxbox/apps
    session.imageDither:	True
    session.tabsAttachArea:	Window
    session.styleFile:	/home/jeff/.fluxbox/styles/MyBlueNight
    session.updateDelayTime:	0
    session.ignoreBorder:	false
    session.tabs:	true
    session.opaqueMove:	False
    session.cacheLife:	5l
    session.numLayers:	13
    session.colorsPerChannel:	4
    session.groupFile:	
    session.slitlistFile:	
    session.useMod1:	true
    session.forcePseudoTransparency:	false
    session.autoRaiseDelay:	250
    Any questions? Don't hesitate to ask!
    Last edited by je_fro; 12-12-2005 at 03:14 AM.
    Need help in realtime? Visit us at #linuxnewbie on irc.libera.chat

    Few of us will do as much for our fellow man as he has done.
    --Andrew Morton on RMS

  2. #2
    Join Date
    Oct 2002
    Location
    Republic of Texas
    Posts
    5,909
    Here's the end result...
    Attached Images Attached Images
    Last edited by je_fro; 12-12-2005 at 09:34 AM.
    Need help in realtime? Visit us at #linuxnewbie on irc.libera.chat

    Few of us will do as much for our fellow man as he has done.
    --Andrew Morton on RMS

  3. #3
    Join Date
    Aug 2001
    Location
    Somewhere, Texas
    Posts
    9,628
    We all know you love to show off your spiffy new Dell monitor je_fro, but putting images in the treads is crule punishment for those on dialup

  4. #4
    Join Date
    Oct 2002
    Location
    Illinois
    Posts
    3,289
    just as my self esteem was back on the rebound too

  5. #5
    Join Date
    Dec 2002
    Posts
    1,088
    Nice, but don't the images really belong in the Deskshots thread?
    Check out my ebay auction for my signature space on JLC.

    Hey if people can sell advertising space on thier bodies, I figure I can make $.02 on my signature space.

  6. #6
    Join Date
    Oct 2002
    Location
    Republic of Texas
    Posts
    5,909
    Oh all right...you pansies!
    Need help in realtime? Visit us at #linuxnewbie on irc.libera.chat

    Few of us will do as much for our fellow man as he has done.
    --Andrew Morton on RMS

  7. #7
    Join Date
    Jan 2003
    Posts
    979
    still looking for a way to have different window mangers in in each screen (with your setup, i.e. :0.0 & :0.1).
    -------------------------

    1.7 Ghz Pentium IV
    128MB RD-RAM
    40GB 5400 RPM HDD
    Creative Live! Sound Card
    Geforce 4 Ti4400 gfx card

  8. #8
    Join Date
    Aug 2001
    Location
    Somewhere, Texas
    Posts
    9,628
    Both screens look like FLuxbox to me so they are using the same WM just different desktops as je_fro put in his howto by using DISPLAY=:0.0 and DISPLAY=:0.1

  9. #9
    Join Date
    Jan 2003
    Posts
    979
    yes, i know. i was looking for a way to have different WMs, but with the same setup (separate screens).

  10. #10
    Join Date
    Aug 2001
    Location
    Somewhere, Texas
    Posts
    9,628
    The only way I can think of to have two seperate WMs running on the screens would be to start two seperate X servers which might mean two seperate logins which would make the two screens fairly non-interactive.

    Why have two different WMs? Other then the obvious 'cause I can'?

  11. #11
    Join Date
    Jan 2003
    Posts
    979
    but je_fro IS starting two seperate x servers, but with one login.

    one of the reasons is that it would be cool to have superkaramba in my side screen, but it needs kde. i prefer fluxbox, but the fake transparency in superkarmba doesnt work without kde.

  12. #12
    Join Date
    Dec 2002
    Posts
    1,088
    That would be intersting rocketpcguy. That would be worth showing off in the deskshots or screen shots thread.

    Now I actually like to run 2 x sessions at the same time, using startx -- +1. Nothing like playing Americas Army on one session and being able to switch back to the other session to admin the game server while you are dead.
    Check out my ebay auction for my signature space on JLC.

    Hey if people can sell advertising space on thier bodies, I figure I can make $.02 on my signature space.

  13. #13
    Join Date
    Sep 2003
    Location
    Rochester, MN
    Posts
    3,607
    Quote Originally Posted by rocketpcguy
    i prefer fluxbox, but the fake transparency in superkarmba doesnt work without kde.
    Aha, but this is not entirely true. Simply starting kdesktop when you start Fluxbox is sufficient to get transparency working. Granted, that means that you have to keep your KDE wallpaper in sync with your Fluxbox one, but I believe there is even a way to do that from the command-line so you could write a little script to do both fbsetbg and kdesktop at the same time. Or maybe kdesktop is a safe wallpaper setter for Fluxbox. I haven't messed with it that much because I'm content to use kcontrol to change the background any time I switch Fluxbox themes. Here's my screenshot of running superkaramba + transparency + Fluxbox: http://lctf.homelinux.com/stuff/Alic...ransparent.jpg

    Quote Originally Posted by JamminJoeyB
    Now I actually like to run 2 x sessions at the same time, using startx -- +1. Nothing like playing Americas Army on one session and being able to switch back to the other session to admin the game server while you are dead.
    Ditto. I think it probably impresses our LAN partyers when I do that because they can't.

    Never seen that +1 before though. I assume that starts on the next available display then? Would be handy so I don't have to remember whether I have a VNC server running on :1 or not.

    Edit: And so I'm not completely hijacking this thread, that's a sweet setup je_fro. When I get my second monitor I'll be back to this thread to set it up.
    Last edited by cybertron; 12-12-2005 at 06:34 PM.

  14. #14
    Join Date
    Oct 2002
    Location
    Republic of Texas
    Posts
    5,909
    Hijack away! That's what it's here for...interesting discussion so far!
    I did, however find a bug with openoffice and firefox. Once you open one, all the others will open on that same screen no matter what.

    http://forums.gentoo.org/viewtopic-p-2950020.html
    https://bugzilla.mozilla.org/show_bug.cgi?id=319965

    hehe...I think 'ol Jose is going to /kickban me
    Need help in realtime? Visit us at #linuxnewbie on irc.libera.chat

    Few of us will do as much for our fellow man as he has done.
    --Andrew Morton on RMS

  15. #15
    Join Date
    Jun 2002
    Location
    Washington
    Posts
    172
    That keyboard leveling device working good for you?

    Chad

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •