LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 02-16-2015, 08:38 AM   #1
askmaddog
LQ Newbie
 
Registered: Feb 2015
Posts: 7

Rep: Reputation: Disabled
USB mouse/keyboard not working


I have a logitech USB keyboard mouse (k330) running redhat. Occasionally it just stops working. Only thing that fixes is reboot.
I got to believe there is a service I can restart that will "awaken" the ports again

Linux 2.6.32-431.30.1.el6.x86_64 #1 SMP Wed Jul 30 14:44:26 EDT 2014 GNU/Linux

Thanks in advance for any/all suggestions
 
Old 02-16-2015, 08:53 AM   #2
askmaddog
LQ Newbie
 
Registered: Feb 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
Logitech

By the way I found logitech states it doesn't support :Linux, but does support OS X ;-)
 
Old 02-27-2015, 11:26 AM   #3
askmaddog
LQ Newbie
 
Registered: Feb 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
Script to unbind / bind

!/bin/bash

if [[ $EUID != 0 ]] ; then
echo This must be run as root!
exit 1
fi


# this was the original form of the script to hit all directories
# However only the ehci_hcd has the kbd/mouse for logitech
# for xhci in /sys/bus/pci/drivers/?hci_hcd ; do
#
for xhci in /sys/bus/pci/drivers/ehci_hcd ; do

if ! cd $xhci ; then
echo Weird error. Failed to change directory to $xhci
exit 1
fi

echo Resetting devices from $xhci...

for i in ????:??:??.? ; do

echo "-n $i > unbind and bind"
echo -n "$i" > unbind
echo -n "$i" > bind
done
done
 
1 members found this post helpful.
Old 02-28-2015, 01:31 PM   #4
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,504

Rep: Reputation: Disabled
No need to reboot surely just pull it out & re plug it in should get the driver reloaded.
 
Old 02-28-2015, 02:58 PM   #5
askmaddog
LQ Newbie
 
Registered: Feb 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
That was the problem it would not remove (unbind) automatically in redhat
This works like a champ
 
Old 02-28-2015, 04:19 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Batteries going bad?
 
Old 02-28-2015, 07:39 PM   #7
askmaddog
LQ Newbie
 
Registered: Feb 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
LOL nope fresh ones! Just seems something - nothing found in logs - happens and whamo no comm. Logitech states they don't support Linux only windows. So basic functions are probably fine, but perhaps something on the outside sends the drivers into some wait state. IDK - the script above fixes it
 
Old 03-02-2015, 04:01 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Any neighbor close? Any interference with other devices? Too far away? Line of sight issue?

Bad switch, bad connection to usb port, bad receiver?

Is this on a hub?

Guess you could disable acpi and see if your theory of sleep is correct.

Last edited by jefro; 03-02-2015 at 04:02 PM.
 
Old 03-02-2015, 10:11 PM   #9
askmaddog
LQ Newbie
 
Registered: Feb 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
No it will stop in mid typing. It is not power save or a timeout (I've found out over time)
Also found the script above doesn't always work - not sure why as it did on many occasions
Will keep y'all informed if i find anything new out
 
  


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
USB Keyboard & Mouse not working following kernel update ChristianM Linux - Newbie 1 12-30-2011 11:10 AM
USB mouse and keyboard not working after ubuntu 8.10 upgrade philosophia Linux - Newbie 13 08-30-2011 11:27 AM
Belkin KVM not working with usb mouse and keyboard ports The Doctor Linux - Hardware 4 07-19-2009 03:02 AM
Keyboard and USB mouse not working at login screen ANO1453 Ubuntu 8 06-07-2009 05:04 AM
Bug? USB Keyboard and Mouse Stop Working KingofBLASH Slackware 3 04-09-2004 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

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