LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-02-2017, 04:56 PM   #1
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 468

Rep: Reputation: Disabled
keyboard and mouse not working. How to diagnose.


On Sunday mornings I update my slackware system. That was this morning. I also have a Gentoo system that I keep current on a flash drive. I also update that on Sundays. I came over to Slackware from Gentoo last December because a lot of Gentoo forums users did not consider me smart enough to be using Gentoo. I did make a flash drive install of Slackware, but ironically it suffers from the same issue I am now encountering, and at this moment I am unsure of how to fix it.

This morning I was doing my updates. I started with:
Code:
root@caitlyn: #  slackware update
root@caitlyn: #  slackware install-new
root@caitlyn: #  slackware upgrade-all
I went to another tab in my xfce4-terminal, and issued su - to get to root. I then plugged my Gentoo drive into the USB slot and issued a 'mount /dev/sdb4 /mnt/gentoo'. This returned an error. So I checked /dev. The only /dev/sd? I saw were /dev/sda entries, which is my active hard drive. If this was Gentoo, I would have simply issued a /etc/init.d/dbus restart. I'm sure it would have warned me about restarting a boot service, but it couldn't be helped. I looked in /etc/rc.d and didn't see ANYTHING for controlling dbus. So, being almost late for church anyway, I decided to kill dbus manually, so I issued 'ps ax | grep dbus'. I saw several entries for dbus. I issued a killall which did nothing, so I tried kill -9. I listed all the PIDs for the dbus entries. I was planning to start it manually based on the entries that ps listed. But then X shut down. I figured that I might as well do a full fresh boot. That's the scariest thing I do on Linux, but it usually does the trick. This time it didn't. I got back to the login prompt, and my keyboard wouldn't work. I know it's not a hardware issue because I'm using the same keyboard to type this message. I booted off my Gentoo drive and mounted my /home partition and logged in. I thought at first that it was just an evdev thing, so I reinstalled evdev and rebooted. Still couldn't log in. Even in console mode. I was able to gather a little information.

Granted, this was taken from my Slackware / partition mounted inside a running Gentoo system, so I can't testify to the accuracy of the information. It's the best I can do for the moment.
Code:
michael@caitlyn ~ $ grep -i keyb dmesg
[    1.869806] usb 2-1.5.1: Product: USB Keyboard
[    1.872846] input: NOVATEK USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.1/2-1.5.1:1.0/0003:0461:0010.0001/input/input5
[    1.924312] hid-generic 0003:0461:0010.0001: input,hidraw0: USB HID v1.10 Keyboard [NOVATEK USB Keyboard] on usb-0000:00:1d.0-1.5.1/input0
[    1.929051] input: NOVATEK USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.1/2-1.5.1:1.1/0003:0461:0010.0002/input/input6
[    1.980369] hid-generic 0003:0461:0010.0002: input,hidraw1: USB HID v1.10 Device [NOVATEK USB Keyboard] on usb-0000:00:1d.0-1.5.1/input1
[    2.338336] hid-generic 0003:10D5:55A2.0004: input,hidraw3: USB HID v1.10 Keyboard [No brand 2Port KVMSwicther] on usb-0000:00:1d.0-1.5.3/input0

michael@caitlyn ~ $ cat lsmod
Module                  Size  Used by
nf_nat_ftp              1964  0
nf_nat_irc              1638  0
nf_nat_sip              8413  0
xt_addrtype             2893  0
xt_LOG                  1487  0
xt_mark                 1381  0
xt_nat                  2041  0
iptable_nat             2079  0
nf_nat_ipv4             4763  1 iptable_nat
ipt_MASQUERADE          1277  0
nf_nat_masquerade_ipv4     1993  1 ipt_MASQUERADE
nf_nat                 13429  6 xt_nat,nf_nat_sip,nf_nat_irc,nf_nat_ftp,nf_nat_masquerade_ipv4,nf_nat_ipv4
x86_pkg_temp_thermal     5431  0
nf_log_arp              1898  0
nf_log_ipv4             4245  0
nf_log_ipv6             4758  0
nf_log_common           2922  3 nf_log_arp,nf_log_ipv6,nf_log_ipv4
r8169                  67900  0
mii                     4099  1 r8169
e1000                  98640  0
xfs                  1163975  0
libcrc32c               1170  1 xfs
I have no idea what generic keyboard module is used, but I don't see it on the lsmod listing. At least, I THINK I don't see it. This might be obvious, but I am running a USB keyboard through a KVM switch. It's only been a couple of weeks since my last Slackware install, so I'd really like it if this could be fixed without a fresh install.

Last edited by maschelsea; 07-02-2017 at 06:17 PM.
 
Old 07-02-2017, 06:49 PM   #2
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 468

Original Poster
Rep: Reputation: Disabled
I'll answer my own question. Pass
Code:
iommu=soft
to LILO as a kernel parameter. That cleared up my issue quite well.
 
Old 07-02-2017, 07:06 PM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,461

Rep: Reputation: 2797Reputation: 2797Reputation: 2797Reputation: 2797Reputation: 2797Reputation: 2797Reputation: 2797Reputation: 2797Reputation: 2797Reputation: 2797Reputation: 2797
I suspect that you are running the generic kernel, and rebooted your system before making a new initrd for the incoming updated kernel.
The fix is to boot your system from the Slackware install media and follow the instructions until you get a root login, then chroot to your install to make a new initrd and update your boot manager. http://docs.slackware.com/howtos:sla...oot_from_media

Edit: So, I was wrong. Glad you fixed it!
 
Old 07-03-2017, 12:22 AM   #4
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Quote:
Originally Posted by maschelsea View Post
I'll answer my own question. Pass
Code:
iommu=soft
to LILO as a kernel parameter. That cleared up my issue quite well.
You could try
Code:
iommu=pt
also.

My motherboard has some issues with USB ports due to IOMMU. I originally used "soft" as a solution, but found "pt" also sorted out some issued with USB3 ports (if that applies to you also), "pt" is supposed to be a passthrough mode. This forum thread might explain more:
https://crunchbang.org/forums/viewtopic.php?id=31626
 
Old 07-03-2017, 01:00 PM   #5
dwblas
Member
 
Registered: Jun 2011
Posts: 87

Rep: Reputation: Disabled
FYI for anyone in the future, the original thread is at http://www.linuxquestions.org/questi...ls-4175475501/
 
1 members found this post helpful.
  


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
hp wireless keyboard & mouse, keyboard works, mouse do not work not working john hughes Linux - Desktop 2 04-04-2016 12:00 PM
Mouse and Keyboard not working under X bagginmtdoom Debian 3 08-30-2015 10:22 AM
Keyboard and Mouse Not Working in X spunce Linux - Hardware 3 08-15-2012 05:53 PM
keyboard not working without mouse RH 7.3 kilobravo Linux - General 1 12-12-2003 10:45 AM
mouse and keyboard not working to_vijayarun General 1 06-30-2001 10:43 AM

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

All times are GMT -5. The time now is 01:24 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