Kernel upgrade seems to have broken sound on my laptop

hmm, if hardware is working in live but not in install anymore and the dmabuf5 lib isn’t the culprit, you could:

  • see if “lsmod” of iso and install match

  • see if alsa sound output works. Boot into your install. don’t log in graphically, but change to a console with e.g. +, log in, stop pulse/pipe services. Check sound with e.g. aplay plays a wav.

or

  • copy over all sound related rc files (alsa, pulse, pipe, both from system and user. Don’t do this at home, kids)) from live to install, knock on wood and restart.

neon’s libkpipwire5 packages are probably broken down differently from the Kubuntu/Ubuntu 23.04 setup.

Yup, it looks like neon doesn’t break it down into as many sub-packages as *buntu are doing. The contents found in the package libkpipewiredmabuf5 you are looking at are found in neon’s libkpipwire5 package.

I still think you have mixed PPA and non-PPA pipewire packages on your system causing conflicts from the version differences. No real idea what is the easy solution here other than my original one (to restore the PPA, update to get all the pipewire packages to match versions, then ppa-purge to downgrade ALL of them back to stock), other than seeking out all pipewire stuff to find out which ones are the still the newer PPA ones

Muon may hep here, for searching.

apt policy packagename will show you the versions available and where they come from.
sudo apt install package-name=version-name

No idea how complex this will be, though.

OK, this is now definitely a kernel issue.

I managed to get the system to boot into the old 5.x kernel (last one on the system) in recovery mode and sound worked.

Did the same thing on any of the 6.x kernels and no sound is heard.

The devices are all there, but unless I’m using a bluetooth speaker, complete silence.

1 Like

This gets more and more funky as I test.

So… I can’t get the full 5.15 kernel to boot (errors on start up about ioremap and del_ssm_hwmon and it either terminates Plymouth Boot or Failed to start LSB: starts tcsd).

I can get the recovery kernel to boot, but that has a reduced graphics driver and no wifi card (I can get the wired networking going but no other tunderbolt stuff by the looks).

I’m writing this from Linux peter-xps157590 5.15.0-83-generic #92-Ubuntu SMP Mon Aug 14 09:30:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux and sound is working fine on the local speaker.

So… where too from here? Can I re-install the latest 6.x kernel again and see if it was a firmware or some other installation issue?

Can I downgrade to a properly running 5.15 kernel instead?

Thoughts?

Not sure if its related or not, but on the 6.2.0-32-generic boot, dmesg has bunch of stack traces and errors from i915 in it

