LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-18-2007, 11:19 AM   #1
the_mulletator
LQ Newbie
 
Registered: Sep 2007
Posts: 27

Rep: Reputation: 15
External Monitor


Hello,

I am running Fedora core 7 on a Dell Inspiron 6000 Laptop. Everything works great. The only thing I want to improve right now is to use the video out option. I have a 9-pin S-video jack and a regular computer monitor jack on the back. Also I would like to get the media buttons on the front to work with Mplayer or at all or that matter.

The Graphics card I have is a 64 MB ATi Mobility Radeon X300. It worked fine through the s-video jack on Windows XP. I am happy with either the s-video or monitor jack to get video onto my tv. Also I've read online that I might have a problem with the resolution once I get the video out to work.

Any insight into this problem will much appreciated.
 
Old 09-18-2007, 07:06 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Hiya

First, I'm a *little bit* intrigued by the "9 pin SVIDEO" plug. Are you sure it's SVIDEO? S-Video has 4 pins, and looks like a PS/2 mouse or keyboard plug (I'm sure of this, because I'm using mine as we speak, after having cut and lengthened the 4 wires so it would reach my TV)

Anyhow, it's neither here nor there, I was just curious.
Also, as you say you don't mind which plug we use, but, does your TV have a VGA input, or a plug for a cable to go from the VGA output?

For the time being, let's address the issue assuming we will use the VGA plug. It really doesn't matter, except for typing a few less words to use the VGA plug.

First, are you wanting to use the VGA plug alone, INSTEAD of the LCD screen, or do you want to use it WITH the LCD so that you have two screens?

The configuration file for the X server (that gives you the graphical desktop environment) is located at /etc/X11/xorg.conf and in there, you'll see sections named Monitor, Screen, Device, ServerLayout, and ServerFlags.

You will need to add another Monitor section, nearly the same as the existing one, but with the Horizontal and Vertical frequencies for your external TV/Monitor. For a 'normal' TV a 60.0 Hz Vertical Refresh rate is usually fine, and is standard. For the horizontal, you'll hafta look up the make and model of the thing, and get the correct Horizontal Refresh rate and put that in there. Also, lets say the existing Monitor section has the line Identifier "monitor-0" then you would use a different name in your new section, like Identifier "Monitor-1"

Now, add a new device section (ONLY if you only want to use both displays at once), identical to the existing device section. When using a device such as your x300, which has multiple outputs, you need to specify the PCI BusID or the video cards, in each device section. By typing 'lspci' in a root console, you will see a list of all the devices on the PCI bus in your machine. One of them will be the x300 device. The letters/numbers at the beginning of the line is the BusID. For example:

00:01:00.1 VGA compatible video device: ATI Radeon x300 Blah Blah video device - blah blah blah

So the PCI BusID line would look like:

BusID PCI:1:0:1

...and you would put that line in BOTH Device sections. And now, you need to associate each device section with a Screen. To do this, simply put a line Screen 0 in the existing device section, and in your new device section, put a line Screen 1. And finally for the device section, it needs a name. If the first Device section has a line like Identifier "Videocard0" then your new device section would have Identifier "Videocard1"

Ok cool.. Now, the Screen Section. As above, you will need a second one, very much like the first one which is already there. there are a few more details in this section, which I can't exactly put here for you until you provide some more info, but basically, The first (existing) screen section will have lines like Device "Videocard0" and Monitor "Monitor-0" and Identifier "Screen0" so in your new Screen Section, you will use the new names you gave in the new device and Monitor sections above: Videocard1, Monitor-1, and Screen1.

Next to last, look at your ServerLayout section. It lists only one screen, right? You need to add a second, so it should look like:

Screen 0 "Screen0" 0 0 # this is your original one
Screen 1 "Screen1" RightOf "Screen0" # this is the new one.

Finally, IF you want to use BOTH screens at once, you will want the ServerFlags section. In it, you will want to have either:
Option "Xinerama" "1"
or
Option "TwinView" "1"

