Graphical Linux startup
From ThorstensHome
Contents |
Process
This chapter show what process calls what.
init
init calls xdm
xdm
/etc/init.d/xdm sources /etc/sysconfig/displaymanager in the line
. /etc/sysconfig/displaymanager
xdm the X display manager calls kdm
kdm
kdm, the KDE display manager calls X and after login, startkde.
kdm log is in /var/log/kdm.log
start kdm manually: kdm /etc/opt/kde3/share/config/kdm/kdmrc
kdm's possible session types (KDE, GNOME etc) are defined in .desktop files in $KDEDIR/share/apps/kdm/sessions.
startkde
startkde calls ksmserver and hands over what Window manager it wants to have run. By default, it does not hand over anything and kwin is started as windows manager.
startkde log is in .xsession-errors
Working on
kded(2238) Kded::loadModule: Could not load library "kded_phononserver" . [ "The shared library was not found." ] I changed kded to output "Could not load2 library". did not work => there was a kded4 lying around in /usr/local/bin. This was drawn instead of my /usr/bin/kded4.
removed /usr/local/bin/kded4. Now I get
Kded::loadModule: Successfully loaded module "phononserver"
but KDE does not expect an input still. Did the same with kdeinit4, kde4-config, /usr/local/bin/kdeinit4_wrapper /usr/local/bin/kdeinit4_shutdown
TroubleShooting
This chapter makes proposals what to do if you cannot log in.
if it logs you out after logging in
- check if kdebase3-kdm is installed
- check /var/run/kdm.pid is there when kdm is running
- (re)-install all of kdebase-kdm, kdebase, kdelibs
- re-install xkeyboard-config
- check /usr/X11R6/lib/X11/xkb exists
- CTRL_ALT_F1 has to work
- /etc/X11/xdm/xdm-pid has to exist
working xorg.conf
staerk@staerk-desktop:~$ cat /etc/X11/xorg.conf
# /.../
# SaX generated X11 config file
# Created on: 2007-04-15T08:51:07+0200.
#
# Version: 8.1
# Contact: Marcus Schaefer <sax@suse.de>, 2005
# Contact: SaX-User list <https://lists.berlios.de/mailman/listinfo/sax-users>
#
# Automatically generated by [ISaX] (8.1)
# PLEASE DO NOT EDIT THIS FILE!
#
Section "Files"
FontPath "/usr/share/fonts/misc:unscaled"
FontPath "/usr/share/fonts/local"
FontPath "/usr/share/fonts/75dpi:unscaled"
FontPath "/usr/share/fonts/100dpi:unscaled"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/URW"
FontPath "/usr/share/fonts/Speedo"
FontPath "/usr/share/fonts/PEX"
FontPath "/usr/share/fonts/cyrillic"
FontPath "/usr/share/fonts/latin2/misc:unscaled"
FontPath "/usr/share/fonts/latin2/75dpi:unscaled"
FontPath "/usr/share/fonts/latin2/100dpi:unscaled"
FontPath "/usr/share/fonts/latin2/Type1"
FontPath "/usr/share/fonts/latin7/75dpi:unscaled"
FontPath "/usr/share/fonts/baekmuk:unscaled"
FontPath "/usr/share/fonts/japanese:unscaled"
FontPath "/usr/share/fonts/kwintv"
FontPath "/usr/share/fonts/truetype"
FontPath "/usr/share/fonts/uni:unscaled"
FontPath "/usr/share/fonts/CID"
FontPath "/usr/share/fonts/ucs/misc:unscaled"
FontPath "/usr/share/fonts/ucs/75dpi:unscaled"
FontPath "/usr/share/fonts/ucs/100dpi:unscaled"
FontPath "/usr/share/fonts/hellas/misc:unscaled"
FontPath "/usr/share/fonts/hellas/75dpi:unscaled"
FontPath "/usr/share/fonts/hellas/100dpi:unscaled"
FontPath "/usr/share/fonts/hellas/Type1"
FontPath "/usr/share/fonts/misc/sgi:unscaled"
FontPath "/usr/share/fonts/xtest"
FontPath "/opt/kde3/share/fonts"
FontPath "unix/:7100"
InputDevices "/dev/gpmdata"
InputDevices "/dev/input/mice"
EndSection
Section "ServerFlags"
Option "AllowMouseOpenFail" "on"
EndSection
Section "Module"
Load "type1"
Load "dbe"
Load "freetype"
Load "glx"
Load "v4l"
Load "extmod"
EndSection
Section "InputDevice"
Driver "kbd"
Identifier "Keyboard[0]"
Option "Protocol" "Standard"
Option "XkbLayout" "us"
Option "XkbModel" "pc104"
Option "XkbRules" "xfree86"
EndSection
Section "InputDevice"
Driver "mouse"
Identifier "Mouse[1]"
Option "Buttons" "5"
Option "Device" "/dev/input/mice"
Option "Name" "Holtek USB Mouse"
Option "Protocol" "explorerps/2"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
DisplaySize 305 230
HorizSync 29-48
Identifier "Monitor[0]"
ModelName "1024X768@60HZ"
VendorName "--> VESA"
VertRefresh 50-60
UseModes "Modes[0]"
EndSection
Section "Modes"
Identifier "Modes[0]"
Modeline "1024x768" 64.11 1024 1080 1184 1344 768 769 772 795
Modeline "1024x600" 48.96 1024 1064 1168 1312 600 601 604 622
Modeline "800x600" 38.22 800 832 912 1024 600 601 604 622
Modeline "768x576" 34.96 768 792 872 976 576 577 580 597
Modeline "640x480" 23.86 640 656 720 800 480 481 484 497
Modeline "1024x768" 65.00 1024 1048 1184 1344 768 771 777 806 -HSync -VSync
Modeline "768x576" 36.13 768 792 872 976 576 577 580 597
Modeline "640x480" 24.70 640 656 720 800 480 481 484 498
Modeline "1792x768" 65.00 1792 1816 1952 2112 768 771 777 806
EndSection
Section "Screen"
DefaultDepth 24
SubSection "Display"
Depth 15
Modes "1024x768" "1024x600" "800x600" "768x576" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "1024x600" "800x600" "768x576" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "1024x600" "800x600" "768x576" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "1024x600" "800x600" "768x576" "640x480"
EndSubSection
Device "Device[0]"
Identifier "Screen[0]"
Monitor "Monitor[0]"
EndSection
Section "Device"
BoardName "R350 NH"
BusID "1:0:0"
Driver "radeon"
Identifier "Device[0]"
Option "SaXDualHead"
Option "IgnoreEDID"
Option "MergedFB"
Option "SaXDualMonitorVendor" "Unknown"
Option "CRT2VRefresh" "50-60"
Option "CRT2Position" "RightOf"
Option "MetaModes" "1024x768,768x576;1024x600,768x576;800x600,768x576;768x576,768x576;640x480,640x480"
Option "SaXDualOrientation" "RightOf"
Option "SaXDualResolution" "768x576"
Option "SaXDualMode" "Xinerama"
Option "CRT2HSync" "30-50"
Option "SaXDualHSync" "30-50"
Option "SaXDualMonitorModel" "Unknown"
Option "SaXDualVSync" "50-60"
VendorName "ATI"
EndSection
Section "ServerLayout"
Identifier "Layout[all]"
InputDevice "Keyboard[0]" "CoreKeyboard"
InputDevice "Mouse[1]" "CorePointer"
Option "Clone" "off"
Option "Xinerama" "off"
Screen "Screen[0]"
EndSection
Section "DRI"
Group "video"
Mode 0660
EndSection
Section "Extensions"
EndSection

