You are not logged in.

#1 2023-09-17 12:52:18

Anony324
Member
Registered: 2023-07-11
Posts: 17

[SOLVED]NVIDIA-SMI has failed because it couldn't communicate with

Hello

I am using GTX 1650 ti and i want to see my GPU usage
I tried using this command

nvidia-smi

My Laptop Details

OS: Arch Linux x86_64
Kernel: 6.5.3-arch1-1
Uptime: 58 mins
Packages: 1314 (pacman), 12 (flatpak)
Shell: zsh 5.9
Resolution: 1920x1080
DE: Plasma 5.27.8
WM: KWin
Terminal: kitty
CPU: Intel i5-10300H (8) @ 4.500GHz
GPU: Intel CometLake-H GT2 [UHD Graphics]
GPU: NVIDIA GeForce GTX 1650 Ti Mobile
Memory: 2301MiB / 7595MiB

pacman -Qs nvidia

local/lib32-nvidia-utils-tkg 535.54.03-247
    NVIDIA driver utilities and libraries for 'nvidia-tkg' (32-bit)
local/lib32-opencl-nvidia-tkg 535.54.03-247
    NVIDIA's OpenCL implemention for 'lib32-nvidia-utils-tkg'
local/libvdpau 1.5-2
    Nvidia VDPAU library
local/nvidia-dkms-tkg 535.54.03-247
    NVIDIA kernel module sources (DKMS)
local/nvidia-egl-wayland-tkg 535.54.03-247
    NVIDIA EGL Wayland library (libnvidia-egl-wayland.so.1.1.11) for 'nvidia-utils-tkg'
local/nvidia-settings-tkg 535.54.03-247
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils-tkg 535.54.03-247
    NVIDIA driver utilities and libraries for 'nvidia-tkg'
local/opencl-nvidia-tkg 535.54.03-247
    NVIDIA's OpenCL implemention for 'nvidia-utils-tkg'

lspci -k | grep -A 2 -E "(VGA|3D)"

00:02.0 VGA compatible controller: Intel Corporation CometLake-H GT2 [UHD Graphics] (rev 05)
    Subsystem: Hewlett-Packard Company CometLake-H GT2 [UHD Graphics]
    Kernel driver in use: i915
--
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] (rev a1)
    Subsystem: Hewlett-Packard Company TU117M [GeForce GTX 1650 Ti Mobile]
    Kernel modules: nouveau

Last edited by Anony324 (2023-09-17 14:23:41)

Offline

#2 2023-09-17 13:03:49

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,333

Re: [SOLVED]NVIDIA-SMI has failed because it couldn't communicate with

Kernel modules: nouveau
ocal/nvidia-dkms-tkg 535.54.03-247
dkms status
pacman -Qs headers

Also https://wiki.archlinux.org/title/NVIDIA#Installation - step #5

Offline

#3 2023-09-17 13:42:18

Anony324
Member
Registered: 2023-07-11
Posts: 17

Re: [SOLVED]NVIDIA-SMI has failed because it couldn't communicate with

dkms status

nvidia/535.54.03: added
v4l2loopback/0.12.7, 6.5.3-arch1-1, x86_64: installed

pacman -Qs headers

local/acl 2.3.1-3
    Access control list utilities, libraries and headers
local/kernel-headers-musl 4.19.88-2
    Linux kernel headers sanitized for use with musl libc
local/libcups 1:2.4.6-1
    OpenPrinting CUPS - client libraries and headers
local/linux-api-headers 6.4-1
    Kernel headers sanitized for use in userspace
local/linux-headers 6.5.3.arch1-1
    Headers and scripts for building modules for the Linux kernel
local/spice-protocol 0.14.4-1
    Headers for SPICE protocol
local/vulkan-headers 1:1.3.264-2 (vulkan-devel)
    Vulkan header files
local/wxwidgets-common 3.2.2.1-2
    Common libraries and headers for wxwidgets
local/xorgproto 2023.2-1
    combined X.Org X11 Protocol headers

and i have tried https://wiki.archlinux.org/title/NVIDIA#Installation step 5 still the same

Last edited by Anony324 (2023-09-17 13:42:49)

Offline

#4 2023-09-17 13:45:32

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,333

Re: [SOLVED]NVIDIA-SMI has failed because it couldn't communicate with

So why's nouveau loaded? What do you mean by "tried"?
Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Offline

#5 2023-09-17 13:58:17

Anony324
Member
Registered: 2023-07-11
Posts: 17

Re: [SOLVED]NVIDIA-SMI has failed because it couldn't communicate with

sudo journalctl -b | curl -F 'file=@-' 0x0.st

http://0x0.st/HOaA.txt


5. Remove kms from the HOOKS array in /etc/mkinitcpio.conf and regenerate the initramfs. This will prevent the initramfs from containing the nouveau module making sure the kernel cannot load it during early boot.
I have tried this step too

Offline

#6 2023-09-17 14:02:06

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,333

Re: [SOLVED]NVIDIA-SMI has failed because it couldn't communicate with

nouveau isn't loaded, neither is nvidia

Sep 17 19:10:10 Akhil kernel: [drm] Initialized simpledrm 1.0.0 20200625 for simple-framebuffer.0 on minor 0
Sep 17 19:10:10 Akhil kernel: simple-framebuffer simple-framebuffer.0: [drm] fb0: simpledrmdrmfb frame buffer device

https://wiki.archlinux.org/title/NVIDIA … de_setting

nvidia/535.54.03: added

But not installed for any kernel, despite the headers being present.
https://wiki.archlinux.org/title/Dynami … ld_modules and post the log if it still fails

Offline

#7 2023-09-17 14:02:30

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: [SOLVED]NVIDIA-SMI has failed because it couldn't communicate with

What, exactly, is nvidia-dkms-tkg? Where did it come from?

Offline

#8 2023-09-17 14:22:21

Anony324
Member
Registered: 2023-07-11
Posts: 17

Re: [SOLVED]NVIDIA-SMI has failed because it couldn't communicate with

Solved thanks

Offline

#9 2023-09-17 14:47:50

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,333

Re: [SOLVED]NVIDIA-SMI has failed because it couldn't communicate with

Are you going to answer Scimmia's question or am I?

---
tvguho.pbz/Sebttvat-Snzvyl/aivqvn-nyy/oybo/znfgre/CXTOHVYQ - vg'f nyfb va gur tnehqn naq raqrnibhe ercbf

Offline

Board footer

Powered by FluxBB