Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302541 - USE=hal x11-base/xorg-server - Xorg autoconfiguration fails with x11-drivers/nvidia-drivers
Summary: USE=hal x11-base/xorg-server - Xorg autoconfiguration fails with x11-drivers/...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on: 302537
Blocks:
  Show dependency tree
 
Reported: 2010-01-27 22:11 UTC by Carter Young
Modified: 2010-02-10 07:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Copy of the X.org log file that errors out with USE Flag hal enabled (Xorg.0.log,13.25 KB, text/plain)
2010-01-29 07:47 UTC, Carter Young
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carter Young 2010-01-27 22:11:37 UTC
After reading bug 302537, please advise if this is a known issue, or if I need to report this upstream.  I'm reporting it as I'm concerned about the "feature" in step 5.  I think chooser.sh may be missing something, or am I?

Reproducible: Always

Steps to Reproduce:
1. Set VIDEO_CARDS="nvidia" and INPUT_DEVICES="evdev" in /etc/make.conf,
following the X Config Howto
2. USE="hal" emerge xorg server
3. type startx without /etc/X11/xorg.conf
4. Xorg errors out that X cannot run in framebuffer mode, and disables the xdm
runscript
5. As a side note, when hal is enabled, with /etc/X11/xorg.conf the value of
XSESSION is ignored and when startx is called the session defaults to TWM and
echo "${XSESSION}" returns a blank line



Actual Results:  
X.Org defaults to TWM.  This behavior in step 5 is alleviated if I compile xorg-server with -hal.

Expected Results:  
GNOME/KDE should start properly instead of TWM.

Portage 2.1.6.13 (default/linux/amd64/10.0/no-multilib, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-AMD_Athlon-tm-_64_Processor_3800+-with-gentoo-1.12.13
Timestamp of tree: Mon, 25 Jan 2010 01:45:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python:     2.6.4
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=opteron"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=opteron"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirrors.rit.edu/gentoo/ ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ ftp://mirror.datapipe.net/gentoo ftp://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi amd64 audiofile bash-completion bash_completion berkdb branding bzip2 cairo cdr cli consolekit cracklib crypt cups curl cxx dbus dga doc dri dts dv dvd dvdr dvdread encode esd examples fam fbcondecor ffmpeg firefox flac fortran gd gdbm git gnome gnutls gphoto2 gpm gtk hal iconv idn ieee1394 ipv6 jack jadetex java joystick jpeg jpeg2k lcms libcaca mmx mmxext modules mudflap ncurses nls nptl nptlonly nsplugin odbc openal openmp pam pcre perl png portaudio ppds pppd python readline reflection samba scanner session slp sndfile speex spl sse sse2 ssl svg sysfs tcl tcpd theora tidy tiff tk unicode usb wmf xine xinerama xml xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-01-29 02:07:22 UTC
Please attach a relevant Xorg.?.log
Comment 2 Carter Young 2010-01-29 07:47:11 UTC
Created attachment 217791 [details]
Copy of the X.org log file that errors out with USE Flag hal enabled

Please tell me if I'm missing a piece to the HAL configuration after you read through.
Comment 3 Carter Young 2010-01-29 07:49:40 UTC
I followed the XOrg Config HOWTO on the Gentoo Docs page to a tee, but please tell me if I've missed anything after looking at the log file.
Comment 4 Carter Young 2010-01-29 07:56:10 UTC
I followed the XOrg Config HOWTO on the Gentoo Docs page to a tee, but please tell me if I've missed anything after looking at the log file.  I copied files into /etc/hal/fdi also, so I'm baffled as to why HAL reports no devices after the built in configuration.
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2010-01-29 10:28:21 UTC
5. As a side note, when hal is enabled, with /etc/X11/xorg.conf the value of
XSESSION is ignored and when startx is called the session defaults to TWM and
echo "${XSESSION}" returns a blank line

Sorry, but I don't get this. Please, read http://www.gentoo.org/doc/en/xorg-config.xml section "Using startx". You are supposed to set XSESSION somewhere.
Comment 6 Carter Young 2010-01-29 20:07:24 UTC
I added Gnome to /etc/env.d/90xsession with echo XSESSION="Gnome" >  /etc/env.d/90xsession, but that does no good when HAL refuses to startx properly.  See the attached log.  Without an xorg.conf I get the crash.  With HAL and an xorg.conf, I get TWM even though Gnome is set in /etc/env.d/90xsession
Comment 7 Peter Volkov (RETIRED) gentoo-dev 2010-02-06 14:35:44 UTC
This should not happen, as X should be able to start. Could you try following patch:

http://cgit.freedesktop.org/xorg/xserver/commit/?id=aef6b904ebf0d7de6259058606c7c04ea177bda3

Comment 8 Carter Young 2010-02-08 23:28:44 UTC
I am currently away from my Gentoo box looking for jobs in the Windows World.  I should be back on Friday, and I'll let you know the results then.
Comment 9 Rémi Cardona (RETIRED) gentoo-dev 2010-02-08 23:53:22 UTC
X doesn't use HAL for video cards. Only input drivers are concerned.

Since nvidia-drivers is a binary driver, you need to specify it in your xorg.conf for it get loaded and used. Please use nvidia-settings to configure your X.

Thanks
Comment 10 Peter Volkov (RETIRED) gentoo-dev 2010-02-09 06:44:54 UTC
Rémi btw, if there will be any new revision of 1.6.5 I suggest to take patch in comment #7. Some description of what is fixed is here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508476#24

For what it worth, I'd better go with 1.7.4 stabilization.
Comment 11 Carter Young 2010-02-09 19:42:29 UTC
(In reply to comment #9)
> X doesn't use HAL for video cards. Only input drivers are concerned.
> Since nvidia-drivers is a binary driver, you need to specify it in your
> xorg.conf for it get loaded and used. Please use nvidia-settings to configure
> your X.
> Thanks

I have no problem doing what you propose, but we are back to the circular documentation bug I reported earlier.  See Description.  As the XOrg doc states, it is preferred to run X without /etc/X11/xorg.conf.  Something like a note or warning needs to be added to the documentation that those of us using the binary drivers cannot use XOrg "out of the box" without adding a vanilla configuration file with only certain sections added.