It is confusing, because nvidia-smi
doesn’t work at all. It says command not found.
Edit1: Yes, Its not freezing, but I don’t think nvidia is installed, because nvidia-smi
doesn’t work.
It is confusing, because nvidia-smi
doesn’t work at all. It says command not found.
Edit1: Yes, Its not freezing, but I don’t think nvidia is installed, because nvidia-smi
doesn’t work.
I don’t know anything about nvidia-smi. I only know what it shows. The driver is loaded? Before it wasn’t.
I was expecting it to remove all nvidia and run on the open source nouveau. So something still may not be correct.
Check what nvidia packages are installed. Maybe?
pacman -Qi nvidia
pacman -Qi nvidia
error: package 'nvidia' was not found
This is again confusing
Can i just ask a couple things? Do you still have lts kernel installed? Did you install the lts headers also?
yes, sure. I am not using lts kernel because it doesn’t support my wifi driver. This is my linux kernel
Linux gluon-alderlake 6.1.6-arch1-3 #1 SMP PREEMPT_DYNAMIC Mon, 16 Jan 2023 12:51:23 +0000 x86_64 GNU/Linux
Linux headers are also installed.
uname -r
6.1.6-arch1-3
So you don’t have the lts installed? You removed them?
yes. I don’t have the lts installed.
Okay can we confirm this.
cat /etc/kernel/cmdline
cat /etc/kernel/cmdline
nvidia-drm.modeset=1 nvme_load=YES rw root=UUID=325f9be3-ba59-4b33-830f-8570e8c26ea5 ibt=off
This is it
Okay… lets run a test.
nvidia-inst -t
Post the output after running this.
Here it is
nvidia-inst -t
2023-01-19 18:19:48: Info: Running: nvidia-inst v1.9-1
2023-01-19 18:19:48: Info: Command line: nvidia-inst -t
2023-01-19 18:19:48: Info: Selected mode: nvidia
2023-01-19 18:19:50: Note: Kernel parameter 'ibt=off' may be required, see https://wiki.archlinux.org/title/NVIDIA#Installation
NVIDIA card id: 24e0
Fetching driver data from nvidia.com ...
2023-01-19 18:19:53: Info: Installing packages: nvidia-dkms nvidia-utils nvidia-settings nvidia-hook
2023-01-19 18:19:53: Info: Removing packages: xf86-video-nouveau
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMMANDS TO RUN:
pacman -Rs --noconfirm --noprogressbar --nodeps xf86-video-nouveau
pacman -Syuq --noconfirm --noprogressbar --needed nvidia-dkms nvidia-utils nvidia-settings nvidia-hook
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
So it is showing removing Nouveau.
I think you should try running it without prime and see what happens first. Then reboot.
nvidia-inst
Ok, this seems to work,
nvidia-smi
Thu Jan 19 18:25:49 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.78.01 Driver Version: 525.78.01 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:01:00.0 Off | N/A |
| N/A 48C P0 N/A / 115W | 5MiB / 8192MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 736 G /usr/lib/Xorg 4MiB |
+-----------------------------------------------------------------------------+
inxi -Ga
Graphics:
Device-1: Intel Alder Lake-HX GT1 [UHD Graphics 770] vendor: Lenovo
driver: i915 v: kernel arch: Gen-12.2 process: Intel 10nm built: 2021-22+
ports: active: eDP-2 empty: DP-4, DP-5, HDMI-A-2, HDMI-A-3, HDMI-A-4,
HDMI-A-5 bus-ID: 00:02.0 chip-ID: 8086:4688 class-ID: 0300
Device-2: NVIDIA GA104M [Geforce RTX 3070 Ti Laptop GPU] vendor: Lenovo
driver: nvidia v: 525.78.01 alternate: nouveau,nvidia_drm non-free: 525.xx+
status: current (as of 2022-12) arch: Ampere code: GAxxx
process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4 speed: 16 GT/s
lanes: 16 ports: active: none empty: DP-1, DP-2, DP-3, HDMI-A-1, eDP-1
bus-ID: 01:00.0 chip-ID: 10de:24e0 class-ID: 0300
Device-3: Luxvisions Innotech Integrated RGB Camera type: USB
driver: uvcvideo bus-ID: 1-11:7 chip-ID: 30c9:0056 class-ID: fe01
serial: 01.00.00
Display: x11 server: X.Org v: 21.1.6 compositor: xfwm v: 4.18.0 driver: X:
loaded: intel,nvidia unloaded: modesetting alternate: fbdev,nouveau,nv,vesa
dri: i965 gpu: i915 display-ID: :0.0 screens: 1
Screen-1: 0 s-res: 2560x1600 s-dpi: 96 s-size: 677x423mm (26.65x16.65")
s-diag: 798mm (31.43")
Monitor-1: eDP-2 mapped: eDP2 model: BOE Display 0x0a1f built: 2021
res: 2560x1600 hz: 60 dpi: 191 gamma: 1.2 size: 340x210mm (13.39x8.27")
diag: 406mm (16") ratio: 16:10 modes: 2560x1600
API: OpenGL v: 4.6 Mesa 22.3.3 renderer: Mesa Intel UHD Graphics (ADL-S
GT1) direct render: Yes
Edit1: Thanks @ricklinux for having the patience to lead me through.
Okay so maybe it straightened out the installation of nvidia. But not sure where to go with prime from here? Does this laptop have switchable graphics? Have you checked the settings in the UEFI bios screen? It should have maybe switchable, discrete and maybe hybrid?
I do have a switchable graphics. On the UEFI bios I have enabled switchable graphics option.
So i guess see now if this is working properly. I’m not the expert on all these different laptop hardware. I just know how should be some of it on the install side and some hardware side but not everything.
Thanks @ricklinux, I am happy I can experiment with some ML or CUDA codes. Thanks a ton!
Thanks for sticking with it and not giving up too easily.
Let me summarize the solution in total:
ibt=off
is SUPER important to enable using NVIDIA GPUs, credits to @mrvictory .ibt=off
in /etc/kernel/cmdline
and sudo reinstall-kernels
. Then reboot.nvidia-inst -n
nvidia-inst
to cleanly install nvidia drivers and then reboot.This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.