You are not logged in.

#1 2011-07-20 21:31:54

death__machine
Member
Registered: 2011-03-04
Posts: 69

[Solved]Error after installing new nvidia driver uninstalling nouveau

Hi,
On seeing that a new nvidia driver is available, I thought I'll give it a try as the older ones kept crashing/rebooting in kde and gnome.

I got nvidia and nvidia-utils from pacman. During that there was a conflicting file with libgl, so I had to remove nouveau and then install nvidia. I got an error saying need to unload module from xserver to install and would be possible on reboot or something similar(dont exactly remember the error)

Then I rebooted and x failed to start with errors ending up with "GdmLocalDisplayFactory: Maximum number of X display failures reached: Check X server log for errors. "

I tried "sudo modprobe nvidia" and it gave me

 FATAL:  Error inserting nvidia (/lib/modules/2.6-----/nvidia/nvidia.ko) No such device 

I tried looking up these errors and didnt get any proper answer or solution.
On my own attempts I saw I had inserted a module called nouveau in mkinitcpio.conf, I removed that but didnt help either. Read at a few forums and arch-wiki to run "nvidia-xconfig". The command creates a xorg.conf in X11. But on reboot nothing happened, same errors. Later I tried uninstalling and reinstalling both xorg and nvidia in hope something was wrong with the xorg which could get reset with a reinstall but that didnt do it tongue

The new nvidia driver is 275.19

Config:
i7 720QM
8GB DDR3 1333Mhz
Nvidia GTX 260M 1 GB

Its a Alienware m15x.

Last edited by death__machine (2011-07-21 16:35:48)

Offline

#2 2011-07-20 21:37:37

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

Does it really say

 FATAL:  Error inserting nvidia (/lib/modules/2.6-----/nvidia/nvidia.ko) No such device 

with five dashes?
Can you post /var/log/Xorg.0.log?

Last edited by karol (2011-07-20 21:38:00)

Offline

#3 2011-07-20 21:53:23

death__machine
Member
Registered: 2011-03-04
Posts: 69

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

No there were no five dashes. I put that cuz I wasnt sure if it was 2.6-38arch.
There are five Xorg.0.logs numbered.. Which one will be the newest?

Offline

#4 2011-07-20 21:56:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

death__machine wrote:

No there were no five dashes. I put that cuz I wasnt sure if it was 2.6-38arch.
There are five Xorg.0.logs numbered.. Which one will be the newest?

There should be a file named '/var/log/Xorg.0.log'.

Offline

#5 2011-07-20 21:57:17

death__machine
Member
Registered: 2011-03-04
Posts: 69

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

Heres the Xorg.0.log and it mentions the nvidia error

[   377.958] 
X.Org X Server 1.10.3
Release Date: 2011-07-08
[   377.959] X Protocol Version 11, Revision 0
[   377.960] Build Operating System: Linux 2.6.39-ARCH x86_64 
[   377.960] Current Operating System: Linux death-laptop 2.6.39-ARCH #1 SMP PREEMPT Sat Jul 9 14:57:41 CEST 2011 x86_64
[   377.961] Kernel command line: root=/dev/sda7 ro VGA=771 quiet splash
[   377.961] Build Date: 09 July 2011  07:52:32AM
[   377.962]  
[   377.963] Current version of pixman: 0.22.2
[   377.963]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[   377.964] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   377.966] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jul 21 02:24:42 2011
[   378.243] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   378.243] (==) No Layout section.  Using the first Screen section.
[   378.243] (==) No screen section available. Using defaults.
[   378.243] (**) |-->Screen "Default Screen Section" (0)
[   378.243] (**) |   |-->Monitor "<default monitor>"
[   378.244] (==) No device specified for screen "Default Screen Section".
    Using the first device section listed.
[   378.244] (**) |   |-->Device "Device0"
[   378.244] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[   378.244] (==) Automatically adding devices
[   378.244] (==) Automatically enabling devices
[   378.244] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[   378.244]     Entry deleted from font path.
[   378.244] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[   378.244]     Entry deleted from font path.
[   378.244]     (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[   378.244] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[   378.244]     Entry deleted from font path.
[   378.244]     (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[   378.244] (==) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/,
    /usr/share/fonts/Type1/
[   378.244] (==) ModulePath set to "/usr/lib/xorg/modules"
[   378.244] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[   378.244] (II) Loader magic: 0x7d3440
[   378.244] (II) Module ABI versions:
[   378.244]     X.Org ANSI C Emulation: 0.4
[   378.244]     X.Org Video Driver: 10.0
[   378.244]     X.Org XInput driver : 12.2
[   378.244]     X.Org Server Extension : 5.0
[   378.246] (--) PCI:*(0:2:0:0) 10de:0618:1028:02a2 rev 162, Mem @ 0xce000000/16777216, 0xd0000000/268435456, 0xcc000000/33554432, I/O @ 0x00002000/128
[   378.246] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   378.246] (II) LoadModule: "extmod"
[   378.246] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[   378.246] (II) Module extmod: vendor="X.Org Foundation"
[   378.246]     compiled for 1.10.3, module version = 1.0.0
[   378.247]     Module class: X.Org Server Extension
[   378.247]     ABI class: X.Org Server Extension, version 5.0
[   378.247] (II) Loading extension MIT-SCREEN-SAVER
[   378.247] (II) Loading extension XFree86-VidModeExtension
[   378.247] (II) Loading extension XFree86-DGA
[   378.247] (II) Loading extension DPMS
[   378.247] (II) Loading extension XVideo
[   378.247] (II) Loading extension XVideo-MotionCompensation
[   378.247] (II) Loading extension X-Resource
[   378.247] (II) LoadModule: "dbe"
[   378.247] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[   378.247] (II) Module dbe: vendor="X.Org Foundation"
[   378.247]     compiled for 1.10.3, module version = 1.0.0
[   378.247]     Module class: X.Org Server Extension
[   378.247]     ABI class: X.Org Server Extension, version 5.0
[   378.247] (II) Loading extension DOUBLE-BUFFER
[   378.247] (II) LoadModule: "glx"
[   378.247] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   378.258] (II) Module glx: vendor="NVIDIA Corporation"
[   378.259]     compiled for 4.0.2, module version = 1.0.0
[   378.259]     Module class: X.Org Server Extension
[   378.259] (II) NVIDIA GLX Module  275.19  Tue Jul 12 18:31:51 PDT 2011
[   378.259] (II) Loading extension GLX
[   378.259] (II) LoadModule: "record"
[   378.259] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[   378.259] (II) Module record: vendor="X.Org Foundation"
[   378.259]     compiled for 1.10.3, module version = 1.13.0
[   378.259]     Module class: X.Org Server Extension
[   378.259]     ABI class: X.Org Server Extension, version 5.0
[   378.259] (II) Loading extension RECORD
[   378.259] (II) LoadModule: "dri"
[   378.259] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
[   378.259] (II) Module dri: vendor="X.Org Foundation"
[   378.259]     compiled for 1.10.3, module version = 1.0.0
[   378.259]     ABI class: X.Org Server Extension, version 5.0
[   378.259] (II) Loading extension XFree86-DRI
[   378.259] (II) LoadModule: "dri2"
[   378.260] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[   378.260] (II) Module dri2: vendor="X.Org Foundation"
[   378.260]     compiled for 1.10.3, module version = 1.2.0
[   378.260]     ABI class: X.Org Server Extension, version 5.0
[   378.260] (II) Loading extension DRI2
[   378.260] (II) LoadModule: "nvidia"
[   378.260] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[   378.261] (II) Module nvidia: vendor="NVIDIA Corporation"
[   378.261]     compiled for 4.0.2, module version = 1.0.0
[   378.261]     Module class: X.Org Video Driver
[   379.027] (EE) NVIDIA: Failed to load the NVIDIA kernel module. Please check your
[   379.028] (EE) NVIDIA:     system's kernel log for additional error messages.
[   379.028] (II) UnloadModule: "nvidia"
[   379.028] (II) Unloading nvidia
[   379.028] (EE) Failed to load module "nvidia" (module-specific error, 0)
[   379.029] (EE) No drivers available.
[   379.029] 
Fatal server error:
[   379.030] no screens found
[   379.031] 
Please consult the The X.Org Foundation support 
     at http://wiki.x.org
 for help. 
[   379.033] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   379.033] 

Offline

#6 2011-07-20 21:57:37

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

Xorg.log or Xorg.0.log will be the recent ones.  Try renaming your xorg.conf file (like adding an "*.old) and try to get X going without an xorg.conf file in-place.

Offline

#7 2011-07-20 21:59:53

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

Please post /var/log/kernel.log.

Offline

#8 2011-07-20 22:02:45

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

I thought of one more thing:  remove the .xinitrc file from your home directory if it was not put there by you.  I ran smack into this after a recent re-install.  Took me some to figure that one out.

Offline

#9 2011-07-20 22:10:07

death__machine
Member
Registered: 2011-03-04
Posts: 69

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

@MoonSwan I'll try both of these after a reboot

@karol Am not able to post the kernel.log here, I think it was too large. So I uploaded it http://www.mediafire.com/?s0e8cy0k77np8dt It does contain the conflicting posts.

Offline

#10 2011-07-20 22:18:21

death__machine
Member
Registered: 2011-03-04
Posts: 69

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

@MoonSwan I tried removing xinit and renaming xorg.conf, didnt work sad.

I think its more like my nouveau setup wasnt removed properly and thats whats causing issues. But I really have no clue how. I have already removed any nouveau related files using pacman.

Offline

#11 2011-07-20 22:20:41

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

Remove nvidia, install nouveau again and reboot. Use https://wiki.archlinux.org/index.php/NV … au_drivers these scripts to switch to nvidia.

Offline

#12 2011-07-20 22:24:43

death__machine
Member
Registered: 2011-03-04
Posts: 69

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

Alright, am going to remove nvidia and install nouveau. But one question, I saw that script in that link but didnt quite understand how it works. Where am I supposed to put this script and how does the switching happen?

Offline

#13 2011-07-20 22:32:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

death__machine wrote:

Alright, am going to remove nvidia and install nouveau. But one question, I saw that script in that link but didnt quite understand how it works. Where am I supposed to put this script and how does the switching happen?

The scripts calls pacman to remove nouveau and install nvidia, does (hopefully) all the necessary twiddling with modprobe and rebuilds the kernel image.

#!/bin/bash
# nouveau -> nvidia

/usr/bin/sudo /bin/sed  -i 's/options nouveau modeset=1/#options nouveau modeset=1/' /etc/modprobe.d/modprobe.conf
/usr/bin/sudo /bin/sed -i 's/MODULES="nouveau"/#MODULES="nouveau"/' /etc/mkinitcpio.conf

/usr/bin/sudo /usr/bin/pacman -Rdds --noconfirm nouveau-dri xf86-video-nouveau libgl
/usr/bin/sudo /usr/bin/pacman -S --noconfirm nvidia-{,-utils}

/usr/bin/sudo /sbin/mkinitcpio -p kernel26

Save it anywhere, make executable and run.

You need to have sudo installed.


Edit: Don't use this script, it has a typo, see the explanation. I'm leaving it as it is because I don't want to disrupt the thread.

Last edited by karol (2011-07-21 17:12:36)

Offline

#14 2011-07-20 22:43:13

death__machine
Member
Registered: 2011-03-04
Posts: 69

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

I removed nvidia and installed nouveau, now am getting errors on startx

Failed to load module "nv" ( module does not exist, 0)
^^                             "nvidia"
                                "vesa"
                                "fbdev"

Error compiling keymap (server-0)
XKB: Couldn't compile keymap
XKB: Failed to compile keymap

Repeated again and then

Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config

Fatal server error:
Failed to activate core devices.

Offline

#15 2011-07-20 22:58:30

death__machine
Member
Registered: 2011-03-04
Posts: 69

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

I got x to work. I reinstalled xkeyboard-config and a new package installed along with that.
Some issue with though. Will try to see if gnome is working fine.

Offline

#16 2011-07-20 23:09:04

death__machine
Member
Registered: 2011-03-04
Posts: 69

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

Gnomes working fine! I got freaked out cuz on startx there was only one window which also crashed after a few seconds. Then I added gdm back to daemons(I had removed it when I had uninstalled xorg) and it booted up fine! I'll try those scripts which are mentioned in the arch wiki to switch between nouveau and nvidia drivers. Thanks! Will post back if its good.

Offline

#17 2011-07-20 23:34:38

death__machine
Member
Registered: 2011-03-04
Posts: 69

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

New problem now sad. I got that script from the archwiki and ran it, it said in the wiki that it will take effect after a reboot. I reboot and  plymouth setup doesnt work anymore(I remember seeing some messages about it being deprecated when the mkinitcpio thing happens) So since the plymouth got skipped I see all the daemons popping up and as soon as the gdm comes, the screen goes blank. Like I cant see anything and I tried using terminals and they're blank too. I can hear the starting beep when gnome starts and can even login with the blank screen, but without display to any terminal am not sure what am supposed to do now.

Offline

#18 2011-07-20 23:38:33

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

https://wiki.archlinux.org/index.php/Plymouth says Plymouth needs KMS to work and nvidia doesn't offer KMS, nouveau does.
I don't know how plymouth works, but if it really needs KMS, there's no way it will work with nvidia drivers.

Last edited by karol (2011-07-20 23:42:39)

Offline

#19 2011-07-20 23:44:02

death__machine
Member
Registered: 2011-03-04
Posts: 69

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

Hmm, ok. I tried booting through forced fallback mode and didnt work but it revealed this before the screen became blank "Unexpectedly disconnected from boot setup daemon"

So how do I get Arch working again? Is there anyway to change the plymouth setup without being able to access arch directly? Like a live-usb or something to edit the settings?

Offline

#20 2011-07-20 23:49:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

Can you switch to another terminal Ctrl-Alt-F2?
I think you may need to remove plymouth from /etc/mkinitcpio.conf and rebuild the kernel image.

Offline

#21 2011-07-20 23:52:31

death__machine
Member
Registered: 2011-03-04
Posts: 69

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

No, the first thing I tried was that, didnt work. Theres like zero access to any terminal hmm

Edit: Well there is access I guess, just that I cant see anything. Like in tt7 I was able to login blindly(literally tongue) Didnt try to login into the other terminals, but since I get that working, I can access tilda.

Last edited by death__machine (2011-07-20 23:55:07)

Offline

#22 2011-07-20 23:54:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

If you have a liveCD/liveUSB you can use that. https://wiki.archlinux.org/index.php/Chroot
Or try booting in single mode.

Offline

#23 2011-07-21 00:02:53

death__machine
Member
Registered: 2011-03-04
Posts: 69

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

I have to leave for errands now. I will prepare the liveusb to get back on this as soon as I come back. Two questions though
1)What is booting in single mode?
2)Once I boot in the liveusb, I can gain access to the mkinitcpio and even compile the kernel using chroot? The steps seem a little complicated but am gonna try them once I get back.
Gratitude for helping out. Cheers.

Offline

#24 2011-07-21 00:10:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

Single mode:
- you can try https://wiki.archlinux.org/index.php/Pa … nvoke_Bash
- or http://www.cyberciti.biz/faq/grub-boot- … user-mode/

Yes, chroot will let you do system maintenance https://wiki.archlinux.org/index.php/Ch … aintenance
The "complexity" boils down to mounting your filesystem so I think you shouldn't have any trouble with that.

Offline

#25 2011-07-21 11:04:53

death__machine
Member
Registered: 2011-03-04
Posts: 69

Re: [Solved]Error after installing new nvidia driver uninstalling nouveau

I edited the mkinitcpio.conf but when I give the command 'mkinitcpio -p kernel26' it gives me preset not found. Checked the mounted /etc/mkinitcpio.d and it is there.


Edit: Ignore the above. I had a etc inside etc. I got mkinitcpio -p kernel 26 to work. But on reboot the same thing happens blank screen after daemon gdm

Last edited by death__machine (2011-07-21 11:32:21)

Offline

Board footer

Powered by FluxBB