View previous topic :: View next topic |
Author |
Message |
picarica Apprentice
Joined: 11 Aug 2018 Posts: 296
|
Posted: Thu Mar 21, 2024 10:15 am Post subject: lpci -k using nouvea driver even when |
|
|
Code: |
04:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Quadro K2200] (rev a2)
Subsystem: Hewlett-Packard Company GM107GL [Quadro K2200]
Kernel driver in use: nouveau
Kernel modules: nouveau, nvidia_drm, nvidia
|
so if i understand correctly my nvidia driver is not being used, i use dist-bin kernel, i did not rebuild it, but otherwise i followed instrucions, portage wanted me to keep nouveu driver for libdrm not sure why
other i did everything have dist-kernel use flag na modules use flag
Code: |
# NOTE: This stage was built with the bindist Use flag enabled
USE="webp x265 ssh trayicon dolphin lvm grub vdpau nvenc nvidia dbus dist-kernel networkmanager kwallet plymouth display-manager crypt cryptsetup cups bluetooth bluez systemd device-mapper modules dist-kernel -discover -firewall -flatpak -handbook -dvd -vlc -!iwd"
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.utf8
VIDEO_CARDS="nvidia"
ACCEPT_LICENSE="*"
EMERGE_DEFAULT_OPTS="--jobs 32"
GENTOO_MIRRORS="https://mirror.wheel.sk/gentoo \
http://mirror.wheel.sk/gentoo"
GRUB_PLATFORMS="efi-64"
|
unsed the modules for dracut, are there other specific setups for bin kernels thata re not in wiki or i missed?
Last edited by picarica on Tue Mar 26, 2024 8:56 am; edited 2 times in total |
|
Back to top |
|
|
logrusx Veteran
Joined: 22 Feb 2018 Posts: 1694
|
Posted: Thu Mar 21, 2024 10:34 am Post subject: |
|
|
picarica wrote: | portage wanted me to keep nouveu driver for libdrm not sure why
|
Perhaps you forgot to remove nouveau from VIDEO_CARDS, you set it manually for libdrm in package.use or you didn't run full world update with --changed-use or you need to manually rebuild libdrm (with --oneshot).
You also need to blacklist the nouveau kernel module but I vaguely remember nvidia driver should have that as the first non-commented line in /etc/modprobe.d/nvidia.conf
Best Regards,
Georgi |
|
Back to top |
|
|
picarica Apprentice
Joined: 11 Aug 2018 Posts: 296
|
Posted: Thu Mar 21, 2024 11:04 am Post subject: |
|
|
logrusx wrote: | picarica wrote: | portage wanted me to keep nouveu driver for libdrm not sure why
|
Perhaps you forgot to remove nouveau from VIDEO_CARDS, you set it manually for libdrm in package.use or you didn't run full world update with --changed-use or you need to manually rebuild libdrm (with --oneshot).
You also need to blacklist the nouveau kernel module but I vaguely remember nvidia driver should have that as the first non-commented line in /etc/modprobe.d/nvidia.conf
Best Regards,
Georgi |
well in packa use i have only
Code: |
sys-kernel/installkernel dracut grub
# required by net-im/telegram-desktop-4.15.0::gentoo
# required by telegram-desktop (argument)
>=media-video/ffmpeg-6.0.1-r2 opus vpx
# required by dev-libs/libayatana-appindicator-0.5.92::gentoo
# required by net-im/whatsapp-for-linux-1.6.2::guru
# required by net-im/whatsapp-for-linux (argument)
>=dev-libs/libdbusmenu-16.04.0-r2 gtk3
# required by www-client/firefox-115.8.0::gentoo[system-libvpx]
# required by firefox (argument)
>=media-libs/libvpx-1.13.1-r1 postproc
and this
# required by games-util/steam-launcher-1.0.0.79::steam-overlay[video_cards_nvidia]
# required by @selected
# required by @world (argument)
>=x11-libs/libvdpau-1.5 abi_x86_32
# required by games-util/steam-launcher-1.0.0.79::steam-overlay[video_cards_nvidia]
# required by @selected
# required by @world (argument)
>=x11-drivers/nvidia-drivers-535.161.07 abi_x86_32
# required by x11-drivers/xf86-video-nouveau-1.0.17::gentoo
# required by @preserved-rebuild (argument)
>=x11-libs/libdrm-2.4.120 video_cards_nouveau
|
because portage requested it and it wants 32 bit nvidia drivers for steam i guess ?
and well now in video cards i have nvidia only
and you are right about blacklisting nouvaer driver i checked and it is blacklisted in first line
and i tried remergin it without nouveu use flag but it wants to merge it back again, not sure why
Code: |
sudo emerge -a1v libdrm
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 6.39 s (backtrack: 0/20).
[ebuild R ] x11-libs/libdrm-2.4.120::gentoo USE="udev -test -tools -valgrind" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="-amdgpu (-exynos) (-freedreno) -intel -nouveau* (-omap) -radeon (-tegra) (-vc4) (-vivante) -vmware" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB
Would you like to merge these packages? [Yes/No] y
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) x11-libs/libdrm-2.4.120::gentoo
>>> Installing (1 of 1) x11-libs/libdrm-2.4.120::gentoo
>>> Completed (1 of 1) x11-libs/libdrm-2.4.120::gentoo
>>> Jobs: 1 of 1 complete Load avg: 4.18, 1.88, 3.62
* GNU info directory index is up-to-date.
!!! existing preserved libs:
>>> package: x11-libs/libdrm-2.4.120
* - /usr/lib64/libdrm_nouveau.so.2
* - /usr/lib64/libdrm_nouveau.so.2.0.0
* used by /usr/lib64/xorg/modules/drivers/nouveau_drv.so (x11-drivers/xf86-video-nouveau-1.0.17)
Use emerge @preserved-rebuild to rebuild packages using these libraries
[bucek@gentoo-work ~/downs]
$ emerge @preserved-rebuild
emerge: superuser access is required
[bucek@gentoo-work ~/downs]
$ sudo emerge -a @preserved-rebuild
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 7.61 s (backtrack: 0/20).
[ebuild R ] x11-libs/libdrm-2.4.120 VIDEO_CARDS="nouveau*"
[ebuild R ] x11-drivers/xf86-video-nouveau-1.0.17
The following USE changes are necessary to proceed:
(see "package.use" in the portage(5) man page for more details)
# required by x11-drivers/xf86-video-nouveau-1.0.17::gentoo
# required by @preserved-rebuild (argument)
>=x11-libs/libdrm-2.4.120 video_cards_nouveau
Would you like to add these changes to your config files? [Yes/No] |
|
|
Back to top |
|
|
wjb l33t
Joined: 10 Jul 2005 Posts: 612 Location: Fife, Scotland
|
Posted: Thu Mar 21, 2024 12:23 pm Post subject: |
|
|
This says it thinks VIDEO_CARDS is nouveau Quote: | [ebuild R ] x11-libs/libdrm-2.4.120 VIDEO_CARDS="nouveau*" |
What does "emerge --info" say VIDEO_CARDS is?
Have you perhaps got multiple definitions of VIDEO_CARDS=...? |
|
Back to top |
|
|
picarica Apprentice
Joined: 11 Aug 2018 Posts: 296
|
Posted: Thu Mar 21, 2024 12:57 pm Post subject: |
|
|
wjb wrote: | This says it thinks VIDEO_CARDS is nouveau Quote: | [ebuild R ] x11-libs/libdrm-2.4.120 VIDEO_CARDS="nouveau*" |
What does "emerge --info" say VIDEO_CARDS is?
Have you perhaps got multiple definitions of VIDEO_CARDS=...? |
well i had one in package use but removed it, but it still wants t teh nouveau, i thin it only shows that beacuse it wants it to be like that
Code: |
emerge --info | grep VIDEO
USE="X a52 aac acl acpi activities alsa amd64 bluetooth bluez branding bzip2 cairo cdda cdr cli crypt cryptsetup cups dbus declarative device-mapper display-manager dist-kernel dolphin dri dts dvdr encode exif flac fortran gdbm gif gpm grub gtk gui iconv icu ipv6 jpeg kde kwallet lcms libnotify libtirpc lvm mad mng modules mp3 mp4 mpeg multilib ncurses networkmanager nls nvenc nvidia ogg opengl openmp pam pango pcre pdf pipewire plasma plymouth png policykit ppds pulseaudio qml qt5 readline screencast sdl seccomp semantic-desktop sound spell ssh ssl startup-notification svg systemd test-rust tiff trayicon truetype udev udisks unicode upower usb vdpau vorbis vulkan wayland webp widgets wxwidgets x264 x265 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
|
it shows nouveu because it wants me to add ti config files?
Code: | [ebuild R ] x11-libs/libdrm-2.4.120 VIDEO_CARDS="nouveau*"
[ebuild R ] x11-drivers/xf86-video-nouveau-1.0.17
The following USE changes are necessary to proceed:
(see "package.use" in the portage(5) man page for more details)
# required by x11-drivers/xf86-video-nouveau-1.0.17::gentoo
# required by @preserved-rebuild (argument)
>=x11-libs/libdrm-2.4.120 video_cards_nouveau
Would you like to add these changes to your config files? [Yes/No]
|
|
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1446 Location: Germany
|
|
Back to top |
|
|
picarica Apprentice
Joined: 11 Aug 2018 Posts: 296
|
Posted: Thu Mar 21, 2024 1:58 pm Post subject: |
|
|
Banana wrote: | go to /etc/portage and do a grep -r VIDEO_CARDS .
It looks like you have multiple VIDEO_CARDS somewhere. |
i dont, i am real with you, this is fresh install it only want to pull nouveu wehn emergein @preserved_modules but not when rebuilding @world set with newuse and update
Code: |
[root@gentoo-work ~]
# grep -r VIDEO_CARDS .
[root@gentoo-work ~]
# grep -r VIDEO_CARDS .
[root@gentoo-work ~]
(reverse-i-search)`': ^C
[root@gentoo-work ~]
# grep -rnw '.' -e 'VIDEO_CARDS'
[root@gentoo-work ~]
|
|
|
Back to top |
|
|
logrusx Veteran
Joined: 22 Feb 2018 Posts: 1694
|
Posted: Thu Mar 21, 2024 2:44 pm Post subject: |
|
|
Update world and preserved libs will go away.
Best Regards,
Georgi |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21867
|
Posted: Thu Mar 21, 2024 2:49 pm Post subject: |
|
|
According to the output shown, OP presently has =x11-drivers/xf86-video-nouveau-1.0.17 installed: Code: | [ebuild R ] x11-drivers/xf86-video-nouveau-1.0.17 | According to the output shown, that package requires USE=video_cards_nouveau on libdrm: Code: | The following USE changes are necessary to proceed:
(see "package.use" in the portage(5) man page for more details)
# required by x11-drivers/xf86-video-nouveau-1.0.17::gentoo
# required by @preserved-rebuild (argument)
>=x11-libs/libdrm-2.4.120 video_cards_nouveau | Therefore, if OP seeks to disable nouveau (including all USE flags referencing it), all of the following are required:- /etc/portage/make.conf VIDEO_CARDS must be set and must not mention nouveau. I think this is satisfied as-is.
- /etc/portage/package.use must not enable USE=video_cards_nouveau on any package.
- Package x11-drivers/xf86-video-nouveau must not be installed. This can be removed with emerge --ask --depclean --verbose x11-drivers/xf86-video-nouveau, if all other requirements for removing it have been met.
|
|
Back to top |
|
|
wjb l33t
Joined: 10 Jul 2005 Posts: 612 Location: Fife, Scotland
|
Posted: Thu Mar 21, 2024 5:45 pm Post subject: |
|
|
Yep, uninstall xf86-video-nouveau |
|
Back to top |
|
|
picarica Apprentice
Joined: 11 Aug 2018 Posts: 296
|
Posted: Fri Mar 22, 2024 10:55 am Post subject: |
|
|
Hu wrote: | According to the output shown, OP presently has =x11-drivers/xf86-video-nouveau-1.0.17 installed: Code: | [ebuild R ] x11-drivers/xf86-video-nouveau-1.0.17 | According to the output shown, that package requires USE=video_cards_nouveau on libdrm: Code: | The following USE changes are necessary to proceed:
(see "package.use" in the portage(5) man page for more details)
# required by x11-drivers/xf86-video-nouveau-1.0.17::gentoo
# required by @preserved-rebuild (argument)
>=x11-libs/libdrm-2.4.120 video_cards_nouveau | Therefore, if OP seeks to disable nouveau (including all USE flags referencing it), all of the following are required:- /etc/portage/make.conf VIDEO_CARDS must be set and must not mention nouveau. I think this is satisfied as-is.
- /etc/portage/package.use must not enable USE=video_cards_nouveau on any package.
- Package x11-drivers/xf86-video-nouveau must not be installed. This can be removed with emerge --ask --depclean --verbose x11-drivers/xf86-video-nouveau, if all other requirements for removing it have been met.
|
something similar helped, mergin @world didnt worked nor depclean, but after removing those drivers forcfully
sudo emerge -aC xf86-video-nouveau
suddenyl world and libdrm didnt pulled nouveau so solved i guess? not sure what caused it but forcefully uninstaling worked |
|
Back to top |
|
|
logrusx Veteran
Joined: 22 Feb 2018 Posts: 1694
|
Posted: Fri Mar 22, 2024 12:56 pm Post subject: |
|
|
picarica wrote: | but after removing those drivers forcfully
sudo emerge -aC xf86-video-nouveau
suddenyl world and libdrm didnt pulled nouveau so solved i guess? not sure what caused it but forcefully uninstaling worked |
That means you had emerged those without --oneshot and therefore they were ot released for cleaning after they weren't needed anymore. Whenever you run emerge to fix something, you should use --oneshot (-1 for short). That'll prevent it getting recorded in the world file, causing the so called world pollution which will in turn prevent dependencies from getting cleaned up when they are not needed anymore and eventually messing with the dependency resolution afterwards.
As a rule: whenever you run emerge to fix something, --oneshot is almost certainly necessary and whenever you run emerge to explicitly install something, you should not use --oneshot.
Rather than using -C to fix this, you should use --deselect followed by --depclean with either --pretend or --ask, because you naturally want to inspect the output before cleaning something you actually need. If you observe such a case, then emerge --noreplace the atoms you don't want to be cleaned up to get them recorded in the world file.
Best regards,
Georgi |
|
Back to top |
|
|
picarica Apprentice
Joined: 11 Aug 2018 Posts: 296
|
Posted: Mon Mar 25, 2024 8:00 am Post subject: |
|
|
logrusx wrote: | picarica wrote: | but after removing those drivers forcfully
sudo emerge -aC xf86-video-nouveau
suddenyl world and libdrm didnt pulled nouveau so solved i guess? not sure what caused it but forcefully uninstaling worked |
That means you had emerged those without --oneshot and therefore they were ot released for cleaning after they weren't needed anymore. Whenever you run emerge to fix something, you should use --oneshot (-1 for short). That'll prevent it getting recorded in the world file, causing the so called world pollution which will in turn prevent dependencies from getting cleaned up when they are not needed anymore and eventually messing with the dependency resolution afterwards.
As a rule: whenever you run emerge to fix something, --oneshot is almost certainly necessary and whenever you run emerge to explicitly install something, you should not use --oneshot.
Rather than using -C to fix this, you should use --deselect followed by --depclean with either --pretend or --ask, because you naturally want to inspect the output before cleaning something you actually need. If you observe such a case, then emerge --noreplace the atoms you don't want to be cleaned up to get them recorded in the world file.
Best regards,
Georgi |
well i pooped myself beacuse it still loading nouvaeu driver
Code: | 04:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Quadro K2200] (rev a2)
Subsystem: Hewlett-Packard Company GM107GL [Quadro K2200]
Kernel driver in use: nouveau
Kernel modules: nouveau, nvidia_drm, nvidia
|
and i am baffled now nouveu isnt even installed in my system it is being blacklisted by nvidia.conf in modprobe.d
and still
Code: |
lspci -k | grep -3 VGA
Subsystem: Hewlett-Packard Company SAS2308 PCI-Express Fusion-MPT SAS-2
Kernel driver in use: mpt3sas
Kernel modules: mpt3sas
04:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Quadro K2200] (rev a2)
Subsystem: Hewlett-Packard Company GM107GL [Quadro K2200]
Kernel driver in use: nouveau
Kernel modules: nouveau, nvidia_drm, nvidia
|
i even recompiled my kernel again and again
Code: |
emerge --config gentoo-kernel-bin
grub-mkconfig -o /boot/grub/grub.cf
|
is this fine too ?
Code: | cat /etc/dracut.conf.d/nvidia.conf
# Omit the nvidia driver from the ramdisk, to avoid needing to regenerate
# the ramdisk on updates.
omit_drivers+=" nvidia nvidia-drm nvidia-modeset nvidia-uvm " |
smi still not working
Code: | nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running. |
even modprobing doesnt seem to work
Code: |
modprobe nvidia
modprobe: ERROR: could not insert 'nvidia': No such device
|
probably beavuse novueau is still in use and i cannot rmmod novuaeu beacuse its in use :/
also this shows when booting nouvaeu driver loading in, |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21867
|
Posted: Mon Mar 25, 2024 3:10 pm Post subject: |
|
|
You previously removed the user package that supports Nouveau. You have not yet removed the kernel support for Nouveau. That may require a kernel rebuild, if the Nouveau driver is built in. If it is a module, terminating everything that uses it would be sufficient to let you rmmod it. |
|
Back to top |
|
|
picarica Apprentice
Joined: 11 Aug 2018 Posts: 296
|
Posted: Tue Mar 26, 2024 8:01 am Post subject: |
|
|
Hu wrote: | You previously removed the user package that supports Nouveau. You have not yet removed the kernel support for Nouveau. That may require a kernel rebuild, if the Nouveau driver is built in. If it is a module, terminating everything that uses it would be sufficient to let you rmmod it. |
but how do i rebuild -bin gentoo kernel? i thought emerge --config gentoo-kernel-bin is sufficent and to rmmod the kernel module do i have do load into lvie usb to do it ? and chroot into my system or is there easier way? |
|
Back to top |
|
|
picarica Apprentice
Joined: 11 Aug 2018 Posts: 296
|
Posted: Tue Mar 26, 2024 8:56 am Post subject: |
|
|
Well now i booted into recovery mode rmmode nouveau driver and my framebuffer dišsapeared |
|
Back to top |
|
|
picarica Apprentice
Joined: 11 Aug 2018 Posts: 296
|
Posted: Tue Mar 26, 2024 9:03 am Post subject: |
|
|
well i managed to get into GUI and have nviida driver loaded in but the steps are horrible
firstly i boot into recovery mode
enter root password
typed
rmmod nouveau ; modprobe nvidia; modprobe nvidia-drm
after that i had black screen and couldnt see nothing
so i just pressed CTRL+D where my SDDM login screen showed up and here i am writing this into forums |
|
Back to top |
|
|
logrusx Veteran
Joined: 22 Feb 2018 Posts: 1694
|
Posted: Tue Mar 26, 2024 9:19 am Post subject: |
|
|
To prevent nouveau from loading, blacklist it:
Code: | echo nouveau >> /etc/modprobe.d/blacklist.conf |
Although this should be the first non-commented line of nvidia.conf...
p.s. maybe nouveau is in the initramfs and that's why it gets loaded before all those settings are read. See the man page of dracut, I think even for gentoo-kernel-bin the initramfs is still created locally, so you should be able to configure dracut not to include nouveau driver.
Best Regards,
Georgi |
|
Back to top |
|
|
picarica Apprentice
Joined: 11 Aug 2018 Posts: 296
|
Posted: Tue Mar 26, 2024 10:59 am Post subject: |
|
|
logrusx wrote: | To prevent nouveau from loading, blacklist it:
Code: | echo nouveau >> /etc/modprobe.d/blacklist.conf |
Although this should be the first non-commented line of nvidia.conf...
p.s. maybe nouveau is in the initramfs and that's why it gets loaded before all those settings are read. See the man page of dracut, I think even for gentoo-kernel-bin the initramfs is still created locally, so you should be able to configure dracut not to include nouveau driver.
Best Regards,
Georgi |
wel yes nouveau is blackliste by default and the dracut theory seems plausable, but i already have this in dracut config
Code: |
$ sudo cat /etc/dracut.conf.d/nvidia.conf
# Omit the nvidia driver from the ramdisk, to avoid needing to regenerate
# the ramdisk on updates.
omit_drivers+=" nvidia nvidia-drm nvidia-modeset nvidia-uvm "
|
by this step
and now i am not sure if this is correct? |
|
Back to top |
|
|
logrusx Veteran
Joined: 22 Feb 2018 Posts: 1694
|
Posted: Tue Mar 26, 2024 11:16 am Post subject: |
|
|
picarica wrote: | logrusx wrote: | To prevent nouveau from loading, blacklist it:
Code: | echo nouveau >> /etc/modprobe.d/blacklist.conf |
Although this should be the first non-commented line of nvidia.conf...
p.s. maybe nouveau is in the initramfs and that's why it gets loaded before all those settings are read. See the man page of dracut, I think even for gentoo-kernel-bin the initramfs is still created locally, so you should be able to configure dracut not to include nouveau driver.
Best Regards,
Georgi |
wel yes nouveau is blackliste by default and the dracut theory seems plausable, but i already have this in dracut config
Code: |
$ sudo cat /etc/dracut.conf.d/nvidia.conf
# Omit the nvidia driver from the ramdisk, to avoid needing to regenerate
# the ramdisk on updates.
omit_drivers+=" nvidia nvidia-drm nvidia-modeset nvidia-uvm "
|
by this step
and now i am not sure if this is correct? |
That cannot prevent nouveau from being loaded. Maybe add it there too. I'm not very familiar with that stuff.
When you install gentoo-kernel-bin do you see the output of dracut? If so, do you see it including nouveau?
There is a command that can list the contents of initramfs too. It's lsinitrd and is part of dracut.
Best Regards,
Georgi
Best Regards,
Georgi |
|
Back to top |
|
|
picarica Apprentice
Joined: 11 Aug 2018 Posts: 296
|
|
Back to top |
|
|
picarica Apprentice
Joined: 11 Aug 2018 Posts: 296
|
|
Back to top |
|
|
logrusx Veteran
Joined: 22 Feb 2018 Posts: 1694
|
Posted: Tue Mar 26, 2024 1:01 pm Post subject: |
|
|
picarica wrote: | https://bugs.gentoo.org/926612
could this issue be related? had similar error |
Doesn't seem even remotely related.
picarica wrote: | wel yes nouveau is blackliste by default and the dracut theory seems plausable, but i already have this in dracut config
Code: |
$ sudo cat /etc/dracut.conf.d/nvidia.conf
# Omit the nvidia driver from the ramdisk, to avoid needing to regenerate
# the ramdisk on updates.
omit_drivers+=" nvidia nvidia-drm nvidia-modeset nvidia-uvm "
|
by this step
|
I told you already, this will not prevent nouveau from being included in the initramfs and getting loaded. In the same time nvidia does not usually end up there unless you make it so. And in fact you can't install the driver before you install the kernel. Which leads me to another clue - nvidia graphics driver needs to be installed for every new kernel, did you do that for the current version of gentoo-kernel-bin you're using? Also I'm not sure if it's preserved between reinstalls of the same kernel but I think it should be.
Well here's what both those outputs contain:
From lsinitrd:
Code: | drwxr-xr-x 2 root root 0 Mar 25 16:46 usr/lib/modules/6.6.21-gentoo-dist/kernel/drivers/gpu/drm/nouveau
-rw-r--r-- 1 root root 6341044 Mar 25 16:45 usr/lib/modules/6.6.21-gentoo-dist/kernel/drivers/gpu/drm/nouveau/nouveau.ko |
From kernel emerge log:
Code: | dracut[D]: drwxr-xr-x 2 root root 0 Mar 26 12:42 usr/lib/modules/6.6.21-gentoo-dist/kernel/drivers/gpu/drm/nouveau
dracut[D]: -rw-r--r-- 1 root root 6341044 Mar 26 12:41 usr/lib/modules/6.6.21-gentoo-dist/kernel/drivers/gpu/drm/nouveau/nouveau.ko |
Add nouveau to omit_drivers. The other way would be to add /etc/modprobe.d but I don't know how that would work out.
I'm not sure what the sentence about a lot of nvidia drivers getting loaded mean. There's plenty of nvidia stuff not related to the graphics driver, also there's firmware.
Best Regards,
Georgi |
|
Back to top |
|
|
picarica Apprentice
Joined: 11 Aug 2018 Posts: 296
|
Posted: Wed Mar 27, 2024 7:01 am Post subject: |
|
|
logrusx wrote: | picarica wrote: | https://bugs.gentoo.org/926612
could this issue be related? had similar error |
Doesn't seem even remotely related.
picarica wrote: | wel yes nouveau is blackliste by default and the dracut theory seems plausable, but i already have this in dracut config
Code: |
$ sudo cat /etc/dracut.conf.d/nvidia.conf
# Omit the nvidia driver from the ramdisk, to avoid needing to regenerate
# the ramdisk on updates.
omit_drivers+=" nvidia nvidia-drm nvidia-modeset nvidia-uvm "
|
by this step
|
I told you already, this will not prevent nouveau from being included in the initramfs and getting loaded. In the same time nvidia does not usually end up there unless you make it so. And in fact you can't install the driver before you install the kernel. Which leads me to another clue - nvidia graphics driver needs to be installed for every new kernel, did you do that for the current version of gentoo-kernel-bin you're using? Also I'm not sure if it's preserved between reinstalls of the same kernel but I think it should be.
Well here's what both those outputs contain:
From lsinitrd:
Code: | drwxr-xr-x 2 root root 0 Mar 25 16:46 usr/lib/modules/6.6.21-gentoo-dist/kernel/drivers/gpu/drm/nouveau
-rw-r--r-- 1 root root 6341044 Mar 25 16:45 usr/lib/modules/6.6.21-gentoo-dist/kernel/drivers/gpu/drm/nouveau/nouveau.ko |
From kernel emerge log:
Code: | dracut[D]: drwxr-xr-x 2 root root 0 Mar 26 12:42 usr/lib/modules/6.6.21-gentoo-dist/kernel/drivers/gpu/drm/nouveau
dracut[D]: -rw-r--r-- 1 root root 6341044 Mar 26 12:41 usr/lib/modules/6.6.21-gentoo-dist/kernel/drivers/gpu/drm/nouveau/nouveau.ko |
Add nouveau to omit_drivers. The other way would be to add /etc/modprobe.d but I don't know how that would work out.
I'm not sure what the sentence about a lot of nvidia drivers getting loaded mean. There's plenty of nvidia stuff not related to the graphics driver, also there's firmware.
Best Regards,
Georgi |
well i gues i found out, i tired doing this to dracut.conf
Code: | #omit_drivers+=" nvidia nvidia-drm nvidia-modeset nvidia-uvm "
omit_drivers+="nouveau"
|
which finally !!! loads in nvidia drivers
Code: |
04:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Quadro K2200] (rev a2)
Subsystem: Hewlett-Packard Company GM107GL [Quadro K2200]
Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidia
|
but well nouvaeu is still in modules but i guess that doesnt matter?, i tested cuda and it works except that new bug that is happening
and i have no idea why this works, why is it in nvidia-drivers wiki to do this if this breaks it ? very confused |
|
Back to top |
|
|
logrusx Veteran
Joined: 22 Feb 2018 Posts: 1694
|
Posted: Wed Mar 27, 2024 7:29 am Post subject: |
|
|
picarica wrote: |
well i gues i found out, i tired doing this to dracut.conf
Code: | #omit_drivers+=" nvidia nvidia-drm nvidia-modeset nvidia-uvm "
omit_drivers+="nouveau"
|
which finally !!! loads in nvidia drivers
Code: |
04:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Quadro K2200] (rev a2)
Subsystem: Hewlett-Packard Company GM107GL [Quadro K2200]
Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidia
|
but well nouvaeu is still in modules but i guess that doesnt matter?, i tested cuda and it works except that new bug that is happening
and i have no idea why this works, why is it in nvidia-drivers wiki to do this if this breaks it ? very confused |
I expected it to be there too, that's why I wasn't sure about it and didn't suggest it straight after identifying the intramfs as possible cause.
Best Regards,
Georgi |
|
Back to top |
|
|
|