Results 1 to 6 of 6

Thread: NVIDIA the hard way question

  1. #1

    Default NVIDIA the hard way question

    For a long time (about 10 years) I had been installing the NVIDIA driver 'the hard way' by compiling it against the kernel modules, every time a kernel update had taken place.
    These were the steps:
    • install driver (running the script supplied by NVIDIA);
    • use the command mkinitrd;
    • reboot.

    Later, I made a habit of it to use the NVIDIA repository.
    But now I do it the hard way again (it was advised to do so for playing a game).
    To be succesful, I have to take one step more than I did before:
    after the reboot, the kernel line in the grub menu is edited by inserting 'nouveau.modetset=0' in it.
    To make it permanent, I can use the command:

    sudo grubby --update-kernel=ALL --args="nouveau.modeset=0"

    My question is why the old way to do things (rebooting after the mkinitrd command) does not work anymore.

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,114
    Blog Entries
    15

    Default Re: NVIDIA the hard way question

    Quote Originally Posted by EdVaessen View Post
    For a long time (about 10 years) I had been installing the NVIDIA driver 'the hard way' by compiling it against the kernel modules, every time a kernel update had taken place.
    These were the steps:
    • install driver (running the script supplied by NVIDIA);
    • use the command mkinitrd;
    • reboot.

    Later, I made a habit of it to use the NVIDIA repository.
    But now I do it the hard way again (it was advised to do so for playing a game).
    To be succesful, I have to take one step more than I did before:
    after the reboot, the kernel line in the grub menu is edited by inserting 'nouveau.modetset=0' in it.
    To make it permanent, I can use the command:

    sudo grubby --update-kernel=ALL --args="nouveau.modeset=0"

    My question is why the old way to do things (rebooting after the mkinitrd command) does not work anymore.
    Hi
    The only reason to run mkinitrd is to blacklist the noveau driver assuming there is a blacklist file present...

    Code:
    cat /etc/modprobe.d/50-nvidia.conf
    blacklist nouveau
    Is this file present?

    I haven't had to add "nouveau.modeset=0" maybe it's something to do with grubby?

    I don't run mkinitrd when there is a kernel update, once the blacklist file is added, then on subsequent kernel updates it's take care of.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3

    Default Re: NVIDIA the hard way question

    Quote Originally Posted by malcolmlewis View Post
    Is this file present?
    File /etc/modprobe.d/50-nvidia.conf is not present.

  4. #4
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    3,754

    Default AW: NVIDIA the hard way question

    Does this gives anything back:
    Code:
    grep -i 'blacklist nouveau' /etc/modprobe.d/*

  5. #5

    Default Re: AW: NVIDIA the hard way question

    Quote Originally Posted by Sauerland View Post
    Does this gives anything back:
    Code:
    grep -i 'blacklist nouveau' /etc/modprobe.d/*
    Nothing came out.

    ll /etc/modprobe.d/ gave this:

    total 76
    drwxr-xr-x 2 root root 4096 mei 16 21:16 .
    drwxr-xr-x 137 root root 12288 mei 20 12:42 ..
    -rw-r--r-- 1 root root 3647 dec 19 10:16 00-system.conf
    -rw-r--r-- 1 root root 1184 nov 7 2018 10-unsupported-modules.conf
    -rw-r--r-- 1 root root 181 okt 30 2018 50-alsa.conf
    -rw-r--r-- 1 root root 5009 jun 11 2018 50-blacklist.conf
    -rw-r--r-- 1 root root 128 apr 2 14:14 50-bluetooth.conf
    -rw-r--r-- 1 root root 33 feb 19 2018 50-ipw2200.conf
    -rw-r--r-- 1 root root 34 feb 19 2018 50-iwl3945.conf
    -rw-r--r-- 1 root root 551 mei 12 2018 50-libmlx4.conf
    -rw-r--r-- 1 root root 18 feb 19 2018 50-prism54.conf
    -rw-r--r-- 1 root root 0 mei 4 22:37 50-yast.conf
    -rw-r--r-- 1 root root 47 nov 7 2018 99-local.conf
    -rw-r--r-- 1 root root 158 mrt 25 17:35 firewalld-sysctls.conf
    -rw-r--r-- 1 root root 1004 mrt 13 2018 mlx4.conf
    -rw-r--r-- 1 root root 88 mei 12 2018 truescale.conf
    -rw-r--r-- 1 root root 673 apr 26 2017 tuned.conf

  6. #6

    Default Re: NVIDIA the hard way question

    rpm -qa | grep nouveau resulted in:

    xf86-video-nouveau-1.0.15-lp150.1.9.x86_64
    Mesa-dri-nouveau-18.0.2-lp150.18.3.1.x86_64
    libdrm_nouveau2-2.4.91-lp150.1.2.x86_64
    libvdpau_nouveau-18.0.2-lp150.18.3.1.x86_64
    libdrm_nouveau2-32bit-2.4.91-lp150.1.2.x86_64

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •