Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
giaurOffline
Post subject: Error while compiling noueveau driver  PostPosted: 06.02.2011, 22:38



Joined: 2011-01-05
Posts: 34

Status: Offline
Hello,

Since aptosid kernel has no nouveau or nv drivers (not very nice btw), I'm trying to compile nouveau by myself. But still without success:

      Code:

nouveau/drivers/gpu/drm/nouveau/nouveau_drv.c: In function ‘nouveau_pci_suspend’:
nouveau/drivers/gpu/drm/nouveau/nouveau_drv.c:237: error: implicit declaration of function ‘console_lock’

nouveau/drivers/gpu/drm/nouveau/nouveau_drv.c:239: error: implicit declaration of function ‘console_unlock’



Do you have any idea how can I make this to compile? I need nouveau or nv to make my portable debian able to boot on any intel, nvidia or ati hardware. So, I need xorg to have no xorg.conf and I can't use driver from nvidia.com

Any ideas?
 
 View user's profile Send private message  
Reply with quote Back to top
devilOffline
Post subject: RE: Error while compiling noueveau driver  PostPosted: 07.02.2011, 00:31



Joined: 2010-08-26
Posts: 491
Location: Berlin
Status: Offline
no idea on the compiling.
but there is nothing we can do about both being unusable. nv will probably stay in coma forever. nouveau will stabilize until it is usable with aptosid/unstable. right now its not as it would break on most every kernel upgrade.

greetz
devil
 
 View user's profile Send private message  
Reply with quote Back to top
muchan
Post subject: RE: Error while compiling noueveau driver  PostPosted: 07.02.2011, 08:39
Moderator


Joined: 2010-09-11
Posts: 468

> Any ideas?

maybe "vesa"?
 
 View user's profile Send private message  
Reply with quote Back to top
giaurOffline
Post subject: RE: Error while compiling noueveau driver  PostPosted: 07.02.2011, 12:34



Joined: 2011-01-05
Posts: 34

Status: Offline
No, vesa is not a solution. Vesa even does not support 16:9 or 16:10 screen resolutions :/ while nv or nouveau does...

So what I can try:
- use nv or nouveau
- integrate original nvidia drivers with xorg to make it to work without xorg.conf - this propably would the best solution but seems to be impossible or very difficult

Maybe there is any way to compile nv with your kernel?
 
 View user's profile Send private message  
Reply with quote Back to top
towoOnline!
Post subject:   PostPosted: 07.02.2011, 12:44



Joined: 2010-09-13
Posts: 497
Location: Pößneck / Thüringen
Status: Online!
      Quote:
- integrate original nvidia drivers with xorg to make it to work without xorg.conf - this propably would the best solution but seems to be impossible or very difficult

What?
Have you ever had a look in our manual?
There is nothing difficult!
 
 View user's profile Send private message  
Reply with quote Back to top
giaurOffline
Post subject:   PostPosted: 08.02.2011, 08:00



Joined: 2011-01-05
Posts: 34

Status: Offline
Sorry, I'm not much familiar with aptosid. I'm actually debian user. Can you please post any link?

And finally - do you mean real xorg integration (same way as nv, intel, nouveau does) when xorg chooses driver by itself or some script (I can remeber something like this was present on sidux live cd, but not for drivers from nvidia.com)?
 
 View user's profile Send private message  
Reply with quote Back to top
towoOnline!
Post subject:   PostPosted: 08.02.2011, 08:05



Joined: 2010-09-13
Posts: 497
Location: Pößneck / Thüringen
Status: Online!
Recent Xserver needs a stanza in /etc/X11/xorg.conf.d/20-nvidia.conf, as you can read in our manual!
And no, i will not post the link, since the link to our manual is on the frontpage of aptosid.com.
 
 View user's profile Send private message  
Reply with quote Back to top
giaurOffline
Post subject:   PostPosted: 12.02.2011, 14:19



Joined: 2011-01-05
Posts: 34

Status: Offline
Ok, I've read this manual. But I have a question (and no, there is no answer in manual). Is this necessary to use nvidia-glx from repo?

I've tried this with drivers downloaded and installed using nvidia's installer script, but of course without creating xorg.conf (I answered to not create xorg.conf when installer asked).

After creating 20-nvidia.conf it works fine with nvidia hardware. But it seems that xorg always loads nvidia glx extension, even if no nvidia hardware present.

So, when I boot system (for example) on my intel laptop, xorg still tries to load nvidia drivers. It fails and no driver loaded and xorg fails to start.

After creating similar 20-intel.conf:
- still xorg tries to load nvidia driver - it fails
- then, xorg tries to load intel driver. Driver will load, but without 3D acceleration (for example, compiz will not work).

Sorry, but I still can't figure it out. Should I create 20-x files for each graphic card or for nvidia only? I've also tried to add other sections to 20-intel.conf file but they seems to be ignored.

If using nvidia-glx from repo (instead of original nvidia drivers) can solve this problems, I use it. But if not, I preffer driver from nvidia.com
 
 View user's profile Send private message  
Reply with quote Back to top
towoOnline!
Post subject:   PostPosted: 12.02.2011, 18:58



Joined: 2010-09-13
Posts: 497
Location: Pößneck / Thüringen
Status: Online!
I don't understand, what you mean!
On non-nvidia hardware there will never ever loaded nvidia-glx!
 
 View user's profile Send private message  
Reply with quote Back to top
giaurOffline
Post subject:   PostPosted: 12.02.2011, 23:16



Joined: 2011-01-05
Posts: 34

Status: Offline
I'm afraid this is not true. Look at this log (Xorg.0.log):

      Quote:

[ 18.002]
X.Org X Server 1.9.4
Release Date: 2011-02-04
[ 18.116] X Protocol Version 11, Revision 0
[ 18.116] Build Operating System: Linux 2.6.32-5-amd64 x86_64 Debian
[ 18.116] Current Operating System: Linux debian 2.6.37-0.slh.23-aptosid-amd64 #1 SMP PREEMPT Sat Feb 12 13:08:54 UTC 2011 x86_64
[ 18.116] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.37-0.slh.23-aptosid-amd64 root=UUID=b4a08b69-2a2c-4e00-b746-be84865647db ro quiet
[ 18.116] Build Date: 05 February 2011 12:02:52PM
[ 18.117] xorg-server 2:1.9.4-1 (Cyril Brulebois <kibi>)
[ 18.117] Current version of pixman: 0.21.4
[ 18.117] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 18.117] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 18.117] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Feb 12 23:56:57 2011
[ 18.422] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 18.422] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 18.551] (==) No Layout section. Using the first Screen section.
[ 18.551] (==) No screen section available. Using defaults.
[ 18.551] (**) |-->Screen "Default Screen Section" (0)
[ 18.551] (**) | |-->Monitor "<default>"
[ 18.551] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 18.551] (**) | |-->Device "Device 0"
[ 18.551] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 18.551] (==) Automatically adding devices
[ 18.551] (==) Automatically enabling devices
[ 18.747] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 18.747] Entry deleted from font path.
[ 18.747] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[ 18.747] Entry deleted from font path.
[ 18.747] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[ 18.747] Entry deleted from font path.
[ 18.769] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[ 18.769] Entry deleted from font path.
[ 18.769] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[ 18.769] Entry deleted from font path.
[ 18.850] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/Type1,
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,
built-ins
[ 18.850] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 18.850] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 18.850] (II) Loader magic: 0x7cfac0
[ 18.850] (II) Module ABI versions:
[ 18.850] X.Org ANSI C Emulation: 0.4
[ 18.850] X.Org Video Driver: 8.0
[ 18.850] X.Org XInput driver : 11.0
[ 18.850] X.Org Server Extension : 4.0
[ 18.851] (--) PCI:*(0:0:2:0) 8086:2a02:1028:01fe rev 12, Mem @ 0xfea00000/1048576, 0xe0000000/268435456, I/O @ 0x0000efe8/8
[ 18.852] (--) PCI: (0:0:2:1) 8086:2a03:1028:01fe rev 12, Mem @ 0xfeb00000/1048576
[ 18.852] (II) Open ACPI successful (/var/run/acpid.socket)
[ 18.852] (II) LoadModule: "extmod"
[ 19.075] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[ 19.104] (II) Module extmod: vendor="X.Org Foundation"
[ 19.104] compiled for 1.9.4, module version = 1.0.0
[ 19.104] Module class: X.Org Server Extension
[ 19.104] ABI class: X.Org Server Extension, version 4.0
[ 19.104] (II) Loading extension SELinux
[ 19.104] (II) Loading extension MIT-SCREEN-SAVER
[ 19.104] (II) Loading extension XFree86-VidModeExtension
[ 19.104] (II) Loading extension XFree86-DGA
[ 19.104] (II) Loading extension DPMS
[ 19.104] (II) Loading extension XVideo
[ 19.104] (II) Loading extension XVideo-MotionCompensation
[ 19.104] (II) Loading extension X-Resource
[ 19.104] (II) LoadModule: "dbe"
[ 19.105] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[ 19.124] (II) Module dbe: vendor="X.Org Foundation"
[ 19.124] compiled for 1.9.4, module version = 1.0.0
[ 19.124] Module class: X.Org Server Extension
[ 19.124] ABI class: X.Org Server Extension, version 4.0
[ 19.124] (II) Loading extension DOUBLE-BUFFER
[ 19.124] (II) LoadModule: "glx"
[ 19.164] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 20.417] (II) Module glx: vendor="NVIDIA Corporation"
[ 20.421] compiled for 4.0.2, module version = 1.0.0
[ 20.421] Module class: X.Org Server Extension
[ 20.421] (II) NVIDIA GLX Module 260.19.36 Tue Jan 18 17:12:12 PST 2011
[ 20.421] (II) Loading extension GLX
[ 20.421] (II) LoadModule: "record"
[ 20.421] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[ 20.440] (II) Module record: vendor="X.Org Foundation"
[ 20.440] compiled for 1.9.4, module version = 1.13.0
[ 20.440] Module class: X.Org Server Extension
[ 20.440] ABI class: X.Org Server Extension, version 4.0
[ 20.440] (II) Loading extension RECORD
[ 20.440] (II) LoadModule: "dri"
[ 20.441] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
[ 20.465] (II) Module dri: vendor="X.Org Foundation"
[ 20.465] compiled for 1.9.4, module version = 1.0.0
[ 20.465] ABI class: X.Org Server Extension, version 4.0
[ 20.465] (II) Loading extension XFree86-DRI
[ 20.465] (II) LoadModule: "dri2"
[ 20.465] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[ 20.467] (II) Module dri2: vendor="X.Org Foundation"
[ 20.467] compiled for 1.9.4, module version = 1.2.0
[ 20.467] ABI class: X.Org Server Extension, version 4.0
[ 20.467] (II) Loading extension DRI2
[ 20.467] (II) LoadModule: "nvidia"
[ 20.467] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 20.560] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 20.564] compiled for 4.0.2, module version = 1.0.0
[ 20.564] Module class: X.Org Video Driver
[ 21.579] (EE) NVIDIA: Failed to load the NVIDIA kernel module. Please check your
[ 21.579] (EE) NVIDIA: system's kernel log for additional error messages.
[ 21.579] (II) UnloadModule: "nvidia"
[ 21.579] (II) Unloading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 21.579] (EE) Failed to load module "nvidia" (module-specific error, 0)
[ 21.579] (EE) No drivers available.
[ 21.579]
Fatal server error:
[ 21.579] no screens found
[ 21.579]
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 21.579] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 21.579]



This is from my laptop with intel card and as you can see, xorg tries to load nvidia and nvidia only! Intel drivers are not loaded at all.

Everything is done as described in your manual except one thing: there is ORIGINAL nvidia driver installed (downloaded from nvidia.com), not nvidia-glx and nvidia-kernel from your repo. I have no idea if this make any different?

And, as I said before: I've also tried to create similar 20-intel.conf, replacing "nvidia" to "intel". But in this case: still nvidia tries to load, it fails and then intel is loading but the result is: no 3D acceleration with intel (I have no log but I can provide one if you wish).

So, maybe I should ask: what shoulud I put to 20-intel.conf to make everything work? Or, if you have any idea, please tell me... If I've ommited something, please tell me what is this?
 
 View user's profile Send private message  
Reply with quote Back to top
towoOnline!
Post subject:   PostPosted: 13.02.2011, 10:46



Joined: 2010-09-13
Posts: 497
Location: Pößneck / Thüringen
Status: Online!
Are you crazy?
Why you install nvidia drivers on intel hardware?
I'm out here, this must understand no one.
 
 View user's profile Send private message  
Reply with quote Back to top
giaurOffline
Post subject:   PostPosted: 13.02.2011, 12:09



Joined: 2011-01-05
Posts: 34

Status: Offline
Ok, I'll explain this in detail. I have external usb disk with debian installed on it. I can succesfully boot system from this disk on almost any computer.
There is only one problem - graphic card drivers. Everything is ok when INTERNAL xorg drivers are used - in that case if there is no xorg.conf present, xorg detects by itself which driver to use (intel, vmware and many others tested).

But what about nvidia drivers? I hope you understand now: I want to have nvidia drivers intalled, but they should be loaded only when booting on nvidia hardware.

Summary: xorg is able to detect any hardware and load appropriate drivers. So, I wanto to make xorg to load installed nvidia drivers if nvidia card detected and intel drivers when nvidia card is detected.

How do you think, this is possible or not?
 
 View user's profile Send private message  
Reply with quote Back to top
towoOnline!
Post subject:   PostPosted: 13.02.2011, 12:57



Joined: 2010-09-13
Posts: 497
Location: Pößneck / Thüringen
Status: Online!
No, that is not possible, sice the nvidia-driver replaceing libglx.so with it's own version.
But hey, the recent aptosid-kernel has nouveau in, so no binary blob needed.
 
 View user's profile Send private message  
Reply with quote Back to top
giaurOffline
Post subject:   PostPosted: 14.02.2011, 18:02



Joined: 2011-01-05
Posts: 34

Status: Offline
Possible there is nouveau already but it does not work :/
 
 View user's profile Send private message  
Reply with quote Back to top
towoOnline!
Post subject:   PostPosted: 14.02.2011, 18:14



Joined: 2010-09-13
Posts: 497
Location: Pößneck / Thüringen
Status: Online!
"does not work" is not an error message!
And this all can't work, if there was nvidia installed from script and not removed proper!
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio