Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] No Sound NVIDIA on Debian 11 Bullseye

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
User avatar
majpooper
Posts: 31
Joined: 2019-03-19 13:00

[SOLVED] No Sound NVIDIA on Debian 11 Bullseye

#1 Post by majpooper »

I have been testing (read playing) Debian 11 Bullseye on an old MacBook so I may be a little ahead of myself here. The truth is I am a hack and have no real computer skills. Anyway I installed Bullseye netinst (minimum CD) and built the system up from there. All went well just the packages that I want and nothing else and the MacBook runs great.

The goal is a lean system that runs relatively well on a low resource system that still looks and feels modern. I tried several approaches running different combs of DMs, WMs, DEs etc. After adding an SSD from an old Lenovo and adding a 4Gib RAM stick I had around I got it running pretty nice even with a heavy DE Cinnamon which I really like.

EXCEPT - no sound - it runs with

Code: Select all

Audio:
  Device-1: NVIDIA MCP89 High Definition Audio driver: snd_hda_intel 
  Sound Server: ALSA v: k5.10.0-5-amd64 
entire system info below

I pretty much tried everything I could find searcing the Internet. Debian does have a WiKi regarding installing up to Buster on a 13" MacBook 7,1 but the driver does not apply to Bullseye although is supported in 5.10 kernel which I don't understand. Anyway the sound supposedly works OOB.

Anyway I have ripped everything out that I installed trying to fix the sound to include the NVIDIA driver that I found, alsamixer, alsamixergui PulseAudio and pavucontrol.

I am thinking of a fresh install in case I jacked something up along the way but obviously would rather fix it. I could go with Buster but the version of Cinnamon is too old (version 3) and lacks the configure-ability of the version provide with Bullseye (version 4).

Any help would be much appreciated.

Code: Select all

sparky@MacBook:~$ inxi -F
System:
  Host: MacBook Kernel: 5.10.0-5-amd64 x86_64 bits: 64 
  Desktop: Cinnamon 4.8.6 Distro: Debian GNU/Linux bullseye/sid 
Machine:
  Type: Laptop System: Apple product: MacBook7,1 v: 1.0 
  serial: <superuser required> 
  Mobo: Apple model: Mac-F22C89C8 serial: <superuser required> UEFI: Apple 
  v: MB71.88Z.0039.B0E.1111071359 date: 11/07/11 
Battery:
  ID-1: BAT0 charge: 54.9 Wh condition: 57.0/62.9 Wh (91%) 
CPU:
  Info: Dual Core model: Intel Core2 Duo P8600 bits: 64 type: MCP 
  L2 cache: 3 MiB 
  Speed: 796 MHz min/max: 798/2394 MHz Core speeds (MHz): 1: 796 2: 796 
Graphics:
  Device-1: NVIDIA MCP89 [GeForce 320M] driver: nouveau v: kernel 
  Device-2: Apple Built-in iSight type: USB driver: uvcvideo 
  Display: x11 server: X.org 1.20.10 driver: loaded: modesetting 
  unloaded: fbdev,vesa resolution: <missing: xdpyinfo> 
  OpenGL: renderer: NVAF v: 3.3 Mesa 20.3.4 
Audio:
  Device-1: NVIDIA MCP89 High Definition Audio driver: snd_hda_intel 
  Sound Server: ALSA v: k5.10.0-5-amd64 
Network:
  Device-1: NVIDIA MCP89 Ethernet driver: forcedeth 
  IF: enp0s9 state: down mac: 70:cd:60:86:00:ba 
  Device-2: Broadcom BCM43224 802.11a/b/g/n driver: bcma-pci-bridge 
  IF-ID-1: wlp1s0b1 state: up mac: e4:ce:8f:74:76:82 
Bluetooth:
  Device-1: Apple Bluetooth Host Controller type: USB driver: N/A 
Drives:
  Local Storage: total: 171.41 GiB used: 9.24 GiB (5.4%) 
  ID-1: /dev/sda vendor: Intel model: SSDSC2BW180A3H size: 167.68 GiB 
  ID-2: /dev/sdb type: USB vendor: SanDisk model: Cruzer Glide 
  size: 3.73 GiB 
Partition:
  ID-1: / size: 162.62 GiB used: 7.42 GiB (4.6%) fs: ext4 dev: /dev/sda2 
  ID-2: /boot/efi size: 511 MiB used: 13 MiB (2.6%) fs: vfat dev: /dev/sda1 
Swap:
  ID-1: swap-1 type: partition size: 976 MiB used: 0 KiB (0.0%) 
  dev: /dev/sda3 
Sensors:
  Missing: Required tool sensors not installed. Check --recommends 
Info:
  Processes: 139 Uptime: 3h 10m Memory: 4.57 GiB used: 1.07 GiB (23.4%) 
  Shell: Bash inxi: 3.3.01 
Last edited by majpooper on 2021-04-05 16:54, edited 1 time in total.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: No Sound NVIDIA on Debian 11 Bullseye

#2 Post by Head_on_a_Stick »

Can we see the output of

Code: Select all

dmesg | grep firmware
aplay -l
amixer
majpooper wrote:The truth is I am a hack and have no real computer skills
Me too :D
deadbang

User avatar
majpooper
Posts: 31
Joined: 2019-03-19 13:00

Re: No Sound NVIDIA on Debian 11 Bullseye

#3 Post by majpooper »

Here ya go although I do have two nagging thoughts though;
1.) Did I jack something up on the initial install as NVIDIA sound supposedly works OOB on Debian ? - at least up until Buster.
2.) I am getting out over my skis in that I am trying to do this on a Debian version that is still in testing and the NVIDIA drivers haven't been tested/addressed yet?

