You are not logged in.
After executing the 'modprobe -r pcspkr' command, then using the Firefox browser to play a video, the speaker can still produce sound. Is this a bug?
sorry,i made a mistake,
it's loudspeaker , the audio/sound device ,not the beep device
The order of operations is
mute the audio/sound device,(laptop built-in audio/sound device)
reboot laptop,
start firefox or mpv, play video,
they unmute
Solution:
it is normal for a program to unmute the sound device.
need to use PulseAudio to manage the device.
PulseAudio can do it, but alsamixer can't.
Last edited by ip2015 (2023-01-11 09:41:25)
Offline
Does anything on this page help: https://wiki.archlinux.org/title/PC_speaker ?
Offline
Does anything on this page help: https://wiki.archlinux.org/title/PC_speaker ?
My device is a laptop, I followed chapters 2.2 and 2.3, but it didn't work.
Offline
headkase wrote:Does anything on this page help: https://wiki.archlinux.org/title/PC_speaker ?
My device is a laptop, I followed chapters 2.2 and 2.3, but it didn't work.
So you blacklisted the module and rebooted?
Offline
ip2015 wrote:headkase wrote:Does anything on this page help: https://wiki.archlinux.org/title/PC_speaker ?
My device is a laptop, I followed chapters 2.2 and 2.3, but it didn't work.
So you blacklisted the module and rebooted?
yes,but it didn't work.
Offline
When testing, even after I muted the speaker, Firefox could unmute after every reboot
Offline
I've never known Firefox to use the motherboard "speaker". All that can produce is crude bleeps.
Is the problematic sound the same as you hear if you switch to a console screen, log in and press the left arrow (←) on the keyboard?
I use this file at /etc/modprobe.d/pcspkr.conf to stop the sound:
install pcspkr /bin/trueThat will stop the module from being loaded by other modules, unlike the example given in the ArchWiki.
Jin, Jîyan, Azadî
Offline
headkase wrote:ip2015 wrote:My device is a laptop, I followed chapters 2.2 and 2.3, but it didn't work.
So you blacklisted the module and rebooted?
yes,but it didn't work.
After rebootimg, please post here
# lsmodIn addition to
###/etc/modprobe.d/nobeep.conf
blacklist pcspkralso add this:
### /etc/modprobe.d/blacklist.conf
install pcspkr /bin/truethen regenerate the InitRamFS and reboot.
<49,17,III,I> Fama di loro il mondo esser non lassa;
<50,17,III,I> misericordia e giustizia li sdegna:
<51,17,III,I> non ragioniam di lor, ma guarda e passa.
Offline
I've never known Firefox to use the motherboard "speaker". All that can produce is crude bleeps.
Is the problematic sound the same as you hear if you switch to a console screen, log in and press the left arrow (←) on the keyboard?
I use this file at /etc/modprobe.d/pcspkr.conf to stop the sound:
install pcspkr /bin/trueThat will stop the module from being loaded by other modules, unlike the example given in the ArchWiki.
sorry,i made a mistake,
it's loudspeaker , the audio/sound device ,not the beep device
Offline
ip2015 wrote:headkase wrote:So you blacklisted the module and rebooted?
yes,but it didn't work.
After rebootimg, please post here
# lsmodIn addition to
###/etc/modprobe.d/nobeep.conf blacklist pcspkralso add this:
### /etc/modprobe.d/blacklist.conf install pcspkr /bin/truethen regenerate the InitRamFS and reboot.
sorry,i made a mistake,
it's loudspeaker , the audio/sound device ,not the beep device
Offline
The order of operations is
mute the audio/sound device,(laptop built-in audio/sound device)
reboot laptop,
start firefox or mpv, play video,
they unmute
Last edited by ip2015 (2023-01-11 08:24:58)
Offline
Please don't bump or full-quote posts w/o reason.
The pcspkr module is entirely unrelated to your sound chip.
mute the audio/sound device,
reboot laptop,
start firefox or mpc, play video,
they unmute
Is not gonna happen, the sound chip resets during the boot, you'll have to mute it afterwards - whether explicitly or w/ the alsa-restore.service doesn't matter, BUT
anything and everything (eg. your desktop session) can unmute it afterwards.
start firefox or mpc, play video
"mpc" is an mpd client, it doesn't play videos.
This is an w-x-y-z-problem:
You want to do something, came up w/ some bogus solution, tried to fix that in a bogus way (I assume you want to play mpv w/o sound?) and went about that addressing the wrong hardware.
=> Back to square one: what is your end-goal?
From your tasklist, I'd guess to play some sort of login animation or welcome video?
mpv -ao null welcomeporn.mp4will play a video w/o sound. Regardless of the general sound volume.
Offline
Please don't bump or full-quote posts w/o reason.
The pcspkr module is entirely unrelated to your sound chip.
Sorry, I misspelled the letter, it is mpv.
So, it is normal for a program to unmute the sound device.
My purpose is to disable the built-in speakers of the laptop,
and only allow the sound to be played using the headphones.
Can this goal be achieved?
Offline
Can this goal be achieved?
Yes, of yourse.
Use alsamixer or one of the maaaaaany (pulseaudio compatible) mixers, https://wiki.archlinux.org/title/PulseAudio#Front-ends
The specifics depend on your audio configuration.
Offline
Use alsamixer or one of the maaaaaany (pulseaudio compatible) mixers, https://wiki.archlinux.org/title/PulseAudio#Front-ends
The specifics depend on your audio configuration.
it's OK now.PulseAudio can do it, but alsamixer can't.
Last edited by ip2015 (2023-01-11 09:41:04)
Offline
thank you all
Offline