Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (Not For Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (Not For Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #31  
Old 7th June 2016, 12:18 AM
Piscium Offline
Registered User
 
Join Date: Dec 2009
Location: Dublin,Ireland
Posts: 132
linuxfedorafirefox
Re: F22 Nvidia Guide Link

I did what you suggested (see below), and removing the RPM package for the Nouveau driver did not remove the driver from the dracut image. I suppose that I could manually delete the Nouveau driver from usr/lib/modules/ but I am not sure if when a new kernel arrives it would not be put back.

On the other hand it seems that the Nouveau driver is blacklisted automatically by installing the xorg-x11-drv-nvidia driver. So maybe things are fine as they are and I don't need to do anything else, and indeed it may have been unnecessary to uninstall the Nouveau driver.

What do you think?




Code:
[root@tornado tmp]# dracut test.img $(uname -r)
[root@tornado tmp]# lsinitrd test.img | grep nouveau
-rw-r--r--   1 root     root          185 Nov 21  2015 usr/lib/modprobe.d/blacklist-nouveau.conf
drwxr-xr-x   2 root     root            0 Jun  7 00:04 usr/lib/modules/4.5.5-201.fc23.x86_64/kernel/drivers/gpu/drm/nouveau
-rw-r--r--   1 root     root       442452 May 21 17:21 usr/lib/modules/4.5.5-201.fc23.x86_64/kernel/drivers/gpu/drm/nouveau/nouveau.ko.xz
[root@tornado tmp]# dnf remove xorg-x11-drv-nouveau
Dependencies resolved.
==================================================================================================================================
 Package                               Arch                    Version                             Repository                Size
==================================================================================================================================
Removing:
 xorg-x11-drv-nouveau                  x86_64                  1:1.0.12-3.fc23                     @System                  217 k

Transaction Summary
==================================================================================================================================
Remove  1 Package

Installed size: 217 k
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Erasing     : xorg-x11-drv-nouveau-1:1.0.12-3.fc23.x86_64                                                                   1/1 
  Verifying   : xorg-x11-drv-nouveau-1:1.0.12-3.fc23.x86_64                                                                   1/1 

Removed:
  xorg-x11-drv-nouveau.x86_64 1:1.0.12-3.fc23                                                                                     

Complete!
[root@tornado tmp]# dracut test2.img $(uname -r)
[root@tornado tmp]# lsinitrd test2.img | grep nouveau
-rw-r--r--   1 root     root          185 Nov 21  2015 usr/lib/modprobe.d/blacklist-nouveau.conf
drwxr-xr-x   2 root     root            0 Jun  7 00:07 usr/lib/modules/4.5.5-201.fc23.x86_64/kernel/drivers/gpu/drm/nouveau
-rw-r--r--   1 root     root       442452 May 21 17:21 usr/lib/modules/4.5.5-201.fc23.x86_64/kernel/drivers/gpu/drm/nouveau/nouveau.ko.xz

[root@tornado tmp]# yum provides */blacklist-nouveau.conf
Yum command has been deprecated, redirecting to '/usr/bin/dnf provides */blacklist-nouveau.conf'.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run:
'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'

Last metadata expiration check: 0:03:01 ago on Tue Jun  7 00:04:59 2016.
xorg-x11-drv-nvidia-1:358.16-2.fc23.x86_64 : NVIDIA's proprietary display driver for NVIDIA graphic cards
Repo        : @System

xorg-x11-drv-nvidia-340xx-1:340.96-1.fc23.x86_64 : NVIDIA's 340xx series proprietary display driver for NVIDIA graphic cards
Repo        : rpmfusion-nonfree-updates

xorg-x11-drv-nvidia-304xx-304.131-1.fc23.x86_64 : NVIDIA's 304xx serie proprietary display driver for NVIDIA graphic cards
Repo        : rpmfusion-nonfree-updates

xorg-x11-drv-nvidia-1:358.16-2.fc23.x86_64 : NVIDIA's proprietary display driver for NVIDIA graphic cards
Repo        : rpmfusion-nonfree-updates
Reply With Quote
  #32  
Old 7th June 2016, 12:37 AM
dd_wizard Online
Registered User
 
Join Date: Sep 2009
Posts: 1,979
linuxfedorafirefox
Re: F22 Nvidia Guide Link

If nouveau is blacklisted, you should be good. Did you reboot after you removed nouveau and before you ran dracut?

dd_wizard
Reply With Quote
  #33  
Old 7th June 2016, 01:08 AM
Piscium Offline
Registered User
 
Join Date: Dec 2009
Location: Dublin,Ireland
Posts: 132
linuxfedorafirefox
Re: F22 Nvidia Guide Link

No, I hadn't rebooted after uninstalling the Nouveau driver, but I rebooted just a moment ago and it did not make any difference with respect to the output of lsinitrd.

Cool. So the problem is solved (hopefully) and I will have the confirmation only when the next kernel update appears.

Thanks a lot for your help!

Cheers.



Code:
[root@tornado tmp]# dracut test3.img $(uname -r)
[root@tornado tmp]# lsinitrd test3.img | grep nouveau
-rw-r--r--   1 root     root          185 Nov 21  2015 usr/lib/modprobe.d/blacklist-nouveau.conf
drwxr-xr-x   2 root     root            0 Jun  7 01:02 usr/lib/modules/4.5.5-201.fc23.x86_64/kernel/drivers/gpu/drm/nouveau
-rw-r--r--   1 root     root       442452 May 21 17:21 usr/lib/modules/4.5.5-201.fc23.x86_64/kernel/drivers/gpu/drm/nouveau/nouveau.ko.xz
[root@tornado tmp]# dnf provides */nouveau.ko.xz
Last metadata expiration check: 0:58:28 ago on Tue Jun  7 00:04:59 2016.
kernel-modules-4.4.3-300.fc23.x86_64 : kernel modules to match the core kernel
Repo        : @System

kernel-modules-4.4.5-300.fc23.x86_64 : kernel modules to match the core kernel
Repo        : @System

kernel-modules-4.4.6-300.fc23.x86_64 : kernel modules to match the core kernel
Repo        : @System

kernel-modules-4.4.6-301.fc23.x86_64 : kernel modules to match the core kernel
Repo        : @System

kernel-modules-4.4.8-300.fc23.x86_64 : kernel modules to match the core kernel
Repo        : @System

kernel-modules-4.4.9-300.fc23.x86_64 : kernel modules to match the core kernel
Repo        : @System

kernel-modules-4.5.5-201.fc23.x86_64 : kernel modules to match the core kernel
Repo        : @System

kernel-debug-modules-4.5.5-201.fc23.x86_64 : kernel modules to match the core kernel
Repo        : updates

kernel-modules-4.5.5-201.fc23.x86_64 : kernel modules to match the core kernel
Repo        : updates

kernel-debug-modules-4.2.3-300.fc23.x86_64 : kernel modules to match the core kernel
Repo        : fedora

kernel-modules-4.2.3-300.fc23.x86_64 : kernel modules to match the core kernel
Repo        : fedora
Reply With Quote
  #34  
Old 9th June 2016, 07:46 PM
Piscium Offline
Registered User
 
Join Date: Dec 2009
Location: Dublin,Ireland
Posts: 132
linuxfedorafirefox
Re: F22 Nvidia Guide Link

A new kernel version arrived for F23, 4.5.6-200, and Nvidia still works fine without me doing anything special.

Below is my updated procedure in case someone needs it. It should work for new-ish Nvidia cards (mine is 3 years old).

I installed the dkms package because someone recommended it in this thread, though I am not sure it is needed. Also I installed a few packages recommended in the RPM Fusion website such as vdpauinfo though again I am not sure they are needed. In any case, these packages are not causing me any harm. There is no need to uninstall the Nouveau driver.

I am left wondering why we even need such a procedure. For example, why doesn't installing akmod-nvidia and xorg-x11-drv-nvidia pull all the other needed packages and run dracut? I know nothing about packaging so maybe there is a good reason for that!

Code:
# Run the commands below as root or with sudo

# Make sure we are up to date
dnf update

# Install a bunch of packages
# This is an explicit list and it could be made shorter as some packages depend on others, the long list is just for clarity
dnf install   akmod-nvidia xorg-x11-drv-nvidia    xorg-x11-drv-nvidia-devel   xorg-x11-drv-nvidia-libs   gcc   kernel-devel  vdpauinfo  libva-vdpau-driver  libva-utils  dkms  kernel-headers  xorg-x11-drv-nvidia-libs.i686

ls /boot

# Backup old initramfs nouveau image. 
# There are two alternatives to this: delete old image or use the parameter "--force" in dracut below
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img

# Create new initramfs image
# There is no need to use "--omit-drivers nouveau" because the nouveau driver is automatically blacklisted as a result of installing xorg-x11-drv-nvidia
dracut /boot/initramfs-$(uname -r).img $(uname -r)

ls /boot

# Reboot
# reboot

# After reboot, this command should not output anything if the Nvidia driver is being used:
lsmod |grep nouveau

Last edited by Piscium; 10th June 2016 at 08:40 AM.
Reply With Quote
Reply

Tags
f22, guide, link, nvidia

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F18-F20: Nvidia guide Dan Guides & Solutions (Not For Questions) 365 30th November 2015 08:30 AM
Hostapd guide using D-Link DWA-525 amirhamzah EOL (End Of Life) Versions 1 5th May 2012 10:35 AM
Nvidia guide leigh123linux F16 Development 31 31st October 2011 07:04 AM
F15 Nvidia Guide leigh123linux F15 Development 128 24th May 2011 02:40 PM
Nvidia guide for Rawhide. leigh123linux F16 Development 77 15th February 2011 10:08 PM


Current GMT-time: 19:41 (Wednesday, 26-04-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat