About missing input devices of xserver under debian sid/experimental.
Recently I upgraded my debian box using 'apt-get -t experimental full-upgrade'.However,I found xserver couldn't recognize any move of mouse and any input keyboard,so I couldn't do any thing after reboot my debian box.
I rebooted with rescue mode,and put 'exit 0;' into top of /etc/init.d/gdm3 script to prevent from invoking GDM. After reboot, I logged into my debian box with text console.
To safely do try and errors, I put lines to $HOME/.xsessionrc
xterm -geometry +500+400 & (sleep 60;ps -auxww | fgrep X | fgrep -v fgrep | awk '{print $2}' | xargs kill ) &
This caused safely to stop xserver after 60 seconds,if xserver couldn't recive any action from input devices. After then, I did try and errors using startx command.
I checked /var/log/Xorg.0.log and several times invoked X, I realized evdev_drv.so missed keyboard/mouse devices of my PC. So I added additional configrations regarding to input devices of my PC into /etc/X11/xorg.conf like below,
# disable hotplugging feature of evdev.
Section "ServerFlags"
Option "AutoAddDevices" "False"
EndSection
# stick to Keyboad0/mouse0 to corekeyboard/corepointer.
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
# Explicitly define input devices of my debian box.
# (I'm still using old type ps-mouse)
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
Option "CorePointer"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XKbdmodel" "pc105"
Option "XKbdlayout" "us"
Option "CoreKeyboard"
Option "XkdOptions" "terminate:ctrl-alt-bksp"
EndSection
And also I installed kbd_drv.so and mouse_drv.so like below,
sudo apt-get install xserver-xorg-input-kbd xserver-xorg-input-mouse
Next I invoked startx , then keyboad and mouse were properly worked!
I removed $HOME/.xsessionrc, and 'exit 0;' line from /etc/init.d/gdm3.
Reboot my PC again, GDM3 was porperly worked.
See also:
This problem was already reported by someone as #669949 - sysvinit: Break X11: no more mouse and keyboard - Debian Bug report logs.