Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So knowns are this is isolated to Ubuntu Studio. I really like Ubuntu Studio, so I rather not just reformat. It's actually quite fast on this laptop. The boot speed is ridiculously fast.
My thought is this could be a missing Kernel module? I'm a little out of my zone with kernel modules so any help would be appreciated!
You have Optimus hardware (dual GPU), so you need to complete a more complicated installation process that accounts for the dual GPU. Bumblebee is the generic description of the instructions you need to follow to have a working prime-select command. It's not specific to Studio. Any Bumblebee instruction set for Debian, *buntu* or Mint should be able to get you where you need to go.
When lspci doesn't show what you're looking for, try inxi instead (with -Gxx expressly for video info).
NVidia/Prime driver installation instructions should handle kernel modules without you needing to get directly involved with them.
MrMazda, what do you think is the best way forward? I followed the process for installing NVidea compatibility in Ubuntu and for both recommended drivers things haven't worked.
At first I thought it was Wayland // X Windows compatibility issues, because I'm pretty sure the NVidea drivers only work on X-windows systems. I have the Cinnamon desktop installed on my Ubuntu Studio 18.04 install. But checking for X windows, and trying the included XFCE desktop yielded no solutions.
I followed the process for installing NVidea compatibility in Ubuntu and for both recommended drivers things haven't worked.
Followed what process exactly? There is more than one path that can be taken with Optimus. What exactly does "haven't worked" mean? If you found and followed Optimus instruction for Studio, *buntu, Debian and/or Mint and couldn't get it working to your satisfaction, maybe you should try the highly praised Archlinux instructions. I can't follow them, or tell whether they or some other might be best, because I don't have the special hardware combination you have. Maybe if you stated which model laptop you have, someone who has one like it could offer more useful help. Maybe the best plan would be go back to 17.10, then do a do-release-upgrade or apt dist-upgrade, which is how I would have proceeded. Fresh installs are fine for those who like cleaning house, but I'm not one of them. I like to take maximum advantage of my already invested effort.
Reviewing the Optimus installation methods, I think I've fallen into a dependency loop.
Code:
The following packages have unmet dependencies:
libnvidia-ifr1-390 : Depends: libnvidia-gl-390 but it is not installed
libnvidia-ifr1-390:i386 : Depends: libnvidia-gl-390:i386 but it is not installed
nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.77-0ubuntu0.18.04.1) but it is not installed
Recommends: libnvidia-gl-390:i386 (= 390.77-0ubuntu0.18.04.1)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
MrM, your right I should have done a dist-upgrade rather than re-install. It's a bad habit. While I like the current UbuntuStudio installation. Maybe it's best to go back to vanilla Ubuntu and try again from there. Weighing what's more important GPU vs Low Latency Kernel, I'd say GPU probably wins out.
I tried those commands and it comes back with an error. Previously when I ran #sudo ubuntu-drivers devices it recommended the nvidia-340 driver which I installed, after installing it didn't work. I re-ran the command and 390 was recommended. It looks like it's unable to fully clean up the nvidia-340 install.
I've also tried a few purge commands I found, but no luck. At best it brings me back to the dependency message I posted earlier.
Code:
# sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libnvidia-gl-390 libnvidia-gl-390:i386
The following NEW packages will be installed:
libnvidia-gl-390 libnvidia-gl-390:i386
0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
58 not fully installed or removed.
Need to get 0 B/29.2 MB of archives.
After this operation, 147 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 351554 files and directories currently installed.)
Preparing to unpack .../libnvidia-gl-390_390.77-0ubuntu0.18.04.1_amd64.deb ...
diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340
dpkg-divert: error: mismatch on package
when removing 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 by libnvidia-gl-390'
found 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340'
dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-390_390.77-0ubuntu0.18.04.1_amd64.deb (--unpack):
new libnvidia-gl-390:amd64 package pre-installation script subprocess returned error exit status 2
Preparing to unpack .../libnvidia-gl-390_390.77-0ubuntu0.18.04.1_i386.deb ...
diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340
dpkg-divert: error: mismatch on package
when removing 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 by libnvidia-gl-390'
found 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340'
dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-390_390.77-0ubuntu0.18.04.1_i386.deb (--unpack):
new libnvidia-gl-390:i386 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/libnvidia-gl-390_390.77-0ubuntu0.18.04.1_amd64.deb
/var/cache/apt/archives/libnvidia-gl-390_390.77-0ubuntu0.18.04.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Code:
# apt-cache search nvidia | grep driver
nvidia-settings - Tool for configuring the NVIDIA graphics driver
ubuntu-drivers-common - Detect and install additional Ubuntu driver packages
vdpau-driver-all - Video Decode and Presentation API for Unix (driver metapackage)
xserver-xorg-video-nouveau - X.Org X server -- Nouveau display driver
nvidia-340-dev - NVIDIA binary Xorg driver development files
nvidia-384 - Transitional package for nvidia-driver-390
nvidia-384-dev - Transitional package for nvidia-driver-390
nvidia-driver-390 - NVIDIA driver metapackage
nvidia-utils-390 - NVIDIA driver support binaries
xserver-xorg-video-nvidia-390 - NVIDIA binary Xorg driver
bumblebee-nvidia - NVIDIA Optimus support using the proprietary NVIDIA driver
kubuntu-driver-manager - Driver Manager for Kubuntu
kubuntu-driver-manager-dbg - Driver Manager for Kubuntu -- debug symbols
nvidia-common - transitional package for ubuntu-drivers-common
nvidia-340 - NVIDIA binary driver - version 340.107
Code:
# dpkg -l | grep -i nvidia
iU libnvidia-cfg1-390:amd64 390.77-0ubuntu0.18.04.1 amd64 NVIDIA binary OpenGL/GLX configuration library
iU libnvidia-common-390 390.77-0ubuntu0.18.04.1 all Shared files used by the NVIDIA libraries
iU libnvidia-compute-390:amd64 390.77-0ubuntu0.18.04.1 amd64 NVIDIA libcompute package
iU libnvidia-compute-390:i386 390.77-0ubuntu0.18.04.1 i386 NVIDIA libcompute package
iU libnvidia-decode-390:amd64 390.77-0ubuntu0.18.04.1 amd64 NVIDIA Video Decoding runtime libraries
iU libnvidia-decode-390:i386 390.77-0ubuntu0.18.04.1 i386 NVIDIA Video Decoding runtime libraries
iU libnvidia-encode-390:amd64 390.77-0ubuntu0.18.04.1 amd64 NVENC Video Encoding runtime library
iU libnvidia-encode-390:i386 390.77-0ubuntu0.18.04.1 i386 NVENC Video Encoding runtime library
iU libnvidia-fbc1-390:amd64 390.77-0ubuntu0.18.04.1 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
iU libnvidia-fbc1-390:i386 390.77-0ubuntu0.18.04.1 i386 NVIDIA OpenGL-based Framebuffer Capture runtime library
iU libnvidia-ifr1-390:amd64 390.77-0ubuntu0.18.04.1 amd64 NVIDIA OpenGL-based Inband Frame Readback runtime library
iU libnvidia-ifr1-390:i386 390.77-0ubuntu0.18.04.1 i386 NVIDIA OpenGL-based Inband Frame Readback runtime library
iU nvidia-compute-utils-390 390.77-0ubuntu0.18.04.1 amd64 NVIDIA compute utilities
iU nvidia-dkms-390 390.77-0ubuntu0.18.04.1 amd64 NVIDIA DKMS package
iU nvidia-driver-390 390.77-0ubuntu0.18.04.1 amd64 NVIDIA driver metapackage
iU nvidia-kernel-common-390 390.77-0ubuntu0.18.04.1 amd64 Shared files used with the kernel module
iU nvidia-kernel-source-390 390.77-0ubuntu0.18.04.1 amd64 NVIDIA kernel source package
rc nvidia-opencl-icd-340 340.107-0ubuntu0.18.04.1 amd64 NVIDIA OpenCL ICD
iU nvidia-prime 0.8.8.2 all Tools to enable NVIDIA's Prime
ii nvidia-settings 390.77-0ubuntu0.18.04.1 amd64 Tool for configuring the NVIDIA graphics driver
iU nvidia-utils-390 390.77-0ubuntu0.18.04.1 amd64 NVIDIA driver support binaries
iU xserver-xorg-video-nvidia-390 390.77-0ubuntu0.18.04.1 amd64 NVIDIA binary Xorg driver
i also searched your dpkg error, and lo and behold: 2nd search result seems to directly pertain to your problem! seems to, i didn't check.
lesson learned: always search before posting.
Thanks for your help ondoho, I did run through a number of ways to uninstall 340 but kept hitting roadblocks. None worked.
While this was all going on I kept getting pop-ups stating system-error. Well, one morning I go to start my PC and it doesn't start... the best I managed to get it is to the grub menu.
I should have taken that moment to practice solving issues in grub, but I took the easy way out and backed up what was on the disk and installed a new O.S. Ubuntu Studio, it's been great but it's me. not you. ..
Anyone stumbling across these posts, sorry there is no solution, Ubuntu 18.04 works great just be careful which version of the nvidia driver you install. I'm going to try my luck with OpenSuse Tumbleweed. I have been running it on VM's for sometime, and it's proved nothing but stable also. Interested in seeing what the desktop experience is like.
I'm going to try my luck with OpenSuse Tumbleweed. I have been running it on VM's for sometime, and it's proved nothing but stable also. Interested in seeing what the desktop experience is like.
You shouldn't expect much detectable difference between VM and hardware with TW (unless you install to BTRFS with snapshotting fully enabled, which I don't do). Also, openSUSE doesn't have a "the desktop experience". It has Gnome(3) and KDE/Plasma to choose from on the main desktop installation screen, but also offers Mate, KDE3, XFCE, LXQt, LXDE, Enlightenment and more as easily additional or alternative options when enabling additional repos either during or subsequent to completing installation.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.