Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Dual Monitors, Ubuntu


  • Please log in to reply
19 replies to this topic

#1 Doug E Fresh

Doug E Fresh

  • Members
  • 224 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:New Jersey/Miami
  • Local time:04:08 AM

Posted 19 February 2011 - 12:18 PM

I have two monitors, and they both show a desktop, but I can't move windows back and forth, and I can't launch any apps on the second monitor(it will always open on the first). So you see my dilemma. I've tried fixing this in the past, but was never able to and just kinda gave up.

Is there anything I can try to remedy this? Thanks.

BC AdBot (Login to Remove)

 


#2 Doug E Fresh

Doug E Fresh
  • Topic Starter

  • Members
  • 224 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:New Jersey/Miami
  • Local time:04:08 AM

Posted 19 February 2011 - 12:44 PM

I should probably also mention that I have a Nvidia 8800 GTX card. It seems like whatever settings I try to change in the Nvidia X server settings will return an error that the X Configuration file needs to be saved first. So I save, and when I go back to change the settings I get the same error.

I started following this guide, but step one fails with
douglas@douglas-desktop:~$ sudo apt-get install nvidia-glx
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package nvidia-glx is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package nvidia-glx has no installation candidate


OK, so I skip that step, and open the xorg.conf file in gedit, but there's no module section. No clue if this tutorial is even relevant to my issue. Hoping someone can offer some insight.

#3 raw

raw

    Bleeping Hacker


  • Members
  • 2,577 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Texas
  • Local time:03:08 AM

Posted 20 February 2011 - 03:38 AM

I don't use ubuntu so i hope this gets you closer.

Here's a nice how-to: http://www.ublug.org/ubuntu/twinview/twinview-howto-breezy.html

And my xorg.conf:

Section "Device"
Identifier "device1"
VendorName "nVidia Corporation"
BoardName "NVIDIA GeForce 6100 and later"
Driver "nvidia"
Option "DPMS"
Option "TwinViewOrientation" "Clone"
Option "TwinView"
Option "AddARGBGLXVisuals"
EndSection

Section "Module"
Disable "dri"
Load "dbe" # Double-Buffering Extension
Load "v4l" # Video for Linux
Load "extmod"
Load "type1"
Load "freetype"
Load "glx" # 3D layer
EndSection

rawsig.png

 rawcreations.net          @raw_creations


Current systems: WHAT OS, BackTrack-raw, PCLinuxOS, Peppermint OS 6, Kali Linux

and a custom Linux From Scratch server hosting a bunch of top secret stuff.


#4 Doug E Fresh

Doug E Fresh
  • Topic Starter

  • Members
  • 224 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:New Jersey/Miami
  • Local time:04:08 AM

Posted 20 February 2011 - 10:34 AM

Thanks for the link. I read through it, but I'm stuck on step one. How do I know what my kernel is? I have no clue what to install with synaptic.

EDIT:I guess this is my kernel?
Linux douglas-desktop 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 23:42:43 UTC 2011 x86_64 GNU/Linux

I think I have something already downloaded? I really have no clue what I'm doing. The next part sounds easy enough if I could just figure out which package to install. Thanks for the help.

http://dl.dropbox.com/u/9361394/Screenshot-2.png

Edited by Doug E Fresh, 20 February 2011 - 10:41 AM.


#5 raw

raw

    Bleeping Hacker


  • Members
  • 2,577 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Texas
  • Local time:03:08 AM

Posted 20 February 2011 - 05:27 PM

Your screenshot shows nvidia 173 is installed.
Open a terminal

Starting a Terminal In Gnome (Ubuntu)
The terminal can be found at Applications menu -> Accessories -> Terminal

Type this:
glxinfo|grep 'direct render'
You should get a "Yes"

[raw@morpheus ~]$ glxinfo |grep 'direct render'
direct rendering: Yes

If glxinfo says yes, your nvidia driver is working.Optional: You can type:glxgears to see what your FPS is.
If glx is working we can move to xorg.conf.

rawsig.png

 rawcreations.net          @raw_creations


Current systems: WHAT OS, BackTrack-raw, PCLinuxOS, Peppermint OS 6, Kali Linux

and a custom Linux From Scratch server hosting a bunch of top secret stuff.


#6 cryptodan

cryptodan

    Bleepin Madman


  • Members
  • 21,868 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Catonsville, Md
  • Local time:08:08 AM

Posted 21 February 2011 - 12:47 AM

If the drivers are installed and running right then Ubuntu should detect dual monitors instantly and allow you to move applications over to it.

Are you using the restricted repositories for apt-get?

#7 Doug E Fresh

Doug E Fresh
  • Topic Starter

  • Members
  • 224 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:New Jersey/Miami
  • Local time:04:08 AM

Posted 26 February 2011 - 11:52 AM

Hey, thanks for the replies, guys. I kinda forgot I posted this last weekend which is why it took me so long to come back.

I did indeed get a "yes" when I typed in that command. The Gears test seems to just keep going and going. Does it ever end?
douglas@douglas-desktop:~$ glxinfo|grep 'direct render'
direct rendering: Yes
direct rendering: Yes
douglas@douglas-desktop:~$ glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
7996 frames in 5.0 seconds
7364 frames in 5.0 seconds
6723 frames in 5.0 seconds
7439 frames in 5.0 seconds
7376 frames in 5.0 seconds
32843 frames in 5.0 seconds
35106 frames in 5.0 seconds
37624 frames in 5.0 seconds
36206 frames in 5.0 seconds
38064 frames in 5.0 seconds
38628 frames in 5.0 seconds
38498 frames in 5.0 seconds
33896 frames in 5.0 seconds
35586 frames in 5.0 seconds
33877 frames in 5.0 seconds
37360 frames in 5.0 seconds
38425 frames in 5.0 seconds
38012 frames in 5.0 seconds
38864 frames in 5.0 seconds
38273 frames in 5.0 seconds
39260 frames in 5.0 seconds
39162 frames in 5.0 seconds
38619 frames in 5.0 seconds
38837 frames in 5.0 seconds
38804 frames in 5.0 seconds


I'm not sure what it means to use restricted repositories. I appreciate the help.

#8 cryptodan

cryptodan

    Bleepin Madman


  • Members
  • 21,868 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Catonsville, Md
  • Local time:08:08 AM

Posted 26 February 2011 - 12:03 PM

Here is a little documentation on What are restricted drivers?

#9 Doug E Fresh

Doug E Fresh
  • Topic Starter

  • Members
  • 224 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:New Jersey/Miami
  • Local time:04:08 AM

Posted 26 February 2011 - 12:59 PM

Thanks for the link. I updated to the latest Nvidia driver via these instructions. It didn't seem to remedy my issue.

Nvidia Screenshot. When I resave the X Config file it seems to do nothing, so I don't know.

#10 raw

raw

    Bleeping Hacker


  • Members
  • 2,577 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Texas
  • Local time:03:08 AM

Posted 26 February 2011 - 08:24 PM

You are running "nvidia-settings" as root?
Normal user can not edit/save xorg.conf.

rawsig.png

 rawcreations.net          @raw_creations


Current systems: WHAT OS, BackTrack-raw, PCLinuxOS, Peppermint OS 6, Kali Linux

and a custom Linux From Scratch server hosting a bunch of top secret stuff.


#11 Doug E Fresh

Doug E Fresh
  • Topic Starter

  • Members
  • 224 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:New Jersey/Miami
  • Local time:04:08 AM

Posted 01 March 2011 - 03:58 PM

Oh, lol. I had no clue. Would the command be
su -i

Matter of fact I had been launching the Nvidia settings via the gui menu. I will try this when I'm on my Ubuntu machine. Thanks, and I hope this works.

sudo nvidia-xconfig


#12 Doug E Fresh

Doug E Fresh
  • Topic Starter

  • Members
  • 224 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:New Jersey/Miami
  • Local time:04:08 AM

Posted 06 March 2011 - 12:17 PM

