LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 08-21-2005, 11:41 PM   #1
Kenji Miyamoto
Member
 
Registered: Dec 2004
Distribution: Mandrake 10.1; Fedora Core 3; FreeBSD 5.3; Slackware 10.1 (2.6.10);
Posts: 234

Rep: Reputation: 30
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?
 
Old 08-22-2005, 04:07 AM   #2
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Rep: Reputation: 31
what is your xorg file

o/p of /var/log/messages


what errors are u getting
 
Old 08-22-2005, 04:18 AM   #3
Kenji Miyamoto
Member
 
Registered: Dec 2004
Distribution: Mandrake 10.1; Fedora Core 3; FreeBSD 5.3; Slackware 10.1 (2.6.10);
Posts: 234

Original Poster
Rep: Reputation: 30
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.
 
Old 08-22-2005, 07:35 AM   #4
runlevel0
Member
 
Registered: Mar 2005
Location: Hilversum/Holland
Distribution: Debian GNU/Linux 5.0 (“Lenny”)
Posts: 290

Rep: Reputation: 31
Quote:
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

Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "ZAxis Mapping" "4 5"

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:

Code:
cat /var/log/Xorg.0.log | tail -n 50 > $HOME/textfile

Last edited by runlevel0; 08-22-2005 at 07:41 AM.
 
Old 08-22-2005, 02:22 PM   #5
Kenji Miyamoto
Member
 
Registered: Dec 2004
Distribution: Mandrake 10.1; Fedora Core 3; FreeBSD 5.3; Slackware 10.1 (2.6.10);
Posts: 234

Original Poster
Rep: Reputation: 30
I just had the wrong protocol entered for the mouse.

I can't figure out the X.org package name is.

Now that I've rebooted into XFree86, I have no sound and no mouse movement. I didn't do anything other than rebooting after editing XF86Config-4.

Last edited by Kenji Miyamoto; 08-22-2005 at 03:24 PM.
 
Old 08-22-2005, 11:49 PM   #6
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
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".
 
Old 08-22-2005, 11:58 PM   #7
Kenji Miyamoto
Member
 
Registered: Dec 2004
Distribution: Mandrake 10.1; Fedora Core 3; FreeBSD 5.3; Slackware 10.1 (2.6.10);
Posts: 234

Original Poster
Rep: Reputation: 30
Well, with the exact samd device and 'auto' driver, it worked before I rebooted. And that doesn't explain my sound problems.

Which packages are needed to do a complete intall of X.org?
 
Old 08-23-2005, 01:30 AM   #8
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
"apt-get install x-window-system"

X.org is currently only available in debian unstable. Debian testing and debian stable both have XFree86.
 
Old 08-24-2005, 03:42 PM   #9
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Rep: Reputation: 31
just use ps-2 protocol for timebeing and later u can change over to imps2
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FVWM, X, and the incorrect mouse cursor on Xterm King V Linux - Software 5 12-01-2005 11:06 AM
incorrect TV card Johng Linux - Hardware 3 07-06-2004 12:12 PM
/etc/fstab incorrect narinder31 Linux - Newbie 5 08-15-2003 03:52 AM
Incorrect IP displayed. Manuel-H Linux - Networking 7 04-21-2003 01:58 PM
Login incorrect Hawama Jabeen Linux - Networking 7 09-17-2001 08:48 AM


All times are GMT -5. The time now is 08:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration