To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here

http://justlinux.com/   Tue, 09-Feb-2010 18:00:23 GMT
         internet.com

Go Back   JustLinux Forums > Community Help: Check the Help Files, then come here to ask! > How I Did It!

How I Did It! Got a How-To/Tutorial/Guide you wrote? Post it here.

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 12-12-2005, 01:32 AM
je_fro's Avatar
je_fro je_fro is offline
Moderator
 
Join Date: Oct 2002
Location: Republic of Texas
Posts: 5,826
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!
__________________
Need help in realtime? Visit us at #linuxn00b on irc.freenode.net <-yes, those are zeros. http://www.linux.com/article.pl?sid=07/04/14/0631220
Please follow the JL posting guidelines. || Put those spare cycles to use! Join the Justlinux folding@home team! Team #36480 Join Now! || Link to some of my config files and a few howto's.

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

Last edited by je_fro; 12-12-2005 at 03:14 AM.
Reply With Quote
  #2  
Old 12-12-2005, 03:22 AM
je_fro's Avatar
je_fro je_fro is offline
Moderator
 
Join Date: Oct 2002
Location: Republic of Texas
Posts: 5,826
Here's the end result...
Attached Images
File Type: jpg dsc03021.800.jpg (71.3 KB, 2835 views)
__________________
Need help in realtime? Visit us at #linuxn00b on irc.freenode.net <-yes, those are zeros. http://www.linux.com/article.pl?sid=07/04/14/0631220
Please follow the JL posting guidelines. || Put those spare cycles to use! Join the Justlinux folding@home team! Team #36480 Join Now! || Link to some of my config files and a few howto's.

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

Last edited by je_fro; 12-12-2005 at 09:34 AM.
Reply With Quote
  #3  
Old 12-12-2005, 09:09 AM
Icarus's Avatar
Icarus Icarus is offline
Radioactive Wombat/Moderator
 
Join Date: Aug 2001
Location: Somewhere, Texas
Posts: 9,616
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
__________________
I'm just a ParadoX waiting to happen
Registered Linux User #296841
'There's a fine line between genius and insanity. I have erased this line.' - Oscar Levant
Reply With Quote
  #4  
Old 12-12-2005, 09:19 AM
dkeav's Avatar
dkeav dkeav is offline
Curmudgeon
 
Join Date: Oct 2002
Location: Illinois
Posts: 3,297
just as my self esteem was back on the rebound too
Reply With Quote
  #5  
Old 12-12-2005, 09:21 AM
JamminJoeyB's Avatar
JamminJoeyB JamminJoeyB is offline
Psychotic Platypus
 
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.
Reply With Quote
  #6  
Old 12-12-2005, 09:33 AM
je_fro's Avatar
je_fro je_fro is offline
Moderator
 
Join Date: Oct 2002
Location: Republic of Texas
Posts: 5,826
Oh all right...you pansies!
__________________
Need help in realtime? Visit us at #linuxn00b on irc.freenode.net <-yes, those are zeros. http://www.linux.com/article.pl?sid=07/04/14/0631220
Please follow the JL posting guidelines. || Put those spare cycles to use! Join the Justlinux folding@home team! Team #36480 Join Now! || Link to some of my config files and a few howto's.

Few of us will do as much for our fellow man as he has done.
--Andrew Morton on RMS
Reply With Quote
  #7  
Old 12-12-2005, 11:22 AM
rocketpcguy rocketpcguy is offline
Registered User
 
Join Date: Jan 2003
Posts: 980
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
Reply With Quote
  #8  
Old 12-12-2005, 12:35 PM
Icarus's Avatar
Icarus Icarus is offline
Radioactive Wombat/Moderator
 
Join Date: Aug 2001
Location: Somewhere, Texas
Posts: 9,616
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
__________________
I'm just a ParadoX waiting to happen
Registered Linux User #296841
'There's a fine line between genius and insanity. I have erased this line.' - Oscar Levant
Reply With Quote
  #9  
Old 12-12-2005, 02:12 PM
rocketpcguy rocketpcguy is offline
Registered User
 
Join Date: Jan 2003
Posts: 980
yes, i know. i was looking for a way to have different WMs, but with the same setup (separate screens).
Reply With Quote
  #10  
Old 12-12-2005, 02:40 PM
Icarus's Avatar
Icarus Icarus is offline
Radioactive Wombat/Moderator
 
Join Date: Aug 2001
Location: Somewhere, Texas
Posts: 9,616
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'?
__________________
I'm just a ParadoX waiting to happen
Registered Linux User #296841
'There's a fine line between genius and insanity. I have erased this line.' - Oscar Levant
Reply With Quote
  #11  
Old 12-12-2005, 02:58 PM
rocketpcguy rocketpcguy is offline
Registered User
 
Join Date: Jan 2003
Posts: 980
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.
Reply With Quote
  #12  
Old 12-12-2005, 03:17 PM
JamminJoeyB's Avatar
JamminJoeyB JamminJoeyB is offline
Psychotic Platypus
 
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.
Reply With Quote
  #13  
Old 12-12-2005, 06:32 PM
cybertron's Avatar
cybertron cybertron is offline
Grasshopper Moderator
 
Join Date: Sep 2003
Location: Rochester, MN
Posts: 3,433
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.
__________________
Please read the Posting Guidelines before you post. They make everyone's life easier and help you get an answer to your question.
My hardware and distro list.
In memory of mdwatts: RTFM, G4L, and Fold like your life depends on it - some day it may.

Last edited by cybertron; 12-12-2005 at 06:34 PM.
Reply With Quote
  #14  
Old 12-12-2005, 07:17 PM
je_fro's Avatar
je_fro je_fro is offline
Moderator
 
Join Date: Oct 2002
Location: Republic of Texas
Posts: 5,826
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 #linuxn00b on irc.freenode.net <-yes, those are zeros. http://www.linux.com/article.pl?sid=07/04/14/0631220
Please follow the JL posting guidelines. || Put those spare cycles to use! Join the Justlinux folding@home team! Team #36480 Join Now! || Link to some of my config files and a few howto's.

Few of us will do as much for our fellow man as he has done.
--Andrew Morton on RMS
Reply With Quote
  #15  
Old 12-12-2005, 07:32 PM
LNXchd LNXchd is offline
no longer in use
 
Join Date: Jun 2002
Location: Washington
Posts: 172
That keyboard leveling device working good for you?

Chad
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Forum Jump


All times are GMT -4. The time now is 02:00 PM.

Help File Library
Modems
Games
Compiling Kernels
Distribution Specific
Audio Hardware
More



internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers




internet.commerce
Be a Commerce Partner












Linux is a trademark of Linus Torvalds.

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.