rrodriguez1975 wrote:Hi all,
Thanks very much for helping me and guide in the right direction.
I agree with you, I think the problem is with systemd. It is really a shit!
I had already read all the links you post here related to arch linux, and I have made a lot of things commented in Arch linux forum but nothing stated there work for me.
I know that blacklisting by adding blacklist pcspkr in /etc/modprobe.d/modprobe.conf is not effective as it can be loaded by another processes or reason so as they said the effective way is what you say:
/etc/modprobe.d/blacklist.conf
...
install module_name /bin/false
...
But this is not completely true, I have blacklisted using this two ways and none is working, pcspkr module is being loaded anyway apparently by systemd....
Also I have tried at boot time parametrizing the kernel by adding pcspkr.disable=1 or modprobe.blacklist=pcspkr but nothing works so it seems to be a problem of systemd....
The reason because I have post my problem here is the following:
Initially I posted my problem in Arch linux forum of course, but it seems nobody knows what it is causing such annoying beep, and after reading a lot of information in arch forums and even in other forums related to other distros I have not found any effective method to solve this issue so I thought why not asking it in a forum more specialized in oss and with people expert on it? So googling I search this forum, and I thought it was the correct place to post it, so this is what I have done.
Anyway, in my previous old laptop (32 bits) that died, I had this distro installed and using oss and systemd and I never had this issue. This issue has appeared once I have migrated the distro to new laptop (64 bits) - I have put old hard drive into and external enclosure - and initially I thought that maybe in the oss configuration files there was something specific to the old laptop sound car so as the new laptop has a different one I thoguth I had to configure properly the oss configuration files to take it into account. Sorry by my ignorance but i am not an expert using oss...
I highly appreciate your help.
rrodriguez1975 wrote:I have blacklisted using this two ways and none is working, pcspkr module is being loaded anyway apparently by systemd....
The simplest solution:
- Code: Select all
$ lsmod | grep pcspkr
$ sudo rmmod pcspkr
$ sudo rmmod -f pcspkr
$ lsmod | grep pcspkr
- Code: Select all
$ whereis rmmod
rmmod: /sbin/rmmod /usr/share/man/man8/rmmod.8.gz
If it works, you may add a launcher to panel with command "sudo /sbin/rmmod pcspkr"
To make it more comfortable, you may add "/sbin/rmmod" to sudoers file.
It can be done with "gedit", or other text editor of your choice.
The manual is here:
https://wiki.archlinux.org/index.php/SudoEXAMPLE:
- Code: Select all
$ sudo EDITOR=gedit visudo
Add this line to the very bottom of the sudoers file:
- Code: Select all
[USERNAME] ALL = NOPASSWD: /sbin/rmmod
Substitute [USERNAME] with your user name. Example:
- Code: Select all
rodriguez ALL = NOPASSWD: /sbin/rmmod
In this case, "sudo /sbin/rmmod pcspkr" will not ask for password.
Therefore, you can also add "sudo /sbin/rmmod pcspkr" to StartUp applications.
When "annoying very loud beep" begins, click on the launcher to unload
pcspkr.
You may also try to add command
- Code: Select all
/sbin/rmmod pcspkr
to
/etc/rc.localSee:
https://wiki.archlinux.org/index.php/Rc ... 2Frc.localWARNING: It may not work with systemd.
You may also try to add
- Code: Select all
/sbin/rmmod pcspkr
to the
soundon script (at the beginning of the script).
It should work. The manual (with examples) is here:
viewtopic.php?f=3&t=5204- Code: Select all
$ whereis soundon
soundon: /usr/sbin/soundon /usr/share/man/man1/soundon.1.gz
If
pcspkr is constantly loaded by
systemd, you may try to remove
pcspkr from the kernel.
You may ask for help on Arch Linux forum. Although it is not very probable that they know how to do this, you may want to know how much they know about Linux.
In any case, you may ask
Cesium. He knows how to remove any modules from Linux kernel (and how to restore them). See:
viewtopic.php?f=3&t=5204Another option:
Linux Mint Mate 14 (preferably 32bit, because 64bit usually means the problem of "non-existing (or buggy) Linux drivers").
WARNING: The first thing to do with Linux Mint is to set
root password with
passwd Otherwise, you may soon need to learn
chroot to regain administrator privileges
https://wiki.archlinux.org/index.php/Change_RootPulseAudio no more requiredby stefano-k » Thu Jan 26, 2012 12:07 am
Upgrading to mate-settings-daemon-1.1.1, we readded support to gstreamer (instead of pulseaudio) for media (volume) keys. So,
now MATE dont requires PulseAudio.Now there are two packages that provides mate-settings-daemon:
- mate-settings-daemon-gstreamer (default): uses gstreamer to provides media keys.
- mate-settings-daemon-pulse: uses pulseaudio to provides media keys.
http://forums.mate-desktop.org/viewtopic.php?f=5&t=38
Could you please rename this topic? For example:
[Arch Linux, systemd] Very loud beep never stopsWhen this problem is solved, you may better start
a new thread, if you have questions about OSS4.
Preferably, one question per one thread.