You are not logged in.

#1 2022-01-23 20:45:12

ts
Member
Registered: 2021-04-22
Posts: 11

Resume from suspend - bluetooth/firefox/sound issues

Hello Everyone,

Over the past week and a half or so, I have had many issues resuming from suspend. I usually put my computer to sleep at night but not all works as expected after resuming.

Upon restore
1. Cannot connect bluetooth headphones
2. Firefox /Tor - right mouse button won't work, left button won't click on links.  Does not happen with Chromium/Brave.
3. shutting down computer- I get two messages - "Job is running for save/restore sound card state". More time keeps getting added for this job and I have never waited more than 5 min before power cycling.
The second job that keeps running is "User Manager for UID 1000"

Restarting the computer allows sound, bluetooth and MS Teams to work.  All this work fine until recently -maybe a 5.16 issue or maybe something else.

I ran journalctl -b -1 -r

Jan 22 08:19:34 arch systemd[1]: Manage Sound Card State (restore and store) was skipped because of a failed condition check (ConditionPathExists=/etc/alsa/state-daemon.conf).  (this does not exist....)
Jan 22 08:19:34 arch systemd[1]: Starting Save/Restore Sound Card State.

No real clues here either
Jan 23 10:34:51 arch systemd[1]: Stopping User Manager for UID 1000...
Jan 22 08:20:05 arch systemd[1]: Started User Manager for UID 1000.

Jan 23 10:34:50 arch sddm[722]: Authentication error: "Process crashed"

Jan 22 08:19:44 arch kernel: Bluetooth: hci0: FW download error recovery failed (-110)
Jan 22 08:20:17 arch bluetoothd[690]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to <REDACTED MAC ADDRESS>: Host is down (112)
Jan 22 10:58:36 arch pipewire[1704]: spa.alsa: front:3: snd_pcm_drop No such device
Jan 22 14:02:49 arch obexd[1232]: disconnected: Transport got disconnected

Any ideas>
Thank you


System:
  Kernel: 5.16.2-arch1-1 x86_64 bits: 64 Desktop: KDE Plasma 5.23.5
    Distro: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: TUF GAMING X570-PLUS (WI-FI) v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 4021
    date: 08/10/2021
CPU:
  Info: 8-core model: AMD Ryzen 7 3800X bits: 64 type: MT MCP cache:
    L2: 4 MiB
  Speed (MHz): avg: 2315 min/max: 2200/4559 cores: 1: 3590 2: 2051 3: 2052
    4: 2051 5: 2196 6: 2196 7: 2196 8: 2192 9: 3592 10: 2051 11: 2047 12: 2050
    13: 2198 14: 2195 15: 2196 16: 2193
Graphics:
  Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
    driver: amdgpu v: kernel
  Display: x11 server: X.Org 1.21.1.3 driver: loaded: modesetting
    unloaded: vesa resolution: 3440x1440~60Hz
  OpenGL: renderer: AMD Radeon RX 5600 XT (NAVI10 DRM 3.44.0 5.16.2-arch1-1
    LLVM 13.0.0)
    v: 4.6 Mesa 21.3.4
Audio:
  Device-1: AMD Navi 10 HDMI Audio driver: snd_hda_intel
  Device-2: AMD Starship/Matisse HD Audio driver: snd_hda_intel
  Device-3: Logitech USB Headset type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  Sound Server-1: ALSA v: k5.16.2-arch1-1 running: yes
  Sound Server-2: PipeWire v: 0.3.43 running: yes
Network:
  Device-1: Intel Wireless-AC 9260 driver: iwlwifi
  IF: wlp4s0 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169
  IF: enp5s0 state: down mac: <filter>
  IF-ID-1: wg-mullvad state: unknown speed: N/A duplex: N/A mac: N/A
Bluetooth:
  Device-1: N/A type: USB driver: btusb
  Report: rfkill ID: hci0 state: up address: see --recommends
Drives:
  Local Storage: total: 2.69 TiB used: 630.69 GiB (22.9%)
  ID-1: /dev/sda vendor: Seagate model: ST2000DM008-2FR102 size: 1.82 TiB
  ID-2: /dev/sdb vendor: Kingston model: SA400S37480G size: 447.13 GiB
  ID-3: /dev/sdc vendor: Kingston model: SA400S37480G size: 447.13 GiB
Partition:
  ID-1: / size: 402.57 GiB used: 112.51 GiB (27.9%) fs: ext4 dev: /dev/sdb2
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 32.5 C mobo: 36.0 C gpu: amdgpu temp: 52.0 C
  Fan Speeds (RPM): fan-1: 0 fan-2: 1495 fan-3: 0 fan-4: 0 fan-5: 1914
    fan-6: 0 fan-7: 0 gpu: amdgpu fan: 0
Info:
  Processes: 394 Uptime: 4h 6m Memory: 62.78 GiB used: 5.02 GiB (8.0%)
  Shell: Zsh inxi: 3.3.12

Offline

#2 2022-01-24 21:59:47

The Loko
Member
From: Spain
Registered: 2014-07-23
Posts: 103

Re: Resume from suspend - bluetooth/firefox/sound issues

Please use code tags for command outputs.

Sometimes bluetooth is turned off after suspend unless you change the default configuration (https://wiki.archlinux.org/title/Blueto … oot/resume), but your issue seems different: looking at the journal logs it seems that it is not loading the firmware correctly.
What bluetooth adapter do you have? (Check "lsusb")

The Firefox issue seems strange. Does it happen if close any Firefox windows and open it again?

The audio service timeout is produced due some Alsa issue. Does sound work after resume? Does the service hang if you run "alsactl store" before shutting down?

Offline

#3 2022-01-25 03:23:44

ts
Member
Registered: 2021-04-22
Posts: 11

Re: Resume from suspend - bluetooth/firefox/sound issues


Thank you.  My USB is

➜  ~ lsusb

Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 003: ID 1532:0227 Razer USA, Ltd Huntsman  //keyboard
Bus 007 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 003: ID 0b05:18f3 ASUSTek Computer, Inc. AURA LED Controller
Bus 005 Device 002: ID 8087:0025 Intel Corp. Wireless-AC 9260 Bluetooth Adapter
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 004: ID 046d:0892 Logitech, Inc. C920 HD Pro Webcam
Bus 003 Device 002: ID 046d:0a8f Logitech, Inc. H390 headset with microphone
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 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

➜  ~

~ journalctl -b -r --priority=3
// After suspend

Jan 24 19:43:11 arch obexd[1158]: stat(/home/filtered/phonebook/): No such file or directory (2)
Jan 24 19:43:10 arch bluetoothd[663]: plugins/policy.c:reconnect_timeout() Reconnecting services failed: Device or resource busy (16)
Jan 24 19:42:57 arch kernel: Bluetooth: hci0: Suspend notifier action (3) failed: -110
Jan 24 19:42:57 arch kernel: Bluetooth: hci0: Suspend timeout bit: 6
Jan 24 19:42:57 arch kernel: Bluetooth: hci0: Timed out waiting for suspend events
Jan 24 19:42:55 arch bluetoothd[663]: src/profile.c:ext_io_disconnected() Unable to get io data for Hands-Free Voice gateway: getpeername: Transport endpoint is not connect>
Jan 24 19:42:55 arch bluetoothd[663]: src/profile.c:ext_io_disconnected() Unable to get io data for Phone Book Access: getpeername: Transport endpoint is not connected (107)
Jan 24 19:42:55 arch obexd[1158]: disconnected: Transport got disconnected
Jan 24 19:42:42 arch bluetoothd[663]: plugins/policy.c:reconnect_timeout() Reconnecting services failed: Operation already in progress (114)
Jan 24 19:42:41 arch obexd[1158]: stat(/home/filtered/phonebook/): No such file or directory (2)
Jan 24 19:42:39 arch kernel: snd-usb-audio 3-1:1.0: resume error -22

// Prior to suspend

Jan 24 19:42:27 arch kernel: Bluetooth: hci0: Suspend notifier action (3) failed: -110
Jan 24 19:42:27 arch kernel: Bluetooth: hci0: Suspend timeout bit: 6
Jan 24 19:42:27 arch kernel: Bluetooth: hci0: Timed out waiting for suspend events
Jan 24 19:42:25 arch bluetoothd[663]: src/profile.c:ext_io_disconnected() Unable to get io data for Phone Book Access: getpeername: Transport endpoint is not connected (107)
Jan 24 19:42:25 arch bluetoothd[663]: src/profile.c:ext_io_disconnected() Unable to get io data for Hands-Free Voice gateway: getpeername: Transport endpoint is not connect>
Jan 24 19:42:25 arch obexd[1158]: disconnected: Transport got disconnected

I set AutoEnable=TRUE   //It was commented out, set as false
I changed AutoEnable back to commented out, as it was prior as it did not change anything.
I installed pulseaudio-bluetooth, though I had bluetooth sound working with this.
installation presented
:: pulseaudio and pipewire-pulse are in conflict. Remove pipewire-pulse? [y/N]
I choose Y
Changing this did not appear to make a difference in actual use.

The log is a bit different this time though

resume from suspend.

Jan 24 20:28:42 arch kernel: snd-usb-audio 3-1:1.0: resume error -22
Jan 24 20:27:01 arch kernel: Bluetooth: hci0: Failed to read codec capabilities (-56)
Jan 24 20:27:01 arch kernel: Bluetooth: hci0: Failed to read codec capabilities (-56)
Jan 24 20:27:01 arch kernel: Bluetooth: hci0: Failed to read codec capabilities (-56)
Jan 24 20:27:01 arch kernel: Bluetooth: hci0: Failed to read codec capabilities (-56)
Jan 24 20:27:01 arch kernel: Bluetooth: hci0: Failed to read codec capabilities (-56)
Jan 24 20:27:01 arch kernel: Bluetooth: hci0: Failed to read codec capabilities (-56)

Sound does not work after suspend, regardless of connecting bluetooth device. Chromium browser knows there is some issue and reports to restart to get video working. I think the Firefox/Tor issue were related to sound only, and are freaking out, but differently.

I added pipewire-pulse back and remove the pulseaudio-bluetooth and pulseaudio.  No real difference. After one suspend, it appeared as though line out audio worked but after a second suspend, the control panel in KDE that allows me to select sound output devices was not allowing me to change options as "all" were selected.

I use VPNs, password managers, etc. many browser tabs, constant cookie clearing, MFA everywhere, etc.  Suspend is important but more important is to be on Linux and understand and support the rolling release concept. I am still new but happy to be in this community now.
Best regards,

Offline

#4 2022-01-26 02:31:55

ts
Member
Registered: 2021-04-22
Posts: 11

Re: Resume from suspend - bluetooth/firefox/sound issues

I installed the LTS version of the kernel  ( 5.15.16-1-lts x86_64) and based on a little testing, I cannot reproduce the problem.  I am going to stay on this version, but if someone needs me to do something specific on the current one, I can do my best to accommodate.

Thx

Offline

#5 2022-01-30 09:05:12

Prymoo
Member
Registered: 2015-04-28
Posts: 17

Re: Resume from suspend - bluetooth/firefox/sound issues

I've got the same problem with my usb audio on linux 5.16.3 - it hangs on suspend, after resume I can't play any sound, can't even change volume level. The only trace in dmesg is this:

plaptop kernel: snd-usb-audio 1-1.2.4:1.0: resume error -22

My audio device is this cheap "2-in-1 USB External Sound Card": https://www.ugreen.com/products/2-in-1- … sound-card
It uses ALC4030 chipset.

lsusb entry for this device:

Bus 001 Device 008: ID 0bda:49b5 Realtek Semiconductor Corp. USB Audio

Device works fine on linux-lts 5.15.17-1-lts

Offline

#6 2022-01-30 14:02:06

ts
Member
Registered: 2021-04-22
Posts: 11

Re: Resume from suspend - bluetooth/firefox/sound issues

Kernel: 5.16.3-arch1-1 x86_64 bits: 64
has the problem with LTS for me too.

edit - for some unknown reason, I booted to the latest stable instead of the LTS

Last edited by ts (2022-01-30 21:43:19)

Offline

#7 2022-01-30 22:00:38

ts
Member
Registered: 2021-04-22
Posts: 11

Re: Resume from suspend - bluetooth/firefox/sound issues

Offline

#8 2022-01-31 12:20:10

Prymoo
Member
Registered: 2015-04-28
Posts: 17

Re: Resume from suspend - bluetooth/firefox/sound issues

I'm not entirely sure that this is the same issue - my sound device does not use sof, I don't even have the package "sof-firmware" installed in my system. Also, people there reported that their issues were fixed in linux 5.16.3 - this isn't the case for me, I'm still having issues on linux 5.16.4.

Last edited by Prymoo (2022-01-31 13:37:46)

Offline

#9 2022-02-26 07:42:18

Prymoo
Member
Registered: 2015-04-28
Posts: 17

Re: Resume from suspend - bluetooth/firefox/sound issues

Problems with resuming usb-audio were fixed in linux 5.16.11.

https://github.com/torvalds/linux/commi … be5fb92a83

Offline

Board footer

Powered by FluxBB