Talk:PC speaker

From ArchWiki
Jump to navigation Jump to search

Update might make this solution obsolete

I added this section to my bashrc (although it never really worked in my configuration).

In console You can add this command in /etc/profile or a dedicated file like /etc/profile.d/disable-beep.sh (must be executable): setterm -blength 0

However, the code remained in a test section of my local config. Earlier this month after an util-linux update, bash started complaining. Here's a post with a similar error.

https://bbs.archlinux.org/viewtopic.php?pid=1444324

Xtian (talk) 17:38, 27 August 2014 (UTC)

Add 'enable' settings, too?

It's good to have this page. Please, add the 'enable beep' settings, too. --T.ask (talk) 23:13, 9 March 2015 (UTC)

The beep is enabled by default, though, or do you have a specific issue in mind? -- Alad (talk) 03:39, 10 March 2015 (UTC)
How to revert settings is important. --T.ask (talk) 10:39, 10 March 2015 (UTC)

Adding startup/boot sound

From Xfce. Trivial, but possibly useful if we go with the above suggestion. -- Alad (talk) 20:12, 30 March 2015 (UTC)

Arch does not have a built-in startup sound configuration tool, but there is a workaround by adding the following command to your Application Autostart settings:

aplay /boot/startupsound.wav

The file location and filename can be whatever you want, but naming it descriptively and putting it in /boot keeps things tidy.

PC speaker muted by power saving

Not sure where else to put this:

If the PC speaker beeps (as with the beep utility) remain silent even though the pcspkr module is loaded, the "Beep" channel is unmuted and at a good volume in alsamixer, and beep --verbose doesn't show any problems, one possible cause can be that the sound card is in power saving mode - you can try to debug this by playing music (to keep the card awake) in one virtual console and then beeping in another, if this works then it's a power saving issue. Apparently (depending on hardware) the beeps are actually fed as an analog input into the card, and will be ignored if the card is asleep.

Creating /etc/modprobe.d/snd-hda-intel.conf with contents options snd-hda-intel power_save=0, then rerunning mkinitcpio -P and rebooting solved it. A recent kernel update (between January and March 2021) seems to have enabled sound card power saving by default, at least for my device (Realtek ALC283 in an Intel NUC5PPYH). -- Dawidi (talk) 22:43, 24 March 2021 (UTC)

Hi Dawidi, this seems useful to have. I'd create a PC speaker#Troubleshooting section with this as a subsection - sort of how MariaDB#Unable to run mysql upgrade because MySQL cannot start is arranged as part of the MariaDB page. -- Pypi (talk) 04:48, 25 March 2021 (UTC)

snd_pcsp

This module also provides PC speaker functionality. By default on Arch-supported kernels, this module does not exist anymore (unless you explicitly choose to install it, re:snd-pcsp-dkmsAUR), but certain custom kernels such as linux-xanmodAUR include it by default, in which case you must also unload/blacklist snd_pcsp to properly disable the PC speaker.

Should a mention of it be re-added into the wiki page? Given that this only occurs if you use unsupported software, it might not belong on the wiki, but I thought I'd bring it up here, in case others think otherwise.

-- Ammako (talk) 23:52, 17 September 2021 (UTC)