this post was submitted on 25 Dec 2023
1 points (100.0% liked)

Pop!_OS (Linux)

4637 readers
0 users here now

Pop!_OS is an operating system developed by System76 for STEM and creative professionals who use their computer as a tool to discover and create. Unleash your potential on secure, reliable open source software. Based on your exceptional curiosity, we sense you have a lot of it.

Unleash your potential

Whether this is your first experience with Linux, or your latest adventure, all are welcome to discuss and ask questions about Pop!_OS and COSMIC. Keep the discussions friendly though, and remember to assume good intentions whenever you reply. We're all here because we have a shared love for Linux and open source software.

System76 Logo

Support us by buying System76 hardware for you or your company! Or by donating on the Pop!_OS website through the "Support Pop" button. Pop!_OS and COSMIC are fully funded by System76 hardware sales. All systems are assembled in the USA. With your support, we'll work to push the Linux desktop forward with COSMIC.

Links

Guides

Hardware

Recommended

Community Rules

Follow the Code of Conduct

All posts on pop_os must adhere to the Pop!_OS community Code of Conduct. https://github.com/pop-os/code-of-conduct

Be helpful

Posts to pop_os must be helpful. When responding to a user asking for help, do not provide tongue-in-cheek responses like "RTM" or links to LMGTFY. Linking to direct sources that answer the asker's question is fine, but it's advised to provide some explanation as to how you got to that source.

Critique should be constructive

We within the Pop!_OS community welcome helpful criticism or ideas on ways to improve. However, basic "It's bad" or other simple negative comments don't help anyone fix anything. When voicing a complaint about something, try to point out ways the complaint could be improved or worked around, so that we can make a better product for it.

This rule applies to both Pop!_OS and its projects as well as other products available from third-parties.

Don't post malicious "advice"

It can be funny to joke about malicious commands, however this is not the venue for it. Do not advise users to run commands which will lock up their systems, steal their data, or erase their drive. Examples of this include (but are not limited to) fork bombs, rm, etc.

Posts violating this rule will be removed, even if the post is clearly in jest. Repeated offences may lead to a ban. You may understand that the command isn't serious, but a new user might not.

No personal attacks

Posts making a personal attack on any user will not be tolerated.

No hate speech

Hate speech of any kind will not be tolerated. Any violations will be removed, and are grounds for a ban.

founded 1 year ago
MODERATORS
 

Hi, I'm making this post today because I've been having some problems with Nvidia drivers with wayland. Looks like nvidia driver 535 was having some issues with Godot (flatpak), the error was something about Vulkan, anyway, it's not important now.

The versions 535 and 545 of the nvidia driver have been causing some problems on my machine while using wayland, so I'm making this tutorial for the folks that are encountering problems and wish to change their driver version to (hopefully) solve their bugs while waiting for the latest driver to be updated.

Let's get started.

DISCLAIMER: I am not responsible if you break your installation or if you damage your machine in any way.

1st step

First of all, I highly advise to install Timeshift. It's a neat program that will make a snapshot of your system configuration (depending on how you configure it) so you can roll back in time if something goes wrong. It saved my linux installation many times.

2nd step

If you wish to see your current driver version, open a terminal and type:

$ nvidia-smi

I advise to write the version down, or at least remember it.

3rd step

To view all the nvidia drivers you can install, open a terminal and execute:

$ ubuntu-drivers list

or

$ ubuntu-drivers devices

These 2 commands (you can use whatever you prefer) will tell you all the nvidia drivers that are available for installation.

To delete your current nvidia driver, open a terminal and execute:

$ sudo apt purge ~nnvidia

Then, you can install one of the nvidia drivers we have seen before, for example:

$ sudo apt install nvidia-driver-535-server

(If I understand correctly, the server drivers are no different from the normal drivers, other than the fact that they are supported for longer and they should in teory be more stable).

4th step

After your new driver is installed, you can reboot your machine, using the UI or the terminal by executing:

$ sudo reboot

5th step

If you want to use X11, you're done. If you want to use Wayland, you have to do some additional steps.

To enable wayland in pop-os, you first have to enable nvidia modeset if it's not already enabled.

To check if it's enabled, you can go inside /etc/modprobe.d/ and check if any of the files contains options nvidia_drm modeset=1. If you find nothing, you have to create the file yourself.

To do this, execute:

$ sudo nano /etc/modprobe.d/zz-nvidia-modeset.conf

The content of this file should be:

options nvidia_drm modeset=1

Then execute:

$ sudo update-initramfs -u

6th step

To be sure that there is nothing else blocking your machine from enabling wayland, execute:

sudo nano /usr/lib/udev/rules.d/61-gdm.rules

Inside this file there are some rules, some of which may stop your system from displaying the wayland option inside the little gear in the login screen.

Specifically, you have to check these lines:

LABEL="gdm_prefer_xorg"
#RUN+="/usr/libexec/gdm-runtime-config set daemon PreferredDisplayServer xorg"
GOTO="gdm_end"

LABEL="gdm_disable_wayland"
#RUN+="/usr/libexec/gdm-runtime-config set daemon WaylandEnable false"
GOTO="gdm_end"

LABEL="gdm_end"

Check that the lines starting with "run" are commented out.

7th step

We are almost done.

Execute in the terminal

$ sudo nano /etc/gdm3/custom.conf

Here you will find a line like this

# Uncoment the line below to force the login screen to use Xorg
# WaylandEnable=false

You can leave it as is, but if you can't see the wayland option in the login screen, you can come back and edit it like this:

# Uncoment the line below to force the login screen to use Xorg
WaylandEnable=true

8th step

You can reboot your machine, and when it boots back up, you should hopefully see the wayland option in the bottom-right gear in the login screen.

9th step

Don't forget to run:

$ flatpak update

To allow flatpak to install the new version of the nvidia driver for your flatpak software.

Final

I hope you found this tutorial useful. If you want you can suggest improvements, or edit and share it on other platforms if you want more people to see it.

Resources

https://askubuntu.com/questions/1428525/how-to-permanetely-disable-wayland

https://lemmy.world/post/2155783

https://old.reddit.com/r/linuxquestions/comments/8fb9oj/how_to_fix_screen_tearing_ubuntu_1804_nvidia_390/dy2t8m1/

https://unix.stackexchange.com/questions/700938/enable-wayland-in-popos-22-04

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here