Incorrect Mouse, Incorrect Keymap, and Trapped in X
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Incorrect Mouse, Incorrect Keymap, and Trapped in X
During the configuration at the first real boot of Debian, I never got a chance to do a standard xorgconfig, and now my mouse and keyboard don't work. I have KDM set up, so the X escape sequence just returns to the login screen, and I can't pull down the menu. Is there a way to get out of X without a mouse?
Originally posted by Kenji Miyamoto I honestly am unable to check anything, since I have KDM set up. The cursor won't respond to movement, and the keyboard has the wrong keymap.
You should be able to switch to a console with CTRL+ALT+F1 / F6 and disable KDM using
Code:
/etc/init.d/kdm stop
You don't even need to stop it, as what you need is to take a glance at the logs in /var/log/Xorg.0.log or in $HOME/.xsession-errors, which you can do without having to do anything on the X.
You can also try to edit your /etc/X11/xorg.conf from there and take a look at the "corepointer" section. Normally this should be enough to load the module, but you should also use debian's module configuration system modconf and load your mouse's modules.
Quote:
Section "InputDevice"
#here is where your mouse must be configured
#this is a standard PS/2 mouse
#this should work out of the box for most mice, mine is an USB optical mouse
# Identifier and driver
EndSection
...
...
Section "ServerLayout"
# stuff related to the monitor, kbd and other things
# should include the lines below
...
InputDevice "Mouse1" "CorePointer"
...
EndSection
Sometimes there is a little precedence issue related to USB and PS/2 modules. I don't know where Debian stores the list of modules to be load, but the only thing you need is to get the PS/2 modules evdev and psmouse to load before any USB modules such as usb-core.
after making changes to the modules run update-modules
Hope this helps,
try it anyway and post the error log. Please only the 20-50 final lines:
Shouldn't there be a "recovery mode" to choose from in the grub boot loader screen? That should boot your system into a single user mode, ask for the root user's password, and bypass kdm, so that you can fix the X configuration from the CLI.
If you've got XFree86, then the file to edit is /etc/X11/XF86Config-4 but if you've installed X.org, then you should edit /etc/X11/xorg.conf . "dpkg-reconfigure xserver-xfree86" will edit the XFree86 config file and "dpkg-reconfigure xserver-xorg" will edit the X.org config file. However, if you've already manually edited one of these files, then you need to use a text editor, like "nano /etc/X11/XF86Config-4" or "nano /etc/X11/xorg.conf".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.