Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nvidia problem after emerge world
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
nanetti
n00b
n00b


Joined: 16 Feb 2007
Posts: 39

PostPosted: Mon Nov 23, 2009 9:05 pm    Post subject: Nvidia problem after emerge world Reply with quote

Today I updated world and x11-drivers/nvidia-drivers was a candidate...
Everything went fine... shutdown and went out... when I rebooted I had
FATAL: Error inserting nvidia (/lib/modules/2.6.30-gentoo-r5/video/nvidia.ko)
and no X.
I simply thought it was a driver fault so I unmasked and emerged the most recent but unstable nvidia-driver

Here started the strange part of the story: not only I still have the problem whatever version of the driver I use
BUT I also have the same error even using the old driver I unmerged before the update world!!!

Googled a lot and surfed the forum but couldn't find not even a hint where the problem is... it's the first time in my "gentoo life"
I can not solve a problem going back to the before_update_ebuilds

I give you some info:
Code:

emerge --info
Portage 2.1.6.13 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-gentoo-1.12.13
Timestamp of tree: Mon, 23 Nov 2009 02:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.4, 3.1.1-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -msse3 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -msse3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="it en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa amd64 apache2 apm avi bash-completion berkdb bitmap-fonts bluetooth branding bzip2 cairo cdparanoia cdr cli consolekit cracklib crypt cups dbus doc dri dts dv dvb dvd dvdr dvdread eds emboss encode esd evo exif fam fat ffmpeg firefox flac fontserver foomaticdb fortran gdbm gif gimprint gpm gstreamer gtk gtk2 hal iconv ieee1394 imagemagick imlib java javascript jpeg kde kerberos ldap libg++ libnotify libwww lua mad matroska mbox mikmod mmx modules motif mp3 mp4 mpeg mplayer msn mudflap multilib mysql ncurses nls nptl nptlonly ntfs nvidia ogg opengl openmp osspdflib pam pcre pdf perl php png ppds pppd python qt qt3 qt3support qt4 quicktime readline reflection rt73usb samba sasl scanner sdl session speex spell spl sse sse2 ssl startup-notification svg sysfs tcpd theora thunar tidy tiff truetype truetype-fonts type1-fonts udev unicode usb vim-syntax vorbis x264 xml xmms xorg xulrunner xv xvid yahoo zlib" ALSA_CARDS="hda-intel ens1371" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" USERLAND="GNU" VIDEO_CARDS="geforce nvidia vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Code:

emerge -pv xorg-server nvidia-drivers

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] x11-base/xorg-server-1.6.3.901-r2  USE="hal nptl sdl xorg -debug -dmx -ipv6 -kdrive -minimal -tslib" 0 kB
[ebuild   R   ] x11-drivers/nvidia-drivers-190.42-r3  USE="acpi gtk (multilib) -custom-cflags" 0 kB


Code:

Linux dopey 2.6.30-gentoo-r5 #4 SMP Wed Oct 21 12:47:51 CEST 2009 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 6000+ AuthenticAMD GNU/Linux
[/
code]
Code:

# File generated by xorgconfig.
Section "Module"
# This loads the DBE extension module.
    Load        "dbe"   # Double buffer extension
# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

# This loads the font modules
    Load        "type1"
    Load        "speedo"
    Load        "freetype"
    Load        "xtt"
# This loads the GLX module
    Load       "glx"
# This loads the DRI module
#    Load       "dri"

EndSection

# **********************************************************************
# Files section.  This allows default font and rgb paths to be set
# **********************************************************************

Section "Files"

    FontPath   "/usr/share/fonts/100dpi"
    FontPath   "/usr/share/fonts/75dpi"
    FontPath   "/usr/share/fonts/Type1"
    FontPath   "/usr/share/fonts/corefonts"
    FontPath   "/usr/share/fonts/cyrillic"
    FontPath   "/usr/share/fonts/default"
    FontPath   "/usr/share/fonts/encodings"
    FontPath   "/usr/share/fonts/misc"
    FontPath   "/usr/share/fonts/ttf-bitstream-vera"
    FontPath   "/usr/share/fonts/util"
    FontPath   "/usr/share/fonts/nanetti"

#    ModulePath "/usr/lib/modules"

EndSection

# **********************************************************************
# Server flags section.
# **********************************************************************

Section "ServerFlags"

EndSection



# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

Section "InputDevice"

# Identifier and driver

    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "IMPS/2"       # IntelliMouse PS/2
    Option "Device"      "/dev/input/mouse0"

    Option "ZAxisMapping"   "4 5 6 7"

    Option "Emulate3Buttons"
EndSection


# Monitor section

# Any number of monitor sections may be present

Section "Monitor"

    Identifier  "My Monitor"

    VertRefresh 60

EndSection


# **********************************************************************
# Graphics device section
# **********************************************************************

# Any number of graphics device sections may be present

# Standard VGA Device:

Section "Device"
    Identifier  "Standard VGA"
    VendorName  "Unknown"
    BoardName   "Unknown"
    Driver     "vga"
EndSection

# Device configured by xorgconfig:

Section "Device"
    Identifier  "NVIDIA GeForce"
    Driver      "nvidia"
    VideoRam    256
    # Insert Clocks lines here if appropriate
EndSection


# **********************************************************************
# Screen sections
# **********************************************************************
Section "Screen"
    Identifier  "Screen 1"
    Device      "NVIDIA GeForce"
    Monitor     "My Monitor"
    DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes       "1680x1050" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1680x1050" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1680x1050" "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection


# ServerLayout sections.

Section "ServerLayout"
    Identifier  "Simple Layout"

    Screen "Screen 1"

    InputDevice "Mouse1" "CorePointer"

EndSection


Code:


nvidia: disagrees about version of symbol memcpy
nvidia: Unknown symbol memcpy
kobject: 'nvidia' (ffffffffa1d4d090): kobject_cleanup
kobject: 'nvidia' (ffffffffa1d4d090): does not have a release() function, it is broken and must be fixed.
kobject: 'nvidia': free name
kobject: '250' (ffff88019e9c0828): kobject_add_internal: parent: 'uids', set: 'uids'
kobject: '250' (ffff88019e9c0828): kobject_uevent_env
kobject: '250' (ffff88019e9c0828): fill_kobj_path: path = '/kernel/uids/250'
kobject: '250' (ffff88019e9c0828): kobject_uevent_env
kobject: '250' (ffff88019e9c0828): fill_kobj_path: path = '/kernel/uids/250'
kobject: '250' (ffff88019e9c0828): kobject_cleanup
kobject: '250' (ffff88019e9c0828): calling ktype release
kobject: '250': free name
kobject: 'nvidia' (ffffffffa0ae2090): kobject_add_internal: parent: 'module', set: 'module'
nvidia: disagrees about version of symbol memcpy
nvidia: Unknown symbol memcpy
kobject: 'nvidia' (ffffffffa0ae2090): kobject_cleanup
kobject: 'nvidia' (ffffffffa0ae2090): does not have a release() function, it is broken and must be fixed.
kobject: 'nvidia': free name
kobject: 'nvidia' (ffffffffa1411090): kobject_add_internal: parent: 'module', set: 'module'
nvidia: disagrees about version of symbol memcpy
nvidia: Unknown symbol memcpy
kobject: 'nvidia' (ffffffffa1411090): kobject_cleanup
kobject: 'nvidia' (ffffffffa1411090): does not have a release() function, it is broken and must be fixed.
kobject: 'nvidia': free name


Code:

(II) LoadModule: "nvidia"
(II) Loading /usr/lib64/xorg/modules/drivers//nvidia_drv.so
(II) Module nvidia: vendor="NVIDIA Corporation"
        compiled for 4.0.2, module version = 1.0.0
        Module class: X.Org Video Driver
(EE) NVIDIA: Failed to load the NVIDIA kernel module. Please check your
(EE) NVIDIA:     system's kernel log for additional error messages.
(II) UnloadModule: "nvidia"
(II) Unloading /usr/lib64/xorg/modules/drivers//nvidia_drv.so
(EE) Failed to load module "nvidia" (module-specific error, 0)
(EE) No drivers available.


Pls need help !!!
Back to top
View user's profile Send private message
cyberjun
Apprentice
Apprentice


Joined: 06 Nov 2005
Posts: 284

