internal display does not show up in nvidia-settings nor in xorg.conf, making it unusable

Bug #1394665 reported by solazs
50
This bug affects 11 people
Affects Status Importance Assigned to Milestone
nvidia-prime (Ubuntu)
Confirmed
High
Unassigned

Bug Description

I have a Dell Inspiron N7110, with nvidia graphics card.
My problem is, that when I try to use my external monitor in a dual display setup via HDMI, the internal screen is unusable.
I can mouse over to the internal screen. In KDE I can drag windows there, but otherwise it acts as if it was not part of the desktop. Under unity the whole desktop (both screens) just show some disorted desktop.

What I expected to happen:
Internal screen shows up in nvidia-settings and I'm able to arrange the displays.

What happens:
Only the HDMI screen shows up in nvidia-settings (HDMI is rigged to the NVIDIA card, internal display is rigged to intel).
I can see and arrange both displays in the display managers, which affects the displays' position, but does not solve the effect described above.

More problems:
I can modify xorg.conf to force it to crt recognition (remove the line Option "IgnoreDisplayDevices" "CRT" from xorg.conf).
This causes a phantom crt display to appear in the display manager and the nvidia-settings. If i manage to get this crt overlapping with the internal screen in the display manager, everything looks good. The problem is, everything gets lost when switching to intel, because xorg.conf gets removed.

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: nvidia-prime 0.6.7
Uname: Linux 3.16.1-031601-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
CurrentDesktop: KDE
Date: Thu Nov 20 17:55:16 2014
InstallationDate: Installed on 2014-03-11 (254 days ago)
InstallationMedia: Kubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140311)
SourcePackage: nvidia-prime
UpgradeStatus: Upgraded to utopic on 2014-11-20 (0 days ago)

Revision history for this message
solazs (solazs) wrote :
Revision history for this message
solazs (solazs) wrote :

Update:
I've managed to get things working, here is what I've done:

First I've created a file, 90-force-crt.conf in /usr/share/X11/xorg.conf.d with the following content:
Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" ""
EndSection

This made sure nvidia recognizes a non-existent display even when xorg.conf is regenerated.
Next, using the built in display manager, I've aligned the displays so the HDMI display is on the right and the internal display and the non-existent display are on the left, the internal screen completely overlapping with the virtual display.

This worked pretty well, but I had to write a small script to set the resolution of virtual display to match the laptop screen size. The script runs at login and contains the following:
#!/bin/bash

if prime-select query | grep -q "nvidia"; then
 if xrandr | grep -q "HDMI-0 connected"; then
  xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
  xrandr --addmode VGA-0 "1600x900"
  xrandr --output VGA-0 --mode "1600x900"
 fi
fi

Now everything works.

I'll attach my xorg.0.log created with the above config.

Revision history for this message
solazs (solazs) wrote :

I forgot to mention that I'm using the xorg-edgers ppa, but everything is the same with stock kubuntu and ubuntu 14.10

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-prime (Ubuntu):
status: New → Confirmed
Changed in nvidia-prime (Ubuntu):
importance: Undecided → High
Revision history for this message
Morten Hundevad (fannoj) wrote :

rockwalrus in #1382462 said that this might be similar issue.

MY have been fixed by the rockwalrus findings. tho it took me a while

see https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1382462 from comment 23 - 28

I added some extra info that may or may not hello tho i am not the find of the "fix"

I am now happily using dual monitors again. Finaly

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers