You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The pi requires some more steps to make it karaoke-ready. It would be great to automate this in scripts. Namely
Disable screen blanking (turns off the screen)
Select default audio output (HDMI or 3.5mm out)
Describe the solution you'd like
Add some user prompts to the setup.sh script that will handle additional pi setup steps. Here's what raspi-config is doing under the hood, copying a file and restarting:
Would it be possible to add two "links" to the info screen for selecting the audio output? Today I created two shortcuts on the desktop that call a bash to change.
When I want the audio output to be via HDMI, I run the bash that has these lines:
sudo sed -i 's/defaults.ctl.card 1/defaults.ctl.card 0/' /usr/share/alsa/alsa.conf
sudo sed -i 's/defaults.pcm.card 1/defaults.pcm.card 0/' /usr/share/alsa/alsa.conf
sudo shutdown -r now
When I want the audio output to be through the 3.5mm out, I run the bash that has these lines:
sudo sed -i 's/defaults.ctl.card 0/defaults.ctl.card 1/' /usr/share/alsa/alsa.conf
sudo sed -i 's/defaults.pcm.card 0/defaults.pcm.card 1/' /usr/share/alsa/alsa.conf
sudo shutdown -r now
Is your feature request related to a problem? Please describe.
The pi requires some more steps to make it karaoke-ready. It would be great to automate this in scripts. Namely
Describe the solution you'd like
Add some user prompts to the setup.sh script that will handle additional pi setup steps. Here's what raspi-config is doing under the hood, copying a file and restarting:
Screen blanking
https://github.com/RPi-Distro/raspi-config/blob/9ef367eda1f18328b2c47e7347fc9eb6ebdbb657/raspi-config#L442-L446
Audio output
https://github.com/RPi-Distro/raspi-config/blob/9ef367eda1f18328b2c47e7347fc9eb6ebdbb657/raspi-config#L2175-L2267
Describe alternatives you've considered
Is raspi-config scriptable? Seems so. That might be a better approach:
https://forums.raspberrypi.com/viewtopic.php?t=21632
The text was updated successfully, but these errors were encountered: