Skip to main content

Make sure Nvidia drivers is used by agp

After install nvidia drivers I notice that agp driver status says I use agpgart not nvidia drivers.
pnix@pnix-a7n:~$ cat /proc/driver/nvidia/agp/status
Status: Enabled
Driver: AGPGART
AGP Rate: 8x
Fast Writes: Disabled
SBA: Enabled
pnix@pnix-a7n:~$

even nvidia module is already loaded.
pnix@pnix-a7n:~$ lsmod|grep agpgart
agpgart 35400 2 nvidia,nvidia_agp
pnix@pnix-a7n:~$

Some old tutorials will advice you try to disable agpgart[for 2.4 kernel] but not for 2.6.

From nvidia readme appendix F

"On Linux 2.6, the agpgart.ko frontend module will always be loaded, as it is used by the NVIDIA kernel module to determine if an AGPGART backend module is loaded. When the NVIDIA AGP driver is to be used on a Linux 2.6 system, it is recommended that you make sure the AGPGART backend drivers are built as modules and that they are not loaded."
this confirm by
pnix@pnix-a7n:~$ modinfo nvidia
filename: /lib/modules/2.6.20-16-generic/volatile/nvidia.ko
license: NVIDIA
alias: char-major-195-*
alias: pci:v000010DEd*sv*sd*bc03sc02i00*
alias: pci:v000010DEd*sv*sd*bc03sc00i00*
depends: agpgart,i2c-core
vermagic: 2.6.20-16-generic SMP mod_unload 586
parm: NVreg_VideoMemoryTypeOverride:int
.
.
parm: NVreg_RMEdgeIntrCheck:int
parm: nv_disable_pat:int
pnix@pnix-a7n:~$

So anyways agpgart will be loaded because it's needed by nvidia drivers.
As I understand, There are two drivers nvidia_agp[the kernel module for NForce motherboards] and nvidia[proprietary drivers from nvidia]. If both are loaded together, nvidia_agp will be choosed and used as agp driver. To make sure nvidia drivers will be loaded, open /etc/modprobe.d/blacklist with your text editor, add "blacklist nvidia_agp"[for my case] to the end of file then reboot.
blacklist nvidia_agp

Check agp driver status again. Now it says NVIDIA
pnix@pnix-a7n:~$ cat /proc/driver/nvidia/agp/status
Status: Enabled
Driver: NVIDIA
AGP Rate: 8x
Fast Writes: Disabled
SBA: Enabled
pnix@pnix-a7n:~$ lsmod|grep agpgart
agpgart 35400 1 nvidia
pnix@pnix-a7n:~$

Note: module to block is depend on output of lsmod|grep agpgart. It can be amd64_agp,sis_agp or something else.

Comments

Anonymous said…
i followed your method (added via_agp to blacklist), but when i went to check the driver, it said agp is disabled. i'm running ubuntu feisty 2.6.20-16-generic. i have a geforce 7300 gt vid card and 1gb of ram. any help is great. thx
pnix said…
what is output of your 'lsmod|grep agpgart' before you add blacklist.
Anonymous said…
agpgart 35400 2 nvidia,via_agp
Anonymous said…
oh yeah, i installed my nvidia drivers through envy, since i don't really know how to install it manually. i also had envy to autowrite my xorg.conf file. i appreciate your help
pnix said…
so, look like your nvidia module is loaded but may be it fail to initialize.

What's your "Device" section in '/etc/X11/xorg.conf'? and did you see anything wrong in your 'dmesg' output?
Anonymous said…
Here are links to my xorg.conf and dmesg. I don't think there's any errors mentioned in my dmesg, but then again I'm not quite sure how to read it? Anyways, here are the links... Thanks again for helping

http://blog.toointence.com/dmesg.txt
http://blog.toointence.com/xorg.txt
pnix said…
wait, I'm confuse,
1. what is your 'cat /proc/driver/nvidia/agp/status' before and after adding via_agp to blacklist?
2. /var/log/Xorg.0.log before and after?
Anonymous said…
1. before i add via_agp to the blacklist, i have:
Status: Enabled
Driver: AGPGART
AGP Rate: 8x
Fast Writes: Disabled
SBA: Enabled


2. here is a link to the log file (before i add via_agp to the blacklist):
http://blog.toointence.com/xorg.log.txt


- again i'm not quite sure what i'm looking for, but i saw this "(II) NVIDIA(0): Using the NVIDIA 2D acceleration architecture". not sure if that means anything. but thanks for helping again.
Anonymous said…
this is what i get after adding via_agp to the blacklist:

1. Status: Disabled

AGP initialization failed, please check the ouput
of the 'dmesg' command and/or your system log file
for additional information on this problem.

2. this is the log:
http://blog.toointence.com/xorg.log2.txt

3. this is the dmesg after adding via_agp to blacklist:
http://blog.toointence.com/dmesg_after.txt

thanks
pnix said…
both your Xorg.0.log looked fine to me, nothing wrong with "(II) NVIDIA(0): Using the NVIDIA 2D acceleration architecture". nvidia driver is loaded correctly nothing error.
if 'cat /proc/driver/nvidia/agp/status' said "disabled", it should have some error show in dmesg or Xorg.0.log.

One more thing if you want to try is add 'Option "NvAGP" "1"' to your device section in /etc/X11/xorg.conf like this.

Section "Device"
Identifier "NVIDIA GeForce 7300 GT"
Driver "nvidia"
BusID "PCI:1:0:0"
VideoRam 512000
Option "NvAGP" "1"
Option "UseFBDev" "true"

Option "UseFastTLS" "3"

EndSection

then reboot. If this kill your X or freeze your box reboot to recovery mode then take it out.
Anonymous said…
I added Option "NvAGP" "1" and still no luck. "cat /proc/driver/nvidia/agp/status" still brings up as disabled.

here is my log and dmesg.

http://blog.toointence.com/dmesg3.txt
http://blog.toointence.com/xorg.log3.txt

i understand that there's probably not much more you can think of to help me out, but thanks again for trying. at least i got some feedback for once :)
pnix said…
I guess maybe this is specific for via chipset motherboard.

from README http://us.download.nvidia.com/XFree86/Linux-x86/100.14.11/README/chapter-12.html
the list of support via chipset are
VIA 8371
VIA 82C694X
VIA KT133
VIA KT266
VIA KT400
VIA P4M266
VIA P4M266A
VIA P4X400
VIA K8T800
VIA K8N800
VIA PT880
VIA KT880

what is youe mobo model and chipset?
let me guess again, if yours is not supported, nvidia recommend to use AGPGART that mean via-agp must be loaded. So your choice is remove via-agp from blacklist and use AGPGART until it support your chipset. find out more detail in the link.

and next time go for nforce :)

Cheers,
Anonymous said…
Oh, that's the problem. Yeah, I have a MSI PM8M-V mobo and it has the VIA P4M800 chipset. at least i know what the problem is now. thanks a lot :)

Popular posts from this blog

Fixing sendmail take a long time to start

I notice that my database box[FC6+Oracle10.2] take along time to startup. Sendmail and sm-client very very slow to start[ about 5 minutes ]. There's something wrong in /etc/hosts file. 'newalises' command take long time to update and finish with error below. [root@ora10g ~]# newaliases WARNING: local host name (ora10g) is not qualified; see cf/README: WHO AM I? /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total [root@ora10g ~]# cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost 192.168.1.55 ora10g [root@ora10g ~]# To fix this, custom hostname[ora10g] need to append to localhost line in /etc/hosts. [root@ora10g ~]# cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost ora10g 192.168.1.55 ora10g [root@ora10g ~]# newaliases /etc/alia

Too many open files

Last week tomcat log file report many error about "Too many open files" when it has high traffic. Some in catalina_log say 2007-04-07 16:13:40 HttpProcessor[80][272] Starting background thread 2007-04-07 16:13:40 HttpConnector[80] accept: java.net.SocketException: Too many open files and here is from localhost_log 2007-04-07 16:13:40 StandardWrapperValve[myservlet]: Servlet.service() for servlet myservlet threw exception java.io.FileNotFoundException: /home/log/mylog_070407.log (Too many open files) This is because too many file descriptors're opened by tomcat. File descriptor can be limited in both system level and shell level. To check maximum number of fd in system type 'cat /proc/sys/fs/file-max'. In my case it is 65536(someone said it should set to 200000). Tomcat error when try to open socket number 272 so I think 65536 is ok for me for now. Anyway if u want to set it add 'fs.file-max = 200000' to /etc/sysctl.conf pnix@pnix-a7:~$ cat /proc/sys/fs/fil

Setup MySQL with Ofbiz

Download ofbiz weekily build and extract it somewhere you want. From your ofbiz directory, edit file entityengine.xml in framework/entity/config add new datasources below localmysql datasource part <datasource name="custommysql" helper-class="org.ofbiz.entity.datasource.GenericHelperDAO" field-type-name="mysql" check-on-start="true" add-missing-on-start="true" check-pks-on-start="false" use-foreign-keys="true" join-style="ansi-no-parenthesis" alias-view-columns="false" drop-fk-use-foreign-key-keyword="true" table-type="InnoDB" character-set="latin1" collate="latin1_general_cs"> <read-data reader-name="seed"/> <read-data reader-name="seed-initial"/> <