Hondo's Cabin
http://www.hondosackett.com/yabb/YaBB.pl
The Cabin >> Raspberry and Other Pies >> Sound
http://www.hondosackett.com/yabb/YaBB.pl?num=1449004353

Message started by Jeanette on Dec 1st, 2015, 4:12pm

Title: Sound
Post by Jeanette on Dec 1st, 2015, 4:12pm

I'm running Jessie on a Pi 1 Model B. The Rasberry is connected to a TV through a HDMI cable. When I play a video on You Tube I get video but no sound. I also tried head phones through the audio jack, still nothing.

Jeanette Isabelle

Title: Re: Sound
Post by Fernando on Dec 1st, 2015, 4:58pm

There is a Page 2 to this Raspberry Pi Forum listing - this is on the second page:

http://www.hondosackett.com/yabb/YaBB.pl?num=1415761568

You need to open a terminal window in the GUI and type:

sudo amixer cset numid=3 n
(where n is: 0 = Auto, 1 = Audio/Headphone Jack, 2 = HDMI)

Then

sudo amixer -c 0 cset numid=3 n
(where n is: 0 = Auto, 1 = Audio/Headphone Jack, 2 = HDMI)

Then reboot the R-Pi.

Since you are using the headphone jack - n = 1
n = 0 only works (rarely) if you had the headphones jack in first. If you are using the HDMI to VGA Adapter, n = 0 will not work.

If the R-Pi asks for a User/Password, the standard User/PW is raspberry/pi for the superuser.

Title: Re: Sound
Post by Jeanette on Dec 1st, 2015, 8:07pm

I tried all three options. Audio/Headphone Jack is the only one that worked. I'm using the same monitor and HDMI cable I use for my Mac mini with no adaptors.

Jeanette Isabelle

Title: Re: Sound
Post by Fernando on Dec 1st, 2015, 9:03pm

It is a Mac Monitor? Mac Monitors (usually) do not have speakers built in but the Mac Mini does have a speaker inside it.

If the Mac Mini has external speakers, you should be able to unplug them from the Mac Mini and plug them into the R-Pi.

Though the headphones have 3 connectors on the jack for stereo sound, if you use with 4 - for headphones with a built-in mic - you can get sound-in for the R-Pi. Unfortunately, this is in Mono, not stereo sound input.

Title: Re: Sound
Post by Jeanette on Dec 1st, 2015, 9:31pm


Fernando wrote:
It is a Mac Monitor? Mac Monitors (usually) do not have speakers built in but the Mac Mini does have a speaker inside it.

The monitor I'm using is a TV. I'm getting sound from the TV, not Mac's built in speaker.

Jeanette Isabelle

Title: Re: Sound
Post by Fernando on Dec 1st, 2015, 10:16pm

Interesting.

And it's the same cable from the Mac using to the R-Pi HDMI, it should give sound on the TV.

This to me sounds like a ASLI Configuration error in the Config file. I had to go to the Raspberry Pi .org site and found this:
https://www.raspberrypi.org/documentation/configuration/audio-config.md
"IF YOU'RE STILL NOT GETTING SOUND VIA HDMI

In some rare cases, it is necessary to edit config.txt to force HDMI mode (as opposed to DVI mode, which does not send sound). You can do this by editing /boot/config.txt and setting hdmi_drive=2, then rebooting for the change to take effect."


and
https://www.raspberrypi.org/forums/viewtopic.php?t=5062
"What is the display? HDMI or DVI? Is it a computer monitor?

My guess is its a computer monitor which reports its preferred mode is a DMT mode. DMT is only well defined in DVI mode, and DVI can't do audio."


When you do these changes, you need to go to the console and revert the audio selection to either Auto or HDMI (see post above) and reboot the R-Pi. Hopeully it will work from there.

Title: Re: Sound
Post by Jeanette on Dec 2nd, 2015, 5:01pm

I tried all of those things. I'll stick with Mac.

Jeanette Isabelle

Title: Re: Sound
Post by Fernando on Dec 2nd, 2015, 6:15pm

This is a problem with Linux itself and not with Raspberry Pi; as I seen and experienced this with PCs and Linux many times. Its something about the ASLI Driver. (I use Suse and Mandrake Linux on a few PCs with DualBoots with Windows XP, and what works fine with Windows is a struggle with Linux.)

My R-Pi's are hooked up to headphones so I use that console command to set the Bootable SD to use headphones.

Don't give up on the R-Pi, as far as I know it could be a dead HDMI Audio section. At least you have some experience with them. Expand on your knowledge. At least you have audio through the headphones.

Hondo had a similar problem, maybe he will post his fix when he posts here.

Title: Re: Sound
Post by Jeanette on Dec 2nd, 2015, 7:41pm


Fernando wrote:
Don't give up on the R-Pi, as far as I know it could be a dead HDMI Audio section.

What is the HDMI audio section?

Jeanette Isabelle

Title: Re: Sound
Post by Fernando on Dec 2nd, 2015, 9:25pm


Jeanette wrote:
What is the HDMI audio section?

Jeanette Isabelle


You are a brave one if you are going to attempt any soldering on the board. Let me say now, that very difficult even with a surface mounted technology/device hot air gun.

(Looking at one of my Model B under a magnifying glass to verify this...)
The HDMI Audio section is from HDMI Port and lead back to the CPU/GPU directly. What's under the CPU/GPU? Who knows. The Audio Jack runs from a separate connection to the CPU/GPU. So the Amplifier is inside the CPU/GPU. Rarely the problem is in the CPU/GPU. It is usually the HDMI Port or the connection to it's port if it is a hardware problem.

I still think that this is a software problem, and its in the config file.

Somewhere, I need to find it again, there is a config setting and console line input to turn on both the HDMI audio and the headphone audio. Though this link is for a single device output, have you tinkered with the raspi-config? It's in the middle of the page of this link:
https://www.raspberrypi.org/documentation/configuration/audio-config.md

ELinux Troubleshooting Wiki has a bit more Raspberry Pi information you could try - I linked it to the sound since the whole page is about issues one may have with the R-Pi and possible solutions. ELinux is a Linux support site and not a Raspberry Pi Site but do support the R-Pi because it uses several forms of Linux.
http://elinux.org/R-Pi_Troubleshooting#Sound
http://elinux.org/R-Pi_Troubleshooting#Sound_does_not_work_with_an_HDMI_monitor

BTW - I checked, there is no way to have sound out of Audio Jack and HDMI at the same time.


Title: Re: Sound
Post by Hondo I. Sackett on Dec 2nd, 2015, 9:48pm

i didn't mess much more with the sound as I had other issues more pressing and ended up letting it sit. it was on one with a preloaded arcade setup. I had graphics issues, stalling issues, problems switching between game types, inability to save games, and every time you want to end a game you had to reset the whole system by pulling the power. they made no button to exit the game. Part of te reason I put it side was to mess with something more important. wanted to get back to it by now as I had planned on making original looking arcade machines with changeable games, that could double as a jukebox for game rooms. not necessarily to sell, at first, but for Christmas gifts. there are some new and better looking programs out there I might look into instead that I have read are more stable.

all I can sugest is getting another and a different version of linux. try the same system in a different pi and if it works then its a pi problem, if it still doesn't try the different OS. the pi's are very changeable to fit your project but not as forgiving as a PC.

Title: Re: Sound
Post by Fernando on Dec 2nd, 2015, 10:00pm

I went through the config file of Wheezy I use for the R-Pi2 and an older Wheezy for my R-Pi Model B & B+, an found this in the config file:


Quote:
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2


Uncommenting the second red line was mentioned before, the first red line was not; only in my past post that links ELinux. There they say to add this:
hdmi_force_hotplug=1 (by uncommenting it in the config file)
hdmi_force_edid_audio=1 (by adding it under the one above to the config file)



Title: Re: Sound
Post by Fernando on Dec 2nd, 2015, 10:28pm


Hondo I. Sackett wrote:
there are some new and better looking programs out there I might look into instead that I have read are more stable.

all I can sugest is getting another and a different version of linux. try the same system in a different pi and if it works then its a pi problem, if it still doesn't try the different OS. the pi's are very changeable to fit your project but not as forgiving as a PC.


I use PiMame, which is a bit of a headache to configure, but once it is set, it runs nicely to an extent... Some emulations it can not do or do so with problems: Sega Genesis and Playstation emulations are too slow and jittery. And computers - you need the files in their proper place like your Atari 800 files in the Atari 800 folder and your Commodore files in your Commodore folders, and finally there are 2 sets of arcade ROMs, you would need to dump them all into the Mame4All folder and then see what games crap out, note them and then move them into the MAME folder.

There are some Atari 800 games listed under as Arcade Machine files. They will not work unless you put a file "mf_achas.zip" in the Mame4All or MAME Folder, and the Atari 800 games will work on the arcade emulator.

On the R-Pi 2 and Banana Pi (I have not tried it on either), arcade emulation is a lot cleaner and faster because of their increased RAM and Dual Core (on the B-Pi) and Quad Core (on the R-Pi 2) processors. RetroPi has been updated for the R-Pi2, but not PiMame.

EDIT: I forgot to ask - is the config file set to overclock the R-Pi? With arcade emulation, the R-Pi should be overclocked to 900MHz safely without heatsinks. Higher speeds can be achieved but for an arcade emulator - you should get heatsinks for the R-Pi.

Title: Re: Sound
Post by Hondo I. Sackett on Dec 2nd, 2015, 11:31pm

not sure if it is or not. I bought a "pre setup" package online last november. they didn't d a good job. most the games "work" but it's poorly setup. I need to dig it out again. can't seem to locate it right off hand. It could be anywhere. thats why I need my own damned house so I can setup a computer/electronics area and not have anyone bitching about me leaving stuff in one area! I think the emulator was retro pi on that one. don't get me wrong, the old pi boards have their place but these newer dual core units are the way to go. plan to run a banana or a cubie in the arcade so I can pull songs (for the jukebox part) off a sata drive.

Title: Re: Sound
Post by Fernando on Dec 3rd, 2015, 12:03am

I'll get an SD Card or two and send you a copy of mine. I know it works. It even saved a marriage...

Last year my friend came to NYC from Seattle, he grew up here, went to the Navy, got married and been there since. But while he was over here, he as telling me that his wife was giving him BS and Drama, and told him that she would cut it out and behave if he got her a Q-Bert arcade Machine - the actual machine. Why? I don't know. The woman is strange like that... but I got him an R-Pi Mod and gave him one of my PiMame distro on it and put in the 3 Q-Bert Arcade games made. I showed him how it works on my R-Pi and he was like - We need to build a mini console! He got a cigar box and a 10in screen and a few other things and had it built in a couple of days! (He's good with his hands, then again he was a nuke arms tech on the Nimitz... sooo...)

He went back to Seattle with the mini arcade and gave it to his wife. Long story short, it saved his marriage according to him, but he complains that she's on the mini arcade all the time - LOL!

What can I say?
@!#?@!

Title: Re: Sound
Post by Jeanette on Dec 3rd, 2015, 9:23am


Fernando wrote:
I still think that this is a software problem, and its in the config file.

Somewhere, I need to find it again, there is a config setting and console line input to turn on both the HDMI audio and the headphone audio. Though this link is for a single device output, have you tinkered with the raspi-config? It's in the middle of the page of this link:
https://www.raspberrypi.org/documentation/configuration/audio-config.md

ELinux Troubleshooting Wiki has a bit more Raspberry Pi information you could try - I linked it to the sound since the whole page is about issues one may have with the R-Pi and possible solutions. ELinux is a Linux support site and not a Raspberry Pi Site but do support the R-Pi because it uses several forms of Linux.
http://elinux.org/R-Pi_Troubleshooting#Sound
http://elinux.org/R-Pi_Troubleshooting#Sound_does_not_work_with_an_HDMI_monitor

I tried that. I switched back to the headphone for the time being so I can listen to Megurine Luka sing “Scarborough Fair.”

Jeanette Isabelle

Title: Re: Sound
Post by Jeanette on Dec 3rd, 2015, 9:27am


Fernando wrote:
I went through the config file of Wheezy I use for the R-Pi2 and an older Wheezy for my R-Pi Model B & B+, an found this in the config file:


Quote:
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2


Uncommenting the second red line was mentioned before, the first red line was not; only in my past post that links ELinux. There they say to add this:
hdmi_force_hotplug=1 (by uncommenting it in the config file)
hdmi_force_edid_audio=1 (by adding it under the one above to the config file)

I tried that.

Jeanette Isabelle

Title: Re: Sound
Post by Fernando on Dec 3rd, 2015, 10:26am

Sorry to hear that nothing but the audio jack has worked, Jeanette.

Title: Re: Sound
Post by Jeanette on Dec 3rd, 2015, 10:56am

I'll try Hondo's idea and try another Pi; the one I want to get is currently sold out.

Jeanette Isabelle

Title: Re: Sound
Post by Fernando on Dec 3rd, 2015, 11:26am

Which one?

Either way, the Models A, A+, B, B+ and I suspect the R-Pi:0 use a 5V 1amp "cellphone charger." The R-Pi 2 needs more power to run due to its 4 core CPU, so you will need a 5V 2amp charger to run it.

Title: Re: Sound
Post by Jeanette on Dec 3rd, 2015, 12:12pm

The Pi 2 Model B

Jeanette Isabelle

Title: Re: Sound
Post by Fernando on Dec 3rd, 2015, 12:33pm

Yeah, that requires a "stronger" 2amp charger.

Where are you ordering it from? In NYC, I get them from Tinkersphere:
http://tinkersphere.com/31-raspberry-pi

Then there is ebay and the Raspberry Pi Forum on raspberrypi.org.

Title: Re: Sound
Post by Jeanette on Dec 4th, 2015, 10:49am

I tried other operating systems. I got sound out of the speakers when I used OSMC. Other than that, I couldn't get OSMC do much of anything. At least I know it's not a hardware problem.

Jeanette Isabelle

Title: Re: Sound
Post by Fernando on Dec 4th, 2015, 10:31pm

Maybe you should copy the configuration of OSMC and port it to Rasbian and see if it works? Personally i would not mind looking at it to see what the difference is. I still believe that it is an ALSA issue.

Title: Re: Sound
Post by Jeanette on Dec 5th, 2015, 7:30pm

The config.txt files of the two operating systems are very different.

One thing I have not tried yet is installing Jessie instead of NOOBS on the SD Card.

Jeanette Isabelle

Title: Re: Sound
Post by Fernando on Dec 5th, 2015, 9:38pm

???Huh???

If you installed Raspbian from NOOBS, that's Jessie. Raspbian-09-2015 and Raspbian-01-2015 is Jessie; these work with the Raspberry Pi 2 and the others before it.

Raspbian-11-2014 and before is Wheezy, which only works with the older Raspberry Pi's before the R-Pi 2. It will not work on R-Pi 2; which begs to question - does Raspbian 4.1 (For Banana Pi) work on the R-Pi 2? It does work on the other R-Pi's.

So in my Artificial Dumbness - I have to ask, you going to download Raspbian directly?

Title: Re: Sound
Post by Jeanette on Dec 6th, 2015, 6:09am


Fernando wrote:
So in my Artificial Dumbness - I have to ask, you going to download Raspbian directly?

Yes. I tried every other suggestion and we know the hardware works. What if there is something going on when I use NOOBS?

Jeanette Isabelle

Title: Re: Sound
Post by Fernando on Dec 6th, 2015, 11:17am

You can try but I doubt it. I believe it is a Linux issue with their ALSA (ALSI) Problem and not a hardware problem like you stated.

The hardware itself has not changed much from the Model B to the B+ or to the R-Pi2. It is still 2 chips and the same "audio and video" hardware. Only thing that has changed is the USB I/O an that was with the addition of the second chip.

The firmware update should have taken care of any issues with the software (ie: GPU Mapping with RAM). It should not affected the audio hardware.

Title: Re: Sound
Post by Fernando on Dec 6th, 2015, 11:52am

I searched through the Raspberry Pi forum on RaspberryPi.org and I seen several posts about sound problems with Jessie, regardless of what R-Pi is being used. It does look like an ALSA Problem. The solution is somewhere out there. The thing is where?

Here's the link to their forum: https://www.raspberrypi.org/forums/

Here's the link to the Raspbian Branch: https://www.raspberrypi.org/forums/viewforum.php?f=66

Here's a couple of links of Sound problems, but yet no real working answer that I see:
https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=125045&p=838493&hilit=sound+Jessie+problem#p838493
https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=109379&p=752027&hilit=sound+Jessie+problem#p752027
https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=124384&p=834934&hilit=sound+Jessie+problem#p834934

and a link from the last post:
http://superuser.com/questions/989385/alsa-base-conf-missing-in-new-raspberry-pi-raspbian-jesse

Title: Re: Sound
Post by Fernando on Dec 6th, 2015, 12:15pm

Another thing I noticed on the posts, is that a couple of users stating that Sound works fine on Wheezy, but not on Jessie. You have Wheezy with the "Game" SD, if you have not erased it. Do this test:

Boot up the Game SD, and move through the menu to enter the RaspPi-Config, and check out the audio section and set it for HDMI.

Get out of RaspPi-Config and exit to Terminal, and type in the "sudo" commands to switch it to HDMI as it is already set for Headphones.

Reboot with sudo shutdown -r now

Let it go through it's boot process. If I'm right, you should be able to go to AvancedMame or Mame4All and play any video game as a test for sound. Try Donkey Kong or PacMan Series on AdvancedMame; or Crazy Kong or PacMan Series on Mame4All. If I am right, there should be sound on the HDMI monitor.

Hondo's Cabin » Powered by YaBB 2.1!
YaBB © 2000-2005. All Rights Reserved.