LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-01-2004, 08:22 PM   #1
King4lex
Member
 
Registered: Aug 2004
Distribution: Fedora Core 4
Posts: 90

Rep: Reputation: 15
Keyboard problem in X


I just installed the current testing version of Debian (its called Sarge, right?). I used debian-installer, and everything seemed to go smoothly. At the end of the install, it gave me a text-based login prompt. I logged in fine, but when I tried 'startx' is said that startx did not exist. I guessed this meant that X was not installed. So I did 'apt-get install x-window-system'. It downloaded it and ran the setup program. However, I noticed two problems:

(1) The big problem is, after I got X configured and did 'startx', the keyboard no longer worked. At all. (It works fine at the command prompt).

(2) The second (minor) problem is the loading time. On Mandrake (the distro I used previously) X was on screen and ready to go about 2 seconds after I typed 'startx'. Now it takes more like 20 seconds. Is there any way to speed it up?

Thanks for any help you can give. One last question. X now starts as soon the linux is finished booting. I personally prefer the text based login prompt. Is there any way to stop X from starting automatically?
 
Old 09-01-2004, 08:51 PM   #2
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Rep: Reputation: 30
Reconfigure X with /usr/X11R6/bin/xf86config and try choosing a different keyboard type.

Is there massive disk activity during those 20 seconds? Check the output of /var/log/xfree86.log
or whatever log that contains your X server messages.

Do you mean you wan't for X to not start at all during bootup or you want it to startup and then switch to the console login. If you want the first, then just goto /etc/rc5.d (I think, or whatever the default run level is) and delete the symlinks to whatever window manager you're using or just edit the script that those links point to so that they do nothing.
 
Old 09-01-2004, 09:08 PM   #3
King4lex
Member
 
Registered: Aug 2004
Distribution: Fedora Core 4
Posts: 90

Original Poster
Rep: Reputation: 15
OK, I tried xf86config. The only thing I see about keyboards is the following:

Code:
XKB rules file '/usr/X11R6/lib/X11/xkb/rules/xfree86' not found.
Keyboard XKB options will be set to default values.
Press enter to continue, or ctrl-c to abort.
From /var/log/xdm.log

Code:
Couldn't load XKB keymap, falling back to pre-XKB keymap
I am not exactly sure what would be "massive disk activity" (I am not sure how much disk activity should be going on. The only warning I saw that caught me eye in the XFree86.0.log was this:

Code:
Open APM failed (/dev/apm.bois) No such file or directory)
I don't know if this has anything to do with anything, though. Also, I belive the way I was doing it in Mandrake was to have the default runlevel at 3. How do I set the default runlevel?? Thx!

Last edited by King4lex; 09-01-2004 at 09:24 PM.
 
Old 09-01-2004, 09:21 PM   #4
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Rep: Reputation: 30
What happens when you continue? Can you choose a different keyboard than the current one?
 
Old 09-01-2004, 09:28 PM   #5
King4lex
Member
 
Registered: Aug 2004
Distribution: Fedora Core 4
Posts: 90

Original Poster
Rep: Reputation: 15
When I push enter to continue, it goes on to the moniter setup screen.
 
Old 09-01-2004, 09:39 PM   #6
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Rep: Reputation: 30
That's weird. Usually, you're first asked to configure the mouse, then the keyboard. Do you have all the X client libraries installed? see the dependencies to xlibs on packages.debian.org. Do you see any errors in the log files like I told you to?
 
Old 09-01-2004, 09:48 PM   #7
King4lex
Member
 
Registered: Aug 2004
Distribution: Fedora Core 4
Posts: 90

Original Poster
Rep: Reputation: 15
Sorry, I don't think I made myself clear. Yes, it does ask to configure the mouse, etc. Here is what happens:

1. It configures the mouse
2. It displays error about XKB keymap
3. It goes on to configure the monitor
4. Configures video card
5. Saves config file

So the problem is, after it displays the error about the keymap, it does not give me a chance to configure the keyboard.

I did find out something. 'startx' was reading /etc/X11/XFree86Config-4 but I was saving the config file to /etc/X11/XF86Config so my changes were not having an effect. Having corrected that, 'startx' is giving me an error about /dev/mouse not being found. How can I determine where my mouse is found (it is a PS/2 mouse)?

Also, I edited my post above before I saw your most recent posts. I wrote what I saw in the logs.

Last edited by King4lex; 09-01-2004 at 09:49 PM.
 
Old 09-01-2004, 09:59 PM   #8
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Rep: Reputation: 30
Try reinstalling xlibs (if you have a online connection and apt set up, do a "apt-get install xlibs") or reinstalling everything related to X since you don't have that file /something/xkb/xfree86

As for the mouse, go to the /dev directory. To see if /dev/psaux is your mouse device, do "cat psaux"; when you move your mouse around, you should see random characters on the screen. If psaux is your mouse, then make a symbolic link for it ("ln -s psaux mouse").
 
Old 09-01-2004, 10:12 PM   #9
King4lex
Member
 
Registered: Aug 2004
Distribution: Fedora Core 4
Posts: 90

Original Poster
Rep: Reputation: 15
K, thx. I found the mouse. I'll try reinstalling all of X tomorrow. Can you give me a list of about what all that includes. Thanks so much 4 your help!
 
Old 09-01-2004, 10:21 PM   #10
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Rep: Reputation: 30
I don't think you should completely reinstall X before you've made sure that xlibs is installed by using "dpkg -l xlibs". If it's not installed then just do apt-get install xlibs (just like you did with x-window-system).
 
Old 09-02-2004, 11:03 AM   #11
King4lex
Member
 
Registered: Aug 2004
Distribution: Fedora Core 4
Posts: 90

Original Poster
Rep: Reputation: 15
OK, after installing xlibs and using xf86config to choose the correct keyboard, X is working fine. This also seems to have fixed the slow startup problem. Thx!
 
  


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
Keyboard problem ?UK should be US silverbirch Linux - Hardware 2 02-16-2005 04:09 AM
keyboard problem pazvant Solaris / OpenSolaris 3 06-16-2004 04:53 PM
keyboard problem mustafa Slackware 3 11-09-2003 09:13 AM
problem with keyboard!! olubone Linux - Hardware 5 07-18-2003 10:36 AM
keyboard problem evian Linux - General 1 03-14-2003 11:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration