nvidia-prime needs sddm support
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | nvidia-prime (Ubuntu) |
Medium
|
Alberto Milone | ||
Bug Description
Kubuntu 15.04 will use sddm as a default login manager. If we try to install nvidia drivers with nvidia-prime, the second will want to install lightdm as it depends of it. Whats more lightdm will want to install a lot of other packages.
What we need: nvidia-prime to support sddm
1. #lsb_release -rd
Description: Ubuntu Vivid Vervet (development branch)
Release: 15.04
2. #apt-cache policy nvidia-prime
nvidia-prime:
Installed: (none)
Candidate: 0.7
Version table:
0.7 0
500 http://
3. What you expected to happen ?
nvidia-prime should work with sddm and do not require lightdm and all its dependencies (unity packges)
4. What happened instead ?
nvidia-prime wants to install lightdm as a dependency and a lot of other packages:
#sudo apt-get install nvidia-prime
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
adwaita-
geoclue geoclue-
gir1.2-notify-0.7 gir1.2-
gnome-screensaver gnome-session-bin gnome-settings-
hwdata ibus indicator-applet indicator-
libaccount-
libcheese-gtk23 libcheese7 libclutter-1.0-0 libclutter-
libdbusmenu-
libgdata19 libgee2 libgeocode-glib0 libgnome-
libgtop2-common libgweather-3-6 libgweather-common libido3-0.1-0 libindicator3-7 libinput7 liblightdm-
libpanel-applet0 libsignon-
libunity-
python3-
signon-ui signon-ui-service signon-ui-x11 signond system-
unity-
Suggested packages:
bumblebee evolution evolution-
unity-
python3-genshi python3-lxml-dbg python-lxml-doc libcanberra-
x-window-manager
The following NEW packages will be installed:
adwaita-
geoclue geoclue-
gir1.2-notify-0.7 gir1.2-
gnome-screensaver gnome-session-bin gnome-settings-
hwdata ibus indicator-applet indicator-
libaccount-
libcheese-gtk23 libcheese7 libclutter-1.0-0 libclutter-
libdbusmenu-
libgdata19 libgee2 libgeocode-glib0 libgnome-
libgtop2-common libgweather-3-6 libgweather-common libido3-0.1-0 libindicator3-7 libinput7 liblightdm-
libpanel-applet0 libsignon-
libunity-
python-notify python3-
signon-
ubuntu-
0 upgraded, 143 newly installed, 0 to remove and 0 not upgraded.
Need to get 31,6 MB/31,8 MB of archives.
After this operation, 146 MB of additional disk space will be used.
Do you want to continue? [T/n]
| description: | updated |
| Changed in nvidia-prime (Ubuntu): | |
| status: | New → Confirmed |
| milestone: | none → ubuntu-15.04 |
| Changed in nvidia-prime (Ubuntu): | |
| importance: | Undecided → Medium |
| Aaron Honeycutt (aaronhoneycutt) wrote : | #1 |
| sierdzio (sierdzio) wrote : | #2 |
Same for me: I install nVidia stuff through Driver Manager, and on next boot I am greeted with black screen and lots of crash messages (kdeinit5, plasma, and others). This renders the system GUI completely unusable. And the alternative (Nouveau driver) is far, far from being good enough.
| Konrad Materka (materka) wrote : | #3 |
Aaron Honeycutt, sierdzio - this is differnt bug, you need "nomodeset" option in kernel options.
As a workaround in grub press "e" and add nomodeset in the line when "splash" is. Then hit F10 to boot - should work.
You can add this option in /etc/default/grub to make it default.
| Jonathan Riddell (jr) wrote : | #4 |
Needs sddm to run commands on login and shut down
also investigatae why this isn't just done as systemd units
https:/
| Jonathan Riddell (jr) wrote : | #5 |
Added a patch to sddm to load the nvidia-prime setup script if it finds it.
However there's no hook to load prime-switch yet which needs run on shutdown.
| Aaron Honeycutt (aaronhoneycutt) wrote : | #6 |
I just installed NVIDIA driver 346.47 from nvidia-346 and from 'prime-select' query shows "nvidia". Once I reboot with "nvidia" select I get a lot of crash reports about plasmashell and krunner. If I switch back to intel with 'prime-select intel' and reboot, everything is back to normal. If anyone can point me to some logs so I can provide some feedback do let me know :). This is my hardware: http://
Aaron, nvidia-prime is not supported by SDDM (this is precisely what this bug report is about) so I guess the behavior you get is expected at this point...
| Changed in nvidia-prime (Ubuntu): | |
| assignee: | nobody → Alberto Milone (albertomilone) |
| Jonathan Riddell (jr) wrote : | #8 |
implemented so it loads it not at login, alas the switch command doesn't get run at logout because sddm doesn't restart X
| Changed in nvidia-prime (Ubuntu): | |
| status: | Confirmed → Fix Released |
| Caio Plazas (clplaza23) wrote : | #9 |
Just reinstalled Kubuntu 15.04, updated it and installed the driver. I still get a black screen after reboot.
Indeed it doesn't work as expected! If I do "sudo prime-select intel" and then I reboot I get a black screen!
| Alberto Milone (albertomilone) wrote : | #11 |
This is no longer a problem in sddm. There seems to be a bug in ubuntu-
/var/lib/
As a result, nvidia-prime, won't see the need of offloading rendering, and you will boot into a black screen. I've filed LP: #1443364 about it.
Assuming that you're affected by the same problem, for now you can do the following:
sudo systemctl stop sddm
sudo systemctl start gpu-manager
sudo systemctl start sddm
| Marcin Sągol (soee) wrote : | #12 |
Hi Alberto,
with latest updates i was able to run propriery driver with nvidia-prime, but only 346 version. With 340 there are problems like black screen or as users report, we can reach sddm, enter login data but after loading screen we are kicked back to sddm again. One user also reported font issues, that might be somehow related to dpi settings.
| Alberto Milone (albertomilone) wrote : | #13 |
That is probably a bug in the driver. Something only NVIDIA can fix.
I confirm that it works nicely on my system (Asus N56VZ with optimus Intel/NVIDIA)!
Thanks a lot Alberto :)
I experienced the same issue as Marcin described after updating from 14.10 on my Thinkpad T420.
In order to solve it I had to manually remove all nvidia-* packages and install nvidia-346. Not a big deal for anyone somehow comfortable with a shell but probably a show stopper for some other users.
Is there any mechanism to force using nvidia-346 when performing a distribution upgrade?
| sierdzio (sierdzio) wrote : | #16 |
After all the recent updates, the problem is solved on my side. I can, once again, use the nVidia drivers on my laptop. Thanks, guys!


When I install the NVIDIA packages from Driver Manager and reboot my system does not load (I think it has to do with sddm not starting) I did pick sddm from the list that include a option to use lightdm.