Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to connect bluetooth after kernel update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2946
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Mon Nov 04, 2024 10:06 pm    Post subject: Unable to connect bluetooth after kernel update Reply with quote

Hi

On the weekend I've finally made the profile update from 17.1 to 23.0, the last step took more than 24 hours to complete with 2000 packages. Before the migration, I did my usual world update so I was up to date when I did the profile migration.

After the update and profile migration, I rebooted. Everything is fine, expect for one thing: I cannot initiate a bluetooth connection anymore.

I use net-wireless/blueman-2.4.3 and net-wireless/bluez-5.78 and this has been working fine. If I open the applet and double click on my mobile phone (or my Nintendo Switch), then my system was able to connect the these devices and pulseaudio would also add a new audio sink. But now when I do a double click, it tries to connect but eventually I get the error message Connection Failed: br-connection-refused.

dmesg does not show anything when I try to connect and all I see in /var/log/messages is

Code:

blueman-applet 22.33.02 INFO     RecentConns:113 notify    : <Device.Device object at 0x7f45302efd80 (blueman+bluez+Device+Device at 0x560012a81250)> 00000000-0000-0000-0000-000000000000


the stderr of blueman-applet shows

Code:

blueman-applet 22.33.02 INFO     RecentConns:113 notify    : <Device.Device object at 0x7f45302efd80 (blueman+bluez+Device+Device at 0x560012a81250)> 00000000-0000-0000-0000-000000000000


and I don't get any more information.

However, if I initiate the bluetooth connection from my phone (or from Nintendo Switch), then the connection works and pulseaudio adds the "Loopback from <device>". dmesg still doesn't show anything, but my /var/log/messages says now

Code:

Nov  4 22:48:56 gallifrey pulseaudio[5453]: [pulseaudio] backend-native.c: doing listen
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] module-card-restore.c: Restoring port latency offsets for card bluez_card.EC_ED_73_8D_A4_37.
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] card.c: bluez_card.EC_ED_73_8D_A4_37: active_profile: a2dp_source
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] card.c: Created 6 "bluez_card.EC_ED_73_8D_A4_37"
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] bluez5-util.c: Failed optional acquire of unavailable transport /org/bluez/hci0/dev_EC_ED_73_8D_A4_37/fd0
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] a2dp-codec-sbc.c: SBC parameters: allocation=Loudness, subbands=8, blocks=16, mode=JointStereo bitpool=2 codesize=512 frame_length=17
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] source.c: Created source 7 "bluez_source.EC_ED_73_8D_A4_37.a2dp_source" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] source.c:     bluetooth.protocol = "a2dp_source"
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] source.c:     bluetooth.codec = "sbc"
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] source.c:     device.description = "shaoMotoG73"
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] source.c:     device.string = "EC:ED:73:8D:A4:37"
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] source.c:     device.api = "bluez"
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] source.c:     device.class = "sound"
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] source.c:     device.bus = "bluetooth"
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] source.c:     device.form_factor = "phone"
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] source.c:     bluez.path = "/org/bluez/hci0/dev_EC_ED_73_8D_A4_37"
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] source.c:     bluez.class = "0x5a020c"
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] source.c:     bluez.alias = "shaoMotoG73"
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] source.c:     device.icon_name = "audio-card-bluetooth"
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [bluetooth] util.c: Failed to acquire real-time scheduling: No such file or directory
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] source-output.c: Created output 0 "(null)" on bluez_source.EC_ED_73_8D_A4_37.a2dp_source with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] source-output.c:     media.role = "abstract"
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] source-output.c:     module-stream-restore.id = "source-output-by-media-role:abstract"
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] module-stream-restore.c: Restoring device for stream sink-input-by-media-role:music.
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] module-stream-restore.c: Restoring volume for sink input sink-input-by-media-role:music.
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] module-stream-restore.c: Restoring mute state for sink input sink-input-by-media-role:music.
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [alsa-sink-USB Audio] alsa-sink.c: Trying resume...
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [alsa-sink-USB Audio] alsa-util.c: Cannot disable ALSA period wakeups
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [alsa-sink-USB Audio] alsa-util.c: ALSA period wakeups were not disabled
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [alsa-sink-USB Audio] alsa-sink.c: Time scheduling watermark is 20.00ms
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [alsa-sink-USB Audio] alsa-sink.c: Resumed successfully...
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [alsa-sink-USB Audio] alsa-sink.c: Starting playback.
...
Nov  4 22:48:57 gallifrey pulseaudio[5453]: [pulseaudio] bluez5-util.c: Selected codec: sbc
Nov  4 22:48:57 gallifrey bluetoothd[3605]: profiles/audio/avctp.c:uinput_create() Can't open input device: No such file or directory (2)
Nov  4 22:48:57 gallifrey bluetoothd[3605]: profiles/audio/avctp.c:init_uinput() AVRCP: failed to init uinput for shaoMotoG73
Nov  4 22:49:02 gallifrey pulseaudio[5453]: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.usb-KTMicro_Creative_Chat_USB_YDEF0980427001216Y-00.analog-stereo idle for too long, suspending ...
Nov  4 22:49:02 gallifrey pulseaudio[5453]: [alsa-sink-USB Audio] module-loopback.c: Max request changed
Nov  4 22:49:02 gallifrey pulseaudio[5453]: [alsa-sink-USB Audio] alsa-sink.c: Device suspended...
Nov  4 22:49:02 gallifrey pulseaudio[5453]: [pulseaudio] core.c: All sinks and sources are suspended, vacuuming memory
Nov  4 22:49:33 gallifrey pulseaudio[5453]: [pulseaudio] client.c: Created 10 "Native client (UNIX socket client)"
Nov  4 22:49:33 gallifrey pulseaudio[5453]: [pulseaudio] protocol-native.c: Got credentials: uid=1000 gid=1000 success=1