****Basically****, this will do it. NOW, BEFORE YOU BEGIN: Read the man page for xorg.conf, and if you have it, the documentation and/or man page for your video driver, so that you can see the official explanations of the options I have shown here, and get an understanding of how the file is laid out and what the different sections mean.
Chances are, if you are a relatively new user, you WILL do something wrong and your X server will not start. DOn't panic! If/when this happens, you will need to edit the xorg.conf file from the console, or using a tool like Midnight Commander, Vi, or Nano, or Pico, or whatever, to fix it and try again. To learn what was wrong, read the X log file, located at /var/log/xorg.0.log.

So.. Read the man pages, BACKUP YOUR ORIGINAL xorg.conf before beginning, make sure you can navigate around where you need to go, from the console or Midnight Commander or whatever, and make sure you have access to an editor you can use if your X server doesn't start the first time.

Best of luck; I hope this helps you and if you're unsure, please ask first. It will save you headaches, especially regarding the Screen Sections -- there are parts you need to read about, Like Metamodes for example, which I did not cover here.
If you would like me to post my xorg.conf for you to look at, I will.
 
Old 09-19-2007, 10:48 PM   #3
the_mulletator
LQ Newbie
 
Registered: Sep 2007
Posts: 27

Original Poster
Rep: Reputation: 15
Smile

Wow,

Great response! That sounds like a good solution. If you could post your xorg.conf file it would make it easier for me. I looked at it but I don't really know what to add. The 9-pin S-video cable is a little weird. It goes from 9 to 4 pin from the laptop to the TV. I don't know why the laptop has a 9-pin video port. I would prefer the VGA port because I assume it puts out higher quality images and my TV has a vga input. I would prefer to have the TV as the only monitor and to be able to switch easily.

Thanks

Last edited by the_mulletator; 09-19-2007 at 10:57 PM.
 
Old 09-19-2007, 11:02 PM   #4
the_mulletator
LQ Newbie
 
Registered: Sep 2007
Posts: 27

Original Poster
Rep: Reputation: 15
Here is my current xorg.conf file if that helps.

# Xorg configuration created by pyxf86config

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Synaptics" "CorePointer"
EndSection

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

Section "InputDevice"
Identifier "Synaptics"
Driver "synaptics"
Option "Device" "/dev/input/mice"
Option "Protocol" "auto-dev"
Option "Emulate3Buttons" "yes"
Option "LeftEdge" "120"
Option "RightEdge" "830"
Option "TopEdge" "120"
Option "BottomEdge" "650"
Option "FingerLow" "14"
Option "FingerHigh" "15"
Option "MaxTapMove" "110"
Option "VertScrollDelta" "20"
Option "HorizScrollDelta" "20"
Option "MinSpeed" "0.3"
Option "MaxSpeed" "0.75"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "intel"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
 
Old 09-20-2007, 04:29 AM   #5
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Hiya! As for the 9 pin plug, there's a good chance that the extra pins are just attached to the ground shield inside the wire. And you're right, the VGA plug would have a superior picture. S-Video is not much different than a 2-wire composite connector, and actually is reported to have a lower quality image than composite. This seems to be the case for me -- my old card had a composite output for the TV, and I think it had a better image than this S-Video cable.

Now, using one or the other monitor is simple in itself. Being able to switch from one to the other is not as simple as it would seem, however it *can* be done.

The method I use, which works very well, is probably not quite standard, and maybe there's another good way, but I don't know what it might be, and I'll explain: My card has 3 outputs, but will only run TWO displays at any time. Until I get my second card, I had to figure out a way to have two settings and be able to switch on the fly, but for me I needed it like this:

Setting A) Runs two monitors on my desk in front of me.
Setting B) Switches to running ONE monitor, plus my TV, when I want to watch a movie.

Depending on whether you will run the machine in one display or the other, rather than needing to switch on the fly, may influence the way you go.
There are two ways I know of to do this. The first way, you would have TWO xorg.conf files, one for each display setup, and you would have to rename one of them something, and rename the other one xorg.conf, and restart X to change settings. To switch back, you would have to rename the files again, and restart X again. This is clearly a pain in the neck.
The other way, which I used, is to have two ServerLayout sections in one file, and to use a -switch when starting X to tell the server which layout I would like to use. I made a desktop link to start a second running X session, using my second Layout, so if I am using the computer with two monitors, and I decide I would like to watch a movie, I click the icon and a new X session starts on a different TTY (I use TTY6) , displaying on the TV and my main monitor. When the movie is done (or any time) I can hit CTRL-ALT-F7 to toggle back to my original X session, and hit CTRL-ALT-F6 to toggle to the TV & monitor session.
Note that the two sessions are separate, kinda like logins, so that what you have running on one session will not necessarily be running on the other. i.e., if I have Firefox open on my main session, it won't be running on the other session.
It sounds like you will not quite need this on-the-fly switching ability, but rather you will pick a setting during startup, and it will stay that way for the duration of the session. My advice would be to boot your Fedora into console mode, and start X manually, telling X which layout you want to use, instead of using my way, UNLESS you will be using one setup most of the time, in which case that would be the default setting, and you would boot up, login to your desktop, and make an on-the-fly switch of you like.
I guess if your computer is not hurting for memory and/or CPU speed, it would work fine (having 2 X sessions running).
So, I'll post my xorg.conf below (next post) so you can have a look, and I'll explain stuff if you ask about it, so that you may learn what's going on here. I won't make your file for you, but using mine as an example, and with a bit of help, you will I think quite easily see what needs to be done
 
Old 09-20-2007, 04:44 AM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Also -NOTE: You will not need the TWINVIEW or XINERAMA stuff if you only want to run ONE screen at a time. Your setup will be slightly different than mine, but between this, as an example, plus the man page, and asking some questions, you will get it. Should be fairly straight-forward.
Here's my file:
Code:
Section "ServerFlags"
    Option "TwinView" "1"
EndSection

Section "Module"
    Load  "dbe"
    Load  "extmod"
    Load  "type1"
    Load  "freetype"
    Load  "glx"
    Load  "fbdevhw"
    Load  "record"
    Load  "v4l"
    Load  "int10"
#   Load  "vnc"
EndSection

Section "Files"
    RgbPath  "/usr/X11R6/lib/X11/rgb"
    FontPath "/usr/X11R6/lib/X11/fonts/misc/:unscaled"
    FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath "/usr/X11R6/lib/X11/fonts/CID/"
    FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
    FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/"
    FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
EndSection

Section "InputDevice"
    Identifier "Keyboard0"
    Driver     "kbd"
    Option "AutoRepeat" "500 30"
    Option   "XkbRules" "xorg"
    Option   "XkbModel" "pc104"
    Option  "XkbLayout" "us"
EndSection
Section "InputDevice"
    Identifier   "Mouse0"
    Driver        "mouse"
    Option     "Protocol" "IMPS/2"
    Option       "Device" "/dev/psaux"
    Option "ZAxisMapping" "4 5"
EndSection

Section "Monitor" # KDS Monitor
    Identifier  "Monitor0"
    VendorName  "KDS"
    ModelName   "Proview"
    HorizSync   30.0 - 86.0
    VertRefresh 50.0 - 160.0
    Option "DPMS"
EndSection
Section "Monitor" # IBM-1 Monitor
    Identifier  "Monitor1"
    VendorName  "IBM"
    ModelName   "E74"
    HorizSync   30.0 - 86.0
    VertRefresh 50.0 - 160.0
    Option "DPMS"
EndSection
#Section "Monitor" # IBM-2 Monitor - not currently connected
#    Identifier  "Monitor2"
#    VendorName  "IBM"
#    ModelName   "E74"
#    HorizSync   30.0 - 86.0
#    VertRefresh 50.0 - 160.0
#    Option "DPMS"
#EndSection
Section "Monitor" # Television
    Identifier  "Television"
    VendorName  "General Electric"
    ModelName   "TV"
    HorizSync   30.0 - 86.0
    VertRefresh 60.0
EndSection

