SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Interestingly enough, last week, I build 2.6.33 on a Slackware 12.2 box. Just like my current box, I had the same problems building the nvidia driver. However, this was on a legacy hardware (nvidia-96). I'm also wondering if there is a difference between 32-bit and 64-bit.
Glad the patch helped some
Sorry it did not help all
as an aside
the nouveau driver requires xserver-1.7
it will grab your framebuffer even though it doesn't work
I am not running current but 13.0 uses xserver-1.6.3
john
Thanks to all the tips in this thread I now have my nVidia GeForce 7300 LE running with the patched 190.53 driver installed using the nVidia installer on 32 bit -current using the generic kernel with an initrd. I also needed to blacklist nouveau.
VirtualBox 3.1.2 is also working after using the symlink so that the Slackbuild script could recompile the kernel module.
A big thanks to all contributors!
PS- The nouveau driver worked OK when I did startx without any xorg.conf, but when leaving X I was left with a corrupted display that I could only recover from by rebooting. Also, when using the nouveau driver, xrandr did not report the presence of my second monitor.
PS- The nouveau driver worked OK when I did startx without any xorg.conf, but when leaving X I was left with a corrupted display that I could only recover from by rebooting. Also, when using the nouveau driver, xrandr did not report the presence of my second monitor.
AFAIK the current nouveau source is incompatible & doesnt work with the drm included in the 2.6.33.x kernels.
You have to compile a seperate nouveau drm source tree.
I dont know why Pat included it in the kernel at this point and personally i consider it a bug.
startx results in a corrupted screen. ctrl-alt-f1 will return me to the console but doesn't restore the screen. Typing blind I was able to issue commands though, which at least allowed me to shutdown cleanly. I've tried both the nv and svga based xorg.conf files I had been using previously, both with and without blacklisting the nouveau module.
Without a Xorg.conf file I do get a working screen, but only at 1024x768 which is no use to me as it makes everything blurry
Running xorgsetup also produces the corrupted screen when it does the hardware probe, which means I can't complete the dialog and generate a new xorg.conf
This is using a Nvidia GT140 card.
Haven't tried the proprietary driver yet.
update:
I found by specifying vga=0 at boot solves the screen corruption and inability to swap back to a console, so it looks framebuffer related.
Using the nv driver results in nothing other than the cursor being drawn on a black screen. The cursor does change shape when you move it about over different elements of the desktop that would be there if you could see them.
I've managed to get it working with the VESA driver now at a decent resolution, I just need to find a way to up the refresh-rate now.
Distribution: Slackware_x64 15.0 and slackware-current
Posts: 33
Rep:
One Solution
I tried various things, but in my case I followed these steps to get things to work (fixed the Invalid module format issue)
cp /boot/config-huge-2.6.33 /usr/src/linux-2.6.33/.config && cd /usr/src/linux-2.6.33 && make && make modules_install && cp arch/x86_64/boot/bzImage /boot/vmlinuz && lilo && echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf && telinit 6
I then downloaded and installed the latest certified (and NVIDIA recommended) NVIDIA driver released 3/3/2010 (195.36.08) from the NVIDIA site. This release doesn't need to be patched apparently because it worked fine.
I tried various things, but in my case I followed these steps to get things to work (fixed the Invalid module format issue)
cp /boot/config-huge-2.6.33 /usr/src/linux-2.6.33/.config && cd /usr/src/linux-2.6.33 && make && make modules_install && cp arch/x86_64/boot/bzImage /boot/vmlinuz && lilo && echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf && telinit 6
I then downloaded and installed the latest certified (and NVIDIA recommended) NVIDIA driver released 3/3/2010 (195.36.08) from the NVIDIA site. This release doesn't need to be patched apparently because it worked fine.
I downloaded the Nvidia driver version 195.36.08 and then installed it properly.
However, when I run #startx to init the X server, I could not startx the X, the message say that "could not load module nvidia"
I don't know how to show all the message outputted by the "startx" command. Could you tell me how to "catch" those messages?
And, what's wrong with my computer?
I'm using slack13, Asus K40IN laptop. Nvidia Geforce G102M
Last time, before I upgrade my kernel to 2.6.33 everything is fined: after I install the nvidia driver, I can start KDE.
I was able to get -current working with NVIDIA doing these step. (general steps not specific)
1. Use the /boot/config-huge-2.6.33-smp to recompile the 2.6.33 kernel (/usr/src/linux/make && make modules_install)
2. Blacklist the "nouveau" in /etc/modprobe.d/blacklist (kernel would panic without this)
3. Download new ./NVIDIA.sh version 190.53 and apply the patch (patch is copied in previous post)
NVIDIA-Linux-x86-190.53-pkg2.run --apply-patch nvidia-190.53-2.6.33.patch.txt
The NVIDIA-190.53.sh would not properly install the driver on my machine without the patch applied.
Thanks samac and smoooth103 for your precious instruction. Now I'm here with my new kernel system + KDE.
Could you please answer me some newbie questions?
- Why can you catch those error messages when you run startx? I tried: startx > error.txt but it did not work.
"
WARNING: Error inserting agpgart (/lib/modules/2.6.33/kernel/drivers/char/agp/agpgart.ko): Invalid module format
FATAL: Error inserting nvidia (/lib/modules/2.6.33/kernel/drivers/video/nvidia.ko): Invalid module format
smoooth "
- I guessed my error is because of "nouveau" driver do not work with xserver < 1.7, and the nouveau only work with kernel mode setting. Why can you figure this error? And why a recompiling the kernel and then blacklist nouveau can fix this problems? (The kernel has been rebuilt already before the nouveau was blacklist, why isn't it late to blacklist it?)
In this way I got 2.6.33 and nvidia drivers working (very similar to smoooth103 by the way):
1. Boot huge and recompile kernel (I had to make it since I have > 4Gb and I don't want to use slack64 + multilib (*)) using config-generic-smp-2.6.33-smp as template.
2. Blacklist nouveau.
3. Use nvidia 195.36.08. No patches needed, I just edited the corresponding slackbuilds to obtain nvidia-driver-195.36.08-i486-1_SBo (comment out the line #rm vdpau/libvdpau.so.$VERSION vdpau/libvdpau_trace.so.$VERSION) and nvidia-kernel-195.36.08_2.6.33_smp-i486-1_SBo. Let me know if you want the sbo files.
(*) by the way, does someone know if including PAE in the 32-bit kernel degrades its performance?. If not, why is not included by default in the distributed kernel. Or am I supposed to stick to slack64 + multilibe if have more than 4 Gb?
How-to use the nouveau driver with a 2.6.33 kernel and X11R7.5 running Slackware-current
1. Read this page.
2. Follow instructions beginning at step 3, as xorg7.5 and kernel 2.6.33 (which includes the kernel module among "staging drivers") are included in -current since March 1, 2010.
To avoid the framebuffer problem:
1. blacklist nouveau in /etc/moprobe.d/blacklist.conf
2. include "/sbin/modprobe/ nouveau" in /etc/rc.d/rc.local -- and have this file executable, of course.
@sakho : don't complain about Pat because nouveau is in 2.6.33 tree, as it's Linus' fault ... But then, bear in mind that it's in "staging drivers" for a reason.
May be you could ask for an upgrade of libdrm in -current instead, though I didn't try the package libdrm-2.4.18-x86_64-1.txz included in the last batch of changes as I run -stable for now; may be it works as well as the one in the git tree ? Not sure at all about that though. [EDIT]BTW libdrm-2.4-19 has been released yesterday[/EDIT]
And of course it would be nice to see xf86-video-nouveau in -current as well -- unfortunately it's not available in X11R7.5 release
PS Most of this was explained already in former threads -- only a reminder.
Last edited by Didier Spaier; 03-05-2010 at 03:25 AM.
Reason: Clarification
Distribution: Slackware_x64 15.0 and slackware-current
Posts: 33
Rep:
Quote:
Originally Posted by kemsiro
I downloaded the Nvidia driver version 195.36.08 and then installed it properly.
However, when I run #startx to init the X server, I could not startx the X, the message say that "could not load module nvidia"
I don't know how to show all the message outputted by the "startx" command. Could you tell me how to "catch" those messages?
And, what's wrong with my computer?
I'm using slack13, Asus K40IN laptop. Nvidia Geforce G102M
Last time, before I upgrade my kernel to 2.6.33 everything is fined: after I install the nvidia driver, I can start KDE.
kemsiro,
The issue is related to the kernel modules. They need to be recompiled in order to eliminate the nvidia module not loading due to a fatal error. It is something specific to kernel version 2.6.33.
The error messages can be found in the /var/log/Xorg.0.log. Since you can also see the message "could not load module nvidia" from the startx output, you could then try to manually load the nvidia module using modprobe nvidia which would give you the error message output. Pretty sure that it will be two lines stating that the module format is invalid.
The issue is related to the kernel modules. They need to be recompiled in order to eliminate the nvidia module not loading due to a fatal error. It is something specific to kernel version 2.6.33.
The error messages can be found in the /var/log/Xorg.0.log. Since you can also see the message "could not load module nvidia" from the startx output, you could then try to manually load the nvidia module using modprobe nvidia which would give you the error message output. Pretty sure that it will be two lines stating that the module format is invalid.
Hope that helps.
Yes, the messages are exactly as you said.
Thank you very much for showing me the place that hold the error log.
However, I still wonder the order of those steps.
From the steps I followed, I figure out that the order is that at first I need to compile the kernel source, then install it (by replacing the /boot/vmlinuz & run lilo), then blacklist the nouveau?
Why shouldn't it be: "blacklist the nouveau module before recompiling & installing the kernel"? This order is more logical to prevent nouveau from recompiling to the kernel?
Sorry if my question is a newbie question. I am really a newbie .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.