Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 246355 - kde-base/kdm-4.1.3 fails to start on system start
Summary: kde-base/kdm-4.1.3 fails to start on system start
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-10 22:22 UTC by Serge Ratke
Modified: 2009-03-20 17:31 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Serge Ratke 2008-11-10 22:22:47 UTC
kdm fails to start right on. after i'm logged in i'm able to start it with /etc/init.d/xdm restart. it used to work.

Reproducible: Always

Steps to Reproduce:
1. start the system
2. wait until kdm starts

Actual Results:  
the display remains black with a blinking dash in the upper left corner.

Expected Results:  
start kdm with a graphical login screen.

these are the packages i installed/updated before, after that kdm wasn't able to start anymore:

sys-fs/device-mapper-1.02.28
app-portage/eix-0.15.0
net-misc/curl-7.19.1
net-libs/xulrunner-1.9.0.3
media-video/vlc-0.9.6

additionaly i have some log excerpt from the /etc/log/kdm.log

The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
(EE) Failed to load module "evdev" (module does not exist, 0)
(EE) No input driver matching `evdev'
(EE) config/hal: NewInputDeviceRequest failed
(EE) Failed to load module "evdev" (module does not exist, 0)
(EE) No input driver matching `evdev'
(EE) config/hal: NewInputDeviceRequest failed

installing the x11 evdev package doesn't solve the problem.


Portage 2.2_rc13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r2 i686)
=================================================================                                    
System uname: Linux-2.6.27-gentoo-r2-i686-Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-glibc2.0            
Timestamp of tree: Mon, 10 Nov 2008 20:46:01 +0000                                                   
ccache version 2.4 [enabled]                                                                                           
app-shells/bash:     3.2_p39                                                                                           
dev-java/java-config: 1.3.7, 2.1.6-r1                                                                                                 
dev-lang/python:     2.5.2-r8                                                                                                         
dev-util/ccache:     2.4-r8                                                                                                           
dev-util/cmake:      2.6.2                                                                                                                                    
sys-apps/baselayout: 2.0.0                                                                                                                                    
sys-apps/openrc:     0.3.0-r1                                                                                                                                 
sys-apps/sandbox:    1.2.18.1-r3                                                                                                                              
sys-devel/autoconf:  2.13, 2.63                                                                                                                               
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.1-r1                                                                                                                       
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-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/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ "
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
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"
PORTDIR_OVERLAY="   "
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acl alsa berkdb bzip2 cdr cli cracklib crypt cups dbus dri dvd exif fastcgi fortran gdbm gpm hal iconv ipv6 isdnlog jpeg jpeg2k kde matroska midi mmx mp3 mudflap mysql ncurses nls nptl nptlonly opengl openmp pam pcre pdf perl phonon plasma png pppd python qt3 qt4 readline reflection samba semantic-desktop session spell spl sse sse2 ssl svg sysfs tcpd tiff unicode userlocales vim-syntax win32codecs x86 xcomposite xine xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Someone Else Who Won't Be Here 2008-11-10 22:29:34 UTC
After updating from kde-4.0 to kde-4.1 kdm also quit working for me.  And, I was able to start kdm manually, but otherwise if I ran the xdm service, I would get xdm. The fix I found in forums was to set these:

in /etc/conf.d/xdm
DISPLAYMANAGER="kdm"

in /etc/env.d/90xsession
XSESSION="kde-4.1"

starting the xdm service now works to start kdm.
Comment 2 Serge Ratke 2008-11-11 09:02:49 UTC
i had XSESSION="kde" previously in that config file. now with the kde-4.1 it doesn't work either.
Comment 3 Serge Ratke 2008-11-11 10:50:47 UTC
here's my xorg.conf

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	FontPath     "/usr/share/fonts/misc/"
	FontPath     "/usr/share/fonts/TTF/"
	FontPath     "/usr/share/fonts/OTF"
	FontPath     "/usr/share/fonts/Type1/"
	FontPath     "/usr/share/fonts/100dpi/"
	FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
	Load  "GLcore"
	Load  "glx"
	Load  "record"
	Load  "dri"
	Load  "dbe"
	Load  "extmod"
	Load  "xtrap"
	Load  "freetype"
#	Load  "type1"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option      "XkbLayout" "de"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	#DisplaySize	  470   300	# mm
	Identifier   "Monitor0"
	VendorName   "BNQ"
	ModelName    "BenQ FP222W"
 ### Comment all HorizSync and VertRefresh values to use DDC:
	HorizSync    30.0 - 84.0
	VertRefresh  56.0 - 76.0
	Option	    "DPMS"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"            	# [<bool>]
        #Option     "SWcursor"           	# [<bool>]
        #Option     "Dac6Bit"            	# [<bool>]
        #Option     "Dac8Bit"            	# [<bool>]
        #Option     "BusType"            	# [<str>]
        #Option     "CPPIOMode"          	# [<bool>]
        #Option     "CPusecTimeout"      	# <i>
        Option     "AGPMode" "4"           	# <i>
        #Option     "AGPFastWrite" "True"      	# [<bool>]
        #Option     "AGPSize"            	# <i>
        #Option     "GARTSize"           	# <i>
        #Option     "RingSize"           	# <i>
        #Option     "BufferSize"         	# <i>
        #Option     "EnableDepthMoves"   	# [<bool>]
        Option     "EnablePageFlip" "1"    	# [<bool>]
        #Option     "NoBackBuffer"       	# [<bool>]
        #Option     "DMAForXv"           	# [<bool>]
        #Option     "FBTexPercent"       	# <i>
        #Option     "DepthBits"          	# <i>
        #Option     "PCIAPERSize"        	# <i>
        Option     "AccelDFS" "1"          	# [<bool>]
        #Option     "DDCMode"            	# [<bool>]
        #Option     "IgnoreEDID"         	# [<bool>]
        #Option     "DisplayPriority"    	# [<str>]
        #Option     "PanelSize"          	# [<str>]
        #Option     "ForceMinDotClock"   	# <freq>
        #Option     "ColorTiling" "1"       	# [<bool>]
        #Option     "VideoKey"           	# <i>
        #Option     "RageTheatreCrystal" 	# <i>
        #Option     "RageTheatreTunerPort" 	# <i>
        #Option     "RageTheatreCompositePort" 	# <i>
        #Option     "RageTheatreSVideoPort" 	# <i>
        #Option     "TunerType"          	# <i>
        #Option     "RageTheatreMicrocPath" 	# <str>
        #Option     "RageTheatreMicrocType" 	# <str>
        #Option     "ScalerWidth"        	# <i>
        #Option     "RenderAccel" "1"       	# [<bool>]
        #Option     "SubPixelOrder"      	# [<str>]
        #Option     "ShowCache"          	# [<bool>]
        #Option     "DynamicClocks"      	# [<bool>]
        #Option     "VGAAccess"          	# [<bool>]
        #Option     "ReverseDDC"         	# [<bool>]
        #Option     "LVDSProbePLL"       	# [<bool>]
        Option     "AccelMethod" "EXA"       	# <str>
        #Option     "DRI"                	# [<bool>]
        #Option     "ConnectorTable"     	# <str>
        #Option     "DefaultConnectorTable" 	# [<bool>]
        #Option     "DefaultTMDSPLL"     	# [<bool>]
        #Option     "TVDACLoadDetect"    	# [<bool>]
        #Option     "ForceTVOut"         	# [<bool>]
        #Option     "TVStandard"         	# <str>
        #Option     "IgnoreLidStatus"    	# [<bool>]
	Identifier  "Card0"
	Driver      "radeon"
	VendorName  "ATI Technologies Inc"
	BoardName   "RV350 AR [Radeon 9600]"
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Section "dri"
	Mode 0666
EndSection

Section "Extensions"
	Option "Composite" "Enable"
EndSection
Comment 4 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2008-11-11 23:32:55 UTC
You should use the following for KDE-4.1:
DISPLAYMANAGER="kdm"
XSESSION="kde-4.1"

(In reply to comment #0)
> (EE) Failed to load module "evdev" (module does not exist, 0)
> (EE) No input driver matching `evdev'
> (EE) config/hal: NewInputDeviceRequest failed
> (EE) Failed to load module "evdev" (module does not exist, 0)
> (EE) No input driver matching `evdev'
> (EE) config/hal: NewInputDeviceRequest failed

Do you have the evdev module?
Comment 5 Serge Ratke 2008-11-12 08:10:16 UTC
i have those entries in the config files already.

emerging the evdev package and using it in the xorg.conf didn't change anything.

Section "InputDevice"
        Identifier  "Keyboard0"
#       Driver      "kbd"
        Driver      "evdev"
        Option      "XkbLayout" "de"
EndSection

Now i have this message in the /var/log/Xorg.log:

(EE) Keyboard0: No device specified.
(EE) PreInit returned NULL for "Keyboard0"
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
Comment 6 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2008-11-12 11:30:50 UTC
Have you tried moving xorg.conf elsewhere and start X with an empty or non-existent xorg.conf?
Comment 7 Serge Ratke 2008-11-12 11:44:11 UTC
here's the /var/log/kdm.log content after i moved xorg.conf

Release Date: 10 October 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.27-gentoo-r2 i686
Current Operating System: Linux gentoo 2.6.27-gentoo-r2 #7 SMP Sat Nov 1 11:17:37 CET 2008 i686
Build Date: 02 November 2008  09:14:58AM

        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Nov 12 12:41:49 2008
(EE) Unable to locate/open config file
New driver is "ati"
(==) Using default built-in configuration (30 lines)
(EE) Failed to load module "fbdev" (module does not exist, 0)
(EE) Failed to load module "vesa" (module does not exist, 0)
NTSC PAL
finished output detect: 0
finished output detect: 1
finished output detect: 2
finished all detect
before xf86InitialConfiguration
in RADEONProbeOutputModes
after xf86InitialConfiguration
Entering TV Save
Save TV timing tables
saveTimingTables: reading timing tables
TV Save done
init memmap
init common
init crtc1
init pll1
freq: 146250000
best_freq: 146250000
best_feedback_div: 65
best_ref_div: 6
best_post_div: 2
restore memmap
restore common
restore crtc1
restore pll1
finished PLL1
restore dac
Comment 8 Serge Ratke 2008-11-12 12:01:33 UTC
found some more output in /var/log/messages, don't know if it's related

Nov 11 11:42:05 gentoo [   31.162296] X:2130 conflicting memory types e8000000-f0000000 write-combining<->uncached-minus
Nov 11 11:42:05 gentoo [   31.162306] reserve_memtype failed 0xe8000000-0xf0000000, track write-combining, req write-combining
Nov 11 11:42:05 gentoo cron[2209]: (CRON) STARTUP (V5.0)
Nov 11 11:42:06 gentoo [   32.497776] X:2130 conflicting memory types e8000000-f0000000 write-combining<->uncached-minus
Nov 11 11:42:06 gentoo [   32.497788] reserve_memtype failed 0xe8000000-0xf0000000, track write-combining, req write-combining
Nov 11 11:42:06 gentoo [   32.499300] X:2241 freeing invalid memtype e8000000-f0000000
Nov 11 11:42:07 gentoo kdm[2116]: X server startup timeout, terminating
Nov 11 11:42:07 gentoo [   33.267460] [drm] Num pipes: 1
Nov 11 11:42:07 gentoo [   33.343988] X:2130 freeing invalid memtype e8000000-f0000000
Comment 9 Serge Ratke 2008-11-12 12:10:21 UTC
maybe this one is more related to my problem (/var/log/messages?

Nov 12 13:04:29 gentoo hald[1987]: 13:04:29.883 [I] osspec.c:241: SEQNUM=1097, ACTION=remove, SUBSYSTEM=vc, DEVPATH=/sys/devices/virtual/vc/vcs7, DEVNAME=/dev/vcs7, IFINDEX=0
Nov 12 13:04:29 gentoo hald[1987]: 13:04:29.883 [I] device.c:4476: remove_dev: subsys=vc sysfs_path=/sys/devices/virtual/vc/vcs7
Nov 12 13:04:29 gentoo hald[1987]: 13:04:29.883 [W] device.c:4480: Error removing device
Nov 12 13:04:29 gentoo kdm[2061]: X server for display :0 cannot be started, session disabled
Nov 12 13:04:29 gentoo hald[1987]: 13:04:29.886 [I] osspec.c:241: SEQNUM=1098, ACTION=remove, SUBSYSTEM=vc, DEVPATH=/sys/devices/virtual/vc/vcsa7, DEVNAME=/dev/vcsa7, IFINDEX=0
Nov 12 13:04:29 gentoo hald[1987]: 13:04:29.886 [I] device.c:4476: remove_dev: subsys=vc sysfs_path=/sys/devices/virtual/vc/vcsa7
Nov 12 13:04:29 gentoo hald[1987]: 13:04:29.886 [W] device.c:4480: Error removing device
Comment 10 Serge Ratke 2008-11-14 19:21:08 UTC
got it fixed by editing the /usr/share/config/kdm/kdmrc file and raising up the value ServerTimeout from 15 (default) to 60. Found this solution in this thread http://forums.pcbsd.org/viewtopic.php?p=58892&sid=b43e984d5978f2ca36eb067a12851795#p58892
Comment 11 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2008-11-15 14:55:03 UTC
(In reply to comment #10)
> got it fixed by editing the /usr/share/config/kdm/kdmrc file and raising up the
> value ServerTimeout from 15 (default) to 60. Found this solution in this thread
> http://forums.pcbsd.org/viewtopic.php?p=58892&sid=b43e984d5978f2ca36eb067a12851795#p58892
> 

Thanks for finding out the problem.
I've now added a note to pkg_postinst about this. I'll try to add a note in the kde4-guide as well.

  15 Nov 2008; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
  kdm-4.1.3.ebuild:
  Added a note on the ServerTimeout option in case kdm dies for X taking too
  long to startup.
Comment 12 a+gentoobugs 2008-11-18 16:24:31 UTC
I have the same issue, but raising ServerTimeout from 15 to 60 (or even 120) didn't solve the problem for me.
Comment 13 Serge Ratke 2008-11-18 16:35:48 UTC
could you provide more information? such as your xorg log file, kdm log file, dmesg output
Comment 14 a+gentoobugs 2008-11-18 16:48:50 UTC
My apologies. It seems that I had not saved the file after my last edit.
Changing ServerTimeout from 15 to 120 in /usr/share/config/kdm/kdmrc did indeed fix this issue for me.
It doesn't work with ServerTimeout set to 60 for me though.
Comment 15 Serge Ratke 2008-11-18 16:51:52 UTC
yeah, for some reason i had to raise the value to 70 in order for kdm to work. weird :/
Comment 16 Serge Ratke 2008-11-26 20:49:02 UTC
i had to increase the value of ServerTimeout by 10 again -- now being 80. what's wrong?
Comment 17 a+gentoobugs 2009-03-20 17:31:49 UTC
Why is this bug marked as fixed/resolved?
ServerTimeout 120 stopped working for me.. increased to 240 and all is well.