Code: Select all

sparky@MacBook:~$ sudo dmesg | grep firmware
[    6.515335] platform regulatory.0: firmware: direct-loading firmware regulatory.db
[    6.515560] platform regulatory.0: firmware: direct-loading firmware regulatory.db.p7s
[    7.372439] brcmsmac bcma0:1: firmware: direct-loading firmware brcm/bcm43xx-0.fw
[    7.373953] brcmsmac bcma0:1: firmware: direct-loading firmware brcm/bcm43xx_hdr-0.fw
sparky@MacBook:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: Generic Analog [Generic Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: Generic Digital [Generic Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: Generic Digital [Generic Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: Generic Digital [Generic Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: Generic Digital [Generic Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
sparky@MacBook:~$ amixer
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 127
  Mono: Playback 116 [91%] [-5.50dB] [off]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 127 [100%] [6.00dB] [off]
  Front Right: Playback 116 [91%] [0.50dB] [off]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 127 [100%] [6.00dB] [off]
  Front Right: Playback 127 [100%] [6.00dB] [off]
Simple mixer control 'Bass Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 127 [100%] [6.00dB] [off]
  Front Right: Playback 127 [100%] [6.00dB] [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 'Line',0
  Capabilities: cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Mono
  Mono: Capture [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 'Mic',0
  Capabilities: cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Mono
  Mono: Capture [on]
Simple mixer control '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 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',16
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 0 [0%] [-51.00dB] [on]
  Front Right: Capture 0 [0%] [-51.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: No Sound NVIDIA on Debian 11 Bullseye

#4 Post by Head_on_a_Stick »

Looks like both the analogue and digital outputs are set as card 0 but I must admit that I don't really understand the posted command output.

I would just install pulseaudio and let that sort it out. Use the pavucontrol package to set the desired outputs & inputs graphically.

If you really don't want to use PA then see https://wiki.archlinux.org/index.php/Ad ... sound_card for ways to define the default output with pure ALSA.
deadbang

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2082
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 225 times

Re: No Sound NVIDIA on Debian 11 Bullseye

#5 Post by FreewheelinFrank »

Does

Code: Select all

$ aplay /dev/urandom -f dat -D plughw:0,0
produce any sound?

Should send random noise to card 0 device 0 ie the analogue output. Be prepared if it does work.

The sound card has an issue switching to digital after a reboot on the MacBook? Is this relevant?

https://wiki.debian.org/InstallingDebia ... idia_MCP89

User avatar
majpooper
Posts: 31
Joined: 2019-03-19 13:00

Re: [SOLVED] No Sound NVIDIA on Debian 11 Bullseye

#6 Post by majpooper »

MrEen on the Mint forum helped with this - even though it was not a Mint issue.
This solved it.
Okay, you added options snd-hda-intel model=generic to a file in /etc/modprobe.d

I'd like you to try changing that to this:

Code: Select all

options snd-hda-intel model=mbp81

Reboot and test after that. While that's specifically for a Mac 8,1 instead of Mac 7,1, I'm hoping the 7,1 simply requires the same fix.

Pooru
Posts: 4
Joined: 2011-02-06 08:55

Re: [SOLVED] No Sound NVIDIA on Debian 11 Bullseye

#7 Post by Pooru »

Sound was working in Debian 10 but not now.
I have tried all the additions modeprobe as above but still no sound.
I have Levano laptop with this hardware:
lspci|grep Audio
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
01:00.1 Audio device: NVIDIA Corporation GF116 High Definition Audio Controller (rev a1)
00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 05)
Subsystem: CLEVO/KAPOK Computer 6 Series/C200 Series Chipset Family High Definition Audio Controller [1558:5102]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
--
01:00.1 Audio device [0403]: NVIDIA Corporation GF116 High Definition Audio Controller [10de:0bee] (rev a1)
Subsystem: CLEVO/KAPOK Computer GF116 High Definition Audio Controller [1558:5102]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel


cat /etc/modprobe.d/blacklist.con
blacklist snd_soc_skl


cat /etc/modprobe.d/alsa-base.conf
#options snd-hda-intel model=generic
#options snd-hda-intel model=mbp81
options snd-hda-intel model=auto
options snd-hda-intel dmic_detect=0

Pooru
Posts: 4
Joined: 2011-02-06 08:55

Re: [SOLVED] No Sound NVIDIA on Debian 11 Bullseye

#8 Post by Pooru »

Silly me, I forgot to remove timidity.
Sound now works.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: [SOLVED] No Sound NVIDIA on Debian 11 Bullseye

#9 Post by sunrat »

Solved twice! @Pooru good you got it working. In future please start a new topic for issues rather than posting on someone else's especially when already marked [SOLVED]. OP had a completely different issue to yours.
I don't think timidity is part of a standard Debian install so it would have come as a dependency of something you installed. You can check with

Code: Select all

apt rdepends timidity
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

seeker5528
Posts: 61
Joined: 2021-09-18 00:37
Been thanked: 2 times

Re: [SOLVED] No Sound NVIDIA on Debian 11 Bullseye

#10 Post by seeker5528 »

The part of Timidity that interferes with pulseaudio is the daemon, which is in a separate timidity-daemon package you could uninstall to get rid of that feture but keep timidty.

For future reference this is also the case with pipewire, if you enable pipewire-pulse I would guess also for the alsa and jack parts of pipewire, I don't use pulseaudio so it was not something I encountered before I enabling the pipewire audio handling features.

Post Reply