It's not working. This is getting frustrating because I really don't know what I'm doing. I keep google searching how to fix this and inputting the commands I find in terminal.

douglas@douglas-desktop:~$ sudo nvidia-xconfig
[sudo] password for douglas: 

Using X configuration file: "/etc/X11/xorg.conf".
Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'
New X configuration file written to '/etc/X11/xorg.conf'

douglas@douglas-desktop:~$ gksu nvidia-settings
    The valid values for 'XVideoTextureContrast' are in the range -1000 -
    1000 (inclusive).
    'XVideoTextureContrast' can use the following target types: X Screen.
    The valid values for 'XVideoTextureSaturation' are in the range -1000 -
    1000 (inclusive).
    'XVideoTextureSaturation' can use the following target types: X
    Screen.
ERROR: Invalid display device CRT-0 specified on line 47 of configuration
       file '/root/.nvidia-settings-rc' (the currently enabled display
       devices are DFP-0 on douglas-desktop:0.0).


ERROR: The attribute 'XVideoSyncToDisplay' specified on line 53 of
       configuration file '/root/.nvidia-settings-rc' cannot be assigned
       the value of CRT-0 (the currently enabled display devices are DFP-0
       on douglas-desktop:0.0).


Anyone have some more suggestions? I've also tried:
douglas@douglas-desktop:~$ sudo nvidia-settings
Traceback (most recent call last):
  File "/usr/share/screen-resolution-extra/nvidia-polkit.py", line 75, in <module>
    operation_status = main(options)
  File "/usr/share/screen-resolution-extra/nvidia-polkit.py", line 42, in main
    conf = get_xkit_service()
  File "/usr/share/screen-resolution-extra/nvidia-polkit.py", line 33, in get_xkit_service
    service_object = dbus.SystemBus().get_object(SERVICE_NAME, OBJECT_PATH)
  File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 244, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 241, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 183, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 281, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.PermissionsInvalid: The permission of the setuid helper is not correct

ERROR: Unable to open X config file '/etc/X11/xorg.conf' for writing.




#13 Doug E Fresh

Doug E Fresh
  • Topic Starter

  • Members
  • 224 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:New Jersey/Miami
  • Local time:04:08 AM

Posted 06 March 2011 - 12:24 PM

Shouldn't opening Nvidia settings like this give me root access? So why can I still not change any settings?

sudo nvidia-settings

I type that into terminal, it launches Nvidia settings. I then change my one monitor to be "to the left of". Check the box to enable Xinerama(not sure this is what will get my screens acting interdependently, but it's not like it's saving anyway), and then save the X Config. When I hit apply it gives me the same error as always. When I quit and reopen Nvidia settings I find my settings were not saved.

Edited by Doug E Fresh, 06 March 2011 - 12:27 PM.


#14 cryptodan

cryptodan

    Bleepin Madman


  • Members
  • 21,868 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Catonsville, Md
  • Local time:08:08 AM

Posted 06 March 2011 - 12:31 PM

Id look here:

ERROR: Invalid display device CRT-0 specified on line 47 of configuration
file '/root/.nvidia-settings-rc' (the currently enabled display
devices are DFP-0 on douglas-desktop:0.0).


ERROR: The attribute 'XVideoSyncToDisplay' specified on line 53 of
configuration file '/root/.nvidia-settings-rc' cannot be assigned
the value of CRT-0 (the currently enabled display devices are DFP-0
on douglas-desktop:0.0)



#15 Doug E Fresh

Doug E Fresh
  • Topic Starter

  • Members
  • 224 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:New Jersey/Miami
  • Local time:04:08 AM

Posted 06 March 2011 - 12:40 PM

Ah, I got it! Not sure what did it, but this is the last thing I tried.

sudo nvidia-settings

I then changed my settings in the Nvidia GUI, saved the xconfig file. I then opened another terminal window and reset the xserver by entering:

sudo /etc/init.d/gdm restart

When it came back it had my settings saved and my dual monitors working properly. Yay! It only took me forever. I appreciate everyone's help and advice.

Now I just need to figure out which setting makes my right monitor the main screen.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users