LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-30-2013, 03:05 AM   #1
Streamc
LQ Newbie
 
Registered: Mar 2013
Posts: 8

Rep: Reputation: Disabled
CentOS 6.4 nouveau delete, disable


I add blacklist to /etc/modprobe.d/blacklist.conf
I edit /boot/grub/grub.cfg

then
/grub-2.00/grub-install /dev/sda2

I unpack grub2 with tar.gz in this folder and work from here.
GRUB1 does not work from my system because of errors 1023 and I solved it installing GRUB2.
editing /boot/grub/grub.cfg is directy configuring grub. There is no update-grub. /grub-2.00/grub-mkconfig makes new config.
But topic is about nouveau deleting.

But nouveau still loading. I try to do as in http://www.linuxquestions.org/questi...-driver-825432

sudo dracut -v /boot/initramfs-$(uname -r).img $(uname -r)

I backuped initramfs-2.6.32-358.el6.x86_64.img of course
And when I do dracut as above I have all console on loading are black. Then I fork from GNOME and put backup to original file.

How can I delete nouveau or disable it.

P.S. Try to install NVIDIA by loading from backup CD
Installed normally but I can`t load Linux normally
"No nvidia graphics adapter probed"
Conflict of nouveau and NVIDIA

Last edited by Streamc; 03-30-2013 at 04:13 AM.
 
Old 03-30-2013, 05:48 AM   #2
mddesai
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch
Posts: 485

Rep: Reputation: 133Reputation: 133
if you are trying to install nvidia drivers from manufacturer's website and disable nouveau, then follow these steps:
  • open the file /etc/inittab and look for the line
id:5:initdefault:
And change it to
id:3:initdefault:
  • Disable nouveau driver:
Open /boot/grub/grub.conf file and at the end of kernel row, add the parameters as shown
kernel /vmlinuz-2.6.32-358.2.1.el6.x86_64 ....quiet rdblacklist=nouveau nouveau.modeset=0
  • reboot
  • Run the following commands:
# chmod a+x NVIDIA-Linux-x86_64-<version>.run
# ./NVIDIA-Linux-x86_64-<version>.run
change "id:3:initdefault:" back to "id:5:initdefault:"
  • reboot

Note1: make sure you have installed c++ prior to all this - yum groupinstall "development tools"
Note2: if you update kernel, then you to repeat these steps again once.

Last edited by mddesai; 03-30-2013 at 06:16 AM.
 
Old 03-30-2013, 06:44 AM   #3
Streamc
LQ Newbie
 
Registered: Mar 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
I do but nouveaus still exists and loading. ddc responded but no edid for dvi-i-1.
Do I need reconfigure grub after editing grub.conf?

Last edited by Streamc; 03-30-2013 at 06:57 AM.
 
Old 03-30-2013, 06:59 AM   #4
mddesai
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch
Posts: 485

Rep: Reputation: 133Reputation: 133
there are lot of 'installing nvidia drivers' tutorials in the internet. most of them are very complicated. the one i recommended is by far very easy to install and free from hassle. i run CentOS 6.x with nvidia 9500 GT card and since 1 year (after several kernel updates), still i had no single problem. the link you provided is way too complicated.
Attached Images
File Type: jpg nv.jpg (53.6 KB, 28 views)
File Type: jpg nv2.jpg (17.9 KB, 25 views)

Last edited by mddesai; 03-30-2013 at 07:10 AM.
 
Old 03-30-2013, 07:34 AM   #5
Streamc
LQ Newbie
 
Registered: Mar 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
I could install NVIDIA drivers. But I can`t disable nouveau.

Last edited by Streamc; 03-30-2013 at 07:36 AM.
 
Old 03-30-2013, 08:15 AM   #6
mddesai
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch
Posts: 485

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by Streamc View Post
But I can`t disable nouveau.
did you add "rdblacklist=nouveau nouveau.modeset=0" at the end of running kernel version's parameter? if you did then the nouveau should be disabled.


in /etc/X11/xorg.conf under device section, what does it say?

PHP Code:
Section "Device"
    
Identifier     "Device0"
    
Driver         "nvidia"
    
VendorName     "NVIDIA Corporation"
EndSection 

Last edited by mddesai; 03-30-2013 at 08:34 AM.
 
Old 03-30-2013, 09:13 AM   #7
Streamc
LQ Newbie
 
Registered: Mar 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
sh: gnome-config: command not found

This is my Xorg.conf after all manipulations with installation and deleting. Alraedy I have nouveau and no NVIDIA and I can not log in graphical interface like after installation.
Attached Files
File Type: log Xorg.0.log (1.6 KB, 20 views)

Last edited by Streamc; 03-30-2013 at 09:15 AM.
 
Old 03-30-2013, 09:21 AM   #8
Streamc
LQ Newbie
 
Registered: Mar 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Why forum says invalid file about my upload files? Changes in grub.cfg does direct effect.

Grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /usr/local/etc/grub.d and settings from /usr/local/etc/default/grub
#

### BEGIN /usr/local/etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"

if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}

if loadfont unicode ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /usr/local/etc/grub.d/00_header ###

### BEGIN /usr/local/etc/grub.d/10_linux ###
menuentry 'GNU/Linux' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-30c3c0cd-6ad5-4a5e-8ec6-ee52753f8146' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
rdblacklist=nouveau
nouveau.modeset=0
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 --hint='hd0,msdos2' 30c3c0cd-6ad5-4a5e-8ec6-ee52753f8146
else
search --no-floppy --fs-uuid --set=root 30c3c0cd-6ad5-4a5e-8ec6-ee52753f8146
fi
echo 'Loading Linux 2.6.32-358.el6.x86_64 ...'
linux /boot/vmlinuz-2.6.32-358.el6.x86_64 root=UUID=30c3c0cd-6ad5-4a5e-8ec6-ee52753f8146 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-2.6.32-358.el6.x86_64.img
}
submenu 'Advanced options for GNU/Linux' $menuentry_id_option 'gnulinux-advanced-30c3c0cd-6ad5-4a5e-8ec6-ee52753f8146' {
menuentry 'GNU/Linux, with Linux 2.6.32-358.el6.x86_64' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-2.6.32-358.el6.x86_64-advanced-30c3c0cd-6ad5-4a5e-8ec6-ee52753f8146' {
load_video
set gfxpayload=keep
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
rdblacklist=nouveau
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 --hint='hd0,msdos2' 30c3c0cd-6ad5-4a5e-8ec6-ee52753f8146
else
search --no-floppy --fs-uuid --set=root 30c3c0cd-6ad5-4a5e-8ec6-ee52753f8146
fi
echo 'Loading Linux 2.6.32-358.el6.x86_64 ...'
linux /boot/vmlinuz-2.6.32-358.el6.x86_64 root=UUID=30c3c0cd-6ad5-4a5e-8ec6-ee52753f8146 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-2.6.32-358.el6.x86_64.img
}
menuentry 'GNU/Linux, with Linux 2.6.32-358.el6.x86_64 (recovery mode)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-2.6.32-358.el6.x86_64-recovery-30c3c0cd-6ad5-4a5e-8ec6-ee52753f8146' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
rdblacklist=nouveau
nouveau.modeset=0
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 --hint='hd0,msdos2' 30c3c0cd-6ad5-4a5e-8ec6-ee52753f8146
else
search --no-floppy --fs-uuid --set=root 30c3c0cd-6ad5-4a5e-8ec6-ee52753f8146
fi
echo 'Loading Linux 2.6.32-358.el6.x86_64 ...'
linux /boot/vmlinuz-2.6.32-358.el6.x86_64 root=UUID=30c3c0cd-6ad5-4a5e-8ec6-ee52753f8146 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-2.6.32-358.el6.x86_64.img
}
menuentry 'Win7' {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set AE14BE5614BE216F
chainloader +1
}
}

### END /usr/local/etc/grub.d/10_linux ###

### BEGIN /usr/local/etc/grub.d/20_linux_xen ###
### END /usr/local/etc/grub.d/20_linux_xen ###

### BEGIN /usr/local/etc/grub.d/30_os-prober ###
### END /usr/local/etc/grub.d/30_os-prober ###

### BEGIN /usr/local/etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /usr/local/etc/grub.d/40_custom ###

### BEGIN /usr/local/etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /usr/local/etc/grub.d/41_custom ###

grub.conf

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,1)
# kernel /boot/vmlinuz-version ro root=/dev/sda2 rdblacklist=nouveau
# initrd /boot/initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-358.2.1.el6.x86_64)
root (hd0,1)
kernel /boot/vmlinuz-2.6.32-358.2.1.el6.x86_64 ro root=UUID=30c3c0cd-6ad5-4a5e-8ec6-ee52753f8146 rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=ru rd_NO_LVM rd_NO_DM rhgb rdblacklist=nouveau nouveau.modeset=0
initrd /boot/initramfs-2.6.32-358.2.1.el6.x86_64.img
title CentOS (2.6.32-358.el6.x86_64)
root (hd0,1)
kernel /boot/vmlinuz-2.6.32-358.el6.x86_64 ro root=UUID=30c3c0cd-6ad5-4a5e-8ec6-ee52753f8146 rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=ru rd_NO_LVM rd_NO_DM rhgb quiet rdblacklist=nouveau nouveau.modeset=0
initrd /boot/initramfs-2.6.32-358.el6.x86_64.img
title Other
rootnoverify (hd0,0)
chainloader +1

Last edited by Streamc; 03-30-2013 at 09:26 AM.
 
Old 06-29-2013, 11:57 PM   #9
avergreen7
LQ Newbie
 
Registered: Jun 2013
Posts: 3

Rep: Reputation: Disabled
Quote:
title CentOS (2.6.32-358.2.1.el6.x86_64)
root (hd0,1)
kernel /boot/vmlinuz-2.6.32-358.2.1.el6.x86_64 ro root=UUID=30c3c0cd-6ad5-4a5e-8ec6-ee52753f8146 rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=ru rd_NO_LVM rd_NO_DM rhgb rdblacklist=nouveau nouveau.modeset=0
initrd /boot/initramfs-2.6.32-358.2.1.el6.x86_64.img
You are missing the appropriate syntax before your "rdblacklist..." string. There should be a "quiet" command there. Hence why it's likely not working for you.
 
Old 06-30-2013, 12:44 AM   #10
John VV
Guru
 
Registered: Aug 2005
Posts: 13,060

Rep: Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741
avergreen7
this is a idiosyncrasy of RHEL6 / CentOS6 / SL6

the boot image needs to be rebuilt after blacklisting or removing "nouveau"
and BEFORE the .run can be installed

the plymouth bootloader needs nouveau
so black list it to use that
but removing is a bit better if one is going to use the NVIDIA.run
 
Old 06-30-2013, 01:44 AM   #11
Streamc
LQ Newbie
 
Registered: Mar 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
I can load without noiveau. And I install NVIDIA driver and I can run opengl test. But I can`t se resolution to 1280. I work with xconf.org, xrandr but there is still 1024 and 800 in my direction
 
Old 06-30-2013, 02:14 AM   #12
John VV
Guru
 
Registered: Aug 2005
Posts: 13,060

Rep: Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741
this is a copy of my nvidia.run created SL6.4 /etc/x11/xorg.conf
Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 319.23  (buildmeister@swio-display-x86-rhel47-11)  Thu May 16 20:17:21 PDT 2013


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
    FontPath        "/usr/share/fonts/default/Type1"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from data in "/etc/sysconfig/keyboard"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbLayout" "us"
    Option         "XkbModel" "pc105"
EndSection

Section "Monitor"

  # created by KGamma
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "DELL ST2210"
    HorizSync       30.0 - 83.0
    VertRefresh     50.0 - 76.0
    Gamma           0.6
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTS 240"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "TwinViewXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
I have no issues on my LCD
 
Old 06-30-2013, 06:02 AM   #13
scottro11
Member
 
Registered: Jun 2009
Location: NYC
Posts: 257

Rep: Reputation: 58
Have you tried the elrepo drivers? They do all the necessary blacklisting.

http://elrepo.org/tiki/tiki-index.php

I've been using it for years now without any issues, and haven't had to do any manual intervention.
http://elrepo.org/tiki/kmod-nvidia
 
Old 06-30-2013, 01:10 PM   #14
John VV
Guru
 
Registered: Aug 2005
Posts: 13,060

Rep: Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741
It's is not a "blacklist" issue
the 319 driver dose that , just fine

but the .run driver will NOT be used until "dracut" is ran

it is using the .run driver
OpenSUSE calls it " 'the hard way' ( that is not hard)"


the Kmod-nvidia is normally recommended if one is not going to use the Nouveau driver

unless one has been using the .run driver for years and it is what you are used to using

but RHEL6 added the nouveau driver and things got MUCH more complicated

------------------------------------

As to screen res

Streamc if your xorg.conf looks like mine

then you might need to add an option AND a subsection to the "screen section
-- something like this ---
Code:
Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "metamodes" "1024x768 +0+0; 800x600 +0+0; 1152x864 +0+0; 1600x1200 +0+0; 1280x1024 +0+0; 640x480 +0+0"
    SubSection     "Display"
        Depth       24
        Modes      "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to disable nouveau arubin Slackware 5 05-02-2011 09:47 AM
F15, Disable Nouveau driver in prep to install Nvidia drvr toddbailey Fedora 7 04-30-2011 06:33 PM
How to disable / delete suPHP Centos 5.5 oscargim Linux - Newbie 0 03-21-2011 03:32 PM
disable shift+delete kinkle Linux - General 3 05-06-2009 11:15 AM
Disable Delete permisions Dankles Linux - Security 2 05-05-2006 12:34 PM


All times are GMT -5. The time now is 06:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration