You are not logged in.

#1 2023-01-11 02:12:43

ip2015
Member
Registered: 2022-12-26
Posts: 16

[SOLVED]laptop built-in audio/sound device issue

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

#2 2023-01-11 02:46:19

headkase
Member
Registered: 2011-12-06
Posts: 1,986

Re: [SOLVED]laptop built-in audio/sound device issue

Does anything on this page help: https://wiki.archlinux.org/title/PC_speaker ?

Offline

#3 2023-01-11 03:20:01

ip2015
Member
Registered: 2022-12-26
Posts: 16

Re: [SOLVED]laptop built-in audio/sound device issue

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.

Offline

#4 2023-01-11 03:43:55

headkase
Member
Registered: 2011-12-06
Posts: 1,986

Re: [SOLVED]laptop built-in audio/sound device issue

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?

Offline

#5 2023-01-11 04:28:15

ip2015
Member
Registered: 2022-12-26
Posts: 16

Re: [SOLVED]laptop built-in audio/sound device issue

headkase wrote:
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

#6 2023-01-11 04:36:18

ip2015
Member
Registered: 2022-12-26
Posts: 16

Re: [SOLVED]laptop built-in audio/sound device issue

When testing, even after I muted the speaker, Firefox could unmute after every reboot

Offline

#7 2023-01-11 07:10:11

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED]laptop built-in audio/sound device issue

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/true

That will stop the module from being loaded by other modules, unlike the example given in the ArchWiki.


Jin, Jîyan, Azadî

Offline

#8 2023-01-11 07:26:50

d.ALT
Member
Registered: 2019-05-10
Posts: 959

Re: [SOLVED]laptop built-in audio/sound device issue

ip2015 wrote:
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

# lsmod


In addition to

###/etc/modprobe.d/nobeep.conf
blacklist pcspkr

also add this:

### /etc/modprobe.d/blacklist.conf
install pcspkr /bin/true

then 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

#9 2023-01-11 08:00:28

ip2015
Member
Registered: 2022-12-26
Posts: 16

Re: [SOLVED]laptop built-in audio/sound device issue

Head_on_a_Stick wrote:

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/true

That 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

#10 2023-01-11 08:01:06

ip2015
Member
Registered: 2022-12-26
Posts: 16

Re: [SOLVED]laptop built-in audio/sound device issue

d.ALT wrote:
ip2015 wrote:
headkase wrote:

So you blacklisted the module and rebooted?

yes,but it didn't work.

After rebootimg, please post here

# lsmod


In addition to

###/etc/modprobe.d/nobeep.conf
blacklist pcspkr

also add this:

### /etc/modprobe.d/blacklist.conf
install pcspkr /bin/true

then regenerate the InitRamFS and reboot.

sorry,i made a mistake,
it's loudspeaker , the audio/sound device ,not the beep device

Offline

#11 2023-01-11 08:18:16

ip2015
Member
Registered: 2022-12-26
Posts: 16

Re: [SOLVED]laptop built-in audio/sound device issue

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

#12 2023-01-11 08:28:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,406

Re: [SOLVED]laptop built-in audio/sound device issue

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.mp4

will play a video w/o sound. Regardless of the general sound volume.

Offline

#13 2023-01-11 08:43:36

ip2015
Member
Registered: 2022-12-26
Posts: 16

Re: [SOLVED]laptop built-in audio/sound device issue

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

#14 2023-01-11 08:50:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,406

Re: [SOLVED]laptop built-in audio/sound device issue

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

#15 2023-01-11 09:20:43

ip2015
Member
Registered: 2022-12-26
Posts: 16

Re: [SOLVED]laptop built-in audio/sound device issue

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

#16 2023-01-11 09:21:33

ip2015
Member
Registered: 2022-12-26
Posts: 16

Re: [SOLVED]laptop built-in audio/sound device issue

thank you all

Offline

Board footer

Powered by FluxBB