hzeller / rpi-rgb-led-matrix

Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO
GNU General Public License v2.0
3.65k stars 1.16k forks source link

dtparam=audio=off is not working #1616

Open 1zhaojin2 opened 8 months ago

1zhaojin2 commented 8 months ago

Hello everyone, I am trying to use the rpi-rgb-led-matrix with my Raspberry Pi 4B with 32bit raspberry pi os.

I get this error when trying to run pulsing-colors.py

=== snd_bcm2835: found that the Pi sound module is loaded. ===
Don't use the built-in sound of the Pi together with this lib; it is known to be
incompatible and cause trouble and hangs (you can still use external USB sound adapters).

See Troubleshooting section in README how to disable the sound module.
You can also run with --led-no-hardware-pulse to avoid the incompatibility,
but you will have more flicker.
Exiting; fix the above first or use --led-no-hardware-pulse

However I already disabled the module in /boot/config.txt with changing dtparam=audio=on with dtparam=audio=off following README.

Below is lsmod

Module                  Size  Used by
rfcomm                 53248  4
cmac                   16384  3
algif_hash             16384  1
aes_arm64              16384  3
aes_generic            36864  1 aes_arm64
algif_skcipher         16384  1
af_alg                 28672  6 algif_hash,algif_skcipher
bnep                   24576  2
hci_uart               53248  1
btbcm                  24576  1 hci_uart
bluetooth             565248  31 hci_uart,btbcm,bnep,rfcomm
ecdh_generic           16384  2 bluetooth
ecc                    36864  1 ecdh_generic
libaes                 16384  3 aes_arm64,bluetooth,aes_generic
vc4                   331776  15
snd_soc_hdmi_codec     20480  2
drm_display_helper     16384  1 vc4
brcmfmac              331776  0
cec                    53248  1 vc4
drm_dma_helper         20480  1 vc4
8021q                  32768  0
garp                   16384  1 8021q
stp                    16384  1 garp
llc                    16384  2 stp,garp
drm_kms_helper        204800  4 drm_dma_helper,vc4
brcmutil               24576  1 brcmfmac
snd_soc_core          274432  2 vc4,snd_soc_hdmi_codec
bcm2835_codec          49152  0
cfg80211              925696  1 brcmfmac
v3d                    90112  20
raspberrypi_hwmon      16384  0
gpu_sched              49152  1 v3d
drm_shmem_helper       24576  1 v3d
snd_bcm2835            28672  0
rfkill                 32768  6 bluetooth,cfg80211
snd_compress           20480  1 snd_soc_core
snd_pcm_dmaengine      20480  1 snd_soc_core
bcm2835_v4l2           45056  0
bcm2835_isp            28672  0
snd_pcm               139264  5 snd_bcm2835,snd_soc_hdmi_codec,snd_compress,snd_soc_core,snd_pcm_dmaengine
bcm2835_mmal_vchiq     36864  3 bcm2835_codec,bcm2835_v4l2,bcm2835_isp
videobuf2_vmalloc      16384  1 bcm2835_v4l2
i2c_brcmstb            16384  0
i2c_bcm2835            16384  0
rpivid_hevc            53248  0
v4l2_mem2mem           45056  2 bcm2835_codec,rpivid_hevc
videobuf2_dma_contig    20480  3 bcm2835_codec,rpivid_hevc,bcm2835_isp
videobuf2_memops       16384  2 videobuf2_vmalloc,videobuf2_dma_contig
videobuf2_v4l2         32768  5 bcm2835_codec,bcm2835_v4l2,rpivid_hevc,v4l2_mem2mem,bcm2835_isp
videobuf2_common       69632  9 bcm2835_codec,videobuf2_vmalloc,videobuf2_dma_contig,videobuf2_v4l2,bcm2835_v4l2,rpivid_hevc,v4l2_mem2mem,videobuf2_memops,bcm2835_isp
videodev              274432  7 bcm2835_codec,videobuf2_v4l2,bcm2835_v4l2,videobuf2_common,rpivid_hevc,v4l2_mem2mem,bcm2835_isp
vc_sm_cma              36864  2 bcm2835_mmal_vchiq,bcm2835_isp
snd_timer              36864  1 snd_pcm
mc                     61440  7 videodev,bcm2835_codec,videobuf2_v4l2,videobuf2_common,rpivid_hevc,v4l2_mem2mem,bcm2835_isp
snd                   106496  6 snd_bcm2835,snd_soc_hdmi_codec,snd_timer,snd_compress,snd_soc_core,snd_pcm
ir_rc6_decoder         16384  0
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
gpio_ir_recv           16384  0
uio_pdrv_genirq        16384  0
uio                    24576  1 uio_pdrv_genirq
nvmem_rmem             16384  0
drm                   581632  24 gpu_sched,drm_kms_helper,drm_dma_helper,v3d,vc4,drm_shmem_helper,drm_display_helper
i2c_dev                20480  0
fuse                  135168  3
drm_panel_orientation_quirks    28672  1 drm
backlight              24576  1 drm
ip_tables              32768  0
x_tables               53248  1 ip_tables
ipv6                  557056  48

What should I do in this situation?

jazzlyno commented 8 months ago

I had this same issue, with a Raspberry Pi Zero and Raspberry Pi Lite OS. Fixed by explicitly blacklisting snd_bcm2835 (for specific instructions, see https://github.com/hzeller/rpi-rgb-led-matrix#bad-interaction-with-sound).