X fails to start - [drm] failed to set drm interface version

Bug #1115177 reported by Amit Kucheria
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xorg-server (Ubuntu)
Triaged
High
Unassigned

Bug Description

Fresh install of 13.04 dev on this desktop machine with an Nvidia graphics.

Nouveau only shows the "system is running in low-graphics mode" dialog and doesn't allow reconfiguring.

Failed to load module "nvidia" (module does not exist, 0)
Failed to load module "nvidia" (module does not exist, 0)
NOUVEAU(0): [drm] failed to set drm interface version.
NOUVEAU(0): [drm] error opening the drm
NOUVEAU(0): 819:
Screen(s) found, but none have a usable configuration.

Please also check the log file at "/var/log/Xorg.0.log" for additional information.

(Nvidia-current drivers give a desktop but X crashes very often.)

12.04 worked just fine on this setup. So I consider this a regression.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: xorg 1:7.7+1ubuntu4
ProcVersionSignature: Ubuntu 3.8.0-4.8-generic 3.8.0-rc6
Uname: Linux 3.8.0-4-generic x86_64
ApportVersion: 2.8-0ubuntu4
Architecture: amd64
CompizPlugins: [core,bailer,detection,composite,opengl,decor,mousepoll,vpswitch,regex,animation,snap,expo,move,compiztoolbox,place,grid,imgpng,gnomecompat,wall,ezoom,workarounds,resize,fade,unitymtgrabhandles,scale,session,unityshell]
Date: Mon Feb 4 16:40:45 2013
DistUpgraded: Fresh install
DistroCodename: raring
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes
GraphicsCard:
 NVIDIA Corporation G86 [GeForce 8400 GS] [10de:0422] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: eVga.com. Corp. Device [3842:c733]
