You are not logged in.

#1 2020-01-18 21:53:07

hellobeastie
Member
Registered: 2020-01-08
Posts: 1

Last USB device to be plugged in stops working.

Recently I bought a wireless mouse. Since I have plugged it in my USB peripherals have had issues.
I tried different USB ports for the devices and the last USB device to be plugged in stops working.
Additionally if the last USB device is my headset then either the sound or the microphone (but never both) will work.

I have gone through the ALSA and Pulse Audio troubleshooting guides on the WIKI.
Ultimately I think the issue is with power management.

Using this entry in the Arch Wiki: https://wiki.archlinux.org/index.php/Po … utosuspend
And finding this question in the forum: https://bbs.archlinux.org/viewtopic.php?id=150114

I attempted to write udev rules to /etc/udev/rules.d/50-usb_power_save.rules, using:

ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1532", ATTR{idProduct}=="0072", TEST=="power/control", ATTR{power/control}="on"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1532", ATTR{idProduct}=="000e", TEST=="power/control", ATTR{power/control}="on"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1532", ATTR{idProduct}=="010e", TEST=="power/control", ATTR{power/control}="on"
for d in /sys/bus/usb/devices/[0-9]* ; do if [[ -e $d/product ]] ; then echo -e "`basename $d`\t`cat $d/power/control`\t`cat $d/speed`\t`cat $d/product`" ; fi ; done

I can see that changing the values makes no difference (I did reload it) and everything was set to on by default. So I installed, enabled and started tlp and used

sudo tlp usb

Which did effect a change and set my headsets to auto as mentioned in their documentation (https://linrunner.de/en/tlp/docs/tlp-li … ement.html).

In the end the main problem I am concerned with is getting my microphone on my headset to work in conjunction with the output of my headset.
Here are some hopefully helpful outputs:

amixer -c0

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 31
  Mono: Playback 31 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-46.50dB] [off]
  Front Right: Playback 0 [0%] [-46.50dB] [off]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 31 [100%] [0.00dB] [on]
  Front Right: Playback 31 [100%] [0.00dB] [on]
Simple mixer control 'Front Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Front Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 31 [100%] [0.00dB] [on]
  Front Right: Playback 31 [100%] [0.00dB] [on]
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 31
  Mono: Playback 31 [100%] [0.00dB] [on]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 31
  Mono: Playback 31 [100%] [0.00dB] [on]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Line Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 19 [61%] [12.00dB] [on]
  Front Right: Capture 19 [61%] [12.00dB] [on]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 0 [0%] [-16.50dB] [off]
  Front Right: Capture 0 [0%] [-16.50dB] [off]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Channel Mode',0
  Capabilities: enum
  Items: '2ch' '4ch' '6ch'
  Item0: '2ch'
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Front Mic' 'Rear Mic' 'Line'
  Item0: 'Front Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Front Mic' 'Rear Mic' 'Line'
  Item0: 'Front Mic'
Simple mixer control 'Loopback Mixing',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'
Simple mixer control 'Rear Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Rear Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]

arecord -l

