Once upon a time, Mark Peveto <southernprince73(a)gmail.com> said:
New to Fedora, although not all that new to linux itself.
How do I go about enabling the pc speaker in Fedora 25? I can't seem to
find any blacklist file in modprobe.d, but it's definitely turned off.
Thanks.
Make a script in /etc/sysconfig/modules (name it "<something>.modules");
it just needs to be:
#!/bin/sh
modprobe pcspkr > /dev/null 2>&1 || :
and make it executable. That'll load the module on each boot. That
should be all you need for the console. To get it in X can depend on
the desktop; under MATE, I have the following in a script that I added
to the default applications list:
#!/bin/sh
pitch=698
len=100
xset b $len $pitch 60
xkbset bell
top=/org/mate/desktop/peripherals/keyboard
dconf write $top/bell-duration $len
dconf write $top/bell-pitch $pitch
IIRC xkbset is not in the default package set, but the RPM is just
called "xkbset".
--
Chris Adams <linux(a)cmadams.net>