LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2010, 04:53 PM   #1
jadamso
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Rep: Reputation: 0
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
 
Old 10-19-2010, 07:40 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3
Posts: 3,988

Rep: Reputation: Disabled
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.

Last edited by JZL240I-U; 10-19-2010 at 07:43 AM.
 
Old 10-19-2010, 12:39 PM   #3
jadamso
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
Old 10-20-2010, 03:31 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3
Posts: 3,988

Rep: Reputation: Disabled
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?

Last edited by JZL240I-U; 10-20-2010 at 03:34 AM.
 
Old 11-13-2010, 11:08 AM   #5
jadamso
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
Old 11-15-2010, 03:43 AM   #6
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3
Posts: 3,988

Rep: Reputation: Disabled
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].
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
xorg.conf and external monitor cruddell001 Ubuntu 3 09-26-2010 04:48 PM
Configuring xorg.conf for external monitor Yalla-One Slackware 3 04-06-2009 09:43 PM
External Monitor setting through xorg.conf kagashe Ubuntu 1 04-23-2008 01:46 AM
Xorg setup with external monitor k4ution Slackware 2 11-18-2004 07:05 PM
xorg.conf in FC2 to support external monitor abarclay Fedora 0 08-31-2004 02:48 AM


All times are GMT -5. The time now is 12:31 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration