Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
startx missing modules & compatible nvidia driver
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
kingcrunch
n00b
n00b


Joined: 11 Feb 2005
Posts: 20
Location: west-germany

PostPosted: Tue Apr 22, 2008 3:21 pm    Post subject: startx missing modules & compatible nvidia driver Reply with quote

Hi everybody,

I've got a problem with xorg, nvidia (and probably my kernel config, but i'll start in a category which corresponds to the symptoms)
which i cannot solve. I consulted google, this forums search-function and did not find a solution to the following stuff.
Probably this is an easy one for you people who work with gentoo all day long. My last attempt was with 2004.0.

As a foreword my configuration:

Asus F3tc Notebook
AMD64 Turion TL50
2GB RAM
Nvidia Geforce Go 7300

gentoo-sources-2.6.24-r4
nvidia-drivers-169.09-r1
xorg-x11-7.2

/etc/make.profile points to /usr/portage/profiles/arch/amd64/

Xorg-X11 and Nvidia-drivers compiled quite nice (strange additions to /etc/make.conf were needed: "kernel_linux" to tell nvidia-drivers the linux-version)
and modprobe nvidia or eselect opengl set nvidia seem to work flawlessly.


The problem is the following when i'm trying to startx (excerpt from linked /var/log/Xorg.0.log):

Code:
(II) LoadModule: "kbd"
(WW) Warning, couldn't open module kbd
(II) UnloadModule: "kbd"
(EE) Failed to load module "kbd" (module does not exist, 0)
(II) LoadModule: "synaptics"
(II) Loading /usr/lib64/xorg/modules/input//synaptics_drv.so
(II) Module synaptics: vendor="X.Org Foundation"
   compiled for 4.3.99.902, module version = 1.0.0
   Module class: X.Org XInput Driver
   ABI class: X.Org XInput driver, version 0.7
(II) LoadModule: "mouse"
(WW) Warning, couldn't open module mouse
(II) UnloadModule: "mouse"
(EE) Failed to load module "mouse" (module does not exist, 0)


and (again excerpt from xorg-log):

Code:
(EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)
(EE) No Input driver matching `kbd'
(II) Synaptics touchpad driver version 0.14.6 (1406)
(--) ASUS F3Tc Touchpad auto-dev sets device to /dev/input/event6
(**) Option "Device" "/dev/input/event6"
(**) Option "SHMConfig" "on"
(**) Option "HorizScrollDelta" "0"
(EE) ASUS F3Tc Touchpad error shmget
(EE) PreInit failed for input device "ASUS F3Tc Touchpad"
(II) UnloadModule: "synaptics"
(EE) No Input driver matching `mouse'
(WW) No core pointer registered
No core keyboard

Fatal server error:
failed to initialize core devices



The Nvidia-Logo shows up, disappears and the console shows up again.

-------------------------------------------------------------------

Following is the output of emerge --info:
Code:
Portage 2.1.4.4 (arch/amd64, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r4 x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-50
Timestamp of tree: Mon, 21 Apr 2008 16:04:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X acpi alsa amd64 cdr dvd dvdr kde kernel_linux mmx multilib qt3 qt4 sse sse2 xorg"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY



Linked are the following files:

kernel config: http://rapidshare.com/files/109540108/config-2.6.24-gentoo-r4.html
complete xorg-log: http://rapidshare.com/files/109542723/Xorg.0.log.html
xorg.conf: http://rapidshare.com/files/109542912/xorg.conf.html


Thanks in advance for your help.

Regards,
Alex
_________________
Aahm... Signature!
Back to top
View user's profile Send private message
Desintegr
l33t
l33t


Joined: 25 Mar 2004
Posts: 863
Location: France - Orléans

PostPosted: Tue Apr 22, 2008 3:36 pm    Post subject: Reply with quote

Try to emerge x11-drivers/xf86-input-mouse and x11-drivers/xf86-input-keyboard.
Try to recompile x11-drivers/nvidia-drivers.

Also check if you have mounted a tmpfs file system on /dev/shm :
Code:
$ mount | grep shm
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec)


And please do not use rapidshare. Please use a pastebin, it's much better.
_________________
Gentoo ~AMD64
Hoc Volo, Sic Jubeo !
Mon wiki : http://desintegr.free.fr
Back to top
View user's profile Send private message
kingcrunch
n00b
n00b


Joined: 11 Feb 2005
Posts: 20
Location: west-germany

PostPosted: Tue Apr 22, 2008 4:23 pm    Post subject: Reply with quote

Desintegr wrote:
Try to emerge x11-drivers/xf86-input-mouse and x11-drivers/xf86-input-keyboard.
Try to recompile x11-drivers/nvidia-drivers.

Also check if you have mounted a tmpfs file system on /dev/shm :
Code:
$ mount | grep shm
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec)


And please do not use rapidshare. Please use a pastebin, it's much better.



hi,

do xf86-input-mouse and xf86-input-keyboard have any effect on the nvidia-drivers-package ? i'm asking because i already tried recompiling the nvidia-drivers (without knowledge of the separate input-drivers).

could you recommend a pastebin please ?

thanks.

alex
_________________
Aahm... Signature!
Back to top
View user's profile Send private message
Desintegr
l33t
l33t


Joined: 25 Mar 2004
Posts: 863
Location: France - Orléans

PostPosted: Tue Apr 22, 2008 4:26 pm    Post subject: Reply with quote

kingcrunch wrote:
do xf86-input-mouse and xf86-input-keyboard have any effect on the nvidia-drivers-package ? i'm asking because i already tried recompiling the nvidia-drivers (without knowledge of the separate input-drivers)

No, they are independent.

kingcrunch wrote:
could you recommend a pastebin please ?

http://pastebin.com/
http://pastebin.ca/
http://rafb.net/paste/
http://hashbin.com/
etc.
_________________
Gentoo ~AMD64
Hoc Volo, Sic Jubeo !
Mon wiki : http://desintegr.free.fr
Back to top
View user's profile Send private message
The Unknown
Guru
Guru


Joined: 28 Feb 2007
Posts: 335
Location: Minnesota, U.S.A

PostPosted: Tue Apr 22, 2008 6:33 pm    Post subject: Reply with quote

Some things I would suggest before you move on:

Unless you have reasons for the profile that you have selected, please select a more appropriate profile.
The default profile currently is /usr/portage/profiles/default/linux/amd64/2008.0 you may also be interested in the desktop profile /usr/portage/profiles/default/linux/amd64/2008.0/desktop.
These are both multilib profiles and will help provide a better environment and make things go a lot smoother for you in the future.

In your /etc/make.conf add these two variables
Code:
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="nvidia nv vesa"
nv and vesa are optional but in my opinion its nice to have backups.
You will have to rebuild x11-base/xorg-server after these modifications to build in the support for these drivers.
Then continue on emerging the drivers that Desintegr suggested (they might possibly be pulled in by these new variables).

Rebuild your x11-drivers/nvidia-drivers as well.

If you have changed your profile I would also suggest doing
Code:
emerge --sync
emerge -avuDN world

_________________
Doing what you like is freedom.
Liking what you do is happiness.
Back to top
View user's profile Send private message
kingcrunch
n00b
n00b


Joined: 11 Feb 2005
Posts: 20
Location: west-germany

PostPosted: Tue Apr 22, 2008 9:40 pm    Post subject: Reply with quote

hi,

@the unknown:
thanks for the advice. i'll try that tomorrow morning and respond about the outcome.
i already had no good feeling about the change of profile, as i never tried that before...

@desintegr:
oops, now that's too obvious (according the pastebin links).
i should've used google before asking stoopid questions :wink:

so here are the aforementioned config and log files:

kernel .config
xorg.0.log
xorg.conf

thx for your help.

alex
_________________
Aahm... Signature!
Back to top
View user's profile Send private message
kingcrunch
n00b
n00b


Joined: 11 Feb 2005
Posts: 20
Location: west-germany

PostPosted: Wed Apr 23, 2008 10:14 am    Post subject: Reply with quote

Ok,

everything went fine.
switched to the recommended profile, synced, emerged world. no errors.
rebooted (just to be sure it still runs), everythings fine.

emerge -avuDN world pulled the needed new modules right in.
i removed and reemerged nvidia-drivers.

though everything seems fine startx fails:

Here are the errors from Xorg.0.log (see link below for complete Xorg.0.log)
Code:

(EE) NVIDIA(0): Failed to obtain a shared memory identifier.
(EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)

(EE) ASUS F3Tc Touchpad error shmget
(EE) PreInit failed for input device "ASUS F3Tc Touchpad"

Backtrace:
0: X(xf86SigHandler+0x6d) [0x48750d]
1: /lib/libc.so.6 [0x2b184392c430]
2: /usr/lib64/xorg/modules/drivers//nvidia_drv.so [0x2b184561138b]

Fatal server error:
Caught signal 11.  Server aborting


anything i could do ?


Xorg.0.log


addition:
there are some errors 'bout mtrr in dmesg, but i don't know if this contributes to this problem.

Code:
mtrr: type mismatch for c0000000,8000000 old: write-protect new: write-combining
mtrr: type mismatch for c0000000,8000000 old: write-protect new: write-combining
mtrr: type mismatch for c0000000,8000000 old: write-protect new: write-combining


revdep-rebuild for xorg-x11 says, everything is consistent, same for nvidia-drivers.
_________________
Aahm... Signature!


Last edited by kingcrunch on Wed Apr 23, 2008 10:23 am; edited 1 time in total
Back to top
View user's profile Send private message
Desintegr
l33t
l33t


Joined: 25 Mar 2004
Posts: 863
Location: France - Orléans

PostPosted: Wed Apr 23, 2008 10:15 am    Post subject: Reply with quote

You have a problem with shared memory.

What does ipcs -l and ipcs -a return ?
_________________
Gentoo ~AMD64
Hoc Volo, Sic Jubeo !
Mon wiki : http://desintegr.free.fr
Back to top
View user's profile Send private message
kingcrunch
n00b
n00b


Joined: 11 Feb 2005
Posts: 20
Location: west-germany

PostPosted: Wed Apr 23, 2008 10:26 am    Post subject: Reply with quote

Desintegr wrote:
You have a problem with shared memory.

What does ipcs -l and ipcs -a return ?


Code:

ao-turion init.d # ipcs -l

kernel not configured for shared memory

kernel not configured for semaphores

kernel not configured for message queues


Code:

ao-turion init.d # ipcs -a

kernel not configured for shared memory

kernel not configured for semaphores

kernel not configured for message queues


i guess, these are things to add to my kernel configuration ? what's exactly missing (like, what needs to be selected in menuconfig) ?
_________________
Aahm... Signature!
Back to top
View user's profile Send private message
Desintegr
l33t
l33t


Joined: 25 Mar 2004
Posts: 863
Location: France - Orléans

PostPosted: Wed Apr 23, 2008 10:43 am    Post subject: Reply with quote

Check if kernel is compiled with CONFIG_SYSVIPC option.
_________________
Gentoo ~AMD64
Hoc Volo, Sic Jubeo !
Mon wiki : http://desintegr.free.fr
Back to top
View user's profile Send private message
kingcrunch
n00b
n00b


Joined: 11 Feb 2005
Posts: 20
Location: west-germany

PostPosted: Wed Apr 23, 2008 11:18 am    Post subject: Reply with quote

Desintegr wrote:
Check if kernel is compiled with CONFIG_SYSVIPC option.


Checked:
It's not set.

this was it. i recompiled the kernel with SYSVIPC set and the nvidia driver works fine without recompiling.

thanks a lot!
_________________
Aahm... Signature!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum