GDM should not allow X11 sessions when NVIDIA's KMS is enabled
Bug #1697882 reported by
Alberto Milone
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdm |
Unknown
|
Medium
|
|||
gdm3 (Ubuntu) |
Fix Released
|
Medium
|
Alberto Milone |
Bug Description
Due to a current limitation in the nvidia binary driver, when enabling KMS (to use Wayland), any X11 sessions will crash.
Ideally, GDM would check if modesetting is enabled in the nvidia driver, and blacklist the X11 sessions.
The following command can tell you whether the parameter is enabled or not:
:$ sudo cat /sys/module/
Y
NOTE: KMS is disabled by default in the nvidia driver, and it is possible to enable it by editing the following file
/etc/modprobe.
and by changing the following line:
options nvidia_375_drm modeset=0
to this:
options nvidia_375_drm modeset=1
Then you will probably have to update the initramfs too.
Related branches
lp://staging/~albertomilone/gdm/lp1697882
- Iain Lane (community): Approve
- Daniel van Vugt (community): Needs Fixing
- Jeremy Bícha: Pending requested
-
Diff: 271 lines (+256/-0)2 files modifieddebian/patches/95_hide_x11_sessions_with_nvidia_kms.patch (+255/-0)
debian/patches/series (+1/-0)
Changed in gdm3 (Ubuntu): | |
importance: | Undecided → Medium |
description: | updated |
tags: | added: gnome-17.10 wayland |
Changed in gdm3 (Ubuntu): | |
assignee: | nobody → Alberto Milone (albertomilone) |
status: | New → In Progress |
Changed in gdm: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Changed in gdm: | |
status: | Confirmed → Incomplete |
Changed in gdm: | |
status: | Incomplete → Unknown |
To post a comment you must log in.
Don't see it crashing X11 session here at all, 17.10 -
$ echo $DESKTOP_SESSION
ubuntu
sudo cat /sys/module/ nvidia_ drm/parameters/ modeset
Y
(- But the disappointing thing is this -
$ xrandr --verbose
0. 000000 1.000000 0.000000
0. 000000 0.000000 1.000000 PRESENTATION_ OUTPUT: 0 f0030e4d9020000 0000 3780a15d59e5950 9826 101010101010101 0101 e3680b070381f40 3020 019000000000000 0000 0000000000000fe 004c c61790a20200000 00fe 746312d544c4232 004b
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
eDP1 connected primary 1920x1080+0+0 (0x48) normal (normal left inverted right x axis y axis) 350mm x 190mm
Identifier: 0x43
Timestamp: 14688
Subpixel: unknown
Gamma: 1.0:1.0:1.0
Brightness: 1.0
Clones:
CRTC: 0
CRTCs: 0 1 2
Transform: 1.000000 0.000000 0.000000
filter:
_MUTTER_
EDID:
00fffffffffff
0015010380231
0e50540000000
0101010101017
350059c210000
0000000000000
4720446973706
004c503135365
PRIME Synchronization: 0
supported: 0, 1
So currently -
no nvidia support in gdm3/wayland
nvidia support in gdm3/xserver-xorg but no PRIME Synchronization support.
i.e., a complete fail in Ubuntu all around