LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-01-2007, 05:49 PM   #1
timtim885
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
How do I get my docking station/LCD to work?


Please forgive me if this post or many like it have been posted previously, but I've seriously put forth effort finding an answer with Googling, crawling through forums, etc...

I'm on Ubuntu Feisty, Compiz-Fusion, Geforce 440 Go, with the Nvidia 96xx driver working. (Only the legacy driver works for me...)

When I first installed the driver, my system flat panel in my laptop was black, I had to specify in xorg.conf to UseDisplayDevice "DFP". I of course, now cannot use my docking station unless I remove that line from xorg.conf. I want BOTH to work, without any editing, each time I switch. What does this take? I've tried looking in nvidia-settings, but maybe I'm missing something. Please help, I'm a Linux newb, but fairly savvy. Here is my current xorg.conf file (As I am constantly changing it, trying to see what works):


# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildmeister@builder3) Mon Apr 16 20:38:05 PDT 2007

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "Files"
RgbPath "/usr/lib/X11/rgb"
EndSection

Section "Module"
# Load "dri"
# Load "Glcore"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "vbe"
EndSection

Section "ServerFlags"
Option "Xinerama" "0"
EndSection

Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "DELL E171FP"
HorizSync 30.0 - 80.0
VertRefresh 56.0 - 76.0
Option "DPMS"
EndSection

Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor1"
VendorName "Unknown"
ModelName "Nvidia Default Flat Panel"
HorizSync 29.0 - 65.0
VertRefresh 0.0 - 60.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce4 440 Go"
BusID "PCI:1:0:0"
Screen 0
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
Option "AddARGBGLXVisuals" "True"
EndSection

Section "Device"
Identifier "Videocard1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce4 440 Go"
BusID "PCI:1:0:0"
Screen 1
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
Option "AddARGBGLXVisuals" "True"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "metamodes" "CRT: nvidia-auto-select +0+0; CRT: 1400x1050 +0+0"
SubSection "Display"
Depth 24
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Videocard1"
Monitor "Monitor1"
DefaultDepth 24
Option "metamodes" "DFP: 1280x1024 +0+0"
SubSection "Display"
Depth 24
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection




What do I have to do?

Thanks,

Tim
 
Old 10-02-2007, 07:13 AM   #2
kris_kiil
LQ Newbie
 
Registered: Aug 2005
Distribution: Slackware 12.2
Posts: 13

Rep: Reputation: 0
What exactly do you want?

I am wondering what you are actually trying to do. Do you want to clone your display, or do you want to use both your monitors as one merged screen (like xinerama but with only one graphics card)? I think the approaches are quite different.

I have tried setting up something similar to your setup. It was on completely different HW, however, so I am not sure if I can help.

Best wishes,
Kristoffer
 
Old 10-02-2007, 09:20 AM   #3
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190

Rep: Reputation: 51
One quick way to fix it is to name your laptop-setup xorg.laptop and
your docking station setup xorg.dock.
Then make a script that copies xorg.laptop to xorg.conf and then starts x.
Also make a script to startx for the docking stations.
The two scripts can be combined by starting the script something like:
script dock
To make that work you need to check for the first commandline parameter.
That will look something like this:
Code:
if [ $1 -eq "dock]; then
....dockingstationscript
....
elif [ $1 -eq "latptop"]; then
...laptopscript
...
fi
Or something like that check the bash manual if it doesn't work.

I know this is a workaround. Your problem isn't completely clear to me.
You have a dockingstation(that's comparable to adding a monitor to your laptop) and you have a laptop of which the monitor only works when you add the option UseDisplayDevice "DFP".
But where do you add this option and what does it mean?

If you can explain this, people will be more able to help you.
Be as specific as you can and if you post a config file be sure that you only post relevant sections.
 
Old 10-02-2007, 09:57 AM   #4
timtim885
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Hey guys,

Thanks for the quick response. I'm terribly sorry I'm not being perfectly clear and posting my entire config file. Seems most of the other forums I've been crawling through, most people just want the whole thing.

I have a laptop, which display works fine with the open source NVIDIA drivers (nv), and works great with the Restricted drivers so long as I include the line:

Option "UseDisplayDevice" "DFP"

I put this line under the device section of my conig file. So, the section would look something like this:

Section "Device"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce4 440 Go"
BusID "PCI:1:0:0"
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
Option "AddARGBGLXVisuals" "True"
Option "UseDisplayDevice" "DFP"
EndSection

The only reason why I needed to add this line is for some reason, my card has trouble defaulting to my laptop screen after installing the nvidia-glx drivers(I get a black screen). And it acts as if it's trying to use an external monitor. By adding this line, I point my config file to use my "DFP", which probably stands for device flat panel (But then again, I could be totally wrong). So, this is great. Everything is fine and dandy.


That is, until I get to work and I dock my laptop in its docking station. I get a black screen. This is because this line is now obsolete in this scenario. I don't want to use my laptop screen at all. I want to use what the system picks up as an external monitor.

No problem, I just get to the command line and edit my xorg.conf, remove the line that's forcing to use my laptop screen, and hooray, it works. (No need to force-use the external, as this is what the system seems to want to use anyway) However, after a week or so of switching back and forth, it gets old quick.


The script idea sounds good, and I'm probably going to have to play around with it a while (seeing as I'm a brand-spankin' new linux user) I will googling probably half of the things you said. However, if someone has a better idea or a simpler work-around, it would be GREATLY appreciated.

Thanks,

Tim
 
Old 10-02-2007, 02:27 PM   #5
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190

Rep: Reputation: 51
Your right with the DFP being a digital flat panel.
A nvidia driver Readme
This site contains the total readme of your driver, if i'm not mistaken.
In Appendix D all X config options are explained.
'
Reading this says the option UseDisplayDevice, tells the driver what screen it should assign first.
So it starts scanning hardware and discovers your CRT output port and your LCD screen.
If you do not specify the option. The driver first assigns the CRT screen as screen 0 and next the LCD as screen 1.
Screen 0 is the standard screen for running X on.
If you specify UseDisplayDevice "DFD", your LCD will be assigned first so it will become screen 0.
So it will be used to run X on.

This explains why you should use the option and what your problem is.
However I don't know enough about the subject to help you any further.
I don't know if there is anyway to see if a CRT is connected.
If that can be checked you could use this in some way to configure the driver.
Good luck with your problem, thanks to you I now have a hunch why X isn't working on my laptop.
 
Old 10-02-2007, 06:03 PM   #6
timtim885
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you! I did do a little search for something like this earlier but couldn't find it. What do you know!? on the frickin' NVIDIA site! This documentation is JUST what the doctor ordered. I will read through it tonight or tomorrow morning. Also, I think my particular problem with having to set the DFP option in my config file is related to an outdated BIOS. I will flash my BIOS and see if my system will then pick up the connected devices when I am not docked. Because, for some reason, it detects a "CRT" when I am not docked, which is why I get a black screen without the DFP option. Maybe this is solved in a new Dell BIOS update. (I could be INCREDIBLY wrong... Like I said, I'm a noob)

I have access to a nice system-image deployment server, and I am backing up my laptop overnight. (Want to try a few things out) For some reason, LinuxFileSystems require me to backup the entire drive, empty data and all with this server. 60 gigs, uploaded at 115MB/s over a network. YAWN, will work on this in the morning. Thanks, Tim.
 
  


Reply

Tags
docking, drivers, help, nvidia, video



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
Docking station Augustino Linux - Hardware 1 06-26-2007 03:57 AM
Docking station and X issue. rtaft Linux - Hardware 2 06-25-2007 07:15 AM
How do I use my USB Docking station? TheMusicGuy Linux - Hardware 4 06-24-2007 07:06 PM
Using External LCD with Docking Station FC6 shivab Linux - Hardware 0 02-28-2007 01:12 AM
docking station won't release sakundiak Linux - Laptop and Netbook 0 04-26-2005 02:09 PM

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

All times are GMT -5. The time now is 07:33 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