Hi all, 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.
Mark Peveto Registered Linux user number 600552 Everything happens after coffee!
On Wed, 15 Mar 2017 17:20:34 -0500 (CDT) Mark Peveto southernprince73@gmail.com wrote:
Hi all, 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.
I don't use the PC speaker, and I think that it is turned off in the fedora kernels, so in order to enable it, you will have to compile a custom kernel. Or maybe I just have it turned off in my custom compiles.
It's under device drivers/sound devices in the config menus. If you have a stock Fedora kernel installed, do a grep for PCSPKR in the corresponding config file in /boot to check the status.
I recall that a few years ago the alsa developers were talking about disabling it by default in alsa as well, so it might also be turned off in the Fedora package. You could probably set an option to turn it on in alsa again if the kernel supports it.
Maybe someone else on the list uses the PC speaker and can confirm that it works.
On 03/15/2017 04:44 PM, stan wrote:
On Wed, 15 Mar 2017 17:20:34 -0500 (CDT) Mark Peveto southernprince73@gmail.com wrote:
Hi all, 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.
I don't use the PC speaker, and I think that it is turned off in the fedora kernels, so in order to enable it, you will have to compile a custom kernel. Or maybe I just have it turned off in my custom compiles.
It's under device drivers/sound devices in the config menus. If you have a stock Fedora kernel installed, do a grep for PCSPKR in the corresponding config file in /boot to check the status.
I recall that a few years ago the alsa developers were talking about disabling it by default in alsa as well, so it might also be turned off in the Fedora package. You could probably set an option to turn it on in alsa again if the kernel supports it.
Maybe someone else on the list uses the PC speaker and can confirm that it works.
Default Fedora kernels include the driver as a module, "pcspkr.ko.xz", so you'd need to modprobe it in. What you'd do with it, I have no idea.
It's useful when the BIOS pukes during self test mode, but I have no use for it beyond that. Most of the ones I've seen recently aren't even speakers anymore, but piezoelectric buzzers. Pretty useless to try to do anything except "beep" at you. ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, AllDigital ricks@alldigital.com - - AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 - - - - Treat each day as if it's your last...a lot of crying and whining - - usually gets you what you want! -- Sam Sledge - ----------------------------------------------------------------------
Once upon a time, Mark Peveto southernprince73@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".
For me, sometimes those beeps are handy. I'll keep looking for a solution.
Mark Peveto Registered Linux user number 600552 Everything happens after coffee!
On Wed, 15 Mar 2017, Rick Stevens wrote:
On 03/15/2017 04:44 PM, stan wrote:
On Wed, 15 Mar 2017 17:20:34 -0500 (CDT) Mark Peveto southernprince73@gmail.com wrote:
Hi all, 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.
I don't use the PC speaker, and I think that it is turned off in the fedora kernels, so in order to enable it, you will have to compile a custom kernel. Or maybe I just have it turned off in my custom compiles.
It's under device drivers/sound devices in the config menus. If you have a stock Fedora kernel installed, do a grep for PCSPKR in the corresponding config file in /boot to check the status.
I recall that a few years ago the alsa developers were talking about disabling it by default in alsa as well, so it might also be turned off in the Fedora package. You could probably set an option to turn it on in alsa again if the kernel supports it.
Maybe someone else on the list uses the PC speaker and can confirm that it works.
Default Fedora kernels include the driver as a module, "pcspkr.ko.xz", so you'd need to modprobe it in. What you'd do with it, I have no idea.
It's useful when the BIOS pukes during self test mode, but I have no use for it beyond that. Most of the ones I've seen recently aren't even speakers anymore, but piezoelectric buzzers. Pretty useless to try to do anything except "beep" at you.
- Rick Stevens, Systems Engineer, AllDigital ricks@alldigital.com -
- AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 -
-- Treat each day as if it's your last...a lot of crying and whining -
usually gets you what you want! -- Sam Sledge -
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org
Cool! I'll save this message, and write up that script after supper! Appreciate the idea.
Mark Peveto Registered Linux user number 600552 Everything happens after coffee!
On Wed, 15 Mar 2017, Chris Adams wrote:
Once upon a time, Mark Peveto southernprince73@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@cmadams.net _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org