respeaker / seeed-voicecard

2 Mic Hat, 4 Mic Array, 6-Mic Circular Array Kit, and 4-Mic Linear Array Kit for Raspberry Pi
GNU General Public License v3.0
470 stars 284 forks source link

headphones after reboot muted #295

Closed FacemanBy closed 2 years ago

FacemanBy commented 3 years ago

I have just installed the Raspberry. After that I installed the driver according to the wiki. Had to specify --compat-kernal for this. Theoretically, the sound card works. But the headphones are muted after every reboot.

I've already run the sudo alsactl --file = / etc / voicecard / wm8960_asound.state store command, but to no avail.

What else could I do to ensure that the headphones reach the desired volume after a restart?

FacemanBy commented 3 years ago

Forgot to mention the technical details:

Raspberry Zero Buster OS Kernal 5.4.51+ 2mic hat

github-actions[bot] commented 2 years ago

Stale issue message

ghost commented 2 years ago

@FacemanBy , This action was performed automatically. Please describe the issue according to bug template - if the issue was resolved, ignore this message. The issue will be marked as closed in 7 days if inactive.

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Platform What platform are you running the code on.

Relevant log output Please copy and paste any relevant log output.

AIWintermuteAI commented 2 years ago

Hello, @FacemanBy !

I did some experiments with the following setup:

Raspberry Pi Zero W 5.10.17+ kernel https://github.com/respeaker/seeed-voicecard/commit/41a09a3b67dc476b9ae2111d319e6941c3d2f689

arecord -f cd -Dhw:1 test.wav
aplay -Dhw:0 test.wav

reSpeaker 2-Mics Pi Hat for Raspberry Pi

Experiment: Install https://github.com/respeaker/seeed-voicecard/commit/41a09a3b67dc476b9ae2111d319e6941c3d2f689 commit of seeed-voicecard on fresh Raspberry Pi OS Lite. Record voice and play it, then reboot. Listen to recorded voice with headphones connected to reSpeaker 2-Mics Pi Hat for Raspberry Pi.

Hypothesis: If problem exists, I wouldn't be able to hear sound after reboot.

Results: Sound is played at normal volume after reboots, the alsamixer settings are as in the following screenshot(persist between reboots). image

Conclusion: Cannot reproduce the behavior you described. However, I did run into similar problem on the first try - what was different that time is that 1) desktop image was used 2) originally soundcard drivers were installed and configured for Linear Mic Kit 3) I ran into this issue and had to mitigate it by stopping piwiz and deleting it from autostart. On that setup headphones output was muted indeed - but it is hard to say what exactly caused the problem.

Recommend action:

Here are some threads on stackexchange on similar topics: https://raspberrypi.stackexchange.com/questions/13666/alsa-volume-lower-after-reboot https://askubuntu.com/questions/50067/howto-save-alsamixer-settings

AIWintermuteAI commented 2 years ago

Closing the issue due to the lack of activity. Feel free to re-open if issue persists.