InstallationDate: Installed on 2013-02-01 (2 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64+mac (20130130)
MachineType: Intel To be filled by O.E.M.
MarkForUpload: True
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.8.0-4-generic root=UUID=0084a9a5-74cd-47ba-afe6-a47d02d0b262 ro quiet splash vt.handoff=7
SourcePackage: xorg
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/29/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 4.6.3
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: To be filled by O.E.M.
dmi.board.vendor: Intel
dmi.board.version: To be filled by O.E.M.
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr4.6.3:bd10/29/2009:svnIntel:pnTobefilledbyO.E.M.:pvrTobefilledbyO.E.M.:rvnIntel:rnTobefilledbyO.E.M.:rvrTobefilledbyO.E.M.:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: To be filled by O.E.M.
dmi.product.version: To be filled by O.E.M.
dmi.sys.vendor: Intel
version.compiz: compiz 1:0.9.9~daily13.01.25-0ubuntu1
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.41-0ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 9.0.2-0ubuntu1
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 9.0.2-0ubuntu1
version.xserver-xorg-core: xserver-xorg-core 2:1.13.2-0ubuntu1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.7.3-0ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.1.0-0ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.20.19-0ubuntu3
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.6-0ubuntu2
xserver.bootTime: Mon Feb 4 16:32:00 2013
xserver.configfile: default
xserver.devices:

xserver.logfile: /var/log/Xorg.0.log
xserver.outputs:

xserver.version: 2:1.13.2-0ubuntu1

Revision history for this message
Amit Kucheria (amitk) wrote :
description: updated
Revision history for this message
Bryce Harrington (bryce) wrote :

Please file a separate bug about the nvidia crashes if you would like to debug those (there may not be much we can do aside from recommend trying nvidia-updates or nvidia-experimental-* drivers).

description: updated
summary: - X fails to start
+ X fails to start - [drm] failed to set drm interface version
affects: xorg (Ubuntu) → xserver-xorg-video-nouveau (Ubuntu)
Changed in xserver-xorg-video-nouveau (Ubuntu):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Bryce Harrington (bryce) wrote :

Maarten, mind taking a look at this? Why's X not liking the drm interface version?

Changed in xserver-xorg-video-nouveau (Ubuntu):
assignee: nobody → Maarten Lankhorst (mlankhorst)
Revision history for this message
Bryce Harrington (bryce) wrote :

Ah actually, a bit of googling for the error message showed that this is probably https://bugs.launchpad.net/ubuntu/+source/libdrm/+bug/982889

Essentially, lightdm tries to start up X before the kernel drm driver has finished initializing. Or, perhaps, it is in a race condition with plymouth (disabling splash in the kernel boot command can test this to verify or disprove).

From dmesg:
[ 18.208298] [drm] Initialized nouveau 1.1.0 20120801 for 0000:01:00.0 on minor 0

From Xorg.0.log:
[ 18.207] Initializing built-in extension DRI2

So, it looks to me like DRI2 was initialized before the Nouveau DRM was ready. For some workarounds, see the above bug link.

I'm not sure there is much we can do on the X side, I think we would need to make sure X is not started until the kernel has reported DRM ready (I was under the impression we already had such a check in place, but given that bug 982889 is still open, maybe not?) If you'd like to work towards a real fix for this, can you touch base with Andy Whitcroft?

Changed in xserver-xorg-video-nouveau (Ubuntu):
assignee: Maarten Lankhorst (mlankhorst) → nobody
Bryce Harrington (bryce)
affects: xserver-xorg-video-nouveau (Ubuntu) → xorg-server (Ubuntu)
Revision history for this message
Bryce Harrington (bryce) wrote :

Actually, nevermind. Looking at this more, I'm certain this is a dupe of #982889. I'm going to look into it further before bugging andy.

Revision history for this message
Stu (stu-axon) wrote :
Download full text (6.4 KiB)

The duplicate says "fix released" I am having these exact symptoms on 15.04 (installed yesterday, bug checked just now).

Laptop is Asus N56VZ, driver is Nouveau here is X log

[ 27286.259]
X.Org X Server 1.17.1
Release Date: 2015-02-10
[ 27286.259] X Protocol Version 11, Revision 0
[ 27286.259] Build Operating System: Linux 3.2.0-61-generic x86_64 Ubuntu
[ 27286.259] Current Operating System: Linux beezlebub 3.19.0-20-generic #20-Ubuntu SMP Fri May 29 10:10:47 UTC 2015 x86_64
[ 27286.259] Kernel command line: BOOT_IMAGE=/vmlinuz-3.19.0-20-generic.efi.signed root=UUID=14ac372e-6980-4fe8-b247-fae92d54b0c5 ro quiet splash acpi_enforce_resources=lax intel_pstate=enable vt.handoff=7
[ 27286.259] Build Date: 19 March 2015 09:26:59AM
[ 27286.259] xorg-server 2:1.17.1-0ubuntu3 (For technical support please see http://www.ubuntu.com/support)
[ 27286.259] Current version of pixman: 0.32.6
[ 27286.259] Before reporting problems, check http://wiki.x.org
 to make sure that you have the latest version.
[ 27286.259] Markers: (--) probed, (**) from config file, (==) default setting,
 (++) from command line, (!!) notice, (II) informational,
 (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 27286.259] (==) Log file: "/var/log/Xorg.8.log", Time: Thu Jun 18 01:03:20 2015
[ 27286.260] (++) Using config file: "/etc/bumblebee/xorg.conf.nouveau"
[ 27286.260] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
[ 27286.260] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 27286.260] (==) ServerLayout "Layout0"
[ 27286.260] (==) No screen section available. Using defaults.
[ 27286.260] (**) |-->Screen "Default Screen Section" (0)
[ 27286.260] (**) | |-->Monitor "<default monitor>"
[ 27286.260] (==) No device specified for screen "Default Screen Section".
 Using the first device section listed.
[ 27286.260] (**) | |-->Device "DiscreteNvidia"
[ 27286.260] (==) No monitor specified for screen "Default Screen Section".
 Using a default monitor configuration.
[ 27286.260] (**) Option "AutoAddDevices" "false"
[ 27286.260] (**) Option "AutoAddGPU" "false"
[ 27286.260] (**) Not automatically adding devices
[ 27286.260] (==) Automatically enabling devices
[ 27286.260] (**) Not automatically adding GPU devices
[ 27286.260] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 27286.260] Entry deleted from font path.
[ 27286.260] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[ 27286.260] Entry deleted from font path.
[ 27286.260] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[ 27286.260] Entry deleted from font path.
[ 27286.260] (==) FontPath set to:
 /usr/share/fonts/X11/misc,
 /usr/share/fonts/X11/100dpi/:unscaled,
 /usr/share/fonts/X11/Type1,
 /usr/share/fonts/X11/100dpi,
 built-ins
[ 27286.260] (==) ModulePath set to "/usr/lib/x86_64-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[ 27286.260] (==) |-->Input Device "<default pointer>"
[ 27286.260] (==) |-->Input Device "<default keyboard>"
[ 27286.260] (==) The core pointer device wasn't specified explicitly in the layout.
 Using the default mouse configuration.
[ 27286.260] (==) The core ke...

Read more...

Revision history for this message
Stu (stu-axon) wrote :

I've made an upstream bug for Nouveau

https://bugs.freedesktop.org/show_bug.cgi?id=91051

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.