TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: DENNIS LEE BIEBER
date: 2019-12-19 17:26:00
subject: Re: Problem: No sound out

On Thu, 19 Dec 2019 17:55:24 +0100, "R.Wieser" 
declaimed the following:

>Hello all,
>
>Problem: I cannot get sound outof of the audio-jack.  :-(
>
>Using "speaker-test" the HDMI output does give sound.  Currently I even have
>set "raspi-config" to force sound over the audio-jack, but it seems to gets
>ignored.   Right-clicking the loudpeaker icon in the top-right of my display
>I can select "analogue" and "hdmi", but it goes over hdmi every time (also,
>the volume alwas drops to near-to-nothing when I select something, and the
>tickmark is gone whenever I reopen the box)
>

 If you are running in a graphical environment (which I presume given
mention of the speaker icon), try running a web browser and selecting
something from YouTube. I will have to state that my R-Pi3B+ does not seem
to be able to run VNC server and playback YouTube at real time -- BUT I do
get sound off the analog jack.

 In truth, I get sound on the analog output regardless of the analog or
HDMI selection -- but the HDMI selection is completely illegible while
analog selection is just running slow and rumbly.

 Now -- if an HDMI monitor is connected... It may be that the HDMI
driver overrides the selection based upon the information from the
connected monitor. As mentioned, I'm remoting in using VNC viewer on
Windows and the VNC server running on R-Pi.

>I've tried to google for solution, but didn't find anything (other than a
>"reinstall your OS" suggestion).
>
>Board: 3B+
>OS:  NOOBS v3.2.0 (not sure which Linux version)
>

pi@rpi3bplus-1:~$ uname -a
Linux rpi3bplus-1 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l
GNU/Linux

3.2 should be Buster -- but the current full NOOBS is 3.2.1 dated September
30 (NOOBS Lite is 3.2 dated July 10 -- which maps to the formal release of
Debian Buster)

>Bonus question:
>Using Python I printed a "\a" (which google said would generate a beep), but
>got nothing (other than displaying a "landline telephone" character).  Is

 The "alert" character only produces a sound if the terminal/console is
configured to interpret the character and generate a sound. So, for
example, if you used a SSH client to get to the R-Pi, then it would be upon
that SSH client (and the computer it is running on) to produce the alert
sound when the  character is received by it.

 If you are seeing a glyph in the console, then that console is mapping
 to a graphic character and not attempting to trigger a sound on
whatever machine the console is running.

 I don't even think the regular "terminal" on the R-Pi activates on
. Using SSH, PuTTY on my Windows box produces a noise for the
character (along with just trying to delete on an empty line), but a VNC
session to the same R-Pi produces no sounds from a terminal console.

>there another way to generate (a simple) sound using Python (other than
>shelling to to an external program I mean) ?

 It is dependent upon the console in use

alert.py
-=-=-=-
print("\a\a\a\a")
-=-=-=-
pi@rpi3bplus-1:~$ python3 alert.py


produces a chime in PuTTY on Windows. Doing the same from an R-Pi console
window in via VNC produces silence. (And this is on a machine where I do
hear audio from YouTube, regardless of the analog/HDMI setting). Could not
get sound from an MP3 in the VLC media player.


--
 Wulfraed                 Dennis Lee Bieber         AF6VN
 wlfraed@ix.netcom.com    http://wlfraed.microdiversity.freeddns.org/

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.