View previous topic :: View next topic |
Author |
Message |
sev_ n00b
Joined: 26 Sep 2002 Posts: 64 Location: California
|
Posted: Thu Sep 26, 2002 8:51 am Post subject: i get lockups whenever i try to load a 3d game. |
|
|
hello.
whenever i try to load a game, linux just plain locks up and my caps lock and scroll-lock keys start to blink. the only way i can reboot is by pressing the reboot button on my computer. i have an nvidia geforce3, athlon xp 1600+, epox 8k3a+, sound blaster live, and 512mb ddr ram.
i am using the 2.4.19-gentoo-r9 kernel on gentoo 1.4.
does anyone know a solution to my problem? so far, i have tried ut2003 demo, quake 3 with winex, and half life with winex.
however, i have some 3d screensavers that seem to run fine (could they be running in software mode?) |
|
Back to top |
|
|
Tharkun Tux's lil' helper
Joined: 02 May 2002 Posts: 106
|
Posted: Thu Sep 26, 2002 10:07 am Post subject: |
|
|
What happens if you run glxgears? Perhaps your boards agp support is broken but thats a wild guess.
What happens if you run quake3 linux binaries instead of wine? |
|
Back to top |
|
|
aardvark Guru
Joined: 30 Jun 2002 Posts: 576
|
Posted: Thu Sep 26, 2002 10:32 am Post subject: |
|
|
There is/was an ussue with athlon and 3d.
It could be avoided (at the cost of little performance?) by passing mem=nopentium to the kernel at boot
add it to you kernel line in the grub menu.lst
UPDATE: I read in the nvidia docs that with the NVAGP driver this bug is fixed, whatever kernel you use. It should also be fixed in gentoo-r9 kernel (it is 2.4.19)
Also assure yourself wether the 3d is functioning at all with glxinfo.
-You have installed the nvidia driver -emerge nvidia-kernel nvidia-glx (duh)
-You have enabled "nvidia" instead of "nv" in /etc/X11/XF86Config
-You have enabled "glx" in the above file?
-You can optionally choose which agp driver you use, depending on wether you have the kernel-driver compiled in or not. If you have the kernel agp driver compiled into the kernel, then that one is used by default. Otherwise the nvidia-agp driver is used. If you have it compiled into your kernel, you can set in /etc/X11/XF86Config that it should use the nvidia agp driver.
Code: |
Option "NvAGP" "integer"
Configure AGP support. Integer argument can be one of:
0 : disable agp
1 : use NVIDIA's internal AGP support, if possible
2 : use AGPGART, if possible
3 : use any agp support (try AGPGART, then NVIDIA's AGP)
Please note that NVIDIA's internal AGP support cannot
work if AGPGART is either statically compiled into your
kernel or is built as a module, but loaded into your
kernel (some distributions load AGPGART into the kernel
at boot up). Default: 3 (the default was 1 until after
1.0-1251).
|
Maybe using the other agp driver does some good. |
|
Back to top |
|
|
sev_ n00b
Joined: 26 Sep 2002 Posts: 64 Location: California
|
Posted: Thu Sep 26, 2002 8:09 pm Post subject: |
|
|
Also assure yourself wether the 3d is functioning at all with glxinfo. <tried it, it works.
-You have installed the nvidia driver -emerge nvidia-kernel nvidia-glx (duh) <i got the driver from nvidia's website. can i uninstall this and use the portage version?
-You have enabled "nvidia" instead of "nv" in /etc/X11/XF86Config <check
-You have enabled "glx" in the above file? <check
-You can optionally choose which agp driver you use, depending on wether you have the kernel-driver compiled in or not. If you have the kernel agp driver compiled into the kernel, then that one is used by default. Otherwise the nvidia-agp driver is used. If you have it compiled into your kernel, you can set in /etc/X11/XF86Config that it should use the nvidia agp driver. < how can i check if it is compiled into my kernel?
i appreciate all this help. |
|
Back to top |
|
|
aardvark Guru
Joined: 30 Jun 2002 Posts: 576
|
Posted: Thu Sep 26, 2002 8:26 pm Post subject: |
|
|
sev_ wrote: | Also assure yourself wether the 3d is functioning at all with glxinfo. <tried it, it works.
-You have installed the nvidia driver -emerge nvidia-kernel nvidia-glx (duh) <i got the driver from nvidia's website. can i uninstall this and use the portage version?
-You have enabled "nvidia" instead of "nv" in /etc/X11/XF86Config <check
-You have enabled "glx" in the above file? <check
-You can optionally choose which agp driver you use, depending on wether you have the kernel-driver compiled in or not. If you have the kernel agp driver compiled into the kernel, then that one is used by default. Otherwise the nvidia-agp driver is used. If you have it compiled into your kernel, you can set in /etc/X11/XF86Config that it should use the nvidia agp driver. < how can i check if it is compiled into my kernel?
i appreciate all this help. |
I would use the portage nvidia driver (why download one yourself at all?). I don't know how you wou be able to remove the self installed nvidia driver though. maybe just emerging the nvidia-kernel and nvidia-glx would do.
please read /user/share/doc/nvidia-glx-?????/readme.gz. You'll find a lot of info there.
Kernel: assuming you have compiled your own kernel and did not do make mrproper afterwards , go to /usr/src/linux, type make menuconfig, look in "character devices" and find the agpgart entry. when you want to use the kernel agpgart you only need the "via" version that is listed. (you have via chipset right?)
I personally have the kernel agpgart disabled alltogether, and thereby use the nvidia driver for agp automatically. It works better for me.
You may also check /proc/driver/nvidia/agp/status and see wether/which you are using. It is a good idea to back up the /lib/modules/YOUR_KERNEL_HERE directory in case things don't work out
Good luck |
|
Back to top |
|
|
sev_ n00b
Joined: 26 Sep 2002 Posts: 64 Location: California
|
Posted: Thu Sep 26, 2002 8:49 pm Post subject: |
|
|
double post
Last edited by sev_ on Thu Sep 26, 2002 9:05 pm; edited 1 time in total |
|
Back to top |
|
|
sev_ n00b
Joined: 26 Sep 2002 Posts: 64 Location: California
|
Posted: Thu Sep 26, 2002 9:01 pm Post subject: |
|
|
ok, just to get started on things, i am using AGPGART
# cat /proc/driver/nvidia/agp/status
Status: Enabled
Driver: AGPGART
AGP Rate: 4x
Fast Writes: Disabled
SBA: Disabled
about emerging the nv driver: should i get out of X before doing this, or will i be fine?
i'm checking my kernel right now.
[img:44663f395a]http://cebesius.com/sev/Screenshot-Eterm.png[/img:44663f395a]
and yes, it is a via kt333 chipset. |
|
Back to top |
|
|
aardvark Guru
Joined: 30 Jun 2002 Posts: 576
|
Posted: Thu Sep 26, 2002 9:22 pm Post subject: |
|
|
sev_ wrote: | ok, just to get started on things, i am using AGPGART
# cat /proc/driver/nvidia/agp/status
Status: Enabled
Driver: AGPGART
AGP Rate: 4x
Fast Writes: Disabled
SBA: Disabled
about emerging the nv driver: should i get out of X before doing this, or will i be fine?
i'm checking my kernel right now.
[img:1643369fd6]http://cebesius.com/sev/Screenshot-Eterm.png[/img:1643369fd6]
and yes, it is a via kt333 chipset. |
You should be able to emerge while x is running. To be on the safe side however..... kill the X mofo.
BTW: you could also try switching to NVAGP with the option setting in XF86Config... You could try that first and maybe it fixes your problems. |
|
Back to top |
|
|
sev_ n00b
Joined: 26 Sep 2002 Posts: 64 Location: California
|
Posted: Thu Sep 26, 2002 9:30 pm Post subject: |
|
|
like this?
|
|
Back to top |
|
|
Malakin Veteran
Joined: 14 Apr 2002 Posts: 1692 Location: Victoria BC Canada
|
Posted: Thu Sep 26, 2002 9:54 pm Post subject: |
|
|
You may want to read over the Nvidia readme, it's full of information.
http://download.nvidia.com/XFree86_40/1.0-3123/README
I suggest disabling agpgart and dri in your kernel since you don't need them and the nvidia driver will automatically default to using it's own agp support.
You can try disabling agp completely if your crashing persists, this will at least let you know if it's an agp issue or not. |
|
Back to top |
|
|
therion12 n00b
Joined: 18 Jun 2002 Posts: 41 Location: Chicago, IL
|
Posted: Thu Sep 26, 2002 10:14 pm Post subject: |
|
|
Sev: I have disabled the DRI support in the kernel. My stuff runs fine on a KT266A & AXP 1900+ |
|
Back to top |
|
|
aardvark Guru
Joined: 30 Jun 2002 Posts: 576
|
Posted: Thu Sep 26, 2002 11:11 pm Post subject: |
|
|
NvAGP... not NVAGP
(and again, check the readme..) |
|
Back to top |
|
|
sev_ n00b
Joined: 26 Sep 2002 Posts: 64 Location: California
|
Posted: Fri Sep 27, 2002 12:17 am Post subject: |
|
|
i have tried just about everything. its not working |
|
Back to top |
|
|
sev_ n00b
Joined: 26 Sep 2002 Posts: 64 Location: California
|
Posted: Fri Sep 27, 2002 12:26 am Post subject: |
|
|
here is an idea. do you think it could be my make.conf?
Code: | # Copyright 2000-2002 Daniel Robbins, Gentoo Technologies, Inc.
# Contains local system settings for Portage system
# Build-time functionality
# ========================
#
# The USE variable is used to enable optional build-time functionality. For
# example, quite a few packages have optional X, gtk or GNOME functionality
# that can only be enabled or disabled at compile-time. Gentoo Linux has a
# very extensive set of USE variables described in our USE variable HOWTO at
# http://www.gentoo.org/doc/use-howto.html
#
# Example:
#USE="X gtk gnome -alsa"
# Host Setting
# ============
#
# If you are using a Pentium Pro or greater processor, leave this line as-is;
# otherwise, change to i586, i486 or i386 as appropriate. All modern systems
# (even Athlons) should use "i686-pc-linux-gnu"
CHOST="i686-pc-linux-gnu"
# Host and optimization settings
# ==============================
#
# For optimal performance, enable a CFLAGS setting appropriate for your CPU
#
# -mcpu=<cpu-type> means optimize code for the particular type of CPU without
# breaking compatibility with other CPUs.
#
# -march=<cpu-type> means to take full advantage of the ABI and instructions
# for the particular CPU; this will break compatibility with older CPUs (for
# example, -march=athlon-xp code will not run on a regular Athlon, and
# -march=i686 code will not run on a Pentium Classic.
#
# CPU types supported in gcc-3.2 and higher: athlon-xp, athlon-mp, athlon-4,
# athlon-tbird, athlon, duron, k6, k6-2, k6-3, i386, i486, i586 (Pentium), i686
# (Pentium Pro), pentium, pentium-mmx, pentiumpro, pentium2, pentium3, and
# pentium4. Note that Gentoo Linux 1.4 and higher include at least gcc-3.2.
#
# CPU types supported in gcc-2.95*: k6, i386, i486, i586 (Pentium), i686
# (Pentium Pro), pentium, pentiumpro Gentoo Linux 1.2 and below use gcc-2.95*
#
# Decent examples:
#
#CFLAGS="-mcpu=athlon-xp -O3 -pipe"
#CFLAGS="-march=pentium3 -O3 -pipe"
# If you set a CFLAGS above, then this line will set your default C++ flags to
# the same settings. If you don't set a CFLAGS above, then comment this line out.
CXXFLAGS="${CFLAGS}"
# Fetching files
# ==============
#
# If you need to set a proxy for wget or lukemftp, add the appropriate "export
# ftp_proxy=<proxy>" and "export http_proxy=<proxy>" lines to /etc/profile if
# all users on your system should use them.
#
# Portage uses wget by default. Here are some settings for some alternate
# downloaders -- note that you need to merge these programs first before they
# will be available.
#
# Lukemftp (BSD ftp):
#FETCHCOMMAND="/usr/bin/lukemftp -s -a -o \${DISTDIR}/\${FILE} \${URI}"
#RESUMECOMMAND="usr/bin/lukemftp -s -a -R -o \${DISTDIR}/\${FILE} \${URI}"
#
# Prozilla (turbo downloader)
#FETCHCOMMAND='/usr/bin/proz --no-getch -s ${URI} -P ${DISTDIR}'
#+++
# automagicaly added by build process
#
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer
-ffast-math -frerun-cse-after-loop -frerun-loop-opt -funroll-all-loops
-falign-functions=4 -fno-exceptions -fexpensive-optimizations -mmmx
-m3dnow -msse -mfpmath=sse"
CXXFLAGS="${CFLAGS}"
#--- |
|
|
Back to top |
|
|
aardvark Guru
Joined: 30 Jun 2002 Posts: 576
|
Posted: Fri Sep 27, 2002 12:56 am Post subject: |
|
|
sev_ wrote: | here is an idea. do you think it could be my make.conf?
|
Can't see any strangenesses... except that some of your flags are not necessary as they are already included by -O3 and -march. That doesn't matter though. I would however comment out the other occurences of CCFLAGS/Chosts etc. more upwards in your file.
The CFALGS are the same as mine and rather aggressive. You may want to recompile X with just "-march=athlon-xp -pipe -O3"
The nvidia drivers are not really compiled on your system . They are binary and CFLAG should not have any effect.
Summarizing:
Ok, so you on NVAGP now right?
Can you run glxgears?
Is your CPU not overclocked?
Is your CPU cooled enough?
The last advice I can give is to recompile a kernel and perhaps X
otherwise I'll leave it up to some guru's. Your problem is quite strange.
I hope you fix it. |
|
Back to top |
|
|
sev_ n00b
Joined: 26 Sep 2002 Posts: 64 Location: California
|
Posted: Fri Sep 27, 2002 3:03 am Post subject: |
|
|
i recompiled X without all those CFLAGS
all i used was "-march=athlon-xp -pipe -O3"
i also re-enabled agpgart in the kernel after testing with it to see if it was a problem. i am using the portage nvidia drivers. now, i cant even run glxgears. this is what i get
Code: | sev@localhost sev $ glxgears
Xlib: extension "GLX" missing on display ":0.0".
Error: couldn't get an RGB, Double-buffered visual |
if someone can help me out, please PM or IM me and i'll see if we can get an ssh session going to see what i'm doing wrong.
thanks for all your help so far.
EDIT: my cpu is not overclocked and it is running at around 40c most of the time, and i have NvAGP enabled in my X config but it still defaults to agpgart.
one more thing: when i used the ut2k3 livecd, i used agpgart and ut2k3 worked fine, so i'm really hoping this is a problem with software and not anything hardware related.
PS: ut2k3 also worked wonderfully when i was running debian. |
|
Back to top |
|
|
Curious Bodhisattva
Joined: 13 May 2002 Posts: 395 Location: Sydney, Australia
|
Posted: Fri Sep 27, 2002 3:07 am Post subject: |
|
|
sev_ wrote: | if someone can help me out, please PM or IM me and i'll see if we can get an ssh session going to see what i'm doing wrong. |
Did you remember to uncomment "LoadModule GLX" in your XF86Config-4 file?
-- Curious
P.S. MSN me if you're still stuck after doing that. _________________ Are you down with the Hawk? |
|
Back to top |
|
|
ASCI Blue Tux's lil' helper
Joined: 07 May 2002 Posts: 132
|
Posted: Fri Sep 27, 2002 3:49 am Post subject: |
|
|
KT-333 might be too new for the kernel. |
|
Back to top |
|
|
sev_ n00b
Joined: 26 Sep 2002 Posts: 64 Location: California
|
Posted: Fri Sep 27, 2002 4:09 am Post subject: |
|
|
like i said, 3d worked fine with the liveCD |
|
Back to top |
|
|
sev_ n00b
Joined: 26 Sep 2002 Posts: 64 Location: California
|
|
Back to top |
|
|
aardvark Guru
Joined: 30 Jun 2002 Posts: 576
|
Posted: Fri Sep 27, 2002 11:20 am Post subject: |
|
|
This is all too weird!
GLX fails to load.
try:
Code: |
emerge unmerge nvidia-glx
emerge unmerge nvidia-kernel
emerge nvidia-kernel
emerge nvidia-glx
opengl-update nvidia
|
Dunno what other options U have. Do you have a ssh person yet?
Last edited by aardvark on Fri Sep 27, 2002 11:25 am; edited 1 time in total |
|
Back to top |
|
|
aardvark Guru
Joined: 30 Jun 2002 Posts: 576
|
Posted: Fri Sep 27, 2002 11:21 am Post subject: |
|
|
please do logout and back in after X emerge. some environment changes might have taken place... |
|
Back to top |
|
|
sev_ n00b
Joined: 26 Sep 2002 Posts: 64 Location: California
|
Posted: Fri Sep 27, 2002 12:19 pm Post subject: |
|
|
i switched back to the drivers from nvidia's website. i get glxgears to load but i still get hard lockups.
here is my latest log.
http://gahh.netfirms.com/xlognvdrivers.txt |
|
Back to top |
|
|
therion12 n00b
Joined: 18 Jun 2002 Posts: 41 Location: Chicago, IL
|
Posted: Fri Sep 27, 2002 6:35 pm Post subject: |
|
|
Sev: If you have a mouse with a scroll you do not need to have Emulate 3 Buttons on in the XFree86 file. Not sure but that may cause your lockups in the ut2003 demo as the LiveCD doesnt have this on by default.
Try that and let me know. |
|
Back to top |
|
|
sev_ n00b
Joined: 26 Sep 2002 Posts: 64 Location: California
|
Posted: Sat Sep 28, 2002 12:09 pm Post subject: |
|
|
just an update: i still have this problem. =\ |
|
Back to top |
|
|
|