Section "ServerLayout" # Default Startup Layout = 2 monitors
    Identifier   "computer"
    Screen 0      "Screen0" 0 0 # KDS & IBM-1
    InputDevice    "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Device" # KDS Monitor
    Identifier "Videocard1"
    Driver     "nvidia"
    VendorName "eVGA Corp."
    BoardName  "NV44-A2 nVidia GeForce 7100GS TurboCache"
    BusID      "PCI:01:00:0"
    Option "TwinView" "1"
    Screen 0
EndSection
Section "Device" # IBM-1 Monitor
    Identifier "Videocard0"
    Driver     "nvidia"
    VendorName "eVGA Corp."
    BoardName  "NV44-A2 nVidia GeForce 7100GS TurboCache"
    BusID      "PCI:01:00:0"
    Option "TwinView" "1"
    Screen 1
EndSection
Section "Screen"
    Identifier "Screen0"
    Device     "Videocard1"
    Monitor    "Monitor0"
    DefaultDepth 16
    Option         "RenderAccel" "On"
    Option            "HWcursor" "On"
    Option        "DamageEvents" "True"
    Option    "ConnectedMonitor" "CRT-0,CRT-1"
    Option "twinVieworientation" "CRT-1 Rightof CRT-0"
    Option "metamodes" "CRT-0: 1600x1200 , CRT-1: 1280x1024 @ 1600x1200"
EndSection

Section "ServerLayout" # Second layout = Monitor0 plus the TV
#   to switch, I type:   startx -- :1 -layout "television"
    Identifier "television"
    Screen 0      "Screen3" 0 0 # KDS & TV
    InputDevice    "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Device" # KDS Monitor
    Identifier "Videocard3"
    Driver     "nvidia"
    VendorName "eVGA Corp."
    BoardName  "NV44-A2 nVidia GeForce 7100GS TurboCache"
    BusID      "PCI:01:00:0"
    Option "TwinView" "1"
    Screen 0
EndSection
Section "Device" # Television
    Identifier "Videocard2"
    Driver     "nvidia"
    VendorName "eVGA Corp."
    BoardName  "NV44-A2 nVidia GeForce 7100GS TurboCache"
    BusID      "PCI:01:00:0"
    Option "TwinView" "1"
    Screen 2
EndSection
Section "Screen"
    Identifier "Screen3"
    Device     "Videocard3"
    Monitor    "Monitor0"
    DefaultDepth 16
    Option         "RenderAccel" "On"
    Option            "HWcursor" "On"
    Option        "DamageEvents" "True"
    Option    "ConnectedMonitor" "CRT-0 , TV-0"
    Option         "TVOutFormat" "SVIDEO"
    Option          "TVStandard" "NTSC-M"
    Option "TwinViewOrientation" "TV-0 Leftof CRT-0"
    Option "MetaModes" "TV-0: 1024x768 , CRT-0: 1600x1200"
EndSection
So, why not decide how you would like the two settings to be available (how you want to choose/switch displays) and then, copy your xorg.conf to a new blank file named something else like 'xorg.testing' or whatever you like, and edit your testing file till you figure it's something like it needs to be, and post it, so we can have a look and see what you've come up with

Last edited by GrapefruiTgirl; 09-20-2007 at 06:51 AM. Reason: typo
 
Old 09-25-2007, 09:38 AM   #7
the_mulletator
LQ Newbie
 
Registered: Sep 2007
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks GrapefruiTgirl. I got it to work. I have to reboot each time to get the tv to work as my monitor and the laptop and tv do the exact same thing but it works great for my purposes.
 
Old 09-25-2007, 01:34 PM   #8
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Great stuff! Glad you got a solution that works for you
 
  


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
how use external monitor with laptop? lugoteehalt Linux - Laptop and Netbook 5 02-11-2006 09:35 AM
Desktop on external monitor coldsalmon Linux - Laptop and Netbook 1 11-25-2005 05:33 PM
external monitor bobterri Linux - Laptop and Netbook 17 08-29-2005 09:16 PM
External monitor henriette Linux - Laptop and Netbook 3 05-03-2005 02:20 PM
using an external monitor Rocker Linux - Laptop and Netbook 0 10-07-2004 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:02 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
Open Source Consulting | Domain Registration