Bug 5183 - system beep is enabled in Mga2 (in laptops)
Summary: system beep is enabled in Mga2 (in laptops)
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Colin Guthrie
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO, Triaged
Depends on:
Blocks:
 
Reported: 2012-04-01 22:26 CEST by Kamil Rytarowski
Modified: 2012-05-07 10:06 CEST (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Kamil Rytarowski 2012-04-01 22:26:19 CEST
Description of problem:
Hello!
I am using laptop, and there is killer system beep enabled, it's beeping in TTY (I have to manualy mute it), and it's also in X Window! It's noising every hour, from every software using it (Firefox, terminal, etc..).

If it was disabled in the past, please disable it now too. It's extreme laud in my laptop...
Comment 1 Manuel Hiebel 2012-04-02 01:36:37 CEST
Colin I guess you have an idea ? :)

Source RPM: (none) => colin.g

Manuel Hiebel 2012-04-02 01:37:11 CEST

CC: (none) => mageia
Source RPM: colin.g => (none)

Comment 2 Frank Griffin 2012-04-02 01:58:32 CEST
I didn't look up the associated bug reports, but years ago in Mandriva people complained about the beep and the pcspkr module got blacklisted.  Recently in a mageia bug report someone complained that the beep was "a good thing", and apparently somebody took him seriously and reversed this.

CC: (none) => ftg

Comment 3 Kamil Rytarowski 2012-04-02 02:12:00 CEST
(In reply to comment #2)
> I didn't look up the associated bug reports, but years ago in Mandriva people
> complained about the beep and the pcspkr module got blacklisted.  Recently in a
> mageia bug report someone complained that the beep was "a good thing", and
> apparently somebody took him seriously and reversed this.
$ sudo lsmod|grep pcspkr
$
Comment 4 Colin Guthrie 2012-04-02 09:56:31 CEST
(In reply to comment #2)
> I didn't look up the associated bug reports, but years ago in Mandriva people
> complained about the beep and the pcspkr module got blacklisted.  Recently in a
> mageia bug report someone complained that the beep was "a good thing", and
> apparently somebody took him seriously and reversed this.

It doesn't look like it's reversed to me:
http://svnweb.mageia.org/packages/cauldron/module-init-tools/current/SOURCES/blacklist-mga.conf?view=markup

(nor is it shown in history...)

I suspect some kind of h/w beep here. Can you post the output of amixer -c0?

If I'm right:
 amixer -c0 set Beep 0% mute
should fix it up.
Comment 5 Kamil Rytarowski 2012-04-02 10:09:22 CEST
[kamil@localhost ~]$ amixer 
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 65536 [100%] [on]
  Front Right: Playback 65536 [100%] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 65536
  Front Left: Capture 65536 [100%] [on]
  Front Right: Capture 65536 [100%] [on]
[kamil@localhost ~]$ amixer -cO
Invalid card number.
Usage: amixer <options> [command]

I was trying C1 C2 etc..
Comment 6 Colin Guthrie 2012-04-02 10:54:51 CEST
(In reply to comment #5)
> [kamil@localhost ~]$ amixer 

This is the PA wrapper, i.e. not that helpful sadly.

> [kamil@localhost ~]$ amixer -cO
> Invalid card number.

Use the number zero, not the letter O.
Comment 7 Kamil Rytarowski 2012-04-02 10:59:26 CEST
(In reply to comment #6)
> (In reply to comment #5)
> > [kamil@localhost ~]$ amixer -cO
> > Invalid card number.
> 
> Use the number zero, not the letter O.

I tested both with the letter and with the digit. There is the same result (invalid card number).
Comment 8 Colin Guthrie 2012-04-02 11:39:46 CEST
That would seem to suggest that you have no sound cards...

Next steps:
cat /proc/asound/cards
aplay -l
Comment 9 Kamil Rytarowski 2012-04-02 16:13:07 CEST
(In reply to comment #8)
> That would seem to suggest that you have no sound cards...
> 
> Next steps:
> cat /proc/asound/cards
> aplay -l

[kamil@localhost ~]$ cat /proc/asound/cards
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xfc500000 irq 46
 1 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xfc010000 irq 47
[kamil@localhost ~]$ aplay -l
aplay: device_list:252: no soundcards found...
Comment 10 Colin Guthrie 2012-04-02 16:16:05 CEST
Very odd. Smells like a permissions problem.

Can you do getfacl /dev/snd/pcm*?
Comment 11 Kamil Rytarowski 2012-04-02 16:17:40 CEST
(In reply to comment #10)
> Very odd. Smells like a permissions problem.
> 
> Can you do getfacl /dev/snd/pcm*?

[kamil@localhost ~]$ LC_ALL=C getfacl /dev/snd/pcm*
getfacl: Removing leading '/' from absolute path names
# file: dev/snd/pcmC0D0c
# owner: root
# group: audio
user::rw-
group::rw-
mask::rw-
other::---

# file: dev/snd/pcmC0D0p
# owner: root
# group: audio
user::rw-
group::rw-
mask::rw-
other::---

# file: dev/snd/pcmC1D3p
# owner: root
# group: audio
user::rw-
group::rw-
mask::rw-
other::---
Comment 12 Colin Guthrie 2012-04-02 16:20:53 CEST
Yup, you're not listed.

Did you use startx?

What does loginctl (or systemd-loginctl) say?
Comment 13 Kamil Rytarowski 2012-04-02 16:28:08 CEST
(In reply to comment #12)
> Yup, you're not listed.
> 
> Did you use startx?
I'm using SLIM - but probably there is the same issue like with startx.

Please remark that the LAUD beep is also in TTY when the system is installed without X, this is also very much undesirable. With this I can't use my computer on nights, outside home - the beep is too noisy.

(of course I can mute it manually - but this is not the right solution)
> 
> What does loginctl (or systemd-loginctl) say?

   SESSION        UID USER             SEAT            
         1        500 kamil            seat0           

1 sessions listed.
Comment 14 Colin Guthrie 2012-04-02 16:50:21 CEST
This is kinda messed up :s

Slim should work OK, as it's not launching a session from an exsiting one. Last time I tried it, it worked OK for me.

Anyway, try as root if all else fails:

sudo amixer -c0
and see if there is a Beep control.
Comment 15 Kamil Rytarowski 2012-04-02 17:06:10 CEST
(In reply to comment #14)
> This is kinda messed up :s
> 
> Slim should work OK, as it's not launching a session from an exsiting one. Last
> time I tried it, it worked OK for me.
> 
> Anyway, try as root if all else fails:
> 
> sudo amixer -c0
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 37 [58%] [-20.25dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',1
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Mic',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 3
  Front Left: Capture 0 [0%] [0.00dB]
  Front Right: Capture 0 [0%] [0.00dB]
Simple mixer control 'Mic Jack Mode',0
  Capabilities: enum
  Items: 'Mic In' 'Line In'
  Item0: 'Mic In'
Simple mixer control 'Beep',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 3
  Mono: Playback 1 [33%] [-12.00dB] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 15
  Front Left: Capture 8 [53%] [12.00dB] [on]
  Front Right: Capture 8 [53%] [12.00dB] [on]
Simple mixer control 'Internal Mic',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 3
  Front Left: Capture 0 [0%] [0.00dB]
  Front Right: Capture 0 [0%] [0.00dB]

> and see if there is a Beep control.
$ sudo  amixer -c0 set Beep 0% mute
Simple mixer control 'Beep',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 3
  Mono: Playback 0 [0%] [-18.00dB] [off]

--
After tests the beep is muted in X!

There is also another issue - no sound at all in flash nor in a console "paplay /usr/share/sounds/ekiga/newmessage.wav" is silent. I was too aware to disable the beep at all in X then to play anything else :)
Comment 16 Colin Guthrie 2012-04-02 17:29:00 CEST
> and see if there is a Beep control.
$ sudo  amixer -c0 set Beep 0% mute
Simple mixer control 'Beep',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 3
  Mono: Playback 0 [0%] [-18.00dB] [off]


After tests the beep is muted in X!

Good! It should hopefully be muted everywhere. PulseAudio will not touch this control so it's really something that needs to be configured specifically. AFAIK, this will be initialised to mute, but I'll have to double check that.

The output from (as root for now due to perms):

amixer -c0
alsactl init 0
amixer -c0

Would be useful (to see the differences from before and after init) It would also be good to set the value for Beep to something before running the init command in the hope that it will be initialised to something vaguely sensible.


As for no sound in other apps, this is simply due to the ACL problem. Your user cannot open the sound devices so you will instead get a "Dummy Output".

Once the ACL problems are solved this particular part of the issue will be fixed.

We need to debug Why your session is not currently getting ACLs first however. I'll try installing slim and see how it fairs.
Comment 17 Kamil Rytarowski 2012-04-02 19:09:47 CEST
(In reply to comment #16)
> > and see if there is a Beep control.
> $ sudo  amixer -c0 set Beep 0% mute
> Simple mixer control 'Beep',0
>   Capabilities: pvolume pvolume-joined pswitch pswitch-joined
>   Playback channels: Mono
>   Limits: Playback 0 - 3
>   Mono: Playback 0 [0%] [-18.00dB] [off]
> 
> 
> After tests the beep is muted in X!
> 
> Good! It should hopefully be muted everywhere. PulseAudio will not touch this
> control so it's really something that needs to be configured specifically.
> AFAIK, this will be initialised to mute, but I'll have to double check that.
> 
> The output from (as root for now due to perms):
> 
> amixer -c0
> alsactl init 0
> amixer -c0
> 
> Would be useful (to see the differences from before and after init) It would
> also be good to set the value for Beep to something before running the init
> command in the hope that it will be initialised to something vaguely sensible.


[kamil@localhost ~]$ sudo amixer -c0 set Beep 39% on
Simple mixer control 'Beep',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 3
  Mono: Playback 2 [67%] [-6.00dB] [on]

[kamil@localhost ~]$ sudo amixer -c0 
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 37 [58%] [-20.25dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',1
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Mic',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 3
  Front Left: Capture 0 [0%] [0.00dB]
  Front Right: Capture 0 [0%] [0.00dB]
Simple mixer control 'Mic Jack Mode',0
  Capabilities: enum
  Items: 'Mic In' 'Line In'
  Item0: 'Mic In'
Simple mixer control 'Beep',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 3
  Mono: Playback 2 [67%] [-6.00dB] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 15
  Front Left: Capture 8 [53%] [12.00dB] [on]
  Front Right: Capture 8 [53%] [12.00dB] [on]
Simple mixer control 'Internal Mic',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 3
  Front Left: Capture 0 [0%] [0.00dB]
  Front Right: Capture 0 [0%] [0.00dB]

[kamil@localhost ~]$ sudo alsactl init 0
Found hardware: "HDA-Intel" "IDT 92HD73C1X5" "HDA:111d7675,102802be,00100103" "0x1028" "0x02be"
Hardware is initialized using a generic method

[kamil@localhost ~]$ sudo amixer -c0 
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 37 [58%] [-20.25dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',1
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Mic',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 3
  Front Left: Capture 0 [0%] [0.00dB]
  Front Right: Capture 0 [0%] [0.00dB]
Simple mixer control 'Mic Jack Mode',0
  Capabilities: enum
  Items: 'Mic In' 'Line In'
  Item0: 'Mic In'
Simple mixer control 'Beep',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 3
  Mono: Playback 2 [67%] [-6.00dB] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 15
  Front Left: Capture 8 [53%] [12.00dB] [on]
  Front Right: Capture 8 [53%] [12.00dB] [on]
Simple mixer control 'Internal Mic',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 3
  Front Left: Capture 0 [0%] [0.00dB]
  Front Right: Capture 0 [0%] [0.00dB]




[kamil@localhost ~]$ # beep off
[kamil@localhost ~]$ sudo amixer -c0 set Beep 0% mute
Simple mixer control 'Beep',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 3
  Mono: Playback 0 [0%] [-18.00dB] [off]

[kamil@localhost ~]$ sudo amixer -c0 
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 37 [58%] [-20.25dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',1
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Mic',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 3
  Front Left: Capture 0 [0%] [0.00dB]
  Front Right: Capture 0 [0%] [0.00dB]
Simple mixer control 'Mic Jack Mode',0
  Capabilities: enum
  Items: 'Mic In' 'Line In'
  Item0: 'Mic In'
Simple mixer control 'Beep',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 3
  Mono: Playback 0 [0%] [-18.00dB] [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 15
  Front Left: Capture 8 [53%] [12.00dB] [on]
  Front Right: Capture 8 [53%] [12.00dB] [on]
Simple mixer control 'Internal Mic',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 3
  Front Left: Capture 0 [0%] [0.00dB]
  Front Right: Capture 0 [0%] [0.00dB]

[kamil@localhost ~]$ sudo alsactl init 0
Found hardware: "HDA-Intel" "IDT 92HD73C1X5" "HDA:111d7675,102802be,00100103" "0x1028" "0x02be"
Hardware is initialized using a generic method
[kamil@localhost ~]$ sudo amixer -c0 
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 37 [58%] [-20.25dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',1
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Mic',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 3
  Front Left: Capture 0 [0%] [0.00dB]
  Front Right: Capture 0 [0%] [0.00dB]
Simple mixer control 'Mic Jack Mode',0
  Capabilities: enum
  Items: 'Mic In' 'Line In'
  Item0: 'Mic In'
Simple mixer control 'Beep',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 3
  Mono: Playback 0 [0%] [-18.00dB] [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 15
  Front Left: Capture 8 [53%] [12.00dB] [on]
  Front Right: Capture 8 [53%] [12.00dB] [on]
Simple mixer control 'Internal Mic',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 3
  Front Left: Capture 0 [0%] [0.00dB]
  Front Right: Capture 0 [0%] [0.00dB]
[kamil@localhost ~]$
Comment 18 Colin Guthrie 2012-04-02 19:13:28 CEST
So it seems that:

[kamil@localhost ~]$ sudo alsactl init 0
Found hardware: "HDA-Intel" "IDT 92HD73C1X5" "HDA:111d7675,102802be,00100103"
"0x1028" "0x02be"
Hardware is initialized using a generic method


Doesn't touch the Beep element and thus leaves it at whatever it's set at.

I would propose that alsactl init should basically mute the beep.

This will only affect first time installs BTW. After the initial boot, the state should be saved/restored. Do you agree that this is what is needed?
Comment 19 Kamil Rytarowski 2012-04-03 01:10:51 CEST
(In reply to comment #18)
> So it seems that:
> 
> [kamil@localhost ~]$ sudo alsactl init 0
> Found hardware: "HDA-Intel" "IDT 92HD73C1X5" "HDA:111d7675,102802be,00100103"
> "0x1028" "0x02be"
> Hardware is initialized using a generic method
> 
> 
> Doesn't touch the Beep element and thus leaves it at whatever it's set at.
> 
> I would propose that alsactl init should basically mute the beep.
> 
> This will only affect first time installs BTW. After the initial boot, the
> state should be saved/restored. Do you agree that this is what is needed?
Yes.

I have been testing sound, and adding myself to "audio" group is fixing the lacking sound!
Comment 20 Colin Guthrie 2012-04-03 02:46:33 CEST
(In reply to comment #19)
> (In reply to comment #18)
> > So it seems that:
> > 
> > [kamil@localhost ~]$ sudo alsactl init 0
> > Found hardware: "HDA-Intel" "IDT 92HD73C1X5" "HDA:111d7675,102802be,00100103"
> > "0x1028" "0x02be"
> > Hardware is initialized using a generic method
> > 
> > 
> > Doesn't touch the Beep element and thus leaves it at whatever it's set at.
> > 
> > I would propose that alsactl init should basically mute the beep.
> > 
> > This will only affect first time installs BTW. After the initial boot, the
> > state should be saved/restored. Do you agree that this is what is needed?
> Yes.

OK

> I have been testing sound, and adding myself to "audio" group is fixing the
> lacking sound!

So does running everything as root, but that doesn't mean it's the right fix. The fundamental problem is much deeper than this and such hacks just mask the real problems, so I strongly advise you not to do this so we can concentrate on finding the right solution.

I haven't been able to test slim yet, but I will do soon.
Comment 21 Kamil Rytarowski 2012-04-03 09:49:54 CEST
(In reply to comment #20)
> (In reply to comment #19)
> > I have been testing sound, and adding myself to "audio" group is fixing the
> > lacking sound!
> 
> So does running everything as root, but that doesn't mean it's the right fix.
> The fundamental problem is much deeper than this and such hacks just mask the
> real problems, so I strongly advise you not to do this so we can concentrate on
> finding the right solution.
> 
> I haven't been able to test slim yet, but I will do soon.

I have encountered that using optical devices has same permission problems.
Comment 22 Kamil Rytarowski 2012-04-03 09:50:17 CEST
(In reply to comment #21)
> I have encountered that using optical devices has same permission problems.

With VirtualBox.
Comment 23 Manuel Hiebel 2012-04-04 00:40:00 CEST
bug 5210 seems a duplicate of this one, no ?
Comment 24 Kamil Rytarowski 2012-04-27 21:24:06 CEST
After fresh installation beep is again on!
Comment 25 Colin Guthrie 2012-04-29 22:39:26 CEST
@Kamil would you be able to give me the output of "amixer contents -c0" on that machine please? Then maybe test a patch for me?
Comment 26 Colin Guthrie 2012-04-30 01:03:30 CEST
Actually I've just released my proposed fix... hopefully "alsactl init 0" will now mute the Beep by default. Please let me know.
Comment 27 Kamil Rytarowski 2012-05-01 11:38:44 CEST
(In reply to comment #25)
> @Kamil would you be able to give me the output of "amixer contents -c0" on that
> machine please? Then maybe test a patch for me?

$ amixer contents -c0
numid=16,iface=CARD,name='Mic Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=15,iface=MIXER,name='Master Playback Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=14,iface=MIXER,name='Master Playback Volume'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=64,step=0
  : values=1
  | dBscale-min=-48.00dB,step=0.75dB,mute=1
numid=2,iface=MIXER,name='Headphone Playback Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=off,off
numid=4,iface=MIXER,name='Headphone Playback Switch',index=1
  ; type=BOOLEAN,access=rw------,values=2
  : values=on,on
numid=1,iface=MIXER,name='Headphone Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=64,step=0
  : values=64,64
  | dBscale-min=-48.00dB,step=0.75dB,mute=0
numid=3,iface=MIXER,name='Headphone Playback Volume',index=1
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=64,step=0
  : values=64,64
  | dBscale-min=-48.00dB,step=0.75dB,mute=0
numid=17,iface=MIXER,name='PCM Playback Volume'
  ; type=INTEGER,access=rw---RW-,values=2,min=0,max=255,step=0
  : values=254,254
  | dBscale-min=-51.00dB,step=0.20dB,mute=0
numid=5,iface=MIXER,name='Mic Jack Mode'
  ; type=ENUMERATED,access=rw------,values=1,items=2
  ; Item #0 'Mic In'
  ; Item #1 'Line In'
  : values=0
numid=12,iface=MIXER,name='Mic Capture Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0
  : values=0,0
  | dBscale-min=0.00dB,step=10.00dB,mute=0
numid=11,iface=MIXER,name='Capture Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=on,on
numid=10,iface=MIXER,name='Capture Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=15,step=0
  : values=0,0
  | dBscale-min=0.00dB,step=1.50dB,mute=0
numid=6,iface=MIXER,name='Beep Playback Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=7,iface=MIXER,name='Beep Playback Volume'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=3,step=0
  : values=1
  | dBscale-min=-18.00dB,step=6.00dB,mute=0
numid=13,iface=MIXER,name='Internal Mic Capture Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0
  : values=1,1
  | dBscale-min=0.00dB,step=10.00dB,mute=0
numid=9,iface=MIXER,name='Speaker Playback Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=off,off
numid=8,iface=MIXER,name='Speaker Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=64,step=0
  : values=19,19
  | dBscale-min=-48.00dB,step=0.75dB,mute=0
Comment 28 Colin Guthrie 2012-05-01 11:47:39 CEST
(In reply to comment #27)
> numid=6,iface=MIXER,name='Beep Playback Switch'
>   ; type=BOOLEAN,access=rw------,values=1
>   : values=on
> numid=7,iface=MIXER,name='Beep Playback Volume'
>   ; type=INTEGER,access=rw---R--,values=1,min=0,max=3,step=0
>   : values=1
>   | dBscale-min=-18.00dB,step=6.00dB,mute=0


Cool, I got the names right in my patch!

Can you confirm the following for me with latest alsa-utils in cauldron:

sudo amixer -c0 set Beep 50% unmute
sudo amixer -c0 get Beep
sudo alsactl init 0
sudo amixer -c0 get Beep


The sudos are not strictly speaking necessary, but as they were used above, I'll just use them here again. The first should set the beep to 50% unmuted, the second will just confirm that, the third initialises a brand new card (like on first boot) and the fourth confirms that the initialisation (with my patch) has indeed muted the beep.

This is basically the same test you did before, but a bit cut down to ignore the irrelevant bits.
Comment 29 Colin Guthrie 2012-05-06 12:18:23 CEST
@Kamil: ping. Any chance you can do this test? We're are obviously very close to final release now so I'd like to close this bug of ASAP.
Colin Guthrie 2012-05-06 12:18:37 CEST

Keywords: (none) => NEEDINFO, Triaged
Assignee: bugsquad => mageia

Comment 30 Kamil Rytarowski 2012-05-06 18:27:53 CEST
I will test it today.
Comment 31 Kamil Rytarowski 2012-05-07 00:52:21 CEST
(In reply to comment #29)
> @Kamil: ping. Any chance you can do this test? We're are obviously very close
> to final release now so I'd like to close this bug of ASAP.

Fixed.

Now maybe we can resolve or close it:
https://bugs.mageia.org/show_bug.cgi?id=2014

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 32 Colin Guthrie 2012-05-07 10:06:57 CEST
No, the issue is quite different. That's the problem really. Different h/w deals with the beep in different ways. Some machines pipe it via the main soundcard and use the "Beep" control (like in this case) others need the pcspkr module.

It's all very different and thus cannot be handled in one manner. For your kind of hardware #2014 doesn't really apply as you can adjust the Beep control and then be happy with your beep. I would tend to agree that the blacklisting of pcspk should be customisable, but that's another story and one I won't really have time to think about properly before release.

Note You need to log in before you can comment on or make changes to this bug.