Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have a PC that I use as a media center in the living room. It has one small Monitor connected via VGA and the TV as a second screen connected via DVI -> HDMI.
I'm running ubuntu with xfce on it but I need to solve my problem on the X level.
It all works fine if the TV is turned on when the PC boots but I usually have the TV turned off. In that case the nvidia driver doesn't initialize the TV as a second display and I would have to turn it on and then restart X to get it working. (Annoying and not family friendly)
I hunted around in the nvidia driver options but I can't get it to work!
I believe there is a way to switch monitors and probably it can be done with some applet, when you say restart X you mean shut it down and restart it? Have you tried to just logout/login? Your xorg.conf seen alright it is just a matter to find a way to switch monitors.
Does this only show in the log when the TV is off?:
Code:
[ 24.892] (EE) NVIDIA(1): Unable to find available Display Devices for screen 1.
[ 24.892] (EE) NVIDIA(1): No display devices found for this X screen.
Have you tried to just logout/login? Your xorg.conf seen alright it is just a matter to find a way to switch monitors.
I just tested it and it is indeed enough! If I turn on the TV and then logout - login the screen does get initialized.
Quote:
Does this only show in the log when the TV is off?:
Code:
[ 24.892] (EE) NVIDIA(1): Unable to find available Display Devices for screen 1.
[ 24.892] (EE) NVIDIA(1): No display devices found for this X screen.
Yes that only appears when the TV is turned off, when it is turned on while the PC boots, the X screen knows where to go.
All I want is, that it does that no matter what is connected.
Another thing you could try is, open the nvidia settings, there is an option to detect screens/monitors i believe that will work as well, not 100% sure. But give a try !
Another thing you could try is, open the nvidia settings, there is an option to detect screens/monitors i believe that will work as well, not 100% sure. But give a try !
No it doesn't. It detects the TV (if it's turned on) but then it can't save the configuration cause a new display is to deep in X territory or something.
Sigh, I don't know what to do, logout/login only works for me cause I know the password, I don't want my kids to know that.
When assigning display devices to X screens, the NVIDIA X driver walks through the list of all (not already assigned) display devices detected as connected. When the "UseDisplayDevice" X configuration option is specified, the X driver will only consider connected display devices which are also included in the "UseDisplayDevice" list. This can be thought of as a "mask" against the connected (and not already assigned) display devices.
Note the subtle difference between this option and the "ConnectedMonitor" option: the "ConnectedMonitor" option overrides which display devices are actually detected, while the "UseDisplayDevice" option controls which of the detected display devices will be used on this X screen.
So unless the screen is detected, "UseDisplayDevice" won't use it (Yes, I tried it anyway). Which brings me back to "ConnectedMonitor" that really should do what I want but doesn't.
Now with the second option,I'm not quite sure where to put it. I have two Screen sections in my xorg.conf:
For the second cos DPF-0 would be the first. I dont think you need both.
I did notice that in your file it is using binary for Twinview but over there in the other forum they are using boolean.
Binary uses 1 to say yes or activate and zero to say no or deactivate.
Boolean uses true or false to do the same thing.
I don't think it does use both that isn't how things are usually made. But there is chance to some options use more than one type of flags.
You will need to find which is the correct value for your current xorg, i found this: http://en.wikibooks.org/wiki/NVidia/Twin_View, you can see there is says "On", so you will have to try to see which one really works. Here i see different way and here like yours. So yes you have to try.
I hope this helps.
In that Nvidia Readme says:
Option "TwinView" "boolean"
Regards
Last edited by ukiuki; 02-05-2012 at 02:29 PM.
Reason: added info
For the second cos DPF-0 would be the first. I dont think you need both.
I did notice that in your file it is using binary for Twinview but over there in the other forum they are using boolean.
Binary uses 1 to say yes or activate and zero to say no or deactivate.
Boolean uses true or false to do the same thing.
In that Nvidia Readme says:
Option "TwinView" "boolean"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.