Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem to load nvidia module
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Fulgurance
l33t
l33t


Joined: 15 Feb 2017
Posts: 657

PostPosted: Sat Nov 09, 2019 3:05 pm    Post subject: Problem to load nvidia module Reply with quote

Hello, because now bumblebee is obsolote with new nvidia drivers, i would like to simply use only nvidia card, without power saving.
But i have problem, when openrc start, he complain he don't found nvidia module... But i have installed nvidia driver ...

Emerge info:
Code:
MSI-GS73VR-6RF /home/zohran # emerge --info
Portage 2.3.78 (python 3.6.9-final-0, default/linux/amd64/17.1/no-multilib/hardened/selinux, gcc-9.2.0, glibc-2.29-r6, 5.3.9-gentoo x86_64)
=================================================================
System uname: Linux-5.3.9-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700HQ_CPU_@_2.60GHz-with-gentoo-2.6
KiB Mem:    16280680 total,  14307936 free
KiB Swap:   20971516 total,  20971516 free
Timestamp of repository gentoo: Fri, 08 Nov 2019 16:00:01 +0000
Head commit of repository gentoo: 9fc3790eb50d35f4f1f961d8118396e6a4bf30b7
sh bash 5.0_p11
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          5.0_p11::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.15.5::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo, 1.16.1-r2::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo, 9.2.0-r2::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r6::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake -O2 -pipe -mmovbe -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -mavx2 -maes -mpclmul -mfsgsbase -mrdrnd -mfma -mbmi -mbmi2 -mf16c -mrdseed -madx -mprefetchwt1 -mclflushopt -mxsavec -mxsaves"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=skylake -O2 -pipe -mmovbe -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -mavx2 -maes -mpclmul -mfsgsbase -mrdrnd -mfma -mbmi -mbmi2 -mf16c -mrdseed -madx -mprefetchwt1 -mclflushopt -mxsavec -mxsaves"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=skylake -O2 -pipe -mmovbe -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -mavx2 -maes -mpclmul -mfsgsbase -mrdrnd -mfma -mbmi -mbmi2 -mf16c -mrdseed -madx -mprefetchwt1 -mclflushopt -mxsavec -mxsaves"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=skylake -O2 -pipe -mmovbe -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -mavx2 -maes -mpclmul -mfsgsbase -mrdrnd -mfma -mbmi -mbmi2 -mf16c -mrdseed -madx -mprefetchwt1 -mclflushopt -mxsavec -mxsaves"
GENTOO_MIRRORS="http://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://gentoo.modulix.net/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/ https://mirrors.soeasyto.com/distfiles.gentoo.org/ ftp://mirrors.soeasyto.com/distfiles.gentoo.org/ http://mirrors.soeasyto.com/distfiles.gentoo.org/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr fr_FR"
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl acpi alsa amd64 audit bluetooth bzip2 compat crypt cryptsetup custom-cflags custom-optimization cxx dbus device-mapper dhcpcd dri dri3 elogind experimental ffmpeg git glamor gstreamer hardened iconv initramfs ipv6 jpeg kde kms libtirpc lvm mp3 mp4 ncurses networkmanager nls nptl ogg open_perms opengl openmp pam pcre peer_perms phonon pie png policykit pulseaudio readline seccomp selinux semantic-desktop split-usr ssl ssp tiff ubac udev udisks unconfined unicode uvm v4l vaapi vdpau vorbis vulkan wayland wifi wireless x264 xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 ssse3 sse4_1 sse4_2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="fr fr-FR" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Nvidia version:

