开云体育

Sound card changed from Card 2 to Card 1


 

开云体育

Greetings,

?

After doing an update on a Raspberry Pi , I found Direwolf could not find my soundcard (Fe-Pi). It turned out that the sound card is now Card 1 rather than Card ?2. I don’t even know what card 1 was. Thankfully, there was no hair pulling or long searching to find the problem and change the direwolf.conf to reflect the new card number. However, that is less than ideal. Reserving a card number for this particular device seems practical, or, configuring Direwolf to find my device regardless of the card number. The first actually seems possible.

?

On this system, an HDMI monitor is connected and once it is removed, I suspect the card number may once again change and since Direwolf will look for card 1, it will not work. I have not verified this.

?

In my searches:

I found a reference to editing alsa-base.conf but that looks depreciated permanently.

I found a reference, from 2015, to editing alsa.conf in /usr/share/alsa and changing default.ctl.card and default.pcm.card to card 1. The question I have is how does this point to my specific sound card?

?

Am I barking up the right tree? Any pointers? Is there a better way?

?

Thank you!

?

Best regards,

Fred N7FMH

?

?

pi@RPiZ-DWLiFe:~ $ aplay -l

**** List of PLAYBACK Hardware Devices ****

card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]

? Subdevices: 8/8

? Subdevice #0: subdevice #0

? Subdevice #1: subdevice #1

? Subdevice #2: subdevice #2

? Subdevice #3: subdevice #3

? Subdevice #4: subdevice #4

? Subdevice #5: subdevice #5

? Subdevice #6: subdevice #6

? Subdevice #7: subdevice #7

card 1: Audio [Fe-Pi Audio], device 0: Fe-Pi HiFi sgtl5000-0 [Fe-Pi HiFi sgtl5000-0]

? Subdevices: 0/1

? Subdevice #0: subdevice #0

pi@RPiZ-DWLiFe:~ $

?

?


This email has been checked for viruses by Avast antivirus software.




 

开云体育


Hello Fred,

I've never seen the built-in Broadcom (bcm2835) sound device NOT being device #0 but depending on your unique setup, maybe plugging in HDMI later, etc, it could happen.? Anyway, the answer you seek depends if you want to keep the onboard sound working or you want to disable it.? This URL gives you a few options:

??

--David
KI6ZHD



On 09/15/2021 06:29 PM, Fred Hillhouse wrote:

Greetings,

?

After doing an update on a Raspberry Pi , I found Direwolf could not find my soundcard (Fe-Pi). It turned out that the sound card is now Card 1 rather than Card ?2. I don’t even know what card 1 was. Thankfully, there was no hair pulling or long searching to find the problem and change the direwolf.conf to reflect the new card number. However, that is less than ideal. Reserving a card number for this particular device seems practical, or, configuring Direwolf to find my device regardless of the card number. The first actually seems possible.

?

On this system, an HDMI monitor is connected and once it is removed, I suspect the card number may once again change and since Direwolf will look for card 1, it will not work. I have not verified this.

?

In my searches:

I found a reference to editing alsa-base.conf but that looks depreciated permanently.

I found a reference, from 2015, to editing alsa.conf in /usr/share/alsa and changing default.ctl.card and default.pcm.card to card 1. The question I have is how does this point to my specific sound card?

?

Am I barking up the right tree? Any pointers? Is there a better way?

?

Thank you!

?

Best regards,

Fred N7FMH

?

?

pi@RPiZ-DWLiFe:~ $ aplay -l

**** List of PLAYBACK Hardware Devices ****

card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]

? Subdevices: 8/8

? Subdevice #0: subdevice #0

? Subdevice #1: subdevice #1

? Subdevice #2: subdevice #2

? Subdevice #3: subdevice #3

? Subdevice #4: subdevice #4

? Subdevice #5: subdevice #5

? Subdevice #6: subdevice #6

? Subdevice #7: subdevice #7

card 1: Audio [Fe-Pi Audio], device 0: Fe-Pi HiFi sgtl5000-0 [Fe-Pi HiFi sgtl5000-0]

? Subdevices: 0/1

? Subdevice #0: subdevice #0

pi@RPiZ-DWLiFe:~ $

?

?


This email has been checked for viruses by Avast antivirus software.





 

开云体育

I can confirm that connecting an HDMI device will add a sound card to the system.? Where it will end up in the numbering scheme is anyone's guess.? In my case it changed the USB dongle's ID, causing Direwolf exit on startup for not having an appropriate audio device to talk to.? This was on Raspbian Buster, with no special audio system configuration changes.

Greg? KO6TH


David Ranch wrote:


Hello Fred,

I've never seen the built-in Broadcom (bcm2835) sound device NOT being device #0 but depending on your unique setup, maybe plugging in HDMI later, etc, it could happen.? Anyway, the answer you seek depends if you want to keep the onboard sound working or you want to disable it.? This URL gives you a few options:

??

--David
KI6ZHD



On 09/15/2021 06:29 PM, Fred Hillhouse wrote:

Greetings,

?

After doing an update on a Raspberry Pi , I found Direwolf could not find my soundcard (Fe-Pi). It turned out that the sound card is now Card 1 rather than Card ?2. I don’t even know what card 1 was. Thankfully, there was no hair pulling or long searching to find the problem and change the direwolf.conf to reflect the new card number. However, that is less than ideal. Reserving a card number for this particular device seems practical, or, configuring Direwolf to find my device regardless of the card number. The first actually seems possible.

?

On this system, an HDMI monitor is connected and once it is removed, I suspect the card number may once again change and since Direwolf will look for card 1, it will not work. I have not verified this.

?

In my searches:

I found a reference to editing alsa-base.conf but that looks depreciated permanently.

I found a reference, from 2015, to editing alsa.conf in /usr/share/alsa and changing default.ctl.card and default.pcm.card to card 1. The question I have is how does this point to my specific sound card?

?

Am I barking up the right tree? Any pointers? Is there a better way?

?

Thank you!

?

Best regards,

Fred N7FMH

?

?

pi@RPiZ-DWLiFe:~ $ aplay -l

**** List of PLAYBACK Hardware Devices ****

card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]

? Subdevices: 8/8

? Subdevice #0: subdevice #0

? Subdevice #1: subdevice #1

? Subdevice #2: subdevice #2

? Subdevice #3: subdevice #3

? Subdevice #4: subdevice #4

? Subdevice #5: subdevice #5

? Subdevice #6: subdevice #6

? Subdevice #7: subdevice #7

card 1: Audio [Fe-Pi Audio], device 0: Fe-Pi HiFi sgtl5000-0 [Fe-Pi HiFi sgtl5000-0]

? Subdevices: 0/1

? Subdevice #0: subdevice #0

pi@RPiZ-DWLiFe:~ $

?

?


This email has been checked for viruses by Avast antivirus software.






 

I. have also observed this behavior: ?the sound on HDMI gets configured as a sound device, and it seems to take the lower number.

So, I always configure my system level setup including network using a local monitor and configure Direwolf over an ssh connection.

I believe aplay -l will identify the various sound?cards present.

On Wed, Sep 15, 2021 at 9:29 PM Fred Hillhouse <fmhillhouse@...> wrote:

Greetings,

?

After doing an update on a Raspberry Pi , I found Direwolf could not find my soundcard (Fe-Pi). It turned out that the sound card is now Card 1 rather than Card ?2. I don’t even know what card 1 was. Thankfully, there was no hair pulling or long searching to find the problem and change the direwolf.conf to reflect the new card number. However, that is less than ideal. Reserving a card number for this particular device seems practical, or, configuring Direwolf to find my device regardless of the card number. The first actually seems possible.

?

On this system, an HDMI monitor is connected and once it is removed, I suspect the card number may once again change and since Direwolf will look for card 1, it will not work. I have not verified this.

?

In my searches:

I found a reference to editing alsa-base.conf but that looks depreciated permanently.

I found a reference, from 2015, to editing alsa.conf in /usr/share/alsa and changing default.ctl.card and default.pcm.card to card 1. The question I have is how does this point to my specific sound card?

?

Am I barking up the right tree? Any pointers? Is there a better way?

?

Thank you!

?

Best regards,

Fred N7FMH

?

?

pi@RPiZ-DWLiFe:~ $ aplay -l

**** List of PLAYBACK Hardware Devices ****

card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]

? Subdevices: 8/8

? Subdevice #0: subdevice #0

? Subdevice #1: subdevice #1

? Subdevice #2: subdevice #2

? Subdevice #3: subdevice #3

? Subdevice #4: subdevice #4

? Subdevice #5: subdevice #5

? Subdevice #6: subdevice #6

? Subdevice #7: subdevice #7

card 1: Audio [Fe-Pi Audio], device 0: Fe-Pi HiFi sgtl5000-0 [Fe-Pi HiFi sgtl5000-0]

? Subdevices: 0/1

? Subdevice #0: subdevice #0

pi@RPiZ-DWLiFe:~ $

?

?


This email has been checked for viruses by Avast antivirus software.





--

73,
AB1PH
Don Rolph


 

You can force Raspian to always enable the HDMI port (even if no monitor/cable is attached).
This may "even the score", in that the HDMI device should always be enabled and therefore take the lower number.

From a forum on Raspian:
Add these two lines to /boot/config.txt and reboot:
hdmi_force_hotplug=1
hdmi_drive=2


hdmi_force_hotplug=1
sets the Raspbmc to use HDMI mode even if no HDMI monitor is detected. hdmi_drive=2 sets the Raspbmc to normal HDMI mode (Sound will be sent if supported and enabled). Without this line, the Raspian would switch to DVI (with no audio) mode by default.

Worth a try!

Robert Giuliano
KB8RCO



On Thursday, September 16, 2021, 06:21:10 AM EDT, Don Rolph <don.rolph@...> wrote:


I. have also observed this behavior: ?the sound on HDMI gets configured as a sound device, and it seems to take the lower number.

So, I always configure my system level setup including network using a local monitor and configure Direwolf over an ssh connection.

I believe aplay -l will identify the various sound?cards present.

On Wed, Sep 15, 2021 at 9:29 PM Fred Hillhouse <fmhillhouse@...> wrote:

Greetings,

?

After doing an update on a Raspberry Pi , I found Direwolf could not find my soundcard (Fe-Pi). It turned out that the sound card is now Card 1 rather than Card ?2. I don’t even know what card 1 was. Thankfully, there was no hair pulling or long searching to find the problem and change the direwolf.conf to reflect the new card number. However, that is less than ideal. Reserving a card number for this particular device seems practical, or, configuring Direwolf to find my device regardless of the card number. The first actually seems possible.

?

On this system, an HDMI monitor is connected and once it is removed, I suspect the card number may once again change and since Direwolf will look for card 1, it will not work. I have not verified this.

?

In my searches:

I found a reference to editing alsa-base.conf but that looks depreciated permanently.

I found a reference, from 2015, to editing alsa.conf in /usr/share/alsa and changing default.ctl.card and default.pcm.card to card 1. The question I have is how does this point to my specific sound card?

?

Am I barking up the right tree? Any pointers? Is there a better way?

?

Thank you!

?

Best regards,

Fred N7FMH

?

?

pi@RPiZ-DWLiFe:~ $ aplay -l

**** List of PLAYBACK Hardware Devices ****

card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]

? Subdevices: 8/8

? Subdevice #0: subdevice #0

? Subdevice #1: subdevice #1

? Subdevice #2: subdevice #2

? Subdevice #3: subdevice #3

? Subdevice #4: subdevice #4

? Subdevice #5: subdevice #5

? Subdevice #6: subdevice #6

? Subdevice #7: subdevice #7

card 1: Audio [Fe-Pi Audio], device 0: Fe-Pi HiFi sgtl5000-0 [Fe-Pi HiFi sgtl5000-0]

? Subdevices: 0/1

? Subdevice #0: subdevice #0

pi@RPiZ-DWLiFe:~ $

?

?


This email has been checked for viruses by Avast antivirus software.





--

73,
AB1PH
Don Rolph


 

The below text works with all pre Pi4 models.? For the pi 4, with 2 HDMI outputs, I believe you put a colon between:
# Force HDMI ON for HDMI0
hdmi_force_hotplug=1:0
# Set video output to monitor and not TV
hdmi_group=2:0
# Set HDMI resolution 1920x1080
hdmi_mode=82:0
# Set HDMI sound enabled
hdmi_drive=2:0
I use this when run monitorless.? When I connect a monitor for something quick, there is much less hassle with settings like resolution, etc.? I have not tried this for the audio part though.

Robert Giuliano
KB8RCO



On Thursday, September 16, 2021, 08:00:55 AM EDT, Rob Giuliano <kb8rco@...> wrote:


You can force Raspian to always enable the HDMI port (even if no monitor/cable is attached).
This may "even the score", in that the HDMI device should always be enabled and therefore take the lower number.

From a forum on Raspian:
Add these two lines to /boot/config.txt and reboot:
hdmi_force_hotplug=1
hdmi_drive=2


hdmi_force_hotplug=1
sets the Raspbmc to use HDMI mode even if no HDMI monitor is detected. hdmi_drive=2 sets the Raspbmc to normal HDMI mode (Sound will be sent if supported and enabled). Without this line, the Raspian would switch to DVI (with no audio) mode by default.

Worth a try!

Robert Giuliano
KB8RCO



On Thursday, September 16, 2021, 06:21:10 AM EDT, Don Rolph <don.rolph@...> wrote:


I. have also observed this behavior: ?the sound on HDMI gets configured as a sound device, and it seems to take the lower number.

So, I always configure my system level setup including network using a local monitor and configure Direwolf over an ssh connection.

I believe aplay -l will identify the various sound?cards present.

On Wed, Sep 15, 2021 at 9:29 PM Fred Hillhouse <fmhillhouse@...> wrote:

Greetings,

?

After doing an update on a Raspberry Pi , I found Direwolf could not find my soundcard (Fe-Pi). It turned out that the sound card is now Card 1 rather than Card ?2. I don’t even know what card 1 was. Thankfully, there was no hair pulling or long searching to find the problem and change the direwolf.conf to reflect the new card number. However, that is less than ideal. Reserving a card number for this particular device seems practical, or, configuring Direwolf to find my device regardless of the card number. The first actually seems possible.

?

On this system, an HDMI monitor is connected and once it is removed, I suspect the card number may once again change and since Direwolf will look for card 1, it will not work. I have not verified this.

?

In my searches:

I found a reference to editing alsa-base.conf but that looks depreciated permanently.

I found a reference, from 2015, to editing alsa.conf in /usr/share/alsa and changing default.ctl.card and default.pcm.card to card 1. The question I have is how does this point to my specific sound card?

?

Am I barking up the right tree? Any pointers? Is there a better way?

?

Thank you!

?

Best regards,

Fred N7FMH

?

?

pi@RPiZ-DWLiFe:~ $ aplay -l

**** List of PLAYBACK Hardware Devices ****

card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]

? Subdevices: 8/8

? Subdevice #0: subdevice #0

? Subdevice #1: subdevice #1

? Subdevice #2: subdevice #2

? Subdevice #3: subdevice #3

? Subdevice #4: subdevice #4

? Subdevice #5: subdevice #5

? Subdevice #6: subdevice #6

? Subdevice #7: subdevice #7

card 1: Audio [Fe-Pi Audio], device 0: Fe-Pi HiFi sgtl5000-0 [Fe-Pi HiFi sgtl5000-0]

? Subdevices: 0/1

? Subdevice #0: subdevice #0

pi@RPiZ-DWLiFe:~ $

?

?


This email has been checked for viruses by Avast antivirus software.





--

73,
AB1PH
Don Rolph


 

开云体育

iirc, this disables hdmi audio in /boot/config.txt

dtparam=audio=off


also "cat /proc/asound/cards" for the list of audio devices.


If you're headless, also put "tvservice -o" in /etc/rc.local ? to disable hdmi video, save a few milliamps.


cool,
-craig
KM6LYW



On 9/16/21 5:21 AM, Rob Giuliano via groups.io wrote:

The below text works with all pre Pi4 models.? For the pi 4, with 2 HDMI outputs, I believe you put a colon between:
# Force HDMI ON for HDMI0
hdmi_force_hotplug=1:0
# Set video output to monitor and not TV
hdmi_group=2:0
# Set HDMI resolution 1920x1080
hdmi_mode=82:0
# Set HDMI sound enabled
hdmi_drive=2:0
I use this when run monitorless.? When I connect a monitor for something quick, there is much less hassle with settings like resolution, etc.? I have not tried this for the audio part though.

Robert Giuliano
KB8RCO



On Thursday, September 16, 2021, 08:00:55 AM EDT, Rob Giuliano <kb8rco@...> wrote:


You can force Raspian to always enable the HDMI port (even if no monitor/cable is attached).
This may "even the score", in that the HDMI device should always be enabled and therefore take the lower number.

From a forum on Raspian:
Add these two lines to /boot/config.txt and reboot:
hdmi_force_hotplug=1
hdmi_drive=2


hdmi_force_hotplug=1
sets the Raspbmc to use HDMI mode even if no HDMI monitor is detected. hdmi_drive=2 sets the Raspbmc to normal HDMI mode (Sound will be sent if supported and enabled). Without this line, the Raspian would switch to DVI (with no audio) mode by default.

Worth a try!

Robert Giuliano
KB8RCO



On Thursday, September 16, 2021, 06:21:10 AM EDT, Don Rolph <don.rolph@...> wrote:


I. have also observed this behavior: ?the sound on HDMI gets configured as a sound device, and it seems to take the lower number.

So, I always configure my system level setup including network using a local monitor and configure Direwolf over an ssh connection.

I believe aplay -l will identify the various sound?cards present.

On Wed, Sep 15, 2021 at 9:29 PM Fred Hillhouse <fmhillhouse@...> wrote:

Greetings,

?

After doing an update on a Raspberry Pi , I found Direwolf could not find my soundcard (Fe-Pi). It turned out that the sound card is now Card 1 rather than Card ?2. I don’t even know what card 1 was. Thankfully, there was no hair pulling or long searching to find the problem and change the direwolf.conf to reflect the new card number. However, that is less than ideal. Reserving a card number for this particular device seems practical, or, configuring Direwolf to find my device regardless of the card number. The first actually seems possible.

?

On this system, an HDMI monitor is connected and once it is removed, I suspect the card number may once again change and since Direwolf will look for card 1, it will not work. I have not verified this.

?

In my searches:

I found a reference to editing alsa-base.conf but that looks depreciated permanently.

I found a reference, from 2015, to editing alsa.conf in /usr/share/alsa and changing default.ctl.card and default.pcm.card to card 1. The question I have is how does this point to my specific sound card?

?

Am I barking up the right tree? Any pointers? Is there a better way?

?

Thank you!

?

Best regards,

Fred N7FMH

?

?

pi@RPiZ-DWLiFe:~ $ aplay -l

**** List of PLAYBACK Hardware Devices ****

card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]

? Subdevices: 8/8

? Subdevice #0: subdevice #0

? Subdevice #1: subdevice #1

? Subdevice #2: subdevice #2

? Subdevice #3: subdevice #3

? Subdevice #4: subdevice #4

? Subdevice #5: subdevice #5

? Subdevice #6: subdevice #6

? Subdevice #7: subdevice #7

card 1: Audio [Fe-Pi Audio], device 0: Fe-Pi HiFi sgtl5000-0 [Fe-Pi HiFi sgtl5000-0]

? Subdevices: 0/1

? Subdevice #0: subdevice #0

pi@RPiZ-DWLiFe:~ $

?

?


This email has been checked for viruses by Avast antivirus software.





--

73,
AB1PH
Don Rolph


 

开云体育

Hi David,

?

Back from vacationing in Maine!

?

The link you added looks very helpful! It lead me to another:

It looks quite complete.

?

I have to read through it again now that I am back at the desk and see what I can do.

?

Below is what I had put in Direwolf.conf to help me remember. At some point I did connect an HDMI monitor.

?

# find the Fe-Pi!

?

# pi@RPiZ-DWTW:~ $ aplay -l

# **** List of PLAYBACK Hardware Devices ****

# card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]

#?? Subdevices: 4/4

#?? Subdevice #0: subdevice #0

#?? Subdevice #1: subdevice #1

#?? Subdevice #2: subdevice #2

#?? Subdevice #3: subdevice #3

# card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]

#?? Subdevices: 4/4

#?? Subdevice #0: subdevice #0

#?? Subdevice #1: subdevice #1

#?? Subdevice #2: subdevice #2

#?? Subdevice #3: subdevice #3

# card 2: Audio [Fe-Pi Audio], device 0: Fe-Pi HiFi sgtl5000-0 [Fe-Pi HiFi sgtl5000-0]

#?? Subdevices: 1/1

#?? Subdevice #0: subdevice #0

# pi@RPiZ-DWTW:~ $

?

Best regards,

Fred N7FMH

?

From: [email protected] [mailto:[email protected]] On Behalf Of David Ranch
Sent: Wednesday, September 15, 2021 11:10 PM
To: [email protected]
Subject: Re: [direwolf] Sound card changed from Card 2 to Card 1

?


Hello Fred,

I've never seen the built-in Broadcom (bcm2835) sound device NOT being device #0 but depending on your unique setup, maybe plugging in HDMI later, etc, it could happen.? Anyway, the answer you seek depends if you want to keep the onboard sound working or you want to disable it.? This URL gives you a few options:

??

--David
KI6ZHD


On 09/15/2021 06:29 PM, Fred Hillhouse wrote:

Greetings,

?

After doing an update on a Raspberry Pi , I found Direwolf could not find my soundcard (Fe-Pi). It turned out that the sound card is now Card 1 rather than Card ?2. I don’t even know what card 1 was. Thankfully, there was no hair pulling or long searching to find the problem and change the direwolf.conf to reflect the new card number. However, that is less than ideal. Reserving a card number for this particular device seems practical, or, configuring Direwolf to find my device regardless of the card number. The first actually seems possible.

?

On this system, an HDMI monitor is connected and once it is removed, I suspect the card number may once again change and since Direwolf will look for card 1, it will not work. I have not verified this.

?

In my searches:

I found a reference to editing alsa-base.conf but that looks depreciated permanently.

I found a reference, from 2015, to editing alsa.conf in /usr/share/alsa and changing default.ctl.card and default.pcm.card to card 1. The question I have is how does this point to my specific sound card?

?

Am I barking up the right tree? Any pointers? Is there a better way?

?

Thank you!

?

Best regards,

Fred N7FMH

?

?

pi@RPiZ-DWLiFe:~ $ aplay -l

**** List of PLAYBACK Hardware Devices ****

card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]

? Subdevices: 8/8

? Subdevice #0: subdevice #0

? Subdevice #1: subdevice #1

? Subdevice #2: subdevice #2

? Subdevice #3: subdevice #3

? Subdevice #4: subdevice #4

? Subdevice #5: subdevice #5

? Subdevice #6: subdevice #6

? Subdevice #7: subdevice #7

card 1: Audio [Fe-Pi Audio], device 0: Fe-Pi HiFi sgtl5000-0 [Fe-Pi HiFi sgtl5000-0]

? Subdevices: 0/1

? Subdevice #0: subdevice #0

pi@RPiZ-DWLiFe:~ $

?

?


This email has been checked for viruses by Avast antivirus software.




?