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

[nvidia] Lack of clear instructions #1359

Open
AlanGriffiths opened this issue Mar 10, 2020 · 6 comments
Open

[nvidia] Lack of clear instructions #1359

AlanGriffiths opened this issue Mar 10, 2020 · 6 comments

Comments

@AlanGriffiths
Copy link
Collaborator

AlanGriffiths commented Mar 10, 2020

We ought to have clear instructions for installing and configuring on Nvidia.

I got this far:

  1. install nvidia-driver
sudo apt install nvidia-driver-515
  1. From the Mir PPA install mir's nvidia driver and libnvidia-egl-wayland
sudo apt-add-repository ppa:mir-team/dev
sudo apt install mir-graphics-driver-nvidia libnvidia-egl-wayland1
  1. Enable nvidia-kms
sudo echo options nvidia-drm modeset=1 > /etc/modprobe.d/nvidia-kms.conf
  1. With this I can select nvidia (or intel) with
sudo prime-select nvidia

On my prox5 using 18.04 this seems almost to work (mir seems to start but nothing appears on the output). Using 20.04 graphics fail to come up as there appears to be nothing attached to the nvidia card.

@AlanGriffiths
Copy link
Collaborator Author

Update:

Here's the console output from trying to start using mir-shell (from ppa:mir-team/dev) on a VT:

mir-shell.log

@RAOF does this hold any clues for you? (GNOME is happily using Xorg/Nvidia)

@AlanGriffiths
Copy link
Collaborator Author

After discussion with @RAOF we concluded that my proX5 only has outputs connected to the Intel card, so Mir would need hybrid graphics to support using Nvidia.

@Saviq
Copy link
Collaborator

Saviq commented Sep 1, 2023

  1. Enable nvidia-kms

This is unnecessary with newer kernels/drivers.

I'll document this better soon.

@RudraSwat
Copy link

RudraSwat commented Sep 1, 2023

@Saviq I was messing with this on a laptop with the iGPU disabled (so not hybrid, just an RTX 5000) and tried everything listed here, but still can't get mir-shell to use the NVIDIA GPU instead of llvmpipe.

For reference, this is on a system running Ubuntu Unity 23.10.

@Saviq
Copy link
Collaborator

Saviq commented Sep 1, 2023

@RudraSwat for Frame, make sure you use --channel 22 (it's only default since yesterday).

What's your snap list; echo ubuntu-frame mesa-core22 | xargs -n1 snap connections look like?

@Saviq
Copy link
Collaborator

Saviq commented Sep 1, 2023

@RudraSwat sorry I somehow misread "mir-shell" as Frame 🤦

Can you please provide the log output from mir-shell?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants