Joypad quits working at random?

More
22 Dec 2012 18:20 #27956 by Rick G

My Joypad did this today. plugging and unplugging got the "mode" led working again, but LinuxCNC wasn't listening.


Andy,

Are you using an extension cable?

Rick G

Please Log in or Create an account to join the conversation.

More
22 Dec 2012 19:44 #27958 by andypugh

Are you using an extension cable?

No.
It is a very old PC, and seems to suport USB only reluctantly anyway. (USB drives don't work)

Please Log in or Create an account to join the conversation.

More
22 Dec 2012 19:59 #27959 by ArcEye

P.S. Is there a command I can have running in a terminal session that logs the status of the usb devices. I would like to see if all usb communication is lost and only some devices reconnect or if it is just isolated to certain devices.


lsusb will show all the connected usb devices
# lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 046a:0023 Cherry GmbH CyMotion Master Linux Keyboard
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 093a:2510 Pixart Imaging, Inc. Hama Optical Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 18e3:9102 Fitipower Integrated Technology Inc Multi car reader
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 058f:6254 Alcor Micro Corp. USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Running dmesg | tail in a terminal will show when USB devices are mounted and unmount
# dmesg | tail
[ 281.714497] sd 5:0:0:0: [sdi] Write Protect is off
[ 281.714501] sd 5:0:0:0: [sdi] Mode Sense: 3e 00 00 00
[ 281.714503] sd 5:0:0:0: [sdi] Assuming drive cache: write through
[ 281.715862] sd 5:0:0:0: [sdi] 1930752 4096-byte logical blocks: (7.90 GB/7.36 GiB)
[ 281.716438] sd 5:0:0:0: [sdi] Assuming drive cache: write through
[ 281.716442] sdi: sdi1
[ 281.732745] sd 5:0:0:0: [sdi] 1930752 4096-byte logical blocks: (7.90 GB/7.36 GiB)
[ 281.733238] sd 5:0:0:0: [sdi] Assuming drive cache: write through
[ 281.733241] sd 5:0:0:0: [sdi] Attached SCSI removable disk
[ 415.692830] usb 2-3: USB disconnect, address 3


regards

Please Log in or Create an account to join the conversation.

More
22 Dec 2012 20:14 - 22 Dec 2012 20:14 #27961 by andypugh

Running dmesg | tail in a terminal will show when USB devices are mounted and unmount

If you want a live-updating terminal window with kernel messages in, then this works better:
tail -f /var/log/kern.log
Last edit: 22 Dec 2012 20:14 by andypugh.

Please Log in or Create an account to join the conversation.

More
22 Dec 2012 20:35 #27962 by Rick G

It is a very old PC, and seems to suport USB only reluctantly anyway. (USB drives don't work)


It is interesting as I have only had problems with my oldest PC.

But mine once working has never stopped working.
On mine recently it would not work when I first start linuxcnc, plugging and unplugging had no effect.
However this seemed strange as if the joypad is not found when starting linuxcnc with the joypad hal config linuxcnc will not start. It started normal but the joypad did not work.

I had recently added a usb hub for easier access to plug the flash drives in and wondered if adding extra usb devices could possibly pull the voltage down.
I now plug the joypad into a self powered usb hub and have not had a problem since.

I will leave it running a couple hours today to see if anything happens.

Rick G

Please Log in or Create an account to join the conversation.

Time to create page: 0.151 seconds
Powered by Kunena Forum