LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-10-2004, 06:47 AM   #1
Law1213
Member
 
Registered: Jul 2004
Location: UK
Distribution: Gentoo
Posts: 52

Rep: Reputation: 17
Unhappy Setting Primary Monitor


Hi,

I have a dual monitor system on a laptop. I have an external TFT 19" monitor and the laptop screen running from one ATI Radeon 9000. After finally managing to get my XFree86 configuration to work on Mandrake I have some smaller issues to deal with. I want my external 19" monitor to be set as primary however despite trying various changes to the configuration file XF86Config-4 my laptop monitor appears to be Display 1 (Screen0) and my External monitor Display 2 (Screen1). The problem is that the login manager loads of Display 1 (the laptop screen) along with most applications, this is annoying when watching full screen videos with Mplayer since it goes full screen on the laptop display and not on the external 19". It would help to know how you tell X which is the primary display, then I could set the primary display to be the external monitor.

Here is my XF86Config-4, I have tried reversing the head numbers with no effect:-

# File generated by XFdrake.

# **********************************************************************
# Refer to the XF86Config man page for details about the format of
# this file.
# **********************************************************************

Section "Files"
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Mandrake 6.0 and later now use a font server independent of
# the X server to render fonts.
FontPath "unix/:-1"
EndSection

Section "ServerFlags"
#DontZap # disable <Crtl><Alt><BS> (server abort)
AllowMouseOpenFail # allows the server to start up even if the mouse doesn't work
#DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
EndSection

Section "Module"
Load "dbe" # Double-Buffering Extension
Load "v4l" # Video for Linux
Load "extmod"
Load "type1"
Load "freetype"
Load "glx" # 3D layer
Load "dri" # direct rendering
EndSection

Section "DRI"
Mode 0666
EndSection

Section "InputDevice"
Identifier "Keyboard1"
Driver "Keyboard"
Option "XkbModel" "pc105"
Option "XkbLayout" "gb"
Option "XkbOptions" ""
EndSection

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

Section "Monitor"
Identifier "Monitor0"
VendorName "Generic"
ModelName "Flat Panel 1280x1024"
HorizSync 31.5-67
VertRefresh 50-75

# Sony Vaio C1(X,XS,VE,VN)?
# 1024x480 @ 85.6 Hz, 48 kHz hsync
ModeLine "1024x480" 65.00 1024 1032 1176 1344 480 488 494 563 -hsync -vsync

# TV fullscreen mode or DVD fullscreen output.
# 768x576 @ 79 Hz, 50 kHz hsync
ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630

# 768x576 @ 100 Hz, 61.6 kHz hsync
ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Generic"
ModelName "Flat Panel 1024x768"
HorizSync 31.5-67
VertRefresh 50-75

# Sony Vaio C1(X,XS,VE,VN)?
# 1024x480 @ 85.6 Hz, 48 kHz hsync
ModeLine "1024x480" 65.00 1024 1032 1176 1344 480 488 494 563
-hsync -vsync

# TV fullscreen mode or DVD fullscreen output.
# 768x576 @ 79 Hz, 50 kHz hsync
ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630

# 768x576 @ 100 Hz, 61.6 kHz hsync
ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616
EndSection

Section "Device"
Identifier "device0"
BoardName "ATI Radeon"
Driver "radeon"
BusID "PCI:1:0:0"
Screen 0
EndSection

Section "Device"
Identifier "device1"
BoardName "ATI Radeon"
Driver "radeon"
BusID "PCI:1:0:0"
Screen 1
EndSection

Section "Screen"
Identifier "Screen0"
Device "device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "device1"
Monitor "Monitor1"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 1280 256
Screen 1 "Screen1"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
Option "MonitorLayout" "CRT, LVDS"
Option "Xinerama" "on"
Option "CloneMode" "off"
Option "Clone" "off"
EndSection

Any help would be appreciated

Thanks
 
Old 10-10-2004, 10:01 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what did you actually DO? the serverlayout section is what will actually define the primary head, so it's the Screen 0 bit that should be flipped.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nvidia + Twinview; Howto switch primary monitor? layersection Linux - General 1 04-30-2005 12:24 AM
Nvidia + Twinview; Howto switch primary monitor? layersection Linux - Software 1 04-29-2005 10:11 PM
3dfx voodoo3 svideo as primary monitor frieza Linux - Software 0 03-05-2005 11:18 PM
How to change primary monitor on thinkpad - SuSE 9.1 phands Linux - Laptop and Netbook 0 07-14-2004 08:45 AM
setting up primary HD and secondary HD dataport Linux - General 8 01-23-2004 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:53 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration