Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install (proton) beta on optimus #5707

Closed
petersilva opened this issue Aug 30, 2018 · 17 comments
Closed

install (proton) beta on optimus #5707

petersilva opened this issue Aug 30, 2018 · 17 comments

Comments

@petersilva
Copy link

@petersilva petersilva commented Aug 30, 2018

Your system information

  • Steam client version (build number or date): Aug 29 2018, 20:07:05
  • Distribution (e.g. Ubuntu): Ubuntu 18.04
  • Opted into Steam client beta?: [Yes/No] Yes
  • Have you checked for system updates?: [Yes/No] Yes.

Please describe your issue in as much detail as possible:

Core i7-4710HQ with Intel graphics, Nvidia GTX-860M

lspci says:
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev ff)

Tried this: https://github.com/ValveSoftware/Proton/blob/proton_3.7/PREREQS.md
It says for people with Nvidia, add a certain repo, and for intel add another.
I added both, installed the intel vulkan drivers, but when I went to install the nvidia
drivers
he following packages have unmet dependencies:

 nvidia-driver-396 : Depends: libnvidia-gl-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
                     Depends: nvidia-dkms-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
                     Depends: nvidia-kernel-source-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
                     Depends: libnvidia-decode-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
                     Depends: libnvidia-encode-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
                     Depends: nvidia-utils-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
                     Depends: xserver-xorg-video-nvidia-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
                     Depends: libnvidia-cfg1-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
                     Depends: libnvidia-ifr1-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
                     Recommends: libnvidia-decode-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
                     Recommends: libnvidia-encode-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
                     Recommends: libnvidia-ifr1-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
                     Recommends: libnvidia-fbc1-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
                     Recommends: libnvidia-gl-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
E: Unable to correct problems, you have held broken packages.
blacklab% 

Steps for reproducing this issue:

  1. sudo add-apt-repository ppa:graphics-drivers/ppa
  2. sudo add-apt-repository ppa:paulo-miguel-dias/mesa
  3. sudo apt dist-upgrade
  4. sudo apt install mesa-vulkan-drivers mesa-vulkan-drivers:i386
  5. sudo apt install nvidia-driver-396
@kisak-valve

This comment has been minimized.

Copy link
Member

@kisak-valve kisak-valve commented Aug 30, 2018

Hello @petersilva, for your system, it's pointless to try to use both PPAs because Intel/Haswell has an incomplete vulkan implementation and will cause you trouble with dxvk. Use ppa-purge to clean up padoka PPA and focus on trying to get the nvidia driver working.

@petersilva

This comment has been minimized.

Copy link
Author

@petersilva petersilva commented Aug 30, 2018

I tried it, and result was unchanged. perhaps the repos are just in a bad way, will wait a day or two?

@SashaRyder

This comment has been minimized.

Copy link

@SashaRyder SashaRyder commented Aug 31, 2018

You should try remove all PPA's and try just using the nvidia PPA. Using both will cause conflicts as shown

@petersilva

This comment has been minimized.

Copy link
Author

@petersilva petersilva commented Aug 31, 2018

yes. that is what I did:

   ppa-purge ppa:paulo-miguel-dias/mesa
   ppa-purge ppa:graphics-drivers/ppa
  apt update
   apt dist-upgrade
   add-apt-repository ppa:graphics-drivers/ppa
   apt update
   apt dist-upgrade
   apt install nvidia-driver-396

same thing/no change.

@SashaRyder

This comment has been minimized.

Copy link

@SashaRyder SashaRyder commented Aug 31, 2018

Try apt install nvidia-396 instead, and after purging your ppa's try apt purge nvidia* too just to make sure your not holding any packages

@petersilva

This comment has been minimized.

Copy link
Author

@petersilva petersilva commented Aug 31, 2018

just to note, though I get the message about packages held, I can't find any...

blacklab% dpkg --get-selections | grep hold
blacklab%

nvidia-396...

blacklab% apt install nvidia-396
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package nvidia-396
blacklab% 

@petersilva

This comment has been minimized.

Copy link
Author

@petersilva petersilva commented Aug 31, 2018

blacklab% dpkg -l | grep nvidia
ii  bumblebee-nvidia                           3.2.1-17                                    amd64        NVIDIA Optimus support using the proprietary NVIDIA driver
ii  libnvidia-cfg1-390:amd64                   390.77-0ubuntu0~gpu18.04.1                  amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-390                       390.77-0ubuntu0~gpu18.04.1                  all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-390:amd64                390.77-0ubuntu0~gpu18.04.1                  amd64        NVIDIA libcompute package
ii  libnvidia-compute-390:i386                 390.77-0ubuntu0~gpu18.04.1                  i386         NVIDIA libcompute package
ii  libnvidia-decode-390:amd64                 390.77-0ubuntu0~gpu18.04.1                  amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-390:i386                  390.77-0ubuntu0~gpu18.04.1                  i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-390:amd64                 390.77-0ubuntu0~gpu18.04.1                  amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-390:i386                  390.77-0ubuntu0~gpu18.04.1                  i386         NVENC Video Encoding runtime library
ii  libnvidia-fbc1-390:amd64                   390.77-0ubuntu0~gpu18.04.1                  amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-390:i386                    390.77-0ubuntu0~gpu18.04.1                  i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-390:amd64                     390.77-0ubuntu0~gpu18.04.1                  amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-390:i386                      390.77-0ubuntu0~gpu18.04.1                  i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-390:amd64                   390.77-0ubuntu0~gpu18.04.1                  amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  libnvidia-ifr1-390:i386                    390.77-0ubuntu0~gpu18.04.1                  i386         NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  nvidia-375                                 384.111-0ubuntu1                            amd64        Transitional package for nvidia-384
ii  nvidia-384                                 390.77-0ubuntu0~gpu18.04.1                  amd64        Transitional package for nvidia-driver-390
ii  nvidia-compute-utils-390                   390.77-0ubuntu0~gpu18.04.1                  amd64        NVIDIA compute utilities
ii  nvidia-dkms-390                            390.77-0ubuntu0~gpu18.04.1                  amd64        NVIDIA DKMS package
ii  nvidia-driver-390                          390.77-0ubuntu0~gpu18.04.1                  amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-390                   390.77-0ubuntu0~gpu18.04.1                  amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-390                   390.77-0ubuntu0~gpu18.04.1                  amd64        NVIDIA kernel source package
ii  nvidia-prime                               0.8.8                                       all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                            396.54-0ubuntu0~gpu18.04.1                  amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-390                           390.77-0ubuntu0~gpu18.04.1                  amd64        NVIDIA driver support binaries
ii  xserver-xorg-video-nvidia-390              390.77-0ubuntu0~gpu18.04.1                  amd64        NVIDIA binary Xorg driver
blacklab% 

@petersilva

This comment has been minimized.

Copy link
Author

@petersilva petersilva commented Aug 31, 2018

I found it... I needed to purge the compute library, which I guess is missing in the new PPA stuff, so there was no upgrade path.


blacklab% dpkg -l  | grep nvidia| grep i386
ii  libnvidia-compute-390:i386                 390.77-0ubuntu0~gpu18.04.1                  i386         NVIDIA libcompute package
ii  libnvidia-decode-390:i386                  390.77-0ubuntu0~gpu18.04.1                  i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-390:i386                  390.77-0ubuntu0~gpu18.04.1                  i386         NVENC Video Encoding runtime library
ii  libnvidia-fbc1-390:i386                    390.77-0ubuntu0~gpu18.04.1                  i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-390:i386                      390.77-0ubuntu0~gpu18.04.1                  i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-390:i386                    390.77-0ubuntu0~gpu18.04.1                  i386         NVIDIA OpenGL-based Inband Frame Readback runtime library
blacklab% **apt purge libnvidia-compute-390**

after purging libnvidia-compute-390, the install is no longer stuck.

@petersilva

This comment has been minimized.

Copy link
Author

@petersilva petersilva commented Aug 31, 2018

too soon... more issues...

Preparing to unpack .../xserver-xorg-video-nvidia-396_396.54-0ubuntu0~gpu18.04.1_amd64.deb ...
Unpacking xserver-xorg-video-nvidia-396 (396.54-0ubuntu0~gpu18.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/xserver-xorg-video-nvidia-396_396.54-0ubuntu0~gpu18.04.1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/nvidia/xorg/nvidia_drv.so', which is also in package xserver-xorg-video-nvidia-390 390.77-0ubuntu0~gpu18.04.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/xserver-xorg-video-nvidia-396_396.54-0ubuntu0~gpu18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
blacklab% 

still failed to install any 396 stuff.

@petersilva

This comment has been minimized.

Copy link
Author

@petersilva petersilva commented Aug 31, 2018

% apt remove xserver-xorg-video-nvidia-390
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help resolve the situation:

The following packages have unmet dependencies:
 libgl1 : Depends: libglx0 (= 1.0.0-2ubuntu2.1) but it is not going to be installed
 libwayland-egl1-mesa : Depends: libegl1 but it is not going to be installed
 xserver-xorg-core : Depends: libegl1-mesa but it is not going to be installed or
                              libegl1 but it is not going to be installed
 xserver-xorg-input-all : Depends: xserver-xorg-input-libinput but it is not going to be installed
                          Recommends: xserver-xorg-input-wacom but it is not going to be installed
 xserver-xorg-video-all : Depends: xserver-xorg-video-amdgpu but it is not going to be installed
                          Depends: xserver-xorg-video-ati but it is not going to be installed
                          Depends: xserver-xorg-video-fbdev but it is not going to be installed
                          Depends: xserver-xorg-video-nouveau but it is not going to be installed
                          Depends: xserver-xorg-video-vesa but it is not going to be installed
                          Depends: xserver-xorg-video-vmware but it is not going to be installed
                          Recommends: xserver-xorg-video-intel but it is not going to be installed
                          Recommends: xserver-xorg-video-qxl but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
blacklab% 

@SashaRyder

This comment has been minimized.

Copy link

@SashaRyder SashaRyder commented Aug 31, 2018

And after doing the ppa add and dist-upgrade you're not getting the new drivers available for install? My upgrade was following a fresh install so i'm not sure how much the packages differ between versions

@petersilva

This comment has been minimized.

Copy link
Author

@petersilva petersilva commented Aug 31, 2018

OK... they finally installed...

dpkg --force-depends --remove  libnvidia-cfg1-390 libnvidia-compute-390 libnvidia-decode-390 libnvidia-encode-390 libnvidia-fbc1-390 libnvidia-fbc1-390 libnvidia-fbc1-390 xserver-xorg-video-nvidia-390
dpkg --remove bumblebee-nvidia

then install of 396 worked, and group add bumblebee-nvidia back... and installs... going to reboot...

@SashaRyder

This comment has been minimized.

Copy link

@SashaRyder SashaRyder commented Aug 31, 2018

should also be able to do nvidia-smi to ensure you have correct versions of things detected, if you do then you should be good to go!

@petersilva

This comment has been minimized.

Copy link
Author

@petersilva petersilva commented Aug 31, 2018

rebooted, and counter-strike runs (with __GLVND_DISALLOW_PATCHING=1, as before) so it is at least parity with before. dpkg says all 396, otoh:


blacklab% nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running
blacklab% 

@petersilva

This comment has been minimized.

Copy link
Author

@petersilva petersilva commented Aug 31, 2018

Fallout shelter crashed on start up (steam says it's running, but ps shows only a wineserver. killed that, still says it is running... so I don't know if installation is a success or not.

@SashaRyder

This comment has been minimized.

Copy link

@SashaRyder SashaRyder commented Aug 31, 2018

Check for python running, killing that will stop the steam detection. Fallout Shelter works fine for me though

@petersilva

This comment has been minimized.

Copy link
Author

@petersilva petersilva commented Sep 1, 2018

OK, never mind, it works fine once I addes to set launch options...
__GLVND_DISALLOW_PATCHING=1 primusrun %command%
so in the end, it is working as advertised.

@petersilva petersilva closed this Sep 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.