**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC887 Analog [ALC887 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: ALC887 Alt Analog [ALC887 Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Megalodon [Razer Megalodon], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

pacmd list-cards

3 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_01_00.1>
	driver: <module-alsa-card.c>
	owner module: 6
	properties:
		alsa.card = "1"
		alsa.card_name = "HDA NVidia"
		alsa.long_card_name = "HDA NVidia at 0xfb080000 irq 17"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:01:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
		device.bus = "pci"
		device.vendor.id = "10de"
		device.vendor.name = "NVIDIA Corporation"
		device.product.id = "10f1"
		device.product.name = "GP106 High Definition Audio Controller"
		device.string = "1"
		device.description = "GP106 High Definition Audio Controller"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: unknown)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
		off: Off (priority 0, available: unknown)
	active profile: <off>
	ports:
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: yes)
			properties:
				device.icon_name = "video-display"
				device.product.name = "LCD-MONITOR
 "
		hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
    index: 1
	name: <alsa_card.pci-0000_00_1b.0>
	driver: <module-alsa-card.c>
	owner module: 7
	properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xfb100000 irq 33"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "1c20"
		device.product.name = "6 Series/C200 Series Chipset Family High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Analog Stereo Input (priority 65, available: no)
		output:analog-stereo: Analog Stereo Output (priority 6500, available: unknown)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: no)
		off: Off (priority 0, available: unknown)
	active profile: <off>
	ports:
		analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-linein: Line In (priority 8100, latency offset 0 usec, available: no)
			properties:
				
		analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: yes)
			properties:
				
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
    index: 2
	name: <alsa_card.usb-Razer_Razer_Megalodon-00>
	driver: <module-alsa-card.c>
	owner module: 8
	properties:
		alsa.card = "2"
		alsa.card_name = "Razer Megalodon"
		alsa.long_card_name = "Razer Razer Megalodon at usb-0000:00:1d.0-1.4, full speed"
		alsa.driver_name = "snd_usb_audio"
		device.bus_path = "pci-0000:00:1d.0-usb-0:1.4:1.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/sound/card2"
		udev.id = "usb-Razer_Razer_Megalodon-00"
		device.bus = "usb"
		device.vendor.id = "1532"
		device.vendor.name = "Razer USA, Ltd"
		device.product.id = "000e"
		device.product.name = "Razer Megalodon"
		device.serial = "Razer_Razer_Megalodon"
		device.string = "2"
		device.description = "Razer Megalodon"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-usb"
	profiles:
		input:mono-fallback: Mono Input (priority 1, available: unknown)
		input:multichannel-input: Multichannel Input (priority 1, available: unknown)
		output:analog-surround-21: Analog Surround 2.1 Output (priority 1300, available: unknown)
		output:analog-surround-21+input:mono-fallback: Analog Surround 2.1 Output + Mono Input (priority 1301, available: unknown)
		output:analog-surround-21+input:multichannel-input: Analog Surround 2.1 Output + Multichannel Input (priority 1301, available: unknown)
		output:analog-surround-41: Analog Surround 4.1 Output (priority 1300, available: unknown)
		output:analog-surround-41+input:mono-fallback: Analog Surround 4.1 Output + Mono Input (priority 1301, available: unknown)
		output:analog-surround-41+input:multichannel-input: Analog Surround 4.1 Output + Multichannel Input (priority 1301, available: unknown)
		output:analog-surround-50: Analog Surround 5.0 Output (priority 1200, available: unknown)
		output:analog-surround-50+input:mono-fallback: Analog Surround 5.0 Output + Mono Input (priority 1201, available: unknown)
		output:analog-surround-50+input:multichannel-input: Analog Surround 5.0 Output + Multichannel Input (priority 1201, available: unknown)
		output:analog-surround-51: Analog Surround 5.1 Output (priority 1300, available: unknown)
		output:analog-surround-51+input:mono-fallback: Analog Surround 5.1 Output + Mono Input (priority 1301, available: unknown)
		output:analog-surround-51+input:multichannel-input: Analog Surround 5.1 Output + Multichannel Input (priority 1301, available: unknown)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-surround-51+input:mono-fallback>
	sinks:
		alsa_output.usb-Razer_Razer_Megalodon-00.analog-surround-51/#1: Razer Megalodon Analog Surround 5.1
	sources:
		alsa_output.usb-Razer_Razer_Megalodon-00.analog-surround-51.monitor/#1: Monitor of Razer Megalodon Analog Surround 5.1
		alsa_input.usb-Razer_Razer_Megalodon-00.mono-fallback/#2: Razer Megalodon Mono
	ports:
		analog-input: Analog Input (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				
		multichannel-input: Multichannel Input (priority 0, latency offset 0 usec, available: unknown)
			properties:
				
		analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
			properties:

sudo fuser -v /dev/snd/*

                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  peter      1775 F.... pulseaudio
/dev/snd/controlC1:  peter      1775 F.... pulseaudio
/dev/snd/controlC2:  peter      1775 F.... pulseaudio

lsmod | grep snd

snd_hda_codec_hdmi     73728  1
snd_usb_audio         294912  2
snd_usbmidi_lib        40960  1 snd_usb_audio
snd_rawmidi            45056  1 snd_usbmidi_lib
snd_seq_device         16384  1 snd_rawmidi
mc                     61440  1 snd_usb_audio
snd_hda_codec_realtek   126976  1
snd_hda_codec_generic    94208  1 snd_hda_codec_realtek
ledtrig_audio          16384  2 snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_intel          53248  2
snd_intel_nhlt         20480  1 snd_hda_intel
snd_hda_codec         155648  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core          102400  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep              16384  2 snd_usb_audio,snd_hda_codec
snd_pcm               135168  5 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core
snd_timer              40960  1 snd_pcm
snd                   106496  20 snd_hda_codec_generic,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi
soundcore              16384  1 snd

Interestingly enough my headsets output is routed into my microphone on things like TeamSpeak and Discord. I have recently noticed this error message ([ 1206.066159] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth associated with my Megalodon headsets and I am trying to work through this https://wiki.archlinux.org/index.php/Pr … _Track_Pro without much luck):

dmesg | grep usb

[    4.627188] usbcore: registered new interface driver usbhid
[    4.627189] usbhid: USB HID core driver
[    4.631978] input: Razer Razer BlackWidow as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/0003:1532:010E.0001/input/input13
[    4.690383] hid-generic 0003:1532:010E.0001: input,hidraw0: USB HID v1.11 Keyboard [Razer Razer BlackWidow] on usb-0000:00:1d.0-1.3/input0
[    4.690720] input: Razer Razer BlackWidow Keyboard as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.1/0003:1532:010E.0002/input/input14
[    4.736140] usbcore: registered new interface driver snd-usb-audio
[    4.746994] input: Razer Razer BlackWidow Consumer Control as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.1/0003:1532:010E.0002/input/input15
[    4.747157] input: Razer Razer BlackWidow System Control as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.1/0003:1532:010E.0002/input/input16
[    4.747258] input: Razer Razer BlackWidow as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.1/0003:1532:010E.0002/input/input17
[    4.747444] hid-generic 0003:1532:010E.0002: input,hidraw1: USB HID v1.11 Keyboard [Razer Razer BlackWidow] on usb-0000:00:1d.0-1.3/input1
[    4.747784] input: Razer Razer BlackWidow as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.2/0003:1532:010E.0003/input/input18
[    4.747926] hid-generic 0003:1532:010E.0003: input,hidraw2: USB HID v1.11 Mouse [Razer Razer BlackWidow] on usb-0000:00:1d.0-1.3/input2
[    4.748073] input: Razer Razer Mamba Wireless Receiver as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:1532:0072.0004/input/input19
[    4.748199] hid-generic 0003:1532:0072.0004: input,hidraw3: USB HID v1.11 Mouse [Razer Razer Mamba Wireless Receiver] on usb-0000:00:1d.0-1.6/input0
[    4.748531] input: Razer Razer Mamba Wireless Receiver Keyboard as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.1/0003:1532:0072.0005/input/input20
[    4.803659] input: Razer Razer Mamba Wireless Receiver Consumer Control as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.1/0003:1532:0072.0005/input/input21
[    4.803892] input: Razer Razer Mamba Wireless Receiver System Control as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.1/0003:1532:0072.0005/input/input22
[    4.804103] input: Razer Razer Mamba Wireless Receiver as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.1/0003:1532:0072.0005/input/input23
[    4.804435] hid-generic 0003:1532:0072.0005: input,hidraw4: USB HID v1.11 Keyboard [Razer Razer Mamba Wireless Receiver] on usb-0000:00:1d.0-1.6/input1
[    4.804673] input: Razer Razer Mamba Wireless Receiver as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.2/0003:1532:0072.0006/input/input24
[    4.860344] hid-generic 0003:1532:0072.0006: input,hidraw5: USB HID v1.11 Keyboard [Razer Razer Mamba Wireless Receiver] on usb-0000:00:1d.0-1.6/input2
[ 1128.358225] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth
[ 1128.358418] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth
[ 1128.358579] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth
[ 1128.358949] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth
[ 1128.359297] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth
[ 1128.360849] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth
[ 1128.361068] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth
[ 1128.361230] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth
[ 1128.361559] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth
[ 1128.361910] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth
[ 1128.363854] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth
[ 1128.364233] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth
[ 1128.364566] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth
[ 1128.365070] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth
[ 1128.365566] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth
[ 1128.367723] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth
[ 1128.368147] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth
[ 1128.368488] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth
[ 1128.368994] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth
[ 1128.369498] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth
[ 1128.900914] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth
[ 1206.066159] usb 2-1.4: cannot submit urb 0, error -28: not enough bandwidth

Thank you very much for taking the time to read through this smile

Last edited by hellobeastie (2020-01-20 19:45:53)

Offline

Board footer

Powered by FluxBB