LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Xorg configuration for external monitor (https://www.linuxquestions.org/questions/linux-newbie-8/xorg-configuration-for-external-monitor-838375/)

jadamso 10-15-2010 03:53 PM

Xorg configuration for external monitor
 
A few days ago I installed browserlinux onto my AspireOne netbook whilst connected to a 15" external monitor of 1024x768 at 60Hz. During installation I ran the Puppy Xorg Wizard with the netbook's monitor (1024x600) switched off. It selected the optimum resolution of my external monitor correctly as 1024x768 and the 'intel' driver for the Intel 945 Express chipset. However when I ran programs and maximised their windows they would cut off about a third from the bottom. I ran the Xorg Resolution Wizard which showed a resolution of 1024x600 despite xorg.conf only showing an option of 1024x768.
I tried to copy a xorg.conf from Linpus (Fedora 8) which had required some altering in the past to run the external monitor at the correct resolution but X failed to start (possibly because Xorg in browserlinux is a newer release).
Would it be possible for someone to upload a xorg.conf file which would enable display the external monitor at the correct resolution (and ideally allow switching between the two monitors - under Linpus the hotkey is Fn + 4) or suggest alterations to the current file?
I love the look of browserlinux and it has all the programs that I'm looking for so I would really like to try to stick with it.
Below is a copy of my current Xorg file (sorry about the formatting)

#Special base config file used in Puppy Linux. # ********************************************************************** # Module section -- this section is used to specify # which dynamically loadable modules to load. # ********************************************************************** # Section "Module" Load "synaptics" # This loads the DBE extension module. Load "dbe" # Double buffer extension # This loads the miscellaneous extensions module, and disables # initialisation of the XFree86-DGA extension within that module. SubSection "extmod" Option "omit xfree86-dga" # don't initialise the DGA extension EndSubSection # This loads the font modules # Load "type1" # Load "freetype" # This loads xtrap extension, used by xrandr # Load "xtrap" # This loads the GLX module (if present). xorg 7.4/5 need explicit disable to disable... Load "glx" #LOADGLX # This loads dri module (if present). 7.4 loads it by default, have to disable... Load "dri" #LOADDRI # Disable "dri" EndSection # ********************************************************************** # Files section. This allows default font paths to be set # ********************************************************************** Section "Files" # Multiple FontPath entries are allowed (which are concatenated together), # as well as specifying multiple comma-separated entries in one FontPath # command (or a combination of both methods) FontPath "/usr/share/X11/fonts/misc/" FontPath "/usr/share/X11/fonts/Type1/" FontPath "/usr/share/X11/fonts/TTF/" EndSection # ********************************************************************** # Server flags section. # ********************************************************************** Section "ServerFlags" # Uncomment this to disable the VT switch sequence # (where n is 1 through 12). This allows clients to receive these key # events. # Option "DontVTSwitch" # Enables mode switching with xrandr # There is a report that this can cause Xorg not to work on some # video hardware, so default is commented-out... # but i want to use it in xorgwizard so leave on... Option "RandR" "on" # With this, Xorg won't talk to HAL to add evdev devices and you'll be back # with the old Xorg behavior (pre-7.4)... Option "AutoAddDevices" "false" # For no-Hal, kirk also suggests this... # Option "AllowMouseOpenFail" "true" # Xorg 7.4, Ubuntu Jaunty, CTRL-ALT-BACKSPACE is disabled by default... Option "DontZap" "false" EndSection #everything past here is auto-generated by Puppy's Xorg Wizard... Section "ServerLayout" InputDevice "Synaptics Mouse" "AlwaysCore" Identifier "X.org Configured" Screen 0 "Screen0" 0 0 InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbRules" "xorg" Option "XkbModel" "pc102" Option "XkbLayout" "us" #xkeymap0 EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "IMPS/2" #mouse0protocol Option "Device" "/dev/mouse" #Option "Emulate3Buttons" #Option "Emulate3Timeout" "50" Option "ZAxisMapping" "4 5" #scrollwheel EndSection Section "InputDevice" Identifier "Synaptics Mouse" Driver "synaptics" Option "Device" "/dev/psaux" Option "Protocol" "auto-dev" Option "LeftEdge" "1700" Option "RightEdge" "5300" Option "TopEdge" "1700" Option "BottomEdge" "4200" Option "FingerLow" "25" Option "FingerHigh" "30" Option "MaxTapTime" "0" Option "MaxTapMove" "220" Option "VertScrollDelta" "100" Option "MinSpeed" "0.10" Option "MaxSpeed" "0.30" Option "AccelFactor" "0.0030" Option "SHMConfig" "on" #Option "Repeater" "/dev/ps2mouse" EndSection Section "Monitor" Identifier "Monitor0" VendorName "Monitor Vendor" ModelName "Monitor Model" HorizSync 30-63 VertRefresh 56-72 #UseModes "Modes0" #monitor0usemodes Option "PreferredMode" "1024x768" EndSection Section "Modes" Identifier "Modes0" #modes0modeline0 EndSection Section "Device" ### Available Driver options are:- ### Values: : integer, : float, : "True"/"False", ### : "String", : " Hz/kHz/MHz" ### [arg]: arg optional #Option "NoAccel" # [] #Option "SWcursor" # [] #Option "ColorKey" # #Option "CacheLines" # #Option "Dac6Bit" # [] #Option "DRI" # [] #Option "NoDDC" # [] #Option "ShowCache" # [] #Option "XvMCSurfaces" # #Option "PageFlip" # [] Identifier "Card0" Driver "intel" #card0driver VendorName "Intel Corporation" BoardName "Mobile 945GME Express Integrated Graphics Controller" BusID "PCI:0:2:0" EndSection Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" DefaultDepth 24 #Option "metamodes" "1024x768_60 +0+0" #METAMODES_0 Subsection "Display" Depth 24 Modes "1024x768" EndSubsection EndSection #PuppyHardwareProfile=Intel_r__82945GM_ChipsetDELLE153FP

JZL240I-U 10-19-2010 06:40 AM

Please place the output / code in bracket"[" - code - bracket"]"[/code] tags (can't do it here since they get interpreted right here an d now) or use the advanced editing mode, where you can set this with one click. It is really unreadable like this.

jadamso 10-19-2010 11:39 AM

Xorg.conf proper format
 
Thanks for the reply. Here's the xorg.conf file.

#Special base config file used in Puppy Linux.

# **********************************************************************
# Module section -- this section is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"
Load "synaptics"

# This loads the DBE extension module.

Load "dbe" # Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection

# This loads the font modules
# Load "type1"
# Load "freetype"

# This loads xtrap extension, used by xrandr
# Load "xtrap"

# This loads the GLX module (if present). xorg 7.4/5 need explicit disable to disable...
Load "glx" #LOADGLX

# This loads dri module (if present). 7.4 loads it by default, have to disable...
Load "dri" #LOADDRI
# Disable "dri"

EndSection

# **********************************************************************
# Files section. This allows default font paths to be set
# **********************************************************************

Section "Files"

# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)

FontPath "/usr/share/X11/fonts/misc/"
FontPath "/usr/share/X11/fonts/Type1/"
FontPath "/usr/share/X11/fonts/TTF/"

EndSection

# **********************************************************************
# Server flags section.
# **********************************************************************

Section "ServerFlags"

# Uncomment this to disable the <Crtl><Alt><Fn> VT switch sequence
# (where n is 1 through 12). This allows clients to receive these key
# events.

# Option "DontVTSwitch"

# Enables mode switching with xrandr
# There is a report that this can cause Xorg not to work on some
# video hardware, so default is commented-out...
# but i want to use it in xorgwizard so leave on...

Option "RandR" "on"

# With this, Xorg won't talk to HAL to add evdev devices and you'll be back
# with the old Xorg behavior (pre-7.4)...

Option "AutoAddDevices" "false"

# For no-Hal, kirk also suggests this...

# Option "AllowMouseOpenFail" "true"

# Xorg 7.4, Ubuntu Jaunty, CTRL-ALT-BACKSPACE is disabled by default...

Option "DontZap" "false"

EndSection

#everything past here is auto-generated by Puppy's Xorg Wizard...

Section "Files"
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/CID"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
# paths to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection

Section "Module"
Load "GLcore"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "gb"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "ALPS"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/event2"
Option "Protocol" "event"
Option "LeftEdge" "120"
Option "RightEdge" "830"
Option "TopEdge" "120"
Option "BottomEdge" "650"
Option "FingerLow" "14"
Option "FingerHigh" "15"
Option "MaxTapTime" "180"
Option "MaxTapMove" "110"
Option "ClickTime" "0"
Option "EmulateMidButtonTime" "75"
Option "VertScrollDelta" "10"
Option "HorizScrollDelta" "0"
Option "MinSpeed" "0.45"
Option "MaxSpeed" "0.75"
Option "AccelFactor" "0.020"
Option "EdgeMotionMinSpeed" "200"
Option "EdgeMotionMaxSpeed" "200"
Option "UpDownScrolling" "1"
Option "CircularScrolling" "0"
Option "CircScrollDelta" "0.1"
Option "CircScrollTrigger" "2"
Option "SHMConfig" "true"
EndSection

#first vga card

Section "Device"
Identifier "Intel i915a"
Driver "intel"
BusID "PCI:0:2:0"
Option "VBERestore" "TRUE"
Option "MonitorLayout" "CRT,LFP"
Screen 0
EndSection

#second fake VGA card

Section "Device"
Identifier "Intel i915b"
Driver "intel"
BusID "PCI:0:2:0"
Screen 1
EndSection

#the two monitors
Section "Monitor"
Identifier "LaptopMonitor"
HorizSync 28-51
VertRefresh 43-60
Option "DPMS"
EndSection

Section "Monitor"
Identifier "ExternalMonitor"
ModelName "SyncMaster"
Option "DPMS"
EndSection

#now the screens
Section "Screen"
Identifier "LaptopScreen"
Device "Intel i915a"
Monitor "LaptopMonitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x600"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSection

Section "Screen"
Identifier "ExternalScreen"
Device "Intel i915b"
Monitor "ExternalMonitor"
DefaultDepth 24
Subsection "Display"
Depth 8
Modes "1024x600"
EndSubsection

Subsection "Display"
Depth 15
Modes "1024x600"
EndSubsection

Subsection "Display"
Depth 16
Modes "1024x600"
EndSubsection

Subsection "Display"
Depth 24
Modes "1024x600"
EndSubsection

EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "LaptopScreen" 0 0
Screen 1 "ExternalScreen" RightOf "LaptopScreen"

Option "Xinerama" "on"
Option "Clone" "on"

InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "ALPS"
EndSection

Section "DRI"
Mode 0666
EndSection

#PuppyHardwareProfile=Intel_r__82945GM_ChipsetDELLE153FP

JZL240I-U 10-20-2010 02:31 AM

I'm no expert here and my machine is broken so I can't reach my xorg.conf :(. (Look here if you are so minded ;): http://www.linuxquestions.org/questi...17#post4133217). But:

You have a lot of
Code:

"Subsection "Display"
Depth nn
Modes "1024x600"

in the lower reaches of your file. You also have two "section screen" -- what if only the second is used?

What I miss is the table of resolutions usually in this file, which enables the user to change resolutions with <CTRL> <+> or <->. Try to find a copy with these and paste at the appropriate place in your file. What happens now when you try to change resolutions?

jadamso 11-13-2010 10:08 AM

Xorg (updated)
 
Finally found out how to do this and so am posting in case anyone runs into same issue!

1. Amend xorg file (/etc/x11). I found a xorg.conf file (based on Fedora 11) but still works (just added to the one puppy automatically generates):

#Special base config file used in Puppy Linux.

# **********************************************************************
# Module section -- this section is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"
Load "synaptics"

# This loads the DBE extension module.

Load "dbe" # Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection

# This loads the font modules
# Load "type1"
# Load "freetype"

# This loads xtrap extension, used by xrandr
# Load "xtrap"

# This loads the GLX module (if present). xorg 7.4/5 need explicit disable to disable...
Load "glx" #LOADGLX

# This loads dri module (if present). 7.4 loads it by default, have to disable...
Load "dri" #LOADDRI
# Disable "dri"

EndSection

# **********************************************************************
# Files section. This allows default font paths to be set
# **********************************************************************

Section "Files"

# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)

FontPath "/usr/share/X11/fonts/misc/"
FontPath "/usr/share/X11/fonts/Type1/"
FontPath "/usr/share/X11/fonts/TTF/"

EndSection

# **********************************************************************
# Server flags section.
# **********************************************************************

Section "ServerFlags"

# Uncomment this to disable the <Crtl><Alt><Fn> VT switch sequence
# (where n is 1 through 12). This allows clients to receive these key
# events.

# Option "DontVTSwitch"

# Enables mode switching with xrandr
# There is a report that this can cause Xorg not to work on some
# video hardware, so default is commented-out...
# but i want to use it in xorgwizard so leave on...

Option "RandR" "on"

# With this, Xorg won't talk to HAL to add evdev devices and you'll be back
# with the old Xorg behavior (pre-7.4)...

Option "AutoAddDevices" "false"

# For no-Hal, kirk also suggests this...

# Option "AllowMouseOpenFail" "true"

# Xorg 7.4, Ubuntu Jaunty, CTRL-ALT-BACKSPACE is disabled by default...

Option "DontZap" "false"

EndSection

#everything past here is auto-generated by Puppy's Xorg Wizard...


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

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105+inet"
Option "XkbLayout" "us"
EndSection

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

Section "Monitor"
Identifier "LVDS1"
ModelName "LCD Panel 1024x600"
Option "Panning" "1024x768"
Modeline "1024x600" 50.40 1024 1048 1184 1344 600 603 604 625 -HSync -VSync
EndSection

Section "Monitor"
Identifier "VGA1"
Modeline "1024x768" 65.00 1024 1048 1184 1344 768 771 777 806 -HSync -VSync
ModelName "LCD Panel 1024x768"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "ColorKey" # <i>
#Option "CacheLines" # <i>
#Option "Dac6Bit" # [<bool>]
#Option "DRI" # [<bool>]
#Option "NoDDC" # [<bool>]
#Option "ShowCache" # [<bool>]
#Option "XvMCSurfaces" # <i>
#Option "PageFlip" # [<bool>]
Identifier "Card0"
Driver "intel"
VendorName "Intel Corporation"
BoardName "Mobile 945GME Express Integrated Graphics Controller"
BusID "PCI:0:2:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "LVDS1"
SubSection "Display"
Viewport 0 0
Modes "1024x768" "1024x600"
Depth 24
Virtual 1024 768
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Card0"
Monitor "VGA1"
SubSection "Display"
Viewport 0 0
Modes "1024x768"
Depth 24
Virtual 1024 768
EndSubSection
EndSection

#PuppyHardwareProfile=Intel_r__82945GM_ChipsetDELLE153FP

2. Change modelines to suit your monitor (see /var/log/xorg.log).
3. Provided external monitor is connected to laptop AND SWITCHED ON xorg will correctly find the right resolution. The only problem is that the cursor seems to drag when moving across the screen and so:
4. Download Zarfy.pet (http://www.murga-linux.com/puppy/vie...be3a0d189ce16c) which allows you to switch off the internal monitor. Once you do that everything runs nice and smooth.

JZL240I-U 11-15-2010 02:43 AM

Thanks for coming back and posting the solution :).

P.S.: You might use the thread tools (right on top your first post) and mark this thread as [SOLVED].


All times are GMT -5. The time now is 10:41 AM.