PDA

View Full Version : [ubuntu] Can't start X with nvidia driver



Raspounch
February 26th, 2011, 09:47 AM
Hi everyone, as mentionned in the title I couldn't manage to run X with nvidia driver installed. My graphic card is a nvidia gt 335M.

I'm sure this problem is common but I can't really figure out a workaround and haven't found one yet, maybe lack of searching.. Sorry if the answer is obvious and/or available.

I have nvidia-glx-185 and jockey-gtk packages installed, what I did is created a new config using nvidia-xconfig, the corresponding xorg.conf is attached, I also attached the output of startx with this conf, and of the command X -configure which fails too, and last the xorg.conf.new file created by X -configure I think.

Thank's for any help provided !



# xorg.conf file


# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 260.19.36 (buildmeister@swio-display-x86-rhel47-01.nvidia.com) Tue Jan 18 17:15:22 PST 2011

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

Section "Files"
EndSection

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

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

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection




# startx output


X.Org X Server 1.9.0
Release Date: 2010-08-20
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-28-server x86_64 Ubuntu
Current Operating System: Linux ubuntu 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21 17:40:44 UTC 2011 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.35-25-generic root=/dev/sda1 loop=/ubuntu/disks/root.disk ro quiet splash
Build Date: 09 January 2011 12:14:27PM
xorg-server 2:1.9.0-0ubuntu7.3 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.18.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Feb 26 09:28:40 2011
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) No devices detected.

Fatal server error:
no screens found

Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

ddxSigGiveUp: Closing log
giving up.
xinit: No such file or directory (errno 2): unable to connect to X server
xinit: No such process (errno 3): unexpected signal 2.




# X -configure output

X.Org X Server 1.9.0
Release Date: 2010-08-20
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-28-server x86_64 Ubuntu
Current Operating System: Linux ubuntu 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21 17:40:44 UTC 2011 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.35-25-generic root=/dev/sda1 loop=/ubuntu/disks/root.disk ro quiet splash
Build Date: 09 January 2011 12:14:27PM
xorg-server 2:1.9.0-0ubuntu7.3 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.18.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Feb 26 09:29:58 2011
List of video drivers:
trident
apm
nouveau
s3
voodoo
mga
nvidia
neomagic
sis
siliconmotion
nv
tseng
ati
s3virge
i128
vmware
mach64
vmwlegacy
cirrus
savage
radeon
sisusb
ark
rendition
r128
tdfx
chips
intel
openchrome
fbdev
vesa
(EE) Failed to load module "vmwgfx" (module does not exist, 0)
(EE) vmware: Please ignore the above warnings about not being able to to load module/driver vmwgfx
(++) Using config file: "/root/xorg.conf.new"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) [drm] No DRICreatePCIBusID symbol
Number of created screens does not match number of detected devices.
Configuration failed.
ddxSigGiveUp: Closing log




# xorg.conf.new file

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "built-ins"
EndSection

Section "Module"
Load "extmod"
Load "glx"
Load "dbe"
Load "dri"
Load "record"
Load "dri2"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "VideoKey" # <i>
Identifier "Card0"
Driver "nouveau"
BusID "PCI:1:0:0"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "NoAccel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "ColorKey" # <i>
#Option "CacheLines" # <i>
#Option "Dac6Bit" # [<bool>]
#Option "DRI" # [<bool>]
#Option "NoDDC" # [<bool>]
#Option "ShowCache" # [<bool>]
#Option "XvMCSurfaces" # <i>
#Option "PageFlip" # [<bool>]
Identifier "Card1"
Driver "intel"
BusID "PCI:0:2:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

cascade9
February 26th, 2011, 10:02 AM
I dont hink that the 185 series drivers support the 335M.

I'd bet that you've got some optimus or hybrid graphics laptop as well. What model is it?

Raspounch
February 26th, 2011, 10:40 AM
Thx for fast answer, I didn't know which one to choose between 96, 173 and 185, I picked the latest hoping for the best. I would try for each but setting up the config rebooting etc is a pain in the ***, if you think another one could work I'll try of course.

And yes the laptop is an ASUS N53j and it's supposed to switch between the i5 proc and 335M chips depending on usage, I didn't even remember this twisted feature but now that you mention it I wouldn't be surprised that it just doesn't manage to switch on the actual graphic card, I had problems with this on 7 too.

edit: I also tried downloading the driver from asus.com as I recall, didn't have much luck either with this, don't really remember the exact outcome though but I'm pretty sure it's the same as above. Oh and it's a 64bit machine.

realzippy
February 26th, 2011, 10:51 AM
read this (http://ubuntuforums.org/showthread.php?t=1657660)

cascade9
February 26th, 2011, 10:56 AM
ASUS N53j? I dont know for sure if its using optimus or not (sometimes is hard to tell).

I'd doubt that you will get the nvidia GPU going. If you can, it wont be with the 185.xx drivers.

BTW, as far as I can see 185.xx was in 9.10 and earlier versions of ubuntu. Why didnt you install a newer version?

Raspounch
February 26th, 2011, 11:15 AM
Wow I didn't expect that. I mean wtf ! I'll try checking the bios but I'm sure I would've already disabled the proc chip by now if it were at all possible. Damn I don't have much complaints about this laptop and ASUS in general, but this is a huge bummer, hurrayz for freestyle green features without anyone actually working on it once it's out !

To answer cascade9, I don't know, in the graphical package manager from 10.10 with a nvidia search only the 3 I quoted pop. Dunno why :o (that seemed a little light for a nvidia keyword search to me too.. any idea why's that ?)

And yeah I know for a fact it uses optimus.. as I told you I already had trouble with it, and lspci confirms it.

Thank's for your answers, too bad for Optimus users !

ps : can't see how to change prefix to Solved, even though not that much !

cascade9
February 26th, 2011, 11:19 AM
With 10.10 and nVidia 6XXX and higher cards, get 'nvidia-current' (260.xx).

Though it probably wont fix your problem, its worth putting into the thread just in case somebody else reads this later ;)

*edit- AFAIK with ubuntu you cant realy install the drivers from a GUI, apart from jockey.