You are not logged in.

#1 2019-05-04 15:29:59

W54J04S07T
Member
Registered: 2016-06-27
Posts: 140

AMD-ucode issue?

I get this on boot up on a AMD2700 based system with
ASUS x470 MB and the usb cam goes undetected..

usb usb5-port1: Cannot enable. Maybe the USB cable is bad?

Previously, I installed amd-ucode and did the usual mkinitcpio
followed by the recommended grub-mkconfig  to insert the ucode
on boot.

The above message disappeared... and the system could see the
installed usb camera.  With the most recent ucode update along with
the mkinitcpio / grub-mkconfig commands the problem re-appeared
and I can't seem to fix it.  The major changes in the update would
be recent ucode, systemd and kernel updates.  Any pointers on  getting
at this problem?

Offline

#2 2019-05-05 18:31:37

W54J04S07T
Member
Registered: 2016-06-27
Posts: 140

Re: AMD-ucode issue?

Additional info;

I downgraded ucode to the previous version that worked, no effect.

Updated ucode back to current and installed most recent kernels,
with no effect.

Using most current updates, switched to LTS kernel, again with no
effect.

kernel : usb usb5-port1: Cannot enable. Maybe the USB cable is bad?

and kernel still "cannot enumerate device".

Offline

#3 2019-05-05 20:13:11

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,104

Re: AMD-ucode issue?

Doubt that's due to microcode updating.

Rename to something like "usb camera not working anymore" .

Post lsusb , lsusb -t  and dmesg|tail with the camera unplugged .
Then plugin the camera and post those outputs again.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2019-05-06 19:20:19

W54J04S07T
Member
Registered: 2016-06-27
Posts: 140

Re: AMD-ucode issue?

As this problem was solved by inserting amd microcode
( as recommended in numerous posts on this issue )
and then reappeared some time later after a microcode
update, I'm sticking to my suspicions re microcode/
systemd /kernel...


Cam unplugged

$sudo lsusb
 
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 007: ID 0c45:7e0e Microdia 
Bus 005 Device 006: ID 046d:c22d Logitech, Inc. G510 Gaming Keyboard
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0bda:0151 Realtek Semiconductor Corp. Mass Storage Device (Multicard Reader)
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

$ sudo lsusb -t
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    |__ Port 3: Dev 6, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 3: Dev 6, If 1, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 4: Dev 7, If 1, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 4: Dev 7, If 0, Class=Human Interface Device, Driver=usbhid, 12M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 10000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M
    |__ Port 14: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 4: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M

$ sudo dmesg|tail
[   44.160934] audit: type=1131 audit(1557166184.186:58): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user@995 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   44.175259] audit: type=1131 audit(1557166184.199:59): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user-runtime-dir@995 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  951.160857] audit: type=1130 audit(1557167091.189:60): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-clean comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  951.160860] audit: type=1131 audit(1557167091.189:61): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-clean comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 2579.946060] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[ 2580.839697] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[ 2580.839733] usb usb5-port1: attempt power cycle
[ 2582.046314] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[ 2582.939716] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[ 2582.939768] usb usb5-port1: unable to enumerate USB device

cam plugged in


$ sudo lsusb
[sudo] password for ******: 
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 007: ID 0c45:7e0e Microdia 
Bus 005 Device 006: ID 046d:c22d Logitech, Inc. G510 Gaming Keyboard
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0bda:0151 Realtek Semiconductor Corp. Mass Storage Device (Multicard Reader)
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

$ sudo lsusb -t
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    |__ Port 3: Dev 6, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 3: Dev 6, If 1, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 4: Dev 7, If 1, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 4: Dev 7, If 0, Class=Human Interface Device, Driver=usbhid, 12M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 10000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M
    |__ Port 14: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 4: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M

$ sudo dmesg|tail
[ 2580.839733] usb usb5-port1: attempt power cycle
[ 2582.046314] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[ 2582.939716] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[ 2582.939768] usb usb5-port1: unable to enumerate USB device
[ 3089.894595] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[ 3090.787905] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[ 3090.787944] usb usb5-port1: attempt power cycle
[ 3091.994529] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[ 3092.887899] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[ 3092.887941] usb usb5-port1: unable to enumerate USB device

Thoughts?

Last edited by W54J04S07T (2019-05-06 19:21:26)

Offline

#5 2019-05-07 02:25:35

Buddlespit
Member
From: Chesapeake, Va.
Registered: 2014-02-07
Posts: 507

Re: AMD-ucode issue?

What happens if you uninstall amd-ucode?


An old man, trying to stay sane

Offline

#6 2019-05-07 18:43:12

W54J04S07T
Member
Registered: 2016-06-27
Posts: 140

Re: AMD-ucode issue?

No diff.  Installing amd-ucode is what initially solved the problem.

Also, I verified the cable isn't bad, and when I reboot with the cable disconnected
"at the webcams port"  this part...

[ 2579.946060] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[ 2580.839697] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[ 2580.839733] usb usb5-port1: attempt power cycle
[ 2582.046314] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[ 2582.939716] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[ 2582.939768] usb usb5-port1: unable to enumerate USB device

...disappears... only to reappear as soon as I reconnect the cable to the cam port.

BTW, this webcam is an integrated into the display unit type deal from around 8 years ago.
asus model vk278q.

Offline

#7 2019-05-07 19:40:13

Buddlespit
Member
From: Chesapeake, Va.
Registered: 2014-02-07
Posts: 507

Re: AMD-ucode issue?

I'm going to go with Lone_Wolf on this, I don't think it's the microcode. It didn't work prior to microcode being installed, worked for a short time with microcode installed, won't work with version of microcode that did work at one time. Sounds like a hardware issue, to be honest with you brother.

Do you have a spare webcam floating about that you can plug into bus 5, port 1? Does bus 5, port 1 work if something else is plugged in? Does your webcam work if it's plugged into a different usb port?

Do you have linux-firmware installed?


An old man, trying to stay sane

Offline

#8 2019-05-07 21:01:52

W54J04S07T
Member
Registered: 2016-06-27
Posts: 140

Re: AMD-ucode issue?

Just tested now.
Webcam was plugged into USB3.1 Gen 1 port at back.
No action.
Plugged webcam into USB3.1 Gen 2 port... WORKING!
And yes, a USB drive plugged into the original Gen 1 port
worked fine as well.

Rebooted.
Problem returned... this time on bus3 port 1 ( Gen 2 device )... and no webcam
unplug/plug webcam did not return functionality  either.

Originally problem was solved by installing amd-ucode.
But I suppose it could be a race condition or something
similar in systemd /kernel /ucode.

Last edited by W54J04S07T (2019-05-07 21:03:06)

Offline

#9 2019-05-08 16:00:57

Omar007
Member
Registered: 2015-04-09
Posts: 368

Re: AMD-ucode issue?

Just throwing it out there but have you tried to connect it to a different machine or boot a different OS to see if it has the same issue?
It sounds very much like the device itself is probably broken. (or maybe, as the error msg says, it really is a bad cable)

Last edited by Omar007 (2019-05-08 16:01:39)

Offline

#10 2019-05-08 18:46:59

W54J04S07T
Member
Registered: 2016-06-27
Posts: 140

Re: AMD-ucode issue?

On the theory that this H/W config is pretty much the
go to these days, and no one else seems to be in this
pickle, I started looking around in the BIOS.

In the BIOS, I discovered that IOMMU was disabled,
so I enabled it.  Powered down everything ( literally )
went away , came back, powered up and Bingo everything
is working including the Cam.

Rebooted, just to make sure it wasn't a fluke, and everything
is still working.  Tomorrow, I'll do a full sys upgrade and see
if  my luck is holding.

Offline

#11 2019-05-08 20:15:12

Omar007
Member
Registered: 2015-04-09
Posts: 368

Re: AMD-ucode issue?

I suppose you have no clue what IOMMU even is, nor even care so I'm not going to bother explaining.
Just want to leave you with one word: unrelated.

Anyway, from my perspective this is going nowhere. The problem is clearly with the system/kernel/systemd/bios/anything-thats-not-the-device and the device is flawless. ¯\_(ツ)_/¯

Last edited by Omar007 (2019-05-08 20:16:26)

Offline

Board footer

Powered by FluxBB