Sabayon kernel 3.6-r3 - nvidia error [Solved]

Discussion in general that pertains to Sabayon Linux - Must Pertain to Sabayon Linux

Moderator: Moderators

Sabayon kernel 3.6-r3 - nvidia error [Solved]

Postby B3rtm3n » Wed Nov 07, 2012 18:38

I installed latest kernel with kernel switcher

For some reason when doing

Code: Select all
eselect opengl list


after kernel switcher in order to check I noticed it was set to xorg-x11 instead of Nvidia so switched it to Nvidia.

I rebooted and since my system refuses to boot with nvidia driver

When starting Nvidia X server settings I get the following message:

    You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run `nvidia-xconfig` as root), and restart the X server.

I reinstalled Nvidia drivers and did another install of the kernel but nothing helped.

Also when doing

Code: Select all
nvidia-xconfig


I get the the message:

    bash: nvidia-xconfig: command not found

Does anyone has had same issues? And how to solve them?

Thanks for any help
Last edited by B3rtm3n on Sat Nov 10, 2012 8:47, edited 1 time in total.
B3rtm3n
Growing Hen
 
Posts: 126
Joined: Fri Apr 13, 2012 2:53

Re: Sabayon kernel 3.6-r3 - nvidia error

Postby joeoden » Wed Nov 07, 2012 22:53

Check to see if you have the file /etc/X11/xorg.conf
Had similar thing after clean install of a daily iso built BEFORE: 2012-11-04
Problem was a missing file /etc/X11/xorg.conf
Didn't look into the problem (new image next day) as it was easier for me to install the 2012-11-04 image
Desktop ASUS M2N-MX SE Plus, AMD 64 X2 Dual Core 5200, 4 Gb RAM, GeForce 9500 1GB
Notebook HP CQ61-311AX, AMD CPU M320, 4 Gb RAM, Radeon HD 4300 512 MB
Wireless AR9285, Audio ATI SBx00 (IDT 92hd75B2x5)
Some mistakes are too much fun to only make once!
joeoden
Old Dear Hen
 
Posts: 474
Joined: Sun Mar 15, 2009 10:35
Location: Back in the 'swamp land' Moe, Australia 38°10′20″S 146°16′04″E

Re: Sabayon kernel 3.6-r3 - nvidia error

Postby sabayonino » Wed Nov 07, 2012 23:03

xorg.conf is generated at boot via dbus

make sure that kernel-switcher installed nvidia-drivers for 3.6 kernel
Code: Select all
# equo query installed nvidia-drivers | grep 3.6.0


if not :
Code: Select all
# equo install nvidia-drivers#`uname -r`
User avatar
sabayonino
Sagely Hen
 
Posts: 1563
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Sabayon kernel 3.6-r3 - nvidia error

Postby steffie » Wed Nov 07, 2012 23:15

also get this last times:
# Repositoriums-URL: http://pkg.sabayonlinux.org/standard/sa ... se/amd64/5
>> # Lokaler Repositoriums-Pfad: /var/lib/entropy/client/database/amd64/sabayon-limbo/standard/amd64/5
>> # Repositoriums-API: 3
>> (7/8) Web Dienst Kommunikationsfehler: get_packages_metadata TypeError('expected string or buffer',),
steffie
Simple Hen
 
Posts: 66
Joined: Fri May 04, 2012 2:40
Location: Neustadt a. Rbge.

Re: Sabayon kernel 3.6-r3 - nvidia error

Postby B3rtm3n » Thu Nov 08, 2012 5:49

When doing:

Code: Select all
equo query installed nvidia-drivers | grep 3.6.0


I got the following message:

    >> @@ Package: x11-drivers/nvidia-drivers-304.60#3.6.0-sabayon branch: 5, [__system__]
    >> Installed: version: 304.60 ~ tag: 3.6.0-sabayon ~ revision: 1
    >> Slot: 0,3.6.0-sabayon

I actually already reinstalled the drivers doing:

Code: Select all
equo install nvidia-drivers#3.6.0-sabayon


Also added me to the video group just to be sure (which was stated in the installation message):

Code: Select all
gpasswd -a peter video


and also:

Code: Select all
modprobe nvidia


does nothing

So just to be sure I did:

Code: Select all
equo install nvidia-drivers#`uname -r`


and rebooted and ... nothing happened, still same problem :cry:

when doing:

Code: Select all
eselect opengl set 2


I get the following message:

    Switching to nvidia OpenGL interface... done

but when I do:

Code: Select all
nvidia-xconfig


I still get the message:

    bash: nvidia-xconfig: command not found

So I started seaching and messing around and found at Gentoo the installation of Nvidia and noticed that when doing:

Code: Select all
nano /etc/X11/xorg.conf


gave me a blank file !!!

So I stumbled across this link: http://wiki.sabayon.org/index.php?title=NVidia_Config

and copied this into xorg.conf and changed somewhat the resolution and restarted x and all was back to normal however I was unable to do nvidia-xconfig which still gave me the same error message.

This time however I was able to start nvidia x server settings and did

Code: Select all
nvidia-settings


which enable me to save correct settings to the xorg file (allthough when starting it gave an error message: Fontconfig error: Cannot load config file "infinality/conf.d")

but still unable to do nvidia-xconfig
B3rtm3n
Growing Hen
 
Posts: 126
Joined: Fri Apr 13, 2012 2:53

Re: Sabayon kernel 3.6-r3 - nvidia error

Postby sabayonino » Thu Nov 08, 2012 10:03

wiki link is too old.

Try my xorg.conf configuration (I had nvidia card...)
Code: Select all
Section "Module"
    SubSection  "extmod"
       Option    "omit xfree86-dga"
    EndSubSection
    Load    "i2c"
    Load    "ddc"
    Load    "vbe"
    Load    "dri"
    Load    "glx"
    Load    "synaptics"
EndSection

Section "ServerFlags"
     Option    "AllowMouseOpenFail"    "true"
EndSection

Section "Monitor"
    Identifier    "Generic Monitor"
    VertRefresh    43 - 60
    HorizSync      28 - 80
EndSection


Section "Device"

    Identifier  "SabayonVga0"
    Driver      "nvidia"
    #BusID    "PCI:01:00"
    #Option "RenderAccel" "on"
    #Option "XAANoOffscreenPixmaps"
    #Option "BusType" "PCI"
    #Option "ColorTiling" "on"
    #Option "EnablePageFlip" "on"
    # UseEvents is causing segmentation faults with
    # NVIDIA 6xxx, 7xxx and >=275.xx.xx drivers
####    #Option "UseEvents" "True"
    Option "LogoPath" "/usr/share/backgrounds/sabayonlinux-nvidia.png"

EndSection
   


Section "Screen"

    Identifier    "Screen 0"
    Device        "SabayonVga0"
    Monitor       "Generic Monitor"
    Option       "AddARGBGLXVisuals" "true"

    DefaultDepth 24

    SubSection "Display"
        Depth      8
        ViewPort   0 0
        #Modes      "1024x768" "800x600" "640x480"
    EndSubsection

    SubSection "Display"
        Depth           16
        ViewPort        0 0
        #Modes      "1024x768" "800x600" "640x480"
    EndSubsection

    SubSection "Display"
        Depth           24
        ViewPort        0 0
        #Modes      "1024x768" "800x600" "640x480"
    EndSubsection

EndSection


Section "DRI"
    Mode 0666
EndSection

Section "ServerLayout"
    Identifier   "Main Layout"
    Screen 0    "Screen 0"
EndSection

Section "Extensions"
   #Option "Composite" "Enable"
EndSection
don't set nothing now. try this.
User avatar
sabayonino
Sagely Hen
 
Posts: 1563
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Sabayon kernel 3.6-r3 - nvidia error

Postby B3rtm3n » Thu Nov 08, 2012 17:49

Thanks for your help!

I have been doing some reading

Seems xorg.conf is generated by

Code: Select all
nvidia-xconfig


Since it is not working xorg.conf was blank of course.

I used your file and did in terminal as root:

Code: Select all
nvidia-settings


and saved the settings to xorg.conf.

This is my current output:

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

Section "Files"
    FontPath        "/usr/X11R6/lib/X11/fonts/misc/:unscaled"
    FontPath        "/usr/X11R6/lib/X11/fonts/misc/"
EndSection

Section "InputDevice"
    # generated from data in "/etc/conf.d/gpm"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Samsung SyncMaster"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 260"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection




Still not able to run nvidia-xconfig so do not know where the problem lies.
B3rtm3n
Growing Hen
 
Posts: 126
Joined: Fri Apr 13, 2012 2:53

Re: Sabayon kernel 3.6-r3 - nvidia error

Postby B3rtm3n » Sat Nov 10, 2012 8:25

Ok, I'll give it a try.

Should be interesting maybe for new users to put the commands too.

Concerning root, all my commands are being done as root. Problem is when putting # before the commands you can not do a simple copy & paste when needed :wink:

I actually did install this latest kernel on a second pc with nvidia and had the same error, when upgrading to latest kernel the system does not switch to nvidia but to xorg-X11.

I think it is a bug.
Last edited by B3rtm3n on Sat Nov 10, 2012 8:48, edited 2 times in total.
B3rtm3n
Growing Hen
 
Posts: 126
Joined: Fri Apr 13, 2012 2:53

Re: Sabayon kernel 3.6-r3 - nvidia error

Postby B3rtm3n » Sat Nov 10, 2012 8:46

ok, thanks a lot, sudo is working.

As being root I did the following:

Code: Select all
equo remove xf86-video-nouveau


Code: Select all
equo install nvidia-drivers#`uname -r`


Code: Select all
eselect opengl set nvidia


added me (peter) to the user group

Code: Select all
gpasswd -a peter video


restarted x

and did NOT as root

Code: Select all
sudo nvidia-xconfig


restarted x

all back to normal

btw xorg.conf file reads as follows:

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

Section "Files"
    FontPath        "/usr/X11R6/lib/X11/fonts/misc/:unscaled"
    FontPath        "/usr/X11R6/lib/X11/fonts/misc/"
EndSection

Section "InputDevice"

    # generated from data in "/etc/conf.d/gpm"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Samsung SyncMaster"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 260"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Last edited by B3rtm3n on Sat Nov 10, 2012 10:42, edited 5 times in total.
B3rtm3n
Growing Hen
 
Posts: 126
Joined: Fri Apr 13, 2012 2:53


Return to Sabayon Linux General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests