View previous topic :: View next topic |
Author |
Message |
JBB n00b
Joined: 07 May 2004 Posts: 51 Location: New Zealand
|
Posted: Fri Sep 17, 2004 12:24 am Post subject: X with nvidia driver |
|
|
I've had much strife setting up my new AMD 64 system but it's finally up and running now with one major problem - I can't start X with the nvidia driver.
No errors upon running startx, unfortunately - my KDE background loads up (it doesn't progress through the "Loading blah..." bit) and then the system freezes.
I can run X fine with the standard "nv" driver.
Specifications which might be important:
Asus A8V Deluxe motherboard (K8T800)
X.org 6.7.0-r1
gentoo-dev-sources 2.6.8-r4
nvidia-kernel & GLX 1.0.6111
Nvidia GeForce FX 5950 (previously worked fine on x86 system)
I'm confident my xorg.conf file is configured correctly as I would expect startx to generate an error if there was something wrong, but I can post it up if need be.
I've tried every combination of the "NvAGP" option, same thing each time.
Help! |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Fri Sep 17, 2004 12:37 am Post subject: |
|
|
Hmm... looks like you might have the same problem as this person: https://forums.gentoo.org/viewtopic.php?t=224125, so it might not be amd64 specific after all. The only thing I can see in common with both of your posts is the 2.6.8 kernel. Does it work if you go back to a 2.6.7 kernel? _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
JBB n00b
Joined: 07 May 2004 Posts: 51 Location: New Zealand
|
Posted: Fri Sep 17, 2004 12:39 am Post subject: |
|
|
Haven't tried it although I was using the 2.6.8 kernel on my x86 system with no problems. |
|
Back to top |
|
|
BonezTheGoon Bodhisattva
Joined: 14 Jun 2002 Posts: 1408 Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo
|
Posted: Fri Sep 17, 2004 4:50 am Post subject: |
|
|
There are more than a few posts regarding problems with gentoo-dev-sources-2.6.8-r4 -- I personally am trying to touch many of them now to say a big ME TOO because I was reluctant to downgrade -- though that is all I have changed and suddenly all my video problems are gone. I dropped back to gentoo-dev-sources-2.6.8-r3 and I am very happy here!
Regards,
BonezTheGoon _________________
pjp wrote: | The greater evil is voting for the "lesser evil." |
|
|
Back to top |
|
|
BonezTheGoon Bodhisattva
Joined: 14 Jun 2002 Posts: 1408 Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo
|
Posted: Fri Sep 17, 2004 5:12 am Post subject: |
|
|
I have filed a bug on the issue I had -- I searched and was surpised to not find one there already (doesn't mean there isn't one just that I couldn't locate it.) I'm still not sure your issue is the same but please let us know if down-grading helps!
Regards,
BonezTheGoon _________________
pjp wrote: | The greater evil is voting for the "lesser evil." |
|
|
Back to top |
|
|
JBB n00b
Joined: 07 May 2004 Posts: 51 Location: New Zealand
|
Posted: Fri Sep 17, 2004 5:30 am Post subject: |
|
|
Alright, it's worth a go I suppose - I shall try it now and report back.
I'm also having issues with the machine crashing when I exit X (either proper log-out or CTRL-ALT-backspace) - will be interesting to see if this fixes that also. |
|
Back to top |
|
|
JBB n00b
Joined: 07 May 2004 Posts: 51 Location: New Zealand
|
Posted: Fri Sep 17, 2004 5:55 am Post subject: |
|
|
No luck with 2.6.8-r3 :/
Any other ideas? |
|
Back to top |
|
|
herbie Guru
Joined: 09 Oct 2002 Posts: 319 Location: London UK
|
Posted: Fri Sep 17, 2004 8:53 am Post subject: |
|
|
I did already post a bug report, at least I assume this is the same problem. So much stuff breaks with -r4: opengl, video, flash... I think it may have been a mistake to mark it stable on amd64, dam those x86-64.org patches (the only difference between -r3 and -r4). |
|
Back to top |
|
|
JBB n00b
Joined: 07 May 2004 Posts: 51 Location: New Zealand
|
Posted: Fri Sep 17, 2004 11:07 am Post subject: |
|
|
I also tried a 2.6.7 kernel and had the same thing. |
|
Back to top |
|
|
Flying_Horse n00b
Joined: 22 Aug 2004 Posts: 33 Location: Wohmbrechts, Germany
|
Posted: Fri Sep 17, 2004 1:50 pm Post subject: |
|
|
I have nearly the same configuration at home - and no problems with it
On my machine the used memory was a big problem - the memory sticks from Kingston caused loads of kernel panics and system hangs. Perhaps something like this ?
When I'm back home I can post you my configuration, if it's usefull for you. But I hope it's good to know, that it should work ...
Cheers, Klaus |
|
Back to top |
|
|
BonezTheGoon Bodhisattva
Joined: 14 Jun 2002 Posts: 1408 Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo
|
Posted: Fri Sep 17, 2004 8:47 pm Post subject: |
|
|
Have you run the memtest86+ from the AMD64 LiveCD in atleast two full iterations yet? Because Flying_Horse is right -- it could very well be memory issues. I thought for sure my freezing issues I am still tracking down were bad memory but after 10 hours of memtest86+ looping I am confident things are stable there.
Regards,
BonezTheGoon _________________
pjp wrote: | The greater evil is voting for the "lesser evil." |
|
|
Back to top |
|
|
JBB n00b
Joined: 07 May 2004 Posts: 51 Location: New Zealand
|
Posted: Fri Sep 17, 2004 10:14 pm Post subject: |
|
|
Haven't tried a memory test; I wouldn't have thought that identical non-random freezes would be a memory issue?
Your kernel config and/or whatever else you think might be useful would be great Flying_Horse |
|
Back to top |
|
|
JBB n00b
Joined: 07 May 2004 Posts: 51 Location: New Zealand
|
Posted: Fri Sep 17, 2004 10:50 pm Post subject: |
|
|
By the way.. is this supposed to say something different or does it only begin to work once you've loaded X via the Nvidia driver?
# cat /proc/driver/nvidia/agp/status
Status: Disabled |
|
Back to top |
|
|
abc n00b
Joined: 13 Mar 2004 Posts: 2
|
Posted: Sat Sep 18, 2004 3:22 am Post subject: |
|
|
JBB wrote: | I also tried a 2.6.7 kernel and had the same thing. |
Concur here - upgrading from 2.6.5 to 2.6.7 brought freezes about (both with nv and nvidia). 2.6.8-r4 still has them (haven't tested with the nv driver yet), although they're not as frequent.
Should not be a memory problem, as I have ECC memory (on a dual Opteron board). Also, booting an older 32-bit distro with XFree never hangs, so hw-related problems seem to be out as well.
Just to be accurate - when X freezes, the only thing working is mouse movement. Do you guys see different behaviors? |
|
Back to top |
|
|
JBB n00b
Joined: 07 May 2004 Posts: 51 Location: New Zealand
|
Posted: Sat Sep 18, 2004 3:44 am Post subject: |
|
|
For me it just dies; black screen, nothing appears.
Here's something interesting in my Xorg.0.log file:
Quote: | (II) NVIDIA(0): Setting mode "1152x864"
(II) Loading extension NV-GLX
(EE) NVIDIA(0): Failed to obtain a shared memory identifier. |
Nvidia's README mentions this:
Quote: | Q: X crashes during `startx`, and my X log file contains this error message:
(EE) NVIDIA(0): Failed to obtain a shared memory identifier.
A: The NVIDIA OpenGL driver and the NVIDIA X driver require shared memory to communicate; you must have CONFIG_SYSVIPC enabled in your kernel. |
But I've tried with VIPC off and on and neither work. |
|
Back to top |
|
|
JBB n00b
Joined: 07 May 2004 Posts: 51 Location: New Zealand
|
Posted: Sat Sep 18, 2004 4:30 am Post subject: |
|
|
Aaand now that error won't show up in the log even though I'm still having the problem. Argh.
This seems to be consistent though:
Quote: | (EE) NVIDIA(0): Failed to load GLX |
/scratches head.
/sighs loudly
/cries a bit. |
|
Back to top |
|
|
DataPath n00b
Joined: 20 Sep 2003 Posts: 31
|
Posted: Sat Sep 18, 2004 5:09 am Post subject: |
|
|
I'm having almost identical problems on my nforce2 Athlon-xp box.
Before I changed motherboards, and completely reinstalled gentoo, the nvidia driver worked fine.
The only hardware change was an old cheapie Biostar nforce2 motherboard for a new MSI nforce2 motherboard.
Except, whenever I start X using the nvidia driver, it hangs. Magic SysRQ at least works. But the screen goes black - I don't see anything. I'm not sure what the exact configuration was, but TWICE I got X to show, with the graphical greeter, but with serious artifacts, and the mouse worked, but that was it. Locked hard.
No error messages in Xorg.0.log, acts like it loaded stuff up fine. Oh yeah, and my /proc/driver/nvidia/agp/status also shows disabled.
DataPath |
|
Back to top |
|
|
Flying_Horse n00b
Joined: 22 Aug 2004 Posts: 33 Location: Wohmbrechts, Germany
|
Posted: Sat Sep 18, 2004 10:09 am Post subject: |
|
|
ok, like promised here is my configuration ... sorry for the length, I shortened where possible
first kernel config:
#
# Automatically generated make config: don't edit
#
CONFIG_X86_64=y
CONFIG_64BIT=y
CONFIG_X86=y
CONFIG_MMU=y
CONFIG_RWSEM_GENERIC_SPINLOCK=y
CONFIG_X86_CMPXCHG=y
CONFIG_EARLY_PRINTK=y
CONFIG_HPET_TIMER=y
CONFIG_HPET_EMULATE_RTC=y
CONFIG_GENERIC_ISA_DMA=y
#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
CONFIG_CLEAN_COMPILE=y
CONFIG_BROKEN_ON_SMP=y
#
# General setup
#
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_SYSCTL=y
# CONFIG_AUDIT is not set
CONFIG_LOG_BUF_SHIFT=14
CONFIG_HOTPLUG=y
# CONFIG_IKCONFIG is not set
# CONFIG_EMBEDDED is not set
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_EXTRA_PASS is not set
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_OBSOLETE_MODPARM=y
# CONFIG_MODVERSIONS is not set
CONFIG_KMOD=y
#
# Processor type and features
#
CONFIG_MK8=y
# CONFIG_MPSC is not set
# CONFIG_GENERIC_CPU is not set
CONFIG_X86_L1_CACHE_BYTES=64
CONFIG_X86_L1_CACHE_SHIFT=6
CONFIG_X86_TSC=y
CONFIG_X86_GOOD_APIC=y
# CONFIG_MICROCODE is not set
CONFIG_X86_MSR=y
CONFIG_X86_CPUID=y
CONFIG_X86_IO_APIC=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_MTRR=y
# CONFIG_SMP is not set
# CONFIG_PREEMPT is not set
# CONFIG_GART_IOMMU is not set
CONFIG_DUMMY_IOMMU=y
CONFIG_X86_MCE=y
#
# Power management options
#
CONFIG_PM=y
CONFIG_SOFTWARE_SUSPEND=y
#
# ACPI (Advanced Configuration and Power Interface) Support
#
CONFIG_ACPI=y
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_INTERPRETER=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_TOSHIBA is not set
CONFIG_ACPI_DEBUG=y
CONFIG_ACPI_BUS=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y
#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set
#
# Bus options (PCI etc.)
#
CONFIG_PCI=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_MMCONFIG=y
# CONFIG_UNORDERED_IO is not set
# CONFIG_PCI_MSI is not set
# CONFIG_PCI_LEGACY_PROC is not set
CONFIG_PCI_NAMES=y
<snip> ----------------------------------------------------
#
# I2O device support
#
CONFIG_I2O=m
CONFIG_I2O_CONFIG=m
CONFIG_I2O_BLOCK=m
CONFIG_I2O_PROC=m
<snip> ----------------------------------------------------
now the important parts of /etc/X11/xorg.conf:
<snip> ----------------------------------------------------
Section "Module"
# This loads the DBE extension module.
Load "dbe" # Double buffer extension
# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
# This loads the Type1 and FreeType font modules
Load "type1"
Load "speedo"
Load "freetype"
Load "v4l"
Load "extmod"
Load "record"
Load "xtrap"
# This loads the GLX module
Load "glx"
# This loads the DRI module
# Load "dri"
EndSection
<snip> ----------------------------------------------------
Section "Monitor"
Identifier "IlyamaLCD"
# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.
HorizSync 31.5 - 82.0
# HorizSync 30-64 # multisync
# HorizSync 31.5, 35.2 # multiple fixed sync frequencies
# HorizSync 15-25, 30-50 # multiple ranges of sync frequencies
# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.
VertRefresh 50-100
EndSection
<snip> ----------------------------------------------------
Section "Device"
Identifier "NVidia"
Driver "nvidia"
Option "NvAGP" "2"
EndSection
remark: I inserted the NvAGP option for testing only, don't know if it's necessary yet ...
<snip> ----------------------------------------------------
Section "Screen"
Identifier "Screen 1"
Device "NVidia"
Monitor "IlyamaLCD"
DefaultDepth 24
Subsection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
EndSection
<snip> ----------------------------------------------------
Section "ServerLayout"
# The Identifier line must be present
Identifier "Simple Layout"
# Each Screen line specifies a Screen section name, and optionally
# the relative position of other screens. The four names after
# primary screen name are the screens to the top, bottom, left and right
# of the primary screen. In this example, screen 2 is located to the
# right of screen 1.
Screen "Screen 1"
# Each InputDevice line specifies an InputDevice section name and
# optionally some options to specify the way the device is to be
# used. Those options include "CorePointer", "CoreKeyboard" and
# "SendCoreEvents".
# InputDevice "Mouse1" "CorePointer"
InputDevice "TrackMan Marble FX" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection
#Section "DRI"
# Mode 0666
#EndSection
Hope, it helps, good luck
Cheers, Klaus |
|
Back to top |
|
|
DataPath n00b
Joined: 20 Sep 2003 Posts: 31
|
Posted: Sat Sep 18, 2004 2:55 pm Post subject: |
|
|
In my case, it turned out to be the 4k stacks. I had it working before - there must have been some change that broke 4k stacks. |
|
Back to top |
|
|
JBB n00b
Joined: 07 May 2004 Posts: 51 Location: New Zealand
|
Posted: Sat Sep 18, 2004 11:30 pm Post subject: |
|
|
Flying_Horse wrote: | Hope, it helps, good luck |
Can't see anything I've forgotten unfortunately. :/
Does AMD 64 have a 4k stacks option? |
|
Back to top |
|
|
Flying_Horse n00b
Joined: 22 Aug 2004 Posts: 33 Location: Wohmbrechts, Germany
|
Posted: Sun Sep 19, 2004 9:29 am Post subject: |
|
|
No, no 4k stacks option on AMD64 and btw. it is dangerous to use it on x86 with XFS Filesystem because the machine freezes if a XFS FS gets filled up (http://oss.sgi.com/bugzilla/show_bug.cgi?id=360)
Yesterday I saw that my xorg version is 6.7 not 6.8. I tried an upgrade but got segmentation faults. I tried a few changes in the BIOS but things are getting worse (kernel panics, ...). So, perhaps it would be usefull to play a bit with your BIOS ?
Good luck, again
Klaus |
|
Back to top |
|
|
ShadowHawkBV Guru
Joined: 27 Mar 2004 Posts: 352
|
Posted: Sun Sep 19, 2004 7:43 pm Post subject: |
|
|
It may not apply, but I had a similar problem with running Xorg until I installed app-emulation/emul-linux-x86-nvidia 1.0.6111-r1. With that I could run 2.6.8-r1 and 2.6.7-r14 gentoo-dev kernels.
Is it possible that Nvidia didn't quite make a true 64bit implementation?
Just a possiblilty. _________________ This space for rent... Well maybe to give away.. Heck.. i'll pay you to take it.
Lost Linux Neophyte
Intel i7-1065G7
Intel i7-8565U
Intel Atom Cherry Trail
AMD Phenom(tm) II X4 955
Pure 64bit frustration |
|
Back to top |
|
|
JBB n00b
Joined: 07 May 2004 Posts: 51 Location: New Zealand
|
Posted: Sun Sep 19, 2004 11:33 pm Post subject: |
|
|
Interesting; I'll give that a try when I get home from work tonight.
/SSHs to box to emerge it now
Ahh I love Linux. |
|
Back to top |
|
|
JBB n00b
Joined: 07 May 2004 Posts: 51 Location: New Zealand
|
Posted: Mon Sep 20, 2004 5:37 am Post subject: |
|
|
It worked!
/buys ShadowHawkBV a dozen roses |
|
Back to top |
|
|
ShadowHawkBV Guru
Joined: 27 Mar 2004 Posts: 352
|
Posted: Mon Sep 20, 2004 8:20 pm Post subject: |
|
|
My pleasure. Glad I could help. Another 63billion people helped and I'll be almost even with the karma faeries for all the assistance I've gotten around here. _________________ This space for rent... Well maybe to give away.. Heck.. i'll pay you to take it.
Lost Linux Neophyte
Intel i7-1065G7
Intel i7-8565U
Intel Atom Cherry Trail
AMD Phenom(tm) II X4 955
Pure 64bit frustration |
|
Back to top |
|
|
|