PostPosted: Mon Nov 23, 2009 9:21 pm    Post subject: Reply with quote

Can you try with the older driver (the one which was working)? I suspect that you have an older card which is only supported by one of the legacy drivers and at present you are trying to use the latest nvidia driver.

Post your lspci -vv and nvidia driver versions (both the working and non-working).

--cyberjun
Back to top
View user's profile Send private message
nanetti
n00b
n00b


Joined: 16 Feb 2007
Posts: 39

PostPosted: Mon Nov 23, 2009 10:03 pm    Post subject: Reply with quote

cyberjun wrote:
Can you try with the older driver (the one which was working)? I suspect that you have an older card which is only supported by one of the legacy drivers and at present you are trying to use the latest nvidia driver.

Post your lspci -vv and nvidia driver versions (both the working and non-working).

--cyberjun


I don't think so... it's a pretty new card
Code:

03:00.0 VGA compatible controller: nVidia Corporation GeForce 8500 GT (rev a1) (prog-if 00 [VGA controller])
        Subsystem: ASUSTeK Computer Inc. Device 034f
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at f8000000 (32-bit, non-prefetchable) [size=16M]
        Region 1: Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Region 3: Memory at f6000000 (64-bit, non-prefetchable) [size=32M]
        Region 5: I/O ports at 9c00 [size=128]
        [virtual] Expansion ROM at f9000000 [disabled] [size=128K]
        Capabilities: <access denied>
        Kernel driver in use: nvidia
        Kernel modules: nvidiafb, nvidia


The drivers are:
safe but old x11-drivers/nvidia-drivers-180.60
and the new x11-drivers/nvidia-drivers-185.18.36

Right now I unmerged all the nvidia, cleaned everything, rmmod all, installed the old drivers I used since a couple of hours ago and the problem was still there... but listen to this:
I have a backup disk and since I was 100% sure I didn't touch kernel-modules-toolchain-flags since last backup I horribly did
a cp old_nvidia.ko module from the backup onto the broken one... and now I'm back on kde!

What the hell is happening?!?!?! Is the same version of the driver but the new compiled one is broken
while the old one is perfect!!
I didn't changed any use flag... really really strange!
Anyway I think I solved my problem with the copy old module trick but it's a strange behavior I would like to understand...
Back to top
View user's profile Send private message
vincent-
Developer
Developer


Joined: 13 Jan 2007
Posts: 415
Location: Valencia (Spain)

PostPosted: Tue Nov 24, 2009 6:40 pm    Post subject: Reply with quote

Hi.

First, you don't need to install nvidia-drivers manually. If you have configured your VIDEO_CARDS variable on make.conf , nvidia-drivers will be installed as a dependence of x11-base/xorg-drivers package.
So, make sure you have VIDEO_CARDS="nvidia" in your /etc/make.conf

Note: in your emerge --info you have VIDEO_CARDS="geforce nvidia vesa vga"

Second. You are using a Xorg with hal support, so, you don't need to use that large xorg.conf
Try with this simple xorg.conf file (only 4 lines):
Code:
Section "Device"
    Identifier     "Card0"
    Driver         "nvidia"
EndSection


Third. You have INPUT_DEVICES="evdev keyboard mouse". You only need INPUT_DEVICES="evdev"
That will remove unnecesary drivers for keyboard and mouse. (x11-drivers/xf86-input-keyboard and x11-drivers/xf86-input-mouse)

Uninstall nvidia-drivers (x11-drivers/nvidia-drivers) and do a emerge --deep --update --newuse world --ask

Hope it helps.
Back to top
View user's profile Send private message
ffaerton
n00b
n00b


Joined: 14 Apr 2005
Posts: 22

PostPosted: Tue Nov 24, 2009 11:23 pm    Post subject: Reply with quote

:( I've been having this problem as well.

I'll run with your suggestions peratu and will let you know.

My, that is a slim xorg.conf
Back to top
View user's profile Send private message
ffaerton
n00b
n00b


Joined: 14 Apr 2005
Posts: 22

PostPosted: Tue Nov 24, 2009 11:54 pm    Post subject: Reply with quote

Well, that didn't quite work.

But what did work was a kernel clean and recompile, and then reloading the nvidia module.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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