You are not logged in.

#1 2010-11-22 01:02:00

raginaot
Member
Registered: 2010-11-22
Posts: 53

[SOLVED] Dual monitors and raid - linux newb

Hi
I'm raginaot and I'll probably be asking a lot of dumb questions here in the near future big_smile

I just decided to say goodbye to windows for a while. Been wasting too much time gaming and it was either - switch to linux or - sell my computer and move to the desert. I'm gonna try the former first and see how it goes.

I managed to install arch and get gnome up and running with the help of the most awesome linux install guide I have ever seen and I installed the xf86-video-ati driver package but I'm having trouble getting it to recognise my 2 monitors.

I'll list my hardware specs before I go any further:

CPU: i7 920
RAM: 12GB (3x4) Mushkin Silverline 1333MHz
Motherboard: Gigabyte EX58-UD3R (rev 1.6)
GPU: ATI HD5870 1GB
Souncard: Auzentech X-fi forte
Monitors: Samsung 2693HM and Samsung 226BW

now the monitors seem to be stuck in mirrored mode, both showing the same image at 1280*1024 resolution
when I try to set them both to on and their native resolutions (1920*1200 and 1680*1050) in the display settings I get a message that says:

"the selected configuration for displays could not be applied
required virtual size does not fit available size: requested=(3600, 1200), minimum=(320, 200), maximum=(1920, 1920"

But when I unplug the 22" display, I can set the 26" to native res just fine and vice versa.

------------------------------------------------------------------------------------------

Now to the second issue...

I have 2 1TB drives in raid0, but in fdisk -l they appear as 2 seperate 1TB drives instead of 1 big 2TB like they're supposed to (see output below).
I guess I have to mount them in some special way, but I have no idea how. The raid worked right away in linux mint.

fdisk wrote:

Disk /dev/sdb: 1000.2 GB, 1000203804160 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1c7fba32

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sdb2              13       34421   276377600    7  HPFS/NTFS
/dev/sdb3           34421      243202  1677035520    7  HPFS/NTFS

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb876c595

Disk /dev/sdc doesn't contain a valid partition table

Thanks in advance.

Last edited by raginaot (2010-11-24 03:29:46)

Offline

#2 2010-11-22 01:44:31

raginaot
Member
Registered: 2010-11-22
Posts: 53

Re: [SOLVED] Dual monitors and raid - linux newb

I did some googling and found out how to use the xrandr command

xrandr --output DVI-0 --mode 1920x1200 --pos 0x0 --output DVI-1 --mode 1680x1050 --pos 1920x0

but it gives me pretty much the same thing

xrandr: screen cannot be larger than 1920x1920 (desired size 3600x1200)

Is this a limitation of the video driver?
Anything I can do?

also I found the dmraid package for the raid setup but it's also not working for me

[root@myhost ~]# dmraid -ay
/dev/sdc: "jmicron" and "isw" formats discovered (using isw)!
/dev/sdb: "jmicron" and "isw" formats discovered (using isw)!
RAID set "isw_ceijhcahbb_TERARAOD" was not activated
ERROR: device "isw_ceijhcahbb_TERARAOD" could not be found

Offline

#3 2010-11-22 02:07:23

raginaot
Member
Registered: 2010-11-22
Posts: 53

Re: [SOLVED] Dual monitors and raid - linux newb

sorry for the multi-post but I figured out the raid thing
just had to do "modprobe dm_mod" before dmraid and then the partitions on the array were listed as 1 device each and I could mount them as normal.

Offline

#4 2010-11-22 17:30:05

Bregol
Member
Registered: 2008-08-15
Posts: 175

Re: [SOLVED] Dual monitors and raid - linux newb

Glad you were able to figure out the RAID part - I can't really help you with that.  As far as the dual monitor setup, I would suspect that you will need to do some stuff with the xorg config to get it working.  I would say that xorg.log would be the first thing to look at - to see what is limiting the modes available to X.  Maybe post the xorg.log and your x configuration

My post in this thread might give a bit of background on how X comes up with what resolutions it lets you choose.
https://bbs.archlinux.org/viewtopic.php?id=101547


Nai haryuvalyë melwa rë

Offline

#5 2010-11-22 18:24:01

BaconPie
Member
Registered: 2010-08-11
Posts: 209

Re: [SOLVED] Dual monitors and raid - linux newb

I followed this for my RAID arrays. I know you fixed it but it might be worth looking anyway.

Last edited by BaconPie (2010-11-22 18:26:24)

Offline

#6 2010-11-22 21:43:35

raginaot
Member
Registered: 2010-11-22
Posts: 53

Re: [SOLVED] Dual monitors and raid - linux newb

Bregol wrote:

Glad you were able to figure out the RAID part - I can't really help you with that.  As far as the dual monitor setup, I would suspect that you will need to do some stuff with the xorg config to get it working.  I would say that xorg.log would be the first thing to look at - to see what is limiting the modes available to X.  Maybe post the xorg.log and your x configuration

My post in this thread might give a bit of background on how X comes up with what resolutions it lets you choose.
https://bbs.archlinux.org/viewtopic.php?id=101547

thanks
I pasted the xorg logs here: Xorg log 0: http://pastebin.com/tHPqWVaw and Xorg log 1: http://pastebin.com/nPhdpCE0

and here is the xorg.conf in /etc/X11 (hope that's the right file..)

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/misc/"
    FontPath     "/usr/share/fonts/TTF/"
    FontPath     "/usr/share/fonts/OTF/"
    FontPath     "/usr/share/fonts/Type1/"
    FontPath     "/usr/share/fonts/100dpi/"
    FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
    Load  "record"
    Load  "glx"
    Load  "extmod"
    Load  "dri"
    Load  "dri2"
    Load  "dbe"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    #DisplaySize      470   300    # mm
    Identifier   "Monitor0"
    VendorName   "SAM"
    ModelName    "SyncMaster"
    HorizSync    30.0 - 81.0
    VertRefresh  56.0 - 75.0
    Option        "DPMS"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "NoAccel"                # [<bool>]
        #Option     "SWcursor"               # [<bool>]
        #Option     "Dac6Bit"                # [<bool>]
        #Option     "Dac8Bit"                # [<bool>]
        #Option     "BusType"                # [<str>]
        #Option     "CPPIOMode"              # [<bool>]
        #Option     "CPusecTimeout"          # <i>
        #Option     "AGPMode"                # <i>
        #Option     "AGPFastWrite"           # [<bool>]
        #Option     "AGPSize"                # <i>
        #Option     "GARTSize"               # <i>
        #Option     "RingSize"               # <i>
        #Option     "BufferSize"             # <i>
        #Option     "EnableDepthMoves"       # [<bool>]
        #Option     "EnablePageFlip"         # [<bool>]
        #Option     "NoBackBuffer"           # [<bool>]
        #Option     "DMAForXv"               # [<bool>]
        #Option     "FBTexPercent"           # <i>
        #Option     "DepthBits"              # <i>
        #Option     "PCIAPERSize"            # <i>
        #Option     "AccelDFS"               # [<bool>]
        #Option     "IgnoreEDID"             # [<bool>]
        #Option     "CustomEDID"             # [<str>]
        #Option     "DisplayPriority"        # [<str>]
        #Option     "PanelSize"              # [<str>]
        #Option     "ForceMinDotClock"       # <freq>
        #Option     "ColorTiling"            # [<bool>]
        #Option     "VideoKey"               # <i>
        #Option     "RageTheatreCrystal"     # <i>
        #Option     "RageTheatreTunerPort"     # <i>
        #Option     "RageTheatreCompositePort"     # <i>
        #Option     "RageTheatreSVideoPort"     # <i>
        #Option     "TunerType"              # <i>
        #Option     "RageTheatreMicrocPath"     # <str>
        #Option     "RageTheatreMicrocType"     # <str>
        #Option     "ScalerWidth"            # <i>
        #Option     "RenderAccel"            # [<bool>]
        #Option     "SubPixelOrder"          # [<str>]
        #Option     "ClockGating"            # [<bool>]
        #Option     "VGAAccess"              # [<bool>]
        #Option     "ReverseDDC"             # [<bool>]
        #Option     "LVDSProbePLL"           # [<bool>]
        #Option     "AccelMethod"            # <str>
        #Option     "DRI"                    # [<bool>]
        #Option     "ConnectorTable"         # <str>
        #Option     "DefaultConnectorTable"     # [<bool>]
        #Option     "DefaultTMDSPLL"         # [<bool>]
        #Option     "TVDACLoadDetect"        # [<bool>]
        #Option     "ForceTVOut"             # [<bool>]
        #Option     "TVStandard"             # <str>
        #Option     "IgnoreLidStatus"        # [<bool>]
        #Option     "DefaultTVDACAdj"        # [<bool>]
        #Option     "Int10"                  # [<bool>]
        #Option     "EXAVSync"               # [<bool>]
        #Option     "ATOMTVOut"              # [<bool>]
        #Option     "R4xxATOM"               # [<bool>]
        #Option     "ForceLowPowerMode"      # [<bool>]
        #Option     "DynamicPM"              # [<bool>]
        #Option     "NewPLL"                 # [<bool>]
        #Option     "ZaphodHeads"            # <str>
    Identifier  "Card0"
    Driver      "radeon"
    BusID       "PCI:3:0:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

Not sure what to look for here...
The "#DisplaySize      470   300" line looks like something.
I only have the 26" screen plugged in at the moment, if that matters. Does the xorg log change it self when I plug in another screen?

Offline

#7 2010-11-23 00:33:27

Bregol
Member
Registered: 2008-08-15
Posts: 175

Re: [SOLVED] Dual monitors and raid - linux newb

From your logs,

 (II) RADEON(0): Modeline "1680x1050"x59.9  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync (64.7 kHz) 
......
(II) RADEON(0): Modeline "1920x1200"x60.0  154.00  1920 1968 2000 2080  1200 1203 1209 1235 +hsync -vsync (74.0 kHz)

Those 2 lines show that the monitors are detected properly and the resolutions for each of the monitors that you want are added to the giant pool of modes.  What seems to be happening is that the highest resolution in common between the two screens is being used.  in this case, the highest resolution that is in both monitors is the 1280 resolution you are getting.  So we need to tell it that there are indeed 2 separate monitors being used and tell it how you want them arranged.

I would say all you need is some stuff added into xorg.conf to tell it how you want the screens arranged and what size.  I may be as simple as needing a second Monitor section in your xorg.conf for your second monitor.
Take a look here and see if this helps: http://en.gentoo-wiki.com/wiki/X.Org/Dual_Monitors  The example uses nouveau, but the thing to note is that there are 2 Monitor sections and in the Monitor section you tell it you want one placed to the right or the other one.


Nai haryuvalyë melwa rë

Offline

#8 2010-11-23 04:04:37

raginaot
Member
Registered: 2010-11-22
Posts: 53

Re: [SOLVED] Dual monitors and raid - linux newb

Bregol wrote:

From your logs,

 (II) RADEON(0): Modeline "1680x1050"x59.9  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync (64.7 kHz) 
......
(II) RADEON(0): Modeline "1920x1200"x60.0  154.00  1920 1968 2000 2080  1200 1203 1209 1235 +hsync -vsync (74.0 kHz)

Those 2 lines show that the monitors are detected properly and the resolutions for each of the monitors that you want are added to the giant pool of modes.  What seems to be happening is that the highest resolution in common between the two screens is being used.  in this case, the highest resolution that is in both monitors is the 1280 resolution you are getting.  So we need to tell it that there are indeed 2 separate monitors being used and tell it how you want them arranged.

I would say all you need is some stuff added into xorg.conf to tell it how you want the screens arranged and what size.  I may be as simple as needing a second Monitor section in your xorg.conf for your second monitor.
Take a look here and see if this helps: http://en.gentoo-wiki.com/wiki/X.Org/Dual_Monitors  The example uses nouveau, but the thing to note is that there are 2 Monitor sections and in the Monitor section you tell it you want one placed to the right or the other one.

Thanks so much you're awesome. big_smile
It finally works.

Had to replace a lot of the config file to get it right but it's working great now.

It does always go back to 1280x1024 mirrored mode on boot though and I'll have to change it manually.
I could probably make an xrandr command to load on startup, but how could I run it before I log in? Is it enough to just put it in startup applications?

Offline

#9 2010-11-23 12:06:29

Bregol
Member
Registered: 2008-08-15
Posts: 175

Re: [SOLVED] Dual monitors and raid - linux newb

xrandr is one line of thinking, but you can get it to stuff by default in xorg.conf.  If you take a look at the man page for radeon (`man radeon`), there is a section on MetaModes you should look at.  I believe if you define a metamode, it will use that metamode as the default.  A metamode is just a combination of resolutions for screens that you want used together.   Although you can add multiple metamodes, it should suffice to just put the one metamode that you want it to use.  In your case I would assume it to be something like this:

Option "MetaModes" "1920x1200-1680x1050"

Nai haryuvalyë melwa rë

Offline

#10 2010-11-23 20:54:53

raginaot
Member
Registered: 2010-11-22
Posts: 53

Re: [SOLVED] Dual monitors and raid - linux newb

Bregol wrote:

xrandr is one line of thinking, but you can get it to stuff by default in xorg.conf.  If you take a look at the man page for radeon (`man radeon`), there is a section on MetaModes you should look at.  I believe if you define a metamode, it will use that metamode as the default.  A metamode is just a combination of resolutions for screens that you want used together.   Although you can add multiple metamodes, it should suffice to just put the one metamode that you want it to use.  In your case I would assume it to be something like this:

Option "MetaModes" "1920x1200-1680x1050"

Thanks... but it seems to be fine now. Just rebooted and the resolutions stuck.
It fixed it self somehow...

Offline

Board footer

Powered by FluxBB