Lost sound through speakers

Help with the version of MX KDE officially released by the Development Team.
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
Metal Mick
Posts: 37
Joined: Mon Apr 12, 2021 1:54 am

Lost sound through speakers

#1 Post by Metal Mick »

Hi all,

I'm in a spin of MX-KDE with AHS support (provided very helpfully by dolphinoracle) and all has been well until recently when i lost sound output through the speakers in my laptop.

I can still get sound via BT, and in Windows all sound functions are okay.

Someone in another thread lost all sound and video, and a Konsole check that all updates had been properly installed with "sudo dpkg --configure -a
". I have tried this and found no difference.

This is a dump of system info:

Code: Select all

Snapshot created on: 20220924_1429
System:    Kernel: 6.0.0-4mx-amd64 [6.0.8-1~mx21+1] x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/boot/vmlinuz-6.0.0-4mx-amd64 
           root=UUID=<filter> ro quiet splash 
           Desktop: KDE Plasma 5.20.5 wm: kwin_x11 vt: 7 dm: SDDM 
           Distro: MX-21.2.1_KDE__ahs_kernel_x64 Wildflower September 24  2022 
           base: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Laptop System: Dell product: XPS 17 9720 v: N/A serial: <filter> Chassis: 
           type: 10 serial: <filter> 
           Mobo: Dell model: 0KNF8J v: A00 serial: <filter> UEFI: Dell v: 1.12.0 date: 10/05/2022 
Battery:   ID-1: BAT0 charge: 91.3 Wh (100.0%) condition: 91.3/95.1 Wh (96.0%) volts: 13.1 
           min: 11.4 model: BYD DELL F8CPG24 type: Li-poly serial: <filter> status: Full 
CPU:       Info: 10-Core model: 12th Gen Intel Core i7-12700H bits: 64 type: MT MCP 
           arch: Alder Lake family: 6 model-id: 9A (154) stepping: 3 microcode: 423 cache: 
           L2: 24 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 107520 
           Speed: 609 MHz min/max: 400/4600 MHz Core speeds (MHz): 1: 609 2: 2700 3: 2700 4: 2700 
           5: 2700 6: 2700 7: 2700 8: 2700 9: 640 10: 2700 11: 803 12: 754 13: 2700 14: 2700 
           15: 747 16: 2700 17: 837 18: 804 19: 1229 20: 2700 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: mmio_stale_data status: Not affected 
           Type: retbleed status: Not affected 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 
           mitigation: Enhanced IBRS, IBPB: conditional, RSB filling, PBRSB-eIBRS: SW sequence 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Intel Alder Lake-P Integrated Graphics vendor: Dell driver: i915 v: kernel 
           bus-ID: 00:02.0 chip-ID: 8086:46a6 class-ID: 0300 
           Device-2: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] driver: N/A alternate: nvidia 
           bus-ID: 01:00.0 chip-ID: 10de:2520 class-ID: 0300 
           Device-3: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo bus-ID: 1-6:3 
           chip-ID: 0c45:6732 class-ID: 0e02 
           Display: x11 server: X.Org 1.20.14 compositor: kwin_x11 driver: loaded: modesetting 
           unloaded: fbdev,vesa display-ID: :0 screens: 1 
           Screen-1: 0 s-res: 3840x2160 s-dpi: 96 s-size: 1016x571mm (40.0x22.5") 
           s-diag: 1165mm (45.9") 
           Monitor-1: DP-2-3 res: 3840x2160 hz: 60 dpi: 138 size: 708x399mm (27.9x15.7") 
           diag: 813mm (32") 
           OpenGL: renderer: Mesa Intel Graphics (ADL GT2) v: 4.6 Mesa 22.0.5 direct render: Yes 
Audio:     Device-1: Intel Alder Lake PCH-P High Definition Audio vendor: Dell 
           driver: sof-audio-pci-intel-tgl alternate: snd_hda_intel,snd_sof_pci_intel_tgl 
           bus-ID: 00:1f.3 chip-ID: 8086:51c8 class-ID: 0401 
           Device-2: NVIDIA driver: snd_hda_intel v: kernel bus-ID: 01:00.1 chip-ID: 10de:228e 
           class-ID: 0403 
           Sound Server-1: ALSA v: k6.0.0-4mx-amd64 running: yes 
           Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:   Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel modules: wl 
           port: 4000 bus-ID: 00:14.3 chip-ID: 8086:51f0 class-ID: 0280 
           IF: wlan0 state: up mac: <filter> 
           Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152 
           bus-ID: 6-1.4:4 chip-ID: 0bda:8153 class-ID: 0000 serial: <filter> 
           IF: eth0 state: down mac: <filter> 
Bluetooth: Device-1: Intel type: USB driver: btusb v: 0.8 bus-ID: 1-10:8 chip-ID: 8087:0033 
           class-ID: e001 
           Report: hciconfig ID: hci0 rfk-id: 1 state: up address: <filter> 
           Info: acl-mtu: 1021:4 sco-mtu: 96:6 link-policy: rswitch sniff link-mode: slave accept 
           service-classes: rendering, capturing, object transfer, audio 
Drives:    Local Storage: total: 2.75 TiB used: 45.93 GiB (1.6%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/nvme0n1 maj-min: 259:5 vendor: Western Digital 
           model: PC SN810 NVMe WDC 1024GB size: 953.87 GiB block-size: physical: 512 B 
           logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter> rev: 61520012 
           temp: 32.9 C scheme: GPT 
           ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Gigabyte model: GP-AG42TB size: 1.82 TiB 
           block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD 
           serial: <filter> rev: EGFM15.0 temp: 40.9 C scheme: GPT 
Partition: ID-1: / raw-size: 705.44 GiB size: 693.3 GiB (98.28%) used: 45.93 GiB (6.6%) fs: ext4 
           dev: /dev/nvme1n1p2 maj-min: 259:2 
           ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 278 KiB (0.1%) fs: vfat 
           dev: /dev/nvme1n1p1 maj-min: 259:1 
Swap:      Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) priority: -2 
           dev: /dev/nvme1n1p3 maj-min: 259:3 
Sensors:   System Temperatures: cpu: 36.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Repos:     Packages: 2612 note: see --pkg apt: 2592 lib: 1529 flatpak: 20 
           No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian bullseye-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian bullseye main contrib non-free
           2: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
           1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/google-earth-pro.list 
           1: deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://mirrors.rit.edu/mxlinux/mx-packages/mx/repo/ bullseye main non-free
           2: deb http://mirrors.rit.edu/mxlinux/mx-packages/mx/repo/ bullseye ahs
Info:      Processes: 360 Uptime: 1h 3m wakeups: 7 Memory: 31.05 GiB used: 4.19 GiB (13.5%) 
           Init: SysVinit v: 2.96 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: 10.2.1 
           alt: 10 Client: shell wrapper v: 5.1.4-release inxi: 3.3.06 
Boot Mode: UEFI
I don't often use the sound form the laptop speakers, but I sometimes plug in earbuds.

I'd appreciate any and all help with resolving this issue.

Huckleberry Finn

Re: Lost sound through speakers

#2 Post by Huckleberry Finn »

Code: Select all

echo 'options snd-intel-dspcfg dsp_driver=1' | sudo tee /etc/modprobe.d/sound.conf

Code: Select all

echo 'options snd-hda-intel model=dell enable=yes' | sudo tee /etc/modprobe.d/sound2.conf
Reboot.

Metal Mick
Posts: 37
Joined: Mon Apr 12, 2021 1:54 am

Re: Lost sound through speakers

#3 Post by Metal Mick »

Thanks for the suggestion. I tried it and sound comes through the speakers that are part of my external monitor. The laptop speakers remain silent, when I disconnect the monitor.

There are times when I am away from my monitor and would like to get some sound. Is there some modification to either of the 2 sound config files that I can make so that I can include the laptop speakers as an output device?

I have found the file pc-speaker.conf. In it there is the entry "blacklist pcspkr" - would commenting that out let me use the laptop speakers for sound?

I'll try it. I did. Nothing worked: I tried all permutations I could think of in pc-speaker.conf to no avail. I have returned the file to it's non-fiddled-with condition.

Huckleberry Finn

Re: Lost sound through speakers

#4 Post by Huckleberry Finn »

Have you tried Alsamixer from menu?

After you open it: F6 and select "0 Intel" (rather than "default") then press F5 , now play with the bars. Any item may be even at max, still muted. Under the bars: MM means muted , 00 : unmuted. M from keyboard mutes/unmutes.

Metal Mick
Posts: 37
Joined: Mon Apr 12, 2021 1:54 am

Re: Lost sound through speakers

#5 Post by Metal Mick »

Thanks for your further suggestion - I appreciate it. I'm sorry to take so long to reply: time zone difference here in Australia.

I tried Alsamixer several times, and again no success. Checked for muted items - I fell for that on my previous installation (older laptop) and was looking out for it.

I'm sure the laptop speakers were working when I first installed.

EDIT: it's quite likely the speakers didn't work from installI just booted up with my live MX-KDE-AHS thumbdrive, and after installing the drivers, found that the speakers were marked as "unavailable". This didn't stop music coming through my earbuds that I plugged-in.
Last edited by Metal Mick on Wed Dec 21, 2022 10:50 pm, edited 1 time in total.

Huckleberry Finn

Re: Lost sound through speakers

#6 Post by Huckleberry Finn »

Code: Select all

rm -r ~/.config/pulse
Reboot (or Logout, Login ) will reset Pulseaudio settings to defaults.

Metal Mick
Posts: 37
Joined: Mon Apr 12, 2021 1:54 am

Re: Lost sound through speakers

#7 Post by Metal Mick »

Thanks, I'll try this reset next:
Huckleberry Finn wrote: Wed Dec 21, 2022 7:20 pm

Code: Select all

rm -r ~/.config/pulse
Reboot (or Logout, Login ) will reset Pulseaudio settings to defaults.

Huckleberry Finn

Re: Lost sound through speakers

#8 Post by Huckleberry Finn »

Probably that won't work, too, however you can still do it, no harm .

The main problem is that it's the same everywhere with that device: 8086:51c8 (all distros, even the bleeding edge ones). And the weird thing is that sometimes it's ok with (say) kernel 5.15-38 and not with 5.15-43 then ok with 5.19.xx then not with 6.0.x ...

And (actually) the real problem is (as always) driver: sof-audio-pci-intel-tgl

So, what we did with the 1st command was to make it use the (traditional/classic) snd_hda_intel instead.


Whatever... we may be very close to the solution:


Could you just copy-paste here the "Chip" line from Alsamixer ? (Top-left corner)

i.e.

Chip: Realtek ALC298

or

Chip: Realtek ALC1220

or whatever.

Metal Mick
Posts: 37
Joined: Mon Apr 12, 2021 1:54 am

Re: Lost sound through speakers

#9 Post by Metal Mick »

Hi, H-F,

the contents of "Chip": PulseAudio
"Card" is also PulseAudio

I was considering moving to Pipewire purely because in my MX-19-KDE on a previous laptop, the audio became somewhat problematic towards the end.

Might this be worth trying, and attempting to fix that if it misbehaves.

Also, I'm on Kernel 6.0; I could always roll back to an earlier kernel if you feel it's worth a try. I take it I just have to uninstall via the Package Manager?

Huckleberry Finn

Re: Lost sound through speakers

#10 Post by Huckleberry Finn »

Let's delete the file we created first:

Code: Select all

sudo rm /etc/modprobe.d/sound.conf
Reboot.

(Now it should return to sof driver.)

Does it now show anything different in Alsamixer? (Chip and any others)


You don't have to uninstall the 6.0. You can (if you like) install any kernel (say 5.15) then boot with it via "Advanced Options" on Grub. Furthermore, yours is currently 6.0.0-4, you can even check the 6.0 and install (which will install at the moment linux-image-6.0.0-6mx-amd64-unsigned_6.0.12-1) and try the sound.

In the meantime, it may be solved by the upcoming 6.1 (without requiring workarounds...)

Pipewire ... you can try of course, but it won't take Pulseaudio's place. (At this point @AVLinux may give better info :) ). Also, distros like Fedora, Garuda (and many bleeding edge ones) have both Pipewire and kernel 6.0 ootb, still same problem there with the same card. (You can even try them on live session if you like).

The reason why I asked the Chip no: We used model=dell as the option (which's generic and works on most Dells). This way we can try a more model-specific option.

Post Reply

Return to “MX KDE Official Release”