[   14.072486]  video i2c_hid_acpi i2c_hid hid wmi pinctrl_tigerlake
[   14.072491] CPU: 6 PID: 2361 Comm: Xorg Tainted: G        W          6.2.0-32-generic #32~22.04.1-Ubuntu
[   14.072494] Hardware name: Dell Inc. XPS 15 9530/0WCGKP, BIOS 1.4.0 05/31/2023
[   14.072496] RIP: 0010:gen9_disable_dc_states+0x2d6/0x2f0 [i915]
[   14.072673] Code: e8 4c 8b 77 50 4d 85 f6 75 03 4c 8b 37 e8 12 49 f1 da 41 89 d8 44 89 e9 4c 89 f2 48 89 c6 48 c7 c7 08 42 ce c0 e8 da 4a 54 da <0f> 0b e9 d2 fd ff ff e8 5e 1b 4f db 66 66 2e 0f 1f 84 00 00 00 00
[   14.072675] RSP: 0018:ffffabe304237a68 EFLAGS: 00010246
[   14.072678] RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
[   14.072679] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[   14.072680] RBP: ffffabe304237aa8 R08: 0000000000000000 R09: 0000000000000000
[   14.072682] R10: 0000000000000000 R11: 0000000000000000 R12: ffff90efa4580000
[   14.072683] R13: 0000000000000000 R14: ffff90ef831035b0 R15: ffff90efa4580988
[   14.072685] FS:  00007facf1262a80(0000) GS:ffff90f6ef380000(0000) knlGS:0000000000000000
[   14.072687] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   14.072689] CR2: 00007fda324ab000 CR3: 000000010c614000 CR4: 0000000000750ee0
[   14.072691] PKRU: 55555554
[   14.072692] Call Trace:
[   14.072693]  <TASK>
[   14.072695]  ? show_regs+0x72/0x90
[   14.072699]  ? gen9_disable_dc_states+0x2d6/0x2f0 [i915]
[   14.072872]  ? __warn+0x8d/0x160
[   14.072878]  ? gen9_disable_dc_states+0x2d6/0x2f0 [i915]
[   14.073053]  ? report_bug+0x1bb/0x1d0
[   14.073059]  ? handle_bug+0x46/0x90
[   14.073065]  ? exc_invalid_op+0x19/0x80
[   14.073069]  ? asm_exc_invalid_op+0x1b/0x20
[   14.073074]  ? gen9_disable_dc_states+0x2d6/0x2f0 [i915]
[   14.073255]  ? gen9_disable_dc_states+0x2d6/0x2f0 [i915]
[   14.073428]  gen9_dc_off_power_well_enable+0xe/0x20 [i915]
[   14.073599]  intel_power_well_enable+0x5c/0x80 [i915]
[   14.073775]  intel_power_well_get+0x28/0x40 [i915]
[   14.073948]  __intel_display_power_get_domain.part.0+0x37/0x90 [i915]
[   14.074120]  intel_display_power_get+0x50/0x70 [i915]
[   14.074284]  intel_atomic_commit_tail+0x66/0xb20 [i915]
[   14.074460]  ? queue_work_on+0x67/0x70
[   14.074465]  intel_atomic_commit+0x3b5/0x420 [i915]
[   14.074656]  ? drm_atomic_check_only+0x1ad/0x400 [drm]
[   14.074696]  drm_atomic_commit+0x96/0xd0 [drm]
[   14.074730]  ? __pfx___drm_printfn_info+0x10/0x10 [drm]
[   14.074785]  drm_atomic_helper_set_config+0x84/0xd0 [drm_kms_helper]
[   14.074807]  ? __pfx_drm_mode_setcrtc+0x10/0x10 [drm]
[   14.074857]  drm_mode_setcrtc+0x213/0x800 [drm]
[   14.074899]  ? __pfx_drm_mode_setcrtc+0x10/0x10 [drm]
[   14.074938]  drm_ioctl_kernel+0xc0/0x160 [drm]
[   14.074995]  drm_ioctl+0x27b/0x4c0 [drm]
[   14.075040]  ? __pfx_drm_mode_setcrtc+0x10/0x10 [drm]
[   14.075086]  ? __fget_light+0xb5/0x160
[   14.075090]  __x64_sys_ioctl+0x9a/0xe0
[   14.075095]  do_syscall_64+0x59/0x90
[   14.075100]  entry_SYSCALL_64_after_hwframe+0x72/0xdc
[   14.075103] RIP: 0033:0x7facf151aaff
[   14.075105] Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 77 1f 48 8b 44 24 18 64 48 2b 04 25 28 00
[   14.075107] RSP: 002b:00007fff4e308b30 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[   14.075110] RAX: ffffffffffffffda RBX: 00007fff4e308bc0 RCX: 00007facf151aaff
[   14.075112] RDX: 00007fff4e308bc0 RSI: 00000000c06864a2 RDI: 0000000000000017
[   14.075113] RBP: 00000000c06864a2 R08: 0000000000000000 R09: 0000000000000000
[   14.075114] R10: 0000000000000000 R11: 0000000000000246 R12: 000055f6e02456a0
[   14.075116] R13: 0000000000000017 R14: 000055f6e04087f0 R15: 00007fff4e308ef8
[   14.075119]  </TASK>
[   14.075120] ---[ end trace 0000000000000000 ]---
[   14.075263] i915 0000:03:00.0: [drm] *ERROR* Writing dc state to 0x1 failed, now 0x0
[   15.366266] Bluetooth: RFCOMM TTY layer initialized
[   15.366276] Bluetooth: RFCOMM socket layer initialized
[   15.366282] Bluetooth: RFCOMM ver 1.11
[   15.434156] usb 3-1.1.3.2.1.1: Failed to query (GET_DEF) UVC control 12 on unit 1: 0 (exp. 3).
[   15.434325] usb 3-1.1.3.2.1.1: Failed to query (GET_MIN) UVC control 12 on unit 1: 0 (exp. 3).
[   15.434475] usb 3-1.1.3.2.1.1: Failed to query (GET_MAX) UVC control 12 on unit 1: 0 (exp. 3).
[   15.434684] usb 3-1.1.3.2.1.1: Failed to query (GET_RES) UVC control 12 on unit 1: 0 (exp. 3).
[   15.434918] usb 3-1.1.3.2.1.1: Failed to query (GET_DEF) UVC control 14 on unit 1: 0 (exp. 4).
[   15.435073] usb 3-1.1.3.2.1.1: Failed to query (GET_MIN) UVC control 14 on unit 1: 0 (exp. 4).
[   15.435248] usb 3-1.1.3.2.1.1: Failed to query (GET_MAX) UVC control 14 on unit 1: 0 (exp. 4).
[   15.435400] usb 3-1.1.3.2.1.1: Failed to query (GET_RES) UVC control 14 on unit 1: 0 (exp. 4).
[   39.795572] input: MX Ergo Mouse as /devices/virtual/misc/uhid/0005:046D:B01D.000A/input/input31
[   39.796319] hid-generic 0005:046D:B01D.000A: input,hidraw8: BLUETOOTH HID v0.22 Mouse [MX Ergo] on 30:05:05:42:44:4b
[   39.871015] input: MX Ergo as /devices/virtual/misc/uhid/0005:046D:B01D.000A/input/input33
[   39.871271] logitech-hidpp-device 0005:046D:B01D.000A: input,hidraw8: BLUETOOTH HID v0.22 Mouse [MX Ergo] on 30:05:05:42:44:4b
[   39.974874] logitech-hidpp-device 0005:046D:B01D.000A: HID++ 4.5 device connected.

I don’t know as yet if this happens in the 5.x kernel as well though.

@Tionisla I looked on the live system and didn’t come up with any rc files that made sense.

So… I copied /usr/share/{alsa, alsa-base, pipewire, pulse-audio, alsa-card-profile} from the live system and put them in place of the ones on the running system.

Sadly, all that achieved was no audio devices being found at all.

I was writing this to say that nothing had changed, but amazingly, I’ve just found that the sound is in fact working after moving all the files back the way they were again!!! No clue why this is.

Lets see if it survives another reboot.

1 Like

Keeping my fingers crossed!