If I start playing some sound on my mobile phone, I can hear it from my desktop. Same thing happens with the Nintendo Switch, I can connect when the Nintendo Switch initiates the connection, not the way round. Hence, I don't think that pulseaudio is the problem here either.

I suspected that my problem has to do something with the profile migration or with the new kernel version. When I did the world update, these packages got updated

- gcc from 13.3.1_p20240614 to 13.3.1_p20241025
- sys-kernel/gentoo-sources from 6.6.52 to 6.6.58-r1

After the profile migration, I compiled the kernel and the modules again and created a new initramfs. I decided to reboot my machine and start it with the 6.6.52 kernel that was built before the profile migration and here everything works fine: if I start blueman-applet and double click on my phone, then the connection is established without a problem.

I compiled the kernel 6.6.52 again with the new gcc because I wanted to see whether the GCC update or the profile update are somehow responsible, but even this new build of 6.6.52 works as desired. So neither the profile migration nor GCC seem to be the problem.

It seems that the kernel is the problem. When I upgraded the kernel, I executed make oldconfig and it asked 3 questions for new variables (I used the default values:

Code:

Default allocator
  > 1. zbud (ZSWAP_ZPOOL_DEFAULT_ZBUD)

2:1 compression allocator (zbud) (ZBUD) [Y/?] y
3:1 compression allocator (z3fold) (DEPRECATED) (Z3FOLD_DEPRECATED) [N/m/y/?] (NEW)

Allow /proc/pid/mem access override
  > 1. Traditional /proc/pid/mem behavior (PROC_MEM_ALWAYS_FORCE) (NEW)  (default choice)


Compact Type Format generation (CTF) [N/y/?] (NEW)

Compressed Debug information
> 1. Don't compress debug information (DEBUG_INFO_COMPRESSED_NONE)



I don't see how any of these config variables could change the behaviour at all.

Does anybody know what is going on? I didn't find any bug reports similar to this in bugs.gentoo.org. Should I create a new bug report?
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2946
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Tue Nov 05, 2024 11:14 pm    Post subject: Reply with quote

I created a bug report https://bugs.gentoo.org/942925
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum