I hope thie Framework laptop is capable of beeping whenever an application asks for the PC Speaker, which is a traditional component available on most desktops. Some laptops are able to beep through the integrated soundcard, but it appears to depend on how the manufacturer implements the feature. It is usefull to help e.g. blind and low vision people who wants to dual boot their machine; they can make use of a grub Play command to issue a beep when the menu to choose an OS appears.
One way to check whether the machine beeps is loading the CONFIG_INPUT_PCSPKR Linux kernel module, then typing the shell command “tput bel”.
One might also download a Linux distro such as Slint, which beeps as soon as it boots:
Yep, we do support mainboard beep through the integrated speakers.
Anyone know how to make it work in Linux? No matter what I try, I get no beep.
My integrated speakers are not producing beep in ubuntu 20.04 and in GNU GRUB. The only thing I can hear was a pop noise from the speaker. I have
As an experienced novice, I too am interested in the beep cmd code . . . I believe it goes in the boot grub file, but how?
I’m interested in further answers from the Framework team.
When we’re asking about “beeping”, we mean specifically that we want to beep through the PC Speaker interface (in Linux, located at
/dev/input/by-path/platform-pcspkr- event-spkr) which ideally you’d be able to set to 1/0 using
tee to continually turn on and off the speaker interface.
This enables square sign waves using PWM.
Although it seems Framework does expose this interface when the
pcspkr module is enabled,
udev rules are set correctly, attempting to use the speaker interface produces “pops” and “cracks”, not square waves like it’s supposed to.
So it “works” but does not produce the expected behavior. Niether the
beep command, nor
GRUB_INIT_TUNE setting, nor the
pc-beeper Rust libraries are able to produce sound through the PC speaker interface; all of them produce pops and cracks. Is it possible that this interface is simply not supported?
If it is not, is there any known way to create a driver for such a system such that a PC speaker interface could be used? It would be great for UEFI beeps to indicate boot option, or entering a boot menu for the blind (a project I’m currently working on). If all else fails, I assume we could use Intel HD audio instead?
The “we support beeps through the internal speaker” is either somewhat misleading, or my setup is borked.