Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
04-17-2006, 05:49 PM
|
#1
|
LQ Newbie
Registered: Sep 2004
Posts: 14
Rep:
|
Xorg Will Not Start!? Failed to load "shm"
Today I booted up my gentoo box and xorg didn't start. I killed the init script and ran startx, the error was:
Code:
(EE) Failed to load module "shm" (module does not exist, 0)
Backtrace:
0: X(xf86SigHandler+0x94)
1: /lib/libc.so.6
2: /usr/lib64/drivers/nvidia_drv.so
How do I fix this?
|
|
|
04-18-2006, 02:16 PM
|
#2
|
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131
Rep:
|
two choises, either check/get the module shm or remove it from your Xorg's config file so it doesn't try to load it (if it's not needed, I don't know).
|
|
|
04-18-2006, 09:41 PM
|
#3
|
LQ Newbie
Registered: Sep 2004
Posts: 14
Original Poster
Rep:
|
I tried removing the line, xorg doesn't report an error, but it doesn't start either. As for getting the module, how do I do that? I tried reinstalling (yes i formatted and reinstalled) but I still get the error!
EDIT: Ok, so I decided to try changing the driver from nvidia to nv, and now it starts... Any ideas on how to get nvidia working again?
Last edited by Avieth; 04-18-2006 at 10:07 PM.
|
|
|
04-20-2006, 06:26 AM
|
#4
|
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131
Rep:
|
hmm..I suppose that "nvidia" driver is the one that you get from the nvidia website? If that is the case, I suggest you download the .run file, and use it to recompile the needed modules for your kernel (if the .run installer can't find a precompiled driver for your kernel, then it asks you if you wish to compile a new one).
After a kernel update you'll probably need to re-install that package again. The "nv" driver is, if I'm not mistaken, a free driver that comes with the distribution, and the "nvidia" is the one you need to install separately from nVidia's website. I have ATI card nowadays (I miss nVidia), but I recall installing nVidia graphics drivers was quite smooth thing..
Try downloading and installing the driver from nVidia, and if you happen to run into problems, feel free to ask for help - or if you like, IM me (if you have Messenger or ICQ).
|
|
|
04-20-2006, 08:25 AM
|
#5
|
Senior Member
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191
Rep:
|
You will not get hardware acceleration to work with 'nv' driver. I would suggest reinstalling the 'nvidia' driver from their website as previously mentioned.
regards,
...drkstr
|
|
|
04-20-2006, 01:51 PM
|
#6
|
LQ Newbie
Registered: Sep 2004
Posts: 14
Original Poster
Rep:
|
Yes, that's what I've been using for the past few years. I run gentoo, so I just emerge nvidia-kernel and nvidia-glx packages. nvidia-kernel installs fine, no problems at all, and up until now it's given me no errors. So I think it might be a problem with the card, since I can't find much help from google, or the gentoo forums.
Can anybody confirm that this is a hardware problem?
|
|
|
04-20-2006, 02:29 PM
|
#7
|
Member
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536
Rep:
|
shm makes me think of /dev/shm. Make sure you have tmpfs mounted on /dev/shm (Linux implements shared memory as a virtual filesystem).
I was filing to get DRI working on my Radeon so I straced an opengl app and found that it was trying to open a file in /dev/shm (i.e. shared memory) and was failing as I didn't have tmpfs mounted. Once I mounted it up, everything worked OK.
Not sure if this is related to your problem, I could be way off base here, but worth checking.
|
|
|
04-20-2006, 02:51 PM
|
#8
|
LQ Newbie
Registered: Sep 2004
Posts: 14
Original Poster
Rep:
|
Yup, /dev/shm is mounted, I have a tmpfs.
|
|
|
04-21-2006, 08:29 AM
|
#9
|
Senior Member
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191
Rep:
|
This is probably a stupid question, but are you sure that the nvidia Gentoo package is the same as the official nvidia driver? I don't know if nvidia has some kind of deal with Gentoo, but their drivers are proprietary. The non official nvidia driver that comes with most linux distros does not support hardware acceleration. Just for debugging purposes, try getting the driver from nvidia themselves and see if that helps. It's good to eliminate all possible problems when trying to figure out the source of the problem.
regards,
...drkstr
Last edited by drkstr; 04-21-2006 at 08:56 AM.
|
|
|
04-21-2006, 03:58 PM
|
#10
|
LQ Newbie
Registered: Sep 2004
Posts: 14
Original Poster
Rep:
|
Here's the top of the ebuild for the nvidia-glx package:
Code:
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-glx/nvidia-glx-1.0.8756.ebuild,v 1.1 2006/04/08 03:46:10 augustus E$
inherit eutils multilib versionator
X86_PKG_V="pkg1"
AMD64_PKG_V="pkg2"
NV_V="${PV/1.0./1.0-}"
X86_NV_PACKAGE="NVIDIA-Linux-x86-${NV_V}"
AMD64_NV_PACKAGE="NVIDIA-Linux-x86_64-${NV_V}"
#X86_FBSD_NV_PACKAGE="NVIDIA-FreeBSD-x86-${NV_V}"
DESCRIPTION="NVIDIA X11 driver and GLX libraries"
HOMEPAGE="http://www.nvidia.com/"
SRC_URI="x86? ( ftp://download.nvidia.com/XFree86/Linux-x86/${NV_V}/${X86_NV_PACKAGE}-${X86_PKG_V}.run )
amd64? ( http://download.nvidia.com/XFree86/Linux-x86_64/${NV_V}/${AMD64_NV_PACKAGE}-${AMD64_PKG_V}.run )"
As you can see in the bottom line, it downloads the driver from nvidia.
|
|
|
All times are GMT -5. The time now is 06:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|