View: 1243|Reply: 5

"no volume control on this device" on RPi4

[Copy link]

1

Threads

1

Posts

9

Credits

Newbie

Rank: 1

Credits
9
Post time 2020-8-9 11:47:19 | Show all posts |Read mode
Hello,
I assembled PiCarB and installed adeeptPiCarB.img in 16GB SD card on RPi4 2GB RAM.
I installed adeeptPiCarB.img to avoid complications installing python, other dependancies, etc.

Pi Car is working fine except in raspbian desktop there is no sound device available. "no volume control on this device" showing on speaker icon. (Used VNC to see the desktop).
So I couldn't add some sound function to the PiCar with a small speaker.

I checked raspi-config>advanced options>audio> (nothing here)(should have mic/hdmi options).
I checked my RPi4 sound system with original raspbian image and found ok.

Need help to install sound driver in adeeptPiCarB.img os.

Thanks in advance.
Reply

Use magic Report

0

Threads

23

Posts

73

Credits

Registered member

Rank: 2

Credits
73
Post time 2020-8-18 14:43:30 | Show all posts
Run in Raspberry Pi: "sudo rm /etc/modprobe.d/snd-blacklist.conf"
Reply

Use magic Report

0

Threads

23

Posts

73

Credits

Registered member

Rank: 2

Credits
73
Post time 2020-8-18 14:53:18 | Show all posts
Run in Raspberry Pi:
"sudo killall python3"
"sudo rm /etc/modprobe.d/snd-blacklist.conf"
Reply

Use magic Report

0

Threads

1

Posts

16

Credits

Newbie

Rank: 1

Credits
16
Post time 2020-11-28 15:22:44 | Show all posts
I just got the RaspTank today.  When I installed the program for RaspTank, I lost my audio.   I tried the above but it did not work.  Any suggestions?   Thanks.
Reply

Use magic Report

1

Threads

8

Posts

23

Credits

Newbie

Rank: 1

Credits
23
Post time 2021-1-5 06:48:43 | Show all posts
The best thing is:
- reinstall Raspberry Pi-O
- clone the repository
- edit the setup.py commenting (put a # in front of) those lines:

  1. try: #fix conflict with onboard Raspberry Pi audio
  2. os.system('sudo touch /etc/modprobe.d/snd-blacklist.conf')
  3. with open("/etc/modprobe.d/snd-blacklist.conf",'w') as file_to_write:
  4.                 file_to_write.write("blacklist snd_bcm2835")
  5. except:
  6.        pass
Copy the Code


- Run the setup
Reply

Use magic Report

23

Threads

223

Posts

814

Credits

Senior member

Rank: 4

Credits
814
Post time 2021-2-5 10:59:08 | Show all posts
1606547981 replied at 2020-11-28 03:22 PM
I just got the RaspTank today.  When I installed the program for RaspTank, I lost my audio.   I trie ...

The ws2812 lamp and audio output used in the product need to use the PWM signal of the Raspberry Pi, which may conflict, so the audio output is blocked.
Method to restore audio (may cause ws2812 lights to not work normally):
sudo killall python3
sudo rm /etc/modprobe.d/snd-blacklist.conf

Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules