LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-24-2005, 06:32 PM   #1
c_olin3404
Member
 
Registered: Jan 2004
Posts: 131

Rep: Reputation: 15
keyboard issues...


I installed Slackware 10.1 on my box, and so far so good. While Linux is booting up, the keyboard appears to work, i can turn the numlock on and off, but as soon as I get the chance to log on, the keyboard doesn't work, and i cant turn numlock on or anything.

Is there a certain file I have to edit to get my keyboard to work? I have just a standard US keyboard, and it worked during the installation, and I have SW installed on this comp just the other day.

What file must I edit to get my keyboard working again?

Thanks!
 
Old 05-24-2005, 07:07 PM   #2
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
Is it a PS/2 keyboard, or a USB keyboard?

If it's USB, try going into your BIOS to see if you can enable USB keyboard support... on some computers this enables a BIOS driver that controls the keyboard and presents it as a PS/2 to the OS. The only downside is that the keyboard has to be plugged in to a root hub (directly to the computer), it can't be plugged into an external hub.

If it's a PS/2 keyboard, how on earth did you manage to convince Linux to ignore a PS/2? Is it possible that the keyboard lights may work, but some of the keys could be broken?
 
Old 05-24-2005, 11:49 PM   #3
c_olin3404
Member
 
Registered: Jan 2004
Posts: 131

Original Poster
Rep: Reputation: 15
It is Ps/2

The keys are not broken. I have no idea what to do
 
Old 05-25-2005, 12:15 AM   #4
c_olin3404
Member
 
Registered: Jan 2004
Posts: 131

Original Poster
Rep: Reputation: 15
On bootup, I can type anything in while it is logging the tasks it is performing, once it gets to 'localhost login' none of the keys work.

Any ideas??
 
Old 06-22-2005, 09:49 AM   #5
Bluenoser
Member
 
Registered: Jun 2004
Location: Nova Scotia, Canada
Distribution: Ubuntu 8.04 LTS
Posts: 138

Rep: Reputation: 15
I'm having the same problem. It always worked before, but just re-installed Slack 10.1 and as soon as I get to the login, the keyboard is dead. Just a regular ps/2 keyboard. Weird
 
Old 06-22-2005, 10:37 AM   #6
spaceballs
Member
 
Registered: Jan 2005
Location: Dallas, TX
Distribution: Slackware-current
Posts: 248

Rep: Reputation: 30
Try this

I had a similar problem with a laptop once. The keyboard worked fine with lilo, but once slackware loaded, it didn't work...unless, you held a key down during your boot sequence. Try that. Once you pick your boot in lilo (or whatever you use), hold down just a random key until you get to your login prompt. This may not work at all - just an idea.
 
Old 06-22-2005, 07:00 PM   #7
Bluenoser
Member
 
Registered: Jun 2004
Location: Nova Scotia, Canada
Distribution: Ubuntu 8.04 LTS
Posts: 138

Rep: Reputation: 15
Update, I re-installed Slack 10.1 (bare.i) again and now the keyboard does work at login. However, when I startx and kde loads, I have no mouse or keyboard. I ran xorgconfig and selected the same options that I always do without any problems in the past. Keyboard is ps/2 and mouse is usb. I tried telinit 4 to get to the graphical login, and both of them died again.

Another update.... found a usb > ps/2 adapter and hooked up the mouse using that. Problem solved. Just not sure what I did differently, it always worked fine before.

Last edited by Bluenoser; 06-22-2005 at 07:41 PM.
 
Old 07-22-2005, 04:18 PM   #8
neutral_insomniac
LQ Newbie
 
Registered: Jul 2005
Posts: 8

Rep: Reputation: 0
I have this same problem on an hp laptop. If you hold a key down, you get keyboard support just fine. I have found that if I disable /etc/rc.d/rc.hotplug, it works fine, which tells me that it is a problem in this script... If that gives anyone any ideas, PLEASE respond. Don't use the email here. Use neutral_insomniac@yahoo.com . Any and all help would be GREATLY appreciated...
 
Old 07-22-2005, 04:57 PM   #9
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
The mouse sometimes doesn't work if /dev/mouse is not linked to the actual device file. If I remember correctly, the usb mouse device is at /dev/input/mouse0.
 
Old 07-22-2005, 07:04 PM   #10
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 35
http://www.linuxquestions.org/questi...hreadid=338246

dont worry, is there a solution
 
Old 07-22-2005, 09:25 PM   #11
neutral_insomniac
LQ Newbie
 
Registered: Jul 2005
Posts: 8

Rep: Reputation: 0
That doesn't fix our keyboard problem... The problem arises before X even takes over. And I know for a fact that it comes from the /etc/rc.d/rc.hotplug script. When it is disabled, the keyboard works fine. And I've compared the output of lsmod with and without holding down a key at boot to get keyboard support, and they are identical... I don't know what the problem is...
 
Old 07-22-2005, 09:54 PM   #12
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Maybe you're having the same problem this guy had: http://www.hussar.demon.co.uk/linux/hpze4125.htm

Quoting the relevant part:
Quote:
USB works too - this is an ALI OHCI controller, just compile in the appropriate kernel driver. (And enable PCI hotplug support in the kernel and install the "hotplug" package for easy "plug & play".) For USB floppy support, see below. Also compile in VFAT support for connecting to many USB digital cameras. See this site for more information.

* Note that if I attempt to use the boot paramters "single" or "init=/bin/sh", everything appears to boot as expected, but unfortunately I get no response from the keyboard. I've tried the boot parameter "kbd-reset" to no avail and tried mucking with my kernel options, again with no joy.... This can be a real swine if you f**k up your init scripts or "XF86Config" (excitement thanks to move to XFree86 v4.2.1-5)... As the ext3 partitions aren't mountable by my Debian Woody CD-ROM, it gets exciting...

* Solution: (Yay! There is a bug in USB-OHCI support such that if it is loaded (in any way) this causes the keyboard not to respond. (I checked and it was that portion - USB core is fine, because I compiled the kernel with it compiled in, but not the USB-OHCI module.) So you need two kernels - one with USB support, the other "emergency" one without, for getting you out of trouble. NOTE: Compiling all of the USB support as modules doesn't help, as you're likely to be using hotplug support. This will cause the compiled USB modules to load, and thus no keyboard, just before you get the boot prompt, when used with the "single" kernel boot-parameter. Compiling USB-OHCI support (at least) as a module may work for the kernel boot-parameter "init=/bin/sh", but I wanted "single" to work too.

* A better solution emailed to me by Stefan Johnson is to disable USB Legacy support in the BIOS. I've tested this, and it seems to work, so I've ditched the "emergency" kernel that I had compiled.
You could try adding ochi_hcd to /etc/hotplug/blacklist or disabling USB Legacy support as suggested in the page.

Last edited by gbonvehi; 07-22-2005 at 10:28 PM.
 
Old 07-22-2005, 10:18 PM   #13
neutral_insomniac
LQ Newbie
 
Registered: Jul 2005
Posts: 8

Rep: Reputation: 0
Thank you. I will try this tomorrow and post whether i get success or not. I appreciate your response.
 
Old 07-22-2005, 11:37 PM   #14
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 35
on boot in lilo use the follow parameter: Linux (or whatever is your boot label) 1
Code:
Linux 1
you will go Single mode, them
Code:
#chmod -x /etc/rc.d/rc.hotplug
#shutdown -r now
now see if the problem get solved...



ps: You see, hotplug may cause problems, just like ieee1394 so you can disable it in the boot, after login in GUI you can try "#chmod +x /etc/rc.d/rc.hotplug; /etc/rc.d/rc.hotplug start" and see if all goes fine... if dont you may try keep hotplug disabled until a new version is released...

ps2: You may also update your kernel to the last stable version, this may works fine for this problem... Im guessing you're using kernel 2.4.x so try kernel 2.6.x ... is not everytime that the solution is just simples as we wanted...

Last edited by maginotjr; 07-22-2005 at 11:45 PM.
 
Old 07-23-2005, 09:24 AM   #15
neutral_insomniac
LQ Newbie
 
Registered: Jul 2005
Posts: 8

Rep: Reputation: 0
Thank you for your reply, however I've tried to disable hotplug, and I get keyboard support just fine, but I don't get the modules loaded in that I need like usb-storage and whatnot. And then when I go to run /etc/rc.d/rc.hotplug AFTER boot, my keyboard loses control again...
 
  


Reply



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
Gentoo - Keyboard issues Zero-0-Effect Linux - Distributions 3 10-09-2005 05:01 PM
KDE Keyboard Issues jkassemi Linux - Software 3 07-27-2005 09:00 AM
Mouse and keyboard issues mrossm Mandriva 7 03-22-2005 02:16 PM
Keyboard issues RockmanExe Slackware 5 12-07-2004 07:47 PM
Keyboard Issues TPupAZ Linux - Hardware 1 09-30-2004 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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