You are not logged in.

#1 2024-01-10 17:21:08

jojo06
Member
Registered: 2023-11-04
Posts: 366

[SOLVED]Nvidia GPU integrity check for Hyprland

I was uninstalled nvidia for sway but now im using hyprland. Not intentionally but in my neofetch my GPU appears. Hyprland says its possible to launch hyprland with nvidia gpu but make sure, you follow the wiki and made it right. I would give it a try but if its done by itself, dont want to break it. And want to check the integrity if its wrong/problematic I need to uninstall or repair it.

pacman -Qs nvidia

local/ffnvcodec-headers 12.1.14.0-1
    FFmpeg version of headers required to interface with Nvidias codec APIs
local/libvdpau 1.5-2
    Nvidia VDPAU library

neofetch

GPU: NVIDIA GeForce GTX 1050 Ti
Resolution: 1920x1080

Last edited by jojo06 (2024-01-11 13:28:32)

Offline

#2 2024-01-10 18:45:47

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [SOLVED]Nvidia GPU integrity check for Hyprland

neofetch just tells you that nvidia exists. With those packages (..unless you installed from the nvidia website which you shouldn't' do) the nvidia card is likely not going to do much (unless it's the only GPU and you're actually running it on nouveau now).

If you want to set it up so that it's possible to be used follow https://wiki.archlinux.org/title/NVIDIA#Installation and add

nvidia-drm.modeset=1

to your kernel parameters.

Offline

#3 2024-01-10 19:13:57

jojo06
Member
Registered: 2023-11-04
Posts: 366

Re: [SOLVED]Nvidia GPU integrity check for Hyprland

Well, i have one GPU, before than it and even now (it appears so) im using nouveau. I dont have conf file in /etc/X11/xorg.conf.d and not gonna create because will go for Xwayland. And i guess its not necessary for now.

nvidia-settings < do i need to use this for configurate automaticly ? I must be misunderstood the wiki says we can either use grub or mkinitcpio to load nvidia. I thought we need both. Dont i need to add `splash` to the GRUB_CMDLINE_LINUX_DEFAULT ?

Forgive me for asking this but instead of MODULES() array descriped in the wiki im all set with HOOKS=() so is it okay to go on and add to the HOOKS or should i add to the MODULES or more than that, edit/move all from HOOKS to MODULES ?

And its so close to hyprland wiki descripton. But in there it says add to the MODULES like this: `nvidia nvidia_modeset nvidia_uvm nvidia_drm`

And it says i need to create nvidia.conf and add `nvidia-drm.modeset=1` that one to it. Which way should i follow ?:
https://wiki.hyprland.org/hyprland-wiki/pages/Nvidia/

Offline

#4 2024-01-10 20:34:00

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

Re: [SOLVED]Nvidia GPU integrity check for Hyprland

You follow V1del's advice and https://wiki.archlinux.org/title/NVIDIA#Installation
The "nvidia-drm.modeset=1" is relevant for wayland support and to suppress the simpledrm device (the latter is *only* achived through the kernel commandline)
And you're not running nvidia-settings for hyprland at all, it's mostly an X11 tool.

Online

#5 2024-01-10 20:52:21

jojo06
Member
Registered: 2023-11-04
Posts: 366

Re: [SOLVED]Nvidia GPU integrity check for Hyprland

Sure thing. Removed kms from hooks and added `nvidia-drm.modeset=1` to modules and nothing else. So its general nvidia setup, how can i check is it working proplery for hyprland ?

Offline

#6 2024-01-10 20:53:50

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

Re: [SOLVED]Nvidia GPU integrity check for Hyprland

Does hyprland start?
Does "lsmod | grep nvidia" say you're loading the nvidia modules?

Online

#7 2024-01-10 21:58:03

jojo06
Member
Registered: 2023-11-04
Posts: 366

Re: [SOLVED]Nvidia GPU integrity check for Hyprland

`lsmod | grep nvidia` return nothing.

Hyprland starts yes, but with a few unwanted warning/errors (that might be not related)

[LOG] GPU information:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] [10de:1c82] (rev a1) (prog-if 00 [VGA controller])

[LOG] Creating the CHyprError!

/bin/sh: line 1: Pictures/bg.jpg: Permission denied --it still shows up my wallpaper--
Failed to acquire service name: File exists
Is a notification daemon already running?
2024-01-10 13:51:06 - [swaybg-1.2.0/main.c:293] Found config * for output WL-1 ((null))
[2024-01-10 13:51:06.748] [info] Using configuration file /home/guns/.config/waybar/config
[2024-01-10 13:51:06.750] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
[2024-01-10 13:51:06.750] [info] Using CSS file /home/guns/.config/waybar/style.css
basic_string::_M_create
[2024-01-10 13:51:06.755] [warning] Mapping is not an object
[2024-01-10 13:51:06.755] [info] Hyprland IPC starting
[2024-01-10 13:51:06.769] [warning] module sway/mode: Disabling module "sway/mode", Socket path is empty
[2024-01-10 13:51:06.780] [warning] module sway/scratchpad: Disabling module "sway/scratchpad", Socket path is empty
[2024-01-10 13:51:06.785] [warning] Waybar has been built without rfkill support.
[2024-01-10 13:51:06.785] [warning] module backlight: Disabling module "backlight", No backlight found
[2024-01-10 13:51:06.785] [warning] Can't open /dev/input/event0 (are you in the input group?): EACCES Permission denied
...
[2024-01-10 13:51:06.786] [warning] Can't open /dev/input/event15 (are you in the input group?): EACCES Permission denied
[2024-01-10 13:51:06.786] [error] media stopped unexpectedly, is it endless?
[2024-01-10 13:51:06.786] [warning] module keyboard-state: Disabling module "keyboard-state", Failed to find keyboard device: EACCES Permission denied
[2024-01-10 13:51:06.797] [warning] module sway/language: Disabling module "sway/language", Socket path is empty
[2024-01-10 13:51:06.797] [warning] No batteries.
[2024-01-10 13:51:06.797] [warning] No battery named BAT2
[2024-01-10 13:51:06.915] [info] Bar configured (width: 549, height: 30) for output: WL-1
[2024-01-10 13:51:06.915] [info] Bar configured (width: 569, height: 30) for output: WL-1
[2024-01-10 13:51:06.915] [error] Item '': No icon name or pixmap given.
[2024-01-10 13:51:06.956] [info] Bar configured (width: 585, height: 30) for output: WL-1
[2024-01-10 13:51:07.786] [error] mpd: Failed to connect to MPD: Connection refused
[2024-01-10 13:51:09.790] [error] mpd: Failed to connect to MPD: Connection refused
[2024-01-10 13:51:11.793] [error] mpd: Failed to connect to MPD: Connection refused
[2024-01-10 13:51:13.795] [error] mpd: Failed to connect to MPD: Connection refused
[2024-01-10 13:51:15.799] [error] mpd: Failed to connect to MPD: Connection refused
^C[2024-01-10 13:51:16.112] [info] Quitting.

Offline

#8 2024-01-10 21:59:43

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

Re: [SOLVED]Nvidia GPU integrity check for Hyprland

`lsmod | grep nvidia` return nothing.

Means you're not loading the nvidia driver.
Please post your complete system journal for the boot:

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

Online

#9 2024-01-10 22:35:32

jojo06
Member
Registered: 2023-11-04
Posts: 366

Re: [SOLVED]Nvidia GPU integrity check for Hyprland

I did not reboot.
Just for knowledge; why do we are not use `grep nvidia` and/or `grep nouevau` ? Its too many lines and i might found it:

Jan 10 13:51:06 roses kernel: nvidia: loading out-of-tree module taints kernel.
Jan 10 13:51:06 roses kernel: nvidia: module license 'NVIDIA' taints kernel.
Jan 10 13:51:06 roses kernel: Disabling lock debugging due to kernel taint
Jan 10 13:51:06 roses kernel: nvidia: module verification failed: signature and/or required key missing - tainting >
Jan 10 13:51:06 roses kernel: nvidia: module license taints kernel.
Jan 10 13:51:06 roses kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 234
Jan 10 13:51:06 roses kernel: NVRM: The NVIDIA probe routine was not called for 1 device(s).
Jan 10 13:51:06 roses kernel: NVRM: This can occur when a driver such as: 
                              NVRM: nouveau, rivafb, nvidiafb or rivatv 
                              NVRM: was loaded and obtained ownership of the NVIDIA device(s).
Jan 10 13:51:06 roses kernel: NVRM: Try unloading the conflicting kernel module (and/or
                              NVRM: reconfigure your kernel without the conflicting
                              NVRM: driver(s)), then try loading the NVIDIA kernel module
                              NVRM: again.
Jan 10 13:51:06 roses kernel: NVRM: No NVIDIA devices probed.
Jan 10 13:51:06 roses kernel: nvidia-nvlink: Unregistered Nvlink Core, major device number 234
Jan 10 13:51:06 roses (udev-worker)[87289]: nvidia: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | cut -d \ -f 1) 255'' failed with exit code 1.
Jan 10 13:51:06 roses (udev-worker)[87289]: nvidia: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | cut -d \ -f 1) 255'' failed with exit code 1.

I was looking to also get into it and learn each time. Now I saw some, dhcp and ip stuff. So im kinda worried about sharing it, thats why Im trying to avoid sharing. Not trying to be smartass, dont get me wrong.

Offline

#10 2024-01-11 00:08:39

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [SOLVED]Nvidia GPU integrity check for Hyprland

There's nothing generally private in there. What exactly did you install? nvidia and nvidia-utils? Did you regenerate your mkinitcpio initramfs images after removing the KMS hook?

Offline

#11 2024-01-11 08:50:24

jojo06
Member
Registered: 2023-11-04
Posts: 366

Re: [SOLVED]Nvidia GPU integrity check for Hyprland

V1del wrote:

There's nothing generally private in there. What exactly did you install? nvidia and nvidia-utils? Did you regenerate your mkinitcpio initramfs images after removing the KMS hook?

Alright, good to know. I installed nvidia. But when I check with `pacman -Ss nvdia-utils` its also installed for dependencies I guess. I was not because you didnt mentioned, for this setup i thought we will not gonna do it.

`sudo  mkinitcpio -P:

==> ERROR: module not found: 'nvidia_drm.modeset=1'

mkinitcpio.conf

MODULES=(nvidia-drm.modeset=1)
HOOKS=(base udev autodetect modconf keyboard keymap block lvm2 filesystems fsck)

Offline

#12 2024-01-11 09:15:36

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

Re: [SOLVED]Nvidia GPU integrity check for Hyprland

Remove that nonsense from the MODULES array and read https://wiki.archlinux.org/title/Kernel_parameters (again)

The reason why we're asking for the full journal is because there's no way to know what exactly the problem is gonna be and it's tedious to ask you for a dozen random greps, possibly on a moving target.

Online

#13 2024-01-11 09:31:28

jojo06
Member
Registered: 2023-11-04
Posts: 366

Re: [SOLVED]Nvidia GPU integrity check for Hyprland

seth wrote:

Remove that nonsense from the MODULES array and read https://wiki.archlinux.org/title/Kernel_parameters (again)

The reason why we're asking for the full journal is because there's no way to know what exactly the problem is gonna be and it's tedious to ask you for a dozen random greps, possibly on a moving target.

Yes, i read it. Now its done. With order: Removed nonsense from MODULES and regenerated the mkinitcpio. Added `splash` to to the `LINUX_DEFAULT` and and regenerated the boot-mkconfig.

And sure thing, if its not private at all: http://0x0.st/HILm.txt

Offline

#14 2024-01-11 09:45:19

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

Re: [SOLVED]Nvidia GPU integrity check for Hyprland

Wtf do you want w/ "splash"? "nvidia-drm.modeset=1" is still the important kernel parameter.

Also neither is in the kernel commandline.
Wtf is "boot-mkconfig"?

Online

#15 2024-01-11 10:22:35

jojo06
Member
Registered: 2023-11-04
Posts: 366

Re: [SOLVED]Nvidia GPU integrity check for Hyprland

Im sorry, in the link it says the `splash` will ad to the LINUX_DEFAULT= section. For `nvidia-drm.modeset=1` i thought thats what `splash` for.

For regenerating boot i use command `sudo grub-mkconfig -o /boot/grub/grub.cfg` as wiki said.

EDIT: Man i must be real cozy. Sorry for all of that. Add the `nvidia-drm.modeset=1` in the `LINUX_DEFAULT` after 'splash' regenerated mkinitcpio and grub and:

lsmod | grep nvidia

guns@roses ~ % lsmod | grep nvidia
nvidia_drm            118784  15
nvidia_modeset       1585152  3 nvidia_drm
nvidia_uvm           3506176  0
nvidia              62390272  95 nvidia_uvm,nvidia_modeset
video                  77824  2 asus_wmi,nvidia_modeset

pacman -Qs nvidia

local/egl-wayland 2:1.1.13-1
    EGLStream-based Wayland external platform
local/ffnvcodec-headers 12.1.14.0-1
    FFmpeg version of headers required to interface with Nvidias codec APIs
local/libvdpau 1.5-2
    Nvidia VDPAU library
local/nvidia 545.29.06-9
    NVIDIA drivers for linux
local/nvidia-utils 545.29.06-1
    NVIDIA drivers utilities

Last edited by jojo06 (2024-01-11 12:05:41)

Offline

Board footer

Powered by FluxBB