GeForce 3060 on Xubuntu 22.04.3

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
peter_b
Chatterbox
Posts: 378
Joined: Tue Nov 12, 2013 2:05 am

GeForce 3060 on Xubuntu 22.04.3

Post by peter_b »

Installing an NVIDIA GeForce RTX3060 (MSI-model) on an MSI B450M Mortar Max mainboard on Xubuntu 22.04.3.
Requires proprietary drivers (at the moment), but works.

1) First boot halted on "EZ Debug LED" VGA. :shock:
2) Cleared CMOS, then tried again: GPU works, system boots.
3) Xubuntu boots, but has wide-stretched low-resolution (1024x768 (4:3) stretched to 16:9) graphics fallback look.
4) Ubuntu "Additional Drivers" lists the NVIDIA (proprietary) options, but they're grayed out.
5) Running `sudo ubuntu-drivers install` downloaded and installed the nvidia-535 drivers (proprietary) automatically.
6) Reboot: Works.

"lscpi" reports:

Code: Select all

$ lspci -k | grep -EA3 'VGA|3D|Display'
26:00.0 VGA compatible controller: NVIDIA Corporation GA104 [GeForce RTX 3060] (rev a1)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 397d
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
26:00.1 Audio device: NVIDIA Corporation GA104 High Definition Audio Controller (rev a1)

Code: Select all

$ sudo ubuntu-drivers install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
gir1.2-snapd-1 libflashrom1 libftdi1-2 libllvm13
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libnvidia-cfg1-535 libnvidia-common-535 libnvidia-compute-535
libnvidia-compute-535:i386 libnvidia-decode-535
libnvidia-decode-535:i386 libnvidia-encode-535
libnvidia-encode-535:i386 libnvidia-extra-535 libnvidia-fbc1-535
libnvidia-fbc1-535:i386 libnvidia-gl-535 libnvidia-gl-535:i386
linux-modules-nvidia-535-5.15.0-91-generic
linux-objects-nvidia-535-5.15.0-91-generic
nvidia-compute-utils-535 nvidia-firmware-535-535.154.05
nvidia-kernel-common-535 nvidia-kernel-source-535 nvidia-utils-535
xserver-xorg-video-nvidia-535
The following packages will be REMOVED:
libnvidia-cfg1-390 libnvidia-common-390 libnvidia-compute-390
libnvidia-compute-390:i386 libnvidia-decode-390
libnvidia-decode-390:i386 libnvidia-encode-390
libnvidia-encode-390:i386 libnvidia-fbc1-390
libnvidia-fbc1-390:i386 libnvidia-gl-390 libnvidia-gl-390:i386
libnvidia-ifr1-390 libnvidia-ifr1-390:i386
linux-modules-nvidia-390-5.15.0-91-generic
linux-modules-nvidia-390-generic nvidia-compute-utils-390
nvidia-driver-390 nvidia-kernel-common-390
nvidia-kernel-source-390 nvidia-utils-390
xserver-xorg-video-nvidia-390
The following NEW packages will be installed:
libnvidia-cfg1-535 libnvidia-common-535 libnvidia-compute-535
libnvidia-compute-535:i386 libnvidia-decode-535
libnvidia-decode-535:i386 libnvidia-encode-535
libnvidia-encode-535:i386 libnvidia-extra-535 libnvidia-fbc1-535
libnvidia-fbc1-535:i386 libnvidia-gl-535 libnvidia-gl-535:i386
linux-modules-nvidia-535-5.15.0-91-generic
linux-modules-nvidia-535-generic
linux-objects-nvidia-535-5.15.0-91-generic
nvidia-compute-utils-535 nvidia-driver-535
nvidia-firmware-535-535.154.05 nvidia-kernel-common-535
nvidia-kernel-source-535 nvidia-utils-535
xserver-xorg-video-nvidia-535
0 upgraded, 23 newly installed, 22 to remove and 26 not upgraded.
Need to get 462 MB of archives.
After this operation, 910 MB of additional disk space will be used.
Get:1 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 libnvidia-cfg1-535 amd64 535.154.05-0ubuntu0.22.04.1 [110 kB]
Get:2 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 libnvidia-common-535 all 535.154.05-0ubuntu0.22.04.1 [16,5 kB]
Get:3 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted i386 libnvidia-compute-535 i386 535.154.05-0ubuntu0.22.04.1 [40,6 MB]
Get:4 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 libnvidia-compute-535 amd64 535.154.05-0ubuntu0.22.04.1 [40,7 MB]
Get:5 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 libnvidia-decode-535 amd64 535.154.05-0ubuntu0.22.04.1 [1.893 kB]
Get:6 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted i386 libnvidia-decode-535 i386 535.154.05-0ubuntu0.22.04.1 [2.215 kB]
Get:7 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted i386 libnvidia-encode-535 i386 535.154.05-0ubuntu0.22.04.1 [108 kB]
Get:8 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 libnvidia-encode-535 amd64 535.154.05-0ubuntu0.22.04.1 [99,1 kB]
Get:9 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 libnvidia-extra-535 amd64 535.154.05-0ubuntu0.22.04.1 [73,4 kB]
Get:10 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 libnvidia-fbc1-535 amd64 535.154.05-0ubuntu0.22.04.1 [57,0 kB]
Get:11 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted i386 libnvidia-fbc1-535 i386 535.154.05-0ubuntu0.22.04.1 [62,5 kB]
Get:12 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted i386 libnvidia-gl-535 i386 535.154.05-0ubuntu0.22.04.1 [35,4 MB]
Get:13 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 libnvidia-gl-535 amd64 535.154.05-0ubuntu0.22.04.1 [195 MB]
Get:14 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 linux-objects-nvidia-535-5.15.0-91-generic amd64 5.15.0-91.101+2 [58,2 MB]
Get:15 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 nvidia-firmware-535-535.154.05 amd64 535.154.05-0ubuntu0.22.04.1 [39,6 MB]
Get:16 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 nvidia-kernel-common-535 amd64 535.154.05-0ubuntu0.22.04.1 [212 kB]
Get:17 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 linux-modules-nvidia-535-5.15.0-91-generic amd64 5.15.0-91.101+2 [16,1 kB]
Get:18 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 linux-modules-nvidia-535-generic amd64 5.15.0-91.101+2 [14,4 kB]
Get:19 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 nvidia-compute-utils-535 amd64 535.154.05-0ubuntu0.22.04.1 [124 kB]
Get:20 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 nvidia-kernel-source-535 amd64 535.154.05-0ubuntu0.22.04.1 [45,2 MB]
Get:21 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 nvidia-utils-535 amd64 535.154.05-0ubuntu0.22.04.1 [414 kB]
Get:22 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 xserver-xorg-video-nvidia-535 amd64 535.154.05-0ubuntu0.22.04.1 [1.599 kB]
Get:23 http://at.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 nvidia-driver-535 amd64 535.154.05-0ubuntu0.22.04.1 [488 kB]
Fetched 462 MB in 1min 19s (5.834 kB/s)
Preconfiguring packages ...
(Reading database ... 187756 files and directories currently installed.)
Removing nvidia-driver-390 (390.157-0ubuntu0.22.04.2) ...
Removing xserver-xorg-video-nvidia-390 (390.157-0ubuntu0.22.04.2) ...
Removing libnvidia-cfg1-390:amd64 (390.157-0ubuntu0.22.04.2) ...
Removing libnvidia-ifr1-390:amd64 (390.157-0ubuntu0.22.04.2) ...
Removing libnvidia-gl-390:amd64 (390.157-0ubuntu0.22.04.2) ...
Removing libnvidia-ifr1-390:i386 (390.157-0ubuntu0.22.04.2) ...
Removing libnvidia-gl-390:i386 (390.157-0ubuntu0.22.04.2) ...
Removing libnvidia-common-390 (390.157-0ubuntu0.22.04.2) ...
Removing libnvidia-encode-390:i386 (390.157-0ubuntu0.22.04.2) ...
Removing libnvidia-decode-390:i386 (390.157-0ubuntu0.22.04.2) ...
Removing libnvidia-compute-390:i386 (390.157-0ubuntu0.22.04.2) ...
Removing libnvidia-encode-390:amd64 (390.157-0ubuntu0.22.04.2) ...
Removing libnvidia-decode-390:amd64 (390.157-0ubuntu0.22.04.2) ...
Removing nvidia-utils-390 (390.157-0ubuntu0.22.04.2) ...
Removing libnvidia-fbc1-390:i386 (390.157-0ubuntu0.22.04.2) ...
Removing libnvidia-fbc1-390:amd64 (390.157-0ubuntu0.22.04.2) ...
Removing linux-modules-nvidia-390-generic (5.15.0-91.101+2) ...
Removing linux-modules-nvidia-390-5.15.0-91-generic (5.15.0-91.101+2) ...
linux-image-nvidia-5.15.0-91-generic: removing .ko files
Removing nvidia-compute-utils-390 (390.157-0ubuntu0.22.04.2) ...
Removing nvidia-kernel-common-390 (390.157-0ubuntu0.22.04.2) ...
update-initramfs: deferring update (trigger activated)
Removing nvidia-kernel-source-390 (390.157-0ubuntu0.22.04.2) ...
Removing libnvidia-compute-390:amd64 (390.157-0ubuntu0.22.04.2) ...
Selecting previously unselected package libnvidia-cfg1-535:amd64.
(Reading database ... 187198 files and directories currently installed.)
Preparing to unpack .../00-libnvidia-cfg1-535_535.154.05-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libnvidia-cfg1-535:amd64 (535.154.05-0ubuntu0.22.04.1) ...
Selecting previously unselected package libnvidia-common-535.
Preparing to unpack .../01-libnvidia-common-535_535.154.05-0ubuntu0.22.04.1_all.deb ...
Unpacking libnvidia-common-535 (535.154.05-0ubuntu0.22.04.1) ...
Selecting previously unselected package libnvidia-compute-535:i386.
Preparing to unpack .../02-libnvidia-compute-535_535.154.05-0ubuntu0.22.04.1_i386.deb ...
Unpacking libnvidia-compute-535:i386 (535.154.05-0ubuntu0.22.04.1) ...
Selecting previously unselected package libnvidia-compute-535:amd64.
Preparing to unpack .../03-libnvidia-compute-535_535.154.05-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libnvidia-compute-535:amd64 (535.154.05-0ubuntu0.22.04.1) ...
Selecting previously unselected package libnvidia-decode-535:amd64.
Preparing to unpack .../04-libnvidia-decode-535_535.154.05-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libnvidia-decode-535:amd64 (535.154.05-0ubuntu0.22.04.1) ...
Selecting previously unselected package libnvidia-decode-535:i386.
Preparing to unpack .../05-libnvidia-decode-535_535.154.05-0ubuntu0.22.04.1_i386.deb ...
Unpacking libnvidia-decode-535:i386 (535.154.05-0ubuntu0.22.04.1) ...
Selecting previously unselected package libnvidia-encode-535:i386.
Preparing to unpack .../06-libnvidia-encode-535_535.154.05-0ubuntu0.22.04.1_i386.deb ...
Unpacking libnvidia-encode-535:i386 (535.154.05-0ubuntu0.22.04.1) ...
Selecting previously unselected package libnvidia-encode-535:amd64.
Preparing to unpack .../07-libnvidia-encode-535_535.154.05-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libnvidia-encode-535:amd64 (535.154.05-0ubuntu0.22.04.1) ...
Selecting previously unselected package libnvidia-extra-535:amd64.
Preparing to unpack .../08-libnvidia-extra-535_535.154.05-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libnvidia-extra-535:amd64 (535.154.05-0ubuntu0.22.04.1) ...
Selecting previously unselected package libnvidia-fbc1-535:amd64.
Preparing to unpack .../09-libnvidia-fbc1-535_535.154.05-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libnvidia-fbc1-535:amd64 (535.154.05-0ubuntu0.22.04.1) ...
Selecting previously unselected package libnvidia-fbc1-535:i386.
Preparing to unpack .../10-libnvidia-fbc1-535_535.154.05-0ubuntu0.22.04.1_i386.deb ...
Unpacking libnvidia-fbc1-535:i386 (535.154.05-0ubuntu0.22.04.1) ...
Selecting previously unselected package libnvidia-gl-535:amd64.
Preparing to unpack .../11-libnvidia-gl-535_535.154.05-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libnvidia-gl-535:amd64 (535.154.05-0ubuntu0.22.04.1) ...
Selecting previously unselected package libnvidia-gl-535:i386.
Preparing to unpack .../12-libnvidia-gl-535_535.154.05-0ubuntu0.22.04.1_i386.deb ...
Unpacking libnvidia-gl-535:i386 (535.154.05-0ubuntu0.22.04.1) ...
Selecting previously unselected package linux-objects-nvidia-535-5.15.0-91-generic.
Preparing to unpack .../13-linux-objects-nvidia-535-5.15.0-91-generic_5.15.0-91.101+2_amd64.deb ...
Unpacking linux-objects-nvidia-535-5.15.0-91-generic (5.15.0-91.101+2) ...
Selecting previously unselected package nvidia-firmware-535-535.154.05.
Preparing to unpack .../14-nvidia-firmware-535-535.154.05_535.154.05-0ubuntu0.22.04.1_amd64.deb ...
Unpacking nvidia-firmware-535-535.154.05 (535.154.05-0ubuntu0.22.04.1) ...
Selecting previously unselected package nvidia-kernel-common-535.
Preparing to unpack .../15-nvidia-kernel-common-535_535.154.05-0ubuntu0.22.04.1_amd64.deb ...
Unpacking nvidia-kernel-common-535 (535.154.05-0ubuntu0.22.04.1) ...
Selecting previously unselected package linux-modules-nvidia-535-5.15.0-91-generic.
Preparing to unpack .../16-linux-modules-nvidia-535-5.15.0-91-generic_5.15.0-91.101+2_amd64.deb ...
Unpacking linux-modules-nvidia-535-5.15.0-91-generic (5.15.0-91.101+2) ...
Selecting previously unselected package linux-modules-nvidia-535-generic.
Preparing to unpack .../17-linux-modules-nvidia-535-generic_5.15.0-91.101+2_amd64.deb ...
Unpacking linux-modules-nvidia-535-generic (5.15.0-91.101+2) ...
Selecting previously unselected package nvidia-compute-utils-535.
Preparing to unpack .../18-nvidia-compute-utils-535_535.154.05-0ubuntu0.22.04.1_amd64.deb ...
Unpacking nvidia-compute-utils-535 (535.154.05-0ubuntu0.22.04.1) ...
Selecting previously unselected package nvidia-kernel-source-535.
Preparing to unpack .../19-nvidia-kernel-source-535_535.154.05-0ubuntu0.22.04.1_amd64.deb ...
Unpacking nvidia-kernel-source-535 (535.154.05-0ubuntu0.22.04.1) ...
Selecting previously unselected package nvidia-utils-535.
Preparing to unpack .../20-nvidia-utils-535_535.154.05-0ubuntu0.22.04.1_amd64.deb ...
Unpacking nvidia-utils-535 (535.154.05-0ubuntu0.22.04.1) ...
Selecting previously unselected package xserver-xorg-video-nvidia-535.
Preparing to unpack .../21-xserver-xorg-video-nvidia-535_535.154.05-0ubuntu0.22.04.1_amd64.deb ...
Unpacking xserver-xorg-video-nvidia-535 (535.154.05-0ubuntu0.22.04.1) ...
Selecting previously unselected package nvidia-driver-535.
Preparing to unpack .../22-nvidia-driver-535_535.154.05-0ubuntu0.22.04.1_amd64.deb ...
Unpacking nvidia-driver-535 (535.154.05-0ubuntu0.22.04.1) ...
Setting up nvidia-firmware-535-535.154.05 (535.154.05-0ubuntu0.22.04.1) ...
Setting up libnvidia-fbc1-535:amd64 (535.154.05-0ubuntu0.22.04.1) ...
Setting up libnvidia-fbc1-535:i386 (535.154.05-0ubuntu0.22.04.1) ...
Setting up nvidia-kernel-common-535 (535.154.05-0ubuntu0.22.04.1) ...
update-initramfs: deferring update (trigger activated)
Created symlink /etc/systemd/system/systemd-hibernate.service.wants/nvidia-hibernate.service → /lib/systemd/system/nvidia-hibernate.service.
Created symlink /etc/systemd/system/systemd-suspend.service.wants/nvidia-resume.service → /lib/systemd/system/nvidia-resume.service.
Created symlink /etc/systemd/system/systemd-hibernate.service.wants/nvidia-resume.service → /lib/systemd/system/nvidia-resume.service.
Created symlink /etc/systemd/system/systemd-suspend.service.wants/nvidia-suspend.service → /lib/systemd/system/nvidia-suspend.service.
Setting up libnvidia-common-535 (535.154.05-0ubuntu0.22.04.1) ...
Setting up libnvidia-extra-535:amd64 (535.154.05-0ubuntu0.22.04.1) ...
Setting up libnvidia-cfg1-535:amd64 (535.154.05-0ubuntu0.22.04.1) ...
Setting up nvidia-kernel-source-535 (535.154.05-0ubuntu0.22.04.1) ...
Setting up libnvidia-gl-535:amd64 (535.154.05-0ubuntu0.22.04.1) ...
Setting up libnvidia-gl-535:i386 (535.154.05-0ubuntu0.22.04.1) ...
Setting up libnvidia-compute-535:amd64 (535.154.05-0ubuntu0.22.04.1) ...
Setting up libnvidia-compute-535:i386 (535.154.05-0ubuntu0.22.04.1) ...
Setting up linux-objects-nvidia-535-5.15.0-91-generic (5.15.0-91.101+2) ...
Setting up nvidia-utils-535 (535.154.05-0ubuntu0.22.04.1) ...
Setting up nvidia-compute-utils-535 (535.154.05-0ubuntu0.22.04.1) ...
Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory
Adding system user `nvidia-persistenced' (UID 117) ...
Adding new group `nvidia-persistenced' (GID 135) ...
Adding new user `nvidia-persistenced' (UID 117) with group `nvidia-persistenced' ...
Not creating home directory `/nonexistent'.
Setting up linux-modules-nvidia-535-5.15.0-91-generic (5.15.0-91.101+2) ...
linux-image-nvidia-5.15.0-91-generic: constructing .ko files
nvidia-drm.ko: OK
nvidia-modeset.ko: OK
nvidia-peermem.ko: OK
nvidia-uvm.ko: OK
nvidia.ko: OK
Setting up libnvidia-decode-535:amd64 (535.154.05-0ubuntu0.22.04.1) ...
Setting up libnvidia-decode-535:i386 (535.154.05-0ubuntu0.22.04.1) ...
Setting up xserver-xorg-video-nvidia-535 (535.154.05-0ubuntu0.22.04.1) ...
Setting up linux-modules-nvidia-535-generic (5.15.0-91.101+2) ...
Setting up libnvidia-encode-535:amd64 (535.154.05-0ubuntu0.22.04.1) ...
Setting up libnvidia-encode-535:i386 (535.154.05-0ubuntu0.22.04.1) ...
Setting up nvidia-driver-535 (535.154.05-0ubuntu0.22.04.1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-5.15.0-91-generic
Processing triggers for linux-image-5.15.0-91-generic (5.15.0-91.101) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.15.0-91-generic
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.15.0-91-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-91-generic
Found initrd image: /boot/initrd.img-5.15.0-91-generic
Found linux image: /boot/vmlinuz-5.15.0-43-generic
Found initrd image: /boot/initrd.img-5.15.0-43-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
Post Reply