Code:
MSI-GS73VR-6RF /home/zohran # eix nvidia-drivers
[I] x11-drivers/nvidia-drivers
     Available versions:  340.107-r1(0/340)^mtd 390.129(0/390)^mtd 430.50(0/430)^mtd (~)430.64(0/430)^mtd 435.21(0/435)^mtd (~)440.26(0/440)^mtd (~)440.31(0/440)^mtd {+X acpi compat +driver gtk3 +kms libglvnd multilib static-libs +tools uvm wayland ABI_MIPS="n32 n64 o32" ABI_RISCV="lp64 lp64d" ABI_S390="32 64" ABI_X86="32 64 x32" KERNEL="FreeBSD linux"}
     Installed versions:  440.31(0/440)^mtd(22:49:32 08/11/2019)(X acpi compat driver kms uvm wayland -gtk3 -libglvnd -multilib -static-libs -tools ABI_MIPS="-n32 -n64 -o32" ABI_RISCV="-lp64 -lp64d" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" KERNEL="linux -FreeBSD")
     Homepage:            https://www.nvidia.com/
     Description:         NVIDIA Accelerated Graphics Driver
Back to top
View user's profile Send private message
etnull
Apprentice
Apprentice


Joined: 26 Mar 2019
Posts: 289

PostPosted: Sat Nov 09, 2019 3:43 pm    Post subject: Reply with quote

What lsmod shows right after reboot? I had similar problem (on desktop), turns out for me creating /etc/modules-load.d/video.conf with nvidia in it was not necessary, the kernel loads the module automatically without this config. If your lsmod shows nvidia modules loaded after reboot, then try removing any config which may try to load the module for the second time. And see if openrc still complains..
Back to top
View user's profile Send private message
Fulgurance
l33t
l33t


Joined: 15 Feb 2017
Posts: 657

PostPosted: Sat Nov 09, 2019 3:51 pm    Post subject: Reply with quote

Code:
zohran@MSI-GS73VR-6RF ~ $ lsmod
Module                  Size  Used by
nvidia_drm             45056  0
nvidia_modeset       1073152  1 nvidia_drm
snd_hda_codec_hdmi     57344  2
nvidia              19447808  4 nvidia_modeset
snd_hda_codec_realtek    98304  1
snd_hda_codec_generic    77824  1 snd_hda_codec_realtek
btusb                  49152  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
btintel                24576  1 btusb
bluetooth             430080  25 btrtl,btintel,btbcm,btusb
x86_pkg_temp_thermal    20480  0
ecdh_generic           16384  2 bluetooth
ecc                    28672  1 ecdh_generic
snd_hda_intel          40960  4
snd_hda_codec         126976  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
ath10k_pci             45056  0
snd_hwdep              16384  1 snd_hda_codec
ath10k_core           380928  1 ath10k_pci
alx                    45056  0
snd_hda_core           77824  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
ath                    32768  1 ath10k_core
mdio                   16384  1 alx
efivarfs               16384  1
Back to top
View user's profile Send private message
etnull
Apprentice
Apprentice


Joined: 26 Mar 2019
Posts: 289

PostPosted: Sat Nov 09, 2019 3:55 pm    Post subject: Reply with quote

Fulgurance wrote:
Code:
zohran@MSI-GS73VR-6RF ~ $ lsmod
Module                  Size  Used by
nvidia_drm             45056  0
nvidia_modeset       1073152  1 nvidia_drm
snd_hda_codec_hdmi     57344  2
nvidia              19447808  4 nvidia_modeset
snd_hda_codec_realtek    98304  1
snd_hda_codec_generic    77824  1 snd_hda_codec_realtek
btusb                  49152  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
btintel                24576  1 btusb
bluetooth             430080  25 btrtl,btintel,btbcm,btusb
x86_pkg_temp_thermal    20480  0
ecdh_generic           16384  2 bluetooth
ecc                    28672  1 ecdh_generic
snd_hda_intel          40960  4
snd_hda_codec         126976  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
ath10k_pci             45056  0
snd_hwdep              16384  1 snd_hda_codec
ath10k_core           380928  1 ath10k_pci
alx                    45056  0
snd_hda_core           77824  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
ath                    32768  1 ath10k_core
mdio                   16384  1 alx
efivarfs               16384  1

As you can see it is loaded, do you have /etc/modules-load.d/ with video or nvidia in it?
Back to top
View user's profile Send private message
Fulgurance
l33t
l33t


Joined: 15 Feb 2017
Posts: 657

PostPosted: Sat Nov 09, 2019 4:11 pm    Post subject: Reply with quote

Yes, i have. I remove it, and i say you if it's good.
Back to top
View user's profile Send private message
etnull
Apprentice
Apprentice


Joined: 26 Mar 2019
Posts: 289

PostPosted: Sat Nov 09, 2019 4:13 pm    Post subject: Reply with quote

Fulgurance wrote:
Yes, i have. I remove it, and i say you if it's good.

make sure you know how to restore it from TTY in case your X fails to start :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum