<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=6295&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Daedalus silences PC speaker]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=6295</link>
		<description><![CDATA[The most recent posts in [SOLVED] Daedalus silences PC speaker.]]></description>
		<lastBuildDate>Fri, 01 Mar 2024 17:29:24 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Daedalus silences PC speaker]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=48595#p48595</link>
			<description><![CDATA[<p>I was having this same problem with Daedalus installed on a Thinkpad T430. <br />I had installed the <span class="bbc">beep</span> package but it didn&#039;t sound, I solved it by following these steps:</p><div class="quotebox"><blockquote><div><p>I solved the problem using <span class="bbc">alsamixer</span>.<br />first I need to find the correct <span class="bbc">card</span> ( switched with F6 )<br />then I have to switch <span class="bbc">loopback</span> in <span class="bbc">alsamixer</span> to enabled.<br /><span class="bbc">unmute</span> beep by press <span class="bbc">m</span> button and <span class="bbc">volume up</span> beep.<br />then, the last important thing -<br />i figured out that beep not work if the <span class="bbc">microfone</span> volume below 0% -<br />so i turn it to 1% in <span class="bbc">alsamixer</span> and then it works!!</p></div></blockquote></div><p>source: <a href="https://github.com/spkr-beep/beep/issues/13#issuecomment-637058344" rel="nofollow">https://github.com/spkr-beep/beep/issue … -637058344</a></p>]]></description>
			<author><![CDATA[dummy@example.com (g4570n)]]></author>
			<pubDate>Fri, 01 Mar 2024 17:29:24 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=48595#p48595</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Daedalus silences PC speaker]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=48105#p48105</link>
			<description><![CDATA[<p>Found out what had disabled my beep in terminals and other programs such as nedit.</p><p>I used to set up every desktop here to start in runlevel 3 (or manual mode), followed by a startx. Always worked. As long as I can remember.</p><p>Now with Devuan 5 (because Debian) there are some changes, some of which I probably haven&#039;t tripped over yet. One of them is the retched beep which is somehow disabled if you run a window manager, such as fluxbox, openbox or blackbox, <strong>without a display manager</strong>. That&#039;s the key.</p><p>The differences are subtle, but they annoyed the hell out of not just me here (no audible feedback when backspacing or deleting into the void, no feedback on tab completion etc).</p><p>Finally got everything working by using lightdm, which is compact enough and very light on dependencies. Even corrected the misaligned positioning of the hostname that someone reported about four years ago and which was fixed last month, but hadn&#039;t filtered through to debian and then devuan.</p><p>Disadvantage: because ssh-agent wants to be started before windows are opened for business - and I don&#039;t like the many dependencies that come with all the alternatives - I opted for ssh-askpass, which, as a pure X11 app, is uglier than ..., let&#039;s just say pretty it&#039;s not.</p><p>But that&#039;s something for another day.</p>]]></description>
			<author><![CDATA[dummy@example.com (ks)]]></author>
			<pubDate>Tue, 13 Feb 2024 15:13:51 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=48105#p48105</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Daedalus silences PC speaker]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=46723#p46723</link>
			<description><![CDATA[<p># Readline is set to produce an audible bell?</p><p>Well, in /etc/inputrc (which I hadn&#039;t checked) was<br />&#160; # set bell-style none<br />which I changed to<br />&#160; set bell-style audible<br />and it made. Made no difference. </p><p>Strange that /usr/bin/beep and the script you posted both beep. <br />beep writes to /dev/input/by-path/platform-pcspkr-event-spkr, unfortunately strace doesn&#039;t show anything beep or io related when I try anything other than the beep command.</p><p>But from a list of 15 things to sort out post installation I&#039;m down to five, two of which I still don&#039;t know how to do. But not today.</p>]]></description>
			<author><![CDATA[dummy@example.com (ks)]]></author>
			<pubDate>Mon, 01 Jan 2024 19:11:37 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=46723#p46723</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Daedalus silences PC speaker]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=46702#p46702</link>
			<description><![CDATA[<p>It&#039;s not mine, it&#039;s just some random script I stole &#039;cause I&#039;m too lazy to write an evdev test in a more sane language, and it&#039;s simple enough for even non snake-charmers to see it&#039;s not a bomb <img src="https://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /><br />Readline is set to produce an audible bell? (/etc/inputrc and ~/.inputrc)?</p>]]></description>
			<author><![CDATA[dummy@example.com (steve_v)]]></author>
			<pubDate>Sun, 31 Dec 2023 14:18:54 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=46702#p46702</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Daedalus silences PC speaker]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=46697#p46697</link>
			<description><![CDATA[<p>@UnixMan1230:</p><p>Nothing&#039;s blacklisted in /etc/modprobe.d</p><p>@steve_v:</p><p>Just tried your python script, it does indeed beep. Unfortunately I&#039;m none the wiser why traditional beeps don&#039;t work.</p>]]></description>
			<author><![CDATA[dummy@example.com (ks)]]></author>
			<pubDate>Sun, 31 Dec 2023 09:51:24 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=46697#p46697</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Daedalus silences PC speaker]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=46691#p46691</link>
			<description><![CDATA[<p>The console bell is something I find incredibly irritating, so while do I know how to kill it with fire I&#039;m probably of rather less use when it comes to the opposite. <img src="https://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><p>That said, (assuming we&#039;re talking about a real hardware pc-speaker here, not pc-speaker emulation) I&#039;d probably start with going through the configuration items (inputrc / xset etc.) and potential permissions issues listed in the <a href="https://wiki.gentoo.org/wiki/PC_speaker" rel="nofollow">usual</a> <a href="https://wiki.archlinux.org/title/PC_speaker" rel="nofollow">places</a>. Most of it is biased towards eradicating the bell, but such advice should also work in reverse.</p><p>That the &#039;beep&#039; command works suggests to me that your problem is likely either terminal configuration related, or something (e.g alsa or pulseaudio) is trying to redirect bell output to your sound card.<br />In the alsa case, IIRC that&#039;s controlled by e.g. SND_HDA_INPUT_BEEP and SND_HDA_INPUT_BEEP_MODE in the kernel config. As for pulse... Don&#039;t use, don&#039;t know, sorry.</p><p>Ed. Out of interest, does this beep?</p><div class="codebox"><pre class="vscroll"><code>#!/usr/bin/env python
&quot;&quot;&quot;Beep PC Speaker using Linux evdev API.

To make /dev/input/by-path/platform-pcspkr-event-spkr device available, run:

    root# modprobe pcspkr
&quot;&quot;&quot;
import ctypes
import math
import os
import time

EV_SND = 0x12  # linux/input-event-codes.h
SND_TONE = 0x2  # ditto
time_t = suseconds_t = ctypes.c_long

class Timeval(ctypes.Structure):
    _fields_ = [(&#039;tv_sec&#039;, time_t),       # seconds
                (&#039;tv_usec&#039;, suseconds_t)] # microseconds

class InputEvent(ctypes.Structure):
    _fields_ = [(&#039;time&#039;, Timeval),
                (&#039;type&#039;, ctypes.c_uint16),
                (&#039;code&#039;, ctypes.c_uint16),
                (&#039;value&#039;, ctypes.c_int32)]

frequency = 440  # Hz, A440 in ISO 16
device = &quot;/dev/input/by-path/platform-pcspkr-event-spkr&quot;
pcspkr_fd = os.open(device, os.O_WRONLY)  # root! + modprobe pcspkr
fsec, sec = math.modf(time.time())  # current time
ev = InputEvent(time=Timeval(tv_sec=int(sec), tv_usec=int(fsec * 1000000)),
                type=EV_SND,
                code=SND_TONE,
                value=frequency)
os.write(pcspkr_fd, ev)  # start beep
try:
    time.sleep(0.2)  # 200 milliseconds
finally:
    ev.value = 0  # stop
    os.write(pcspkr_fd, ev)</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (steve_v)]]></author>
			<pubDate>Sat, 30 Dec 2023 22:32:45 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=46691#p46691</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Daedalus silences PC speaker]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=46688#p46688</link>
			<description><![CDATA[<p>check under /etc/modprobe.d and see if anything has blacklisted the pcspkr module</p>]]></description>
			<author><![CDATA[dummy@example.com (UnixMan1230)]]></author>
			<pubDate>Sat, 30 Dec 2023 21:29:09 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=46688#p46688</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Daedalus silences PC speaker]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=46684#p46684</link>
			<description><![CDATA[<p>Since I installed daedalus I have another problem: PC speaker is unwilling<br />to beep. ^G, &#039;\007&#039; etc to console or /dev/tty don&#039;t work. The only thing that <br />does, is /usr/bin/beep still produces a beep.</p><p>It&#039;s annoying because over the years I&#039;ve become used to my editor beeping<br />if a search was unsuccessful, or when hitting DEL at the beginning or end of<br />a line [or console input].</p><p>It _may_ have something to do with the fact that pulseaudio won&#039;t start now,<br />but so far it hasn&#039;t bothered me. I can use alsa to play music [if I find a<br />reasonable replacement for xmms2, otherwise I have to move the music to a<br />dedicated tiny system sitting idle here].</p><p>lspci reports my soundcard as<br />&#160; &#160;03:00.0 Multimedia audio controller: C-Media Electronics Inc CMI8738/CMI8768 \<br />&#160; &#160;PCI Audio (rev 10)</p><p>and the pcspkr module is loaded (snd_pcsp is not loaded and, if I understand<br />its purpose correctly, neither required for simple beeps).</p><p>tia</p><p>ks</p>]]></description>
			<author><![CDATA[dummy@example.com (ks)]]></author>
			<pubDate>Sat, 30 Dec 2023 19:27:43 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=46684#p46684</guid>
		</item>
	</channel>
</rss>
