Debian Bug report logs - #608388
alsa-utils: restore fails after rename from "PC Speaker" to "Beep"

version graph

Package: alsa-utils; Maintainer for alsa-utils is Debian ALSA Maintainers <[email protected]>; Source for alsa-utils is src:alsa-utils (PTS, buildd, popcon).

Reported by: Kurt Roeckx <[email protected]>

Date: Thu, 30 Dec 2010 13:51:02 UTC

Severity: important

Found in version alsa-utils/1.0.23-3

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debian ALSA Maintainers <[email protected]>:
Bug#608388; Package alsa-utils. (Thu, 30 Dec 2010 13:51:04 GMT) (full text, mbox, link).


Acknowledgement sent to Kurt Roeckx <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian ALSA Maintainers <[email protected]>. (Thu, 30 Dec 2010 13:51:05 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Kurt Roeckx <[email protected]>
To: [email protected]
Subject: alsa-utils: restore fails after rename from "PC Speaker" to "Beep"
Date: Thu, 30 Dec 2010 14:48:32 +0100
Package: alsa-utils
Version: 1.0.23-3
Severity: important

Hi,

I think Linux 2.6.33 renamed "PC Speaker" to "Beep".  alsactl
doesn't seem to be liking this much.

During boot between kernels with different names I see:
Setting up ALSA...warning: 'alsactl restore' failed with error message 'Unknown hardware: "ICH" "SigmaTel STAC9700,83,84" "AC97a:83847600" "0x1043" "0x1493"
Hardware is initialized using a guess method
alsactl: set_control:1255: failed to obtain info for control #5 (No such file or directory)
alsactl: set_control:1255: failed to obtain info for control #6 (No such file or directory)'...done.


I think that SigmaTel thing is a modem and not related at all.

On a 2.6.32 kernel I get:
        control.5 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 1
                iface MIXER
                name 'PC Speaker Playback Switch'
                value true
        }
        control.6 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 1
                comment.range '0 - 15'
                comment.dbmin -4500
                comment.dbmax 0
                iface MIXER
                name 'PC Speaker Playback Volume'
                value 8
        }

Booting into a newer kernel, I get:
        control.5 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 1
                iface MIXER
                name 'Beep Playback Switch'
                value false
        }
        control.6 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 1
                comment.range '0 - 15'
                comment.dbmin -4500
                comment.dbmax 0
                iface MIXER
                name 'Beep Playback Volume'
                value 0
        }

So it's renamed, volume turned to 0 and muted.

So I've changed it manually so that is says:
        control.5 {
                comment.access 'read write'
                comment.type BOOLEAN
                comment.count 1
                iface MIXER
                name 'Beep Playback Switch'
                value true
        }
        control.6 {
                comment.access 'read write'
                comment.type INTEGER
                comment.count 1
                comment.range '0 - 15'
                comment.dbmin -4500
                comment.dbmax 0
                iface MIXER
                name 'Beep Playback Volume'
                value 15
        }

(On, volume at 15)

Rebooting into a .32 kernel gets me the volume of 8 again.

So it seems that for .32 it sets up reasonable defaults, while for newer it just turns it off.
But I'm expecting my settings to be saved, even after a rename.

The manpage says:
       -F, --force
              Used  with restore command.  Try to restore the matching control elements as much as possible.  This option is
              set as default now.

This doesn't seem to be doing what I expect it to do.



Kurt





Information forwarded to [email protected], Debian ALSA Maintainers <[email protected]>:
Bug#608388; Package alsa-utils. (Thu, 30 Dec 2010 16:09:05 GMT) (full text, mbox, link).


Acknowledgement sent to Elimar Riesebieter <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian ALSA Maintainers <[email protected]>. (Thu, 30 Dec 2010 16:09:05 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Elimar Riesebieter <[email protected]>
To: Kurt Roeckx <[email protected]>, [email protected]
Subject: Re: [Pkg-alsa-devel] Bug#608388: alsa-utils: restore fails after rename from "PC Speaker" to "Beep"
Date: Thu, 30 Dec 2010 17:08:01 +0100
Hi Kurt,

* Kurt Roeckx [101230 14:48 +0100]:
> Package: alsa-utils
> Version: 1.0.23-3
> Severity: important
> 
> Hi,
> 
> I think Linux 2.6.33 renamed "PC Speaker" to "Beep".  alsactl
> doesn't seem to be liking this much.
> 
> During boot between kernels with different names I see:
> Setting up ALSA...warning: 'alsactl restore' failed with error message 'Unknown hardware: "ICH" "SigmaTel STAC9700,83,84" "AC97a:83847600" "0x1043" "0x1493"
> Hardware is initialized using a guess method
> alsactl: set_control:1255: failed to obtain info for control #5 (No such file or directory)
> alsactl: set_control:1255: failed to obtain info for control #6 (No such file or directory)'...done.
[...]
> So it seems that for .32 it sets up reasonable defaults, while for newer it just turns it off.
> But I'm expecting my settings to be saved, even after a rename.

Could you please apply attached patch to /etc/init.d/alsa-utils and
test again?

Thanks
Elimar

-- 
  Experience is something you don't get until 
  just after you need it!




Information forwarded to [email protected], Debian ALSA Maintainers <[email protected]>:
Bug#608388; Package alsa-utils. (Thu, 30 Dec 2010 16:15:06 GMT) (full text, mbox, link).


Acknowledgement sent to Elimar Riesebieter <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian ALSA Maintainers <[email protected]>. (Thu, 30 Dec 2010 16:15:06 GMT) (full text, mbox, link).


Message #15 received at [email protected] (full text, mbox, reply):

From: Elimar Riesebieter <[email protected]>
To: Kurt Roeckx <[email protected]>, [email protected]
Subject: Re: [Pkg-alsa-devel] Bug#608388: alsa-utils: restore fails after rename from "PC Speaker" to "Beep"
Date: Thu, 30 Dec 2010 17:11:01 +0100
[Message part 1 (text/plain, inline)]
Hi Kurt,

now with attachment ;)

* Kurt Roeckx [101230 14:48 +0100]:
> Package: alsa-utils
> Version: 1.0.23-3
> Severity: important
> 
> Hi,
> 
> I think Linux 2.6.33 renamed "PC Speaker" to "Beep".  alsactl
> doesn't seem to be liking this much.
> 
> During boot between kernels with different names I see:
> Setting up ALSA...warning: 'alsactl restore' failed with error message 'Unknown hardware: "ICH" "SigmaTel STAC9700,83,84" "AC97a:83847600" "0x1043" "0x1493"
> Hardware is initialized using a guess method
> alsactl: set_control:1255: failed to obtain info for control #5 (No such file or directory)
> alsactl: set_control:1255: failed to obtain info for control #6 (No such file or directory)'...done.
[...]
> So it seems that for .32 it sets up reasonable defaults, while for newer it just turns it off.
> But I'm expecting my settings to be saved, even after a rename.

Could you please apply attached patch to /etc/init.d/alsa-utils and
test again?

Thanks
Elimar

-- 
  Experience is something you don't get until 
  just after you need it!
[alsa-utils.diff (text/plain, attachment)]

Information forwarded to [email protected], Debian ALSA Maintainers <[email protected]>:
Bug#608388; Package alsa-utils. (Thu, 30 Dec 2010 19:27:07 GMT) (full text, mbox, link).


Acknowledgement sent to Kurt Roeckx <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian ALSA Maintainers <[email protected]>. (Thu, 30 Dec 2010 19:27:07 GMT) (full text, mbox, link).


Message #20 received at [email protected] (full text, mbox, reply):

From: Kurt Roeckx <[email protected]>
To: Elimar Riesebieter <[email protected]>
Cc: [email protected]
Subject: Re: [Pkg-alsa-devel] Bug#608388: alsa-utils: restore fails after rename from "PC Speaker" to "Beep"
Date: Thu, 30 Dec 2010 20:26:34 +0100
On Thu, Dec 30, 2010 at 05:11:01PM +0100, Elimar Riesebieter wrote:
> Hi Kurt,
> 
> now with attachment ;)
> 
> * Kurt Roeckx [101230 14:48 +0100]:
> > Package: alsa-utils
> > Version: 1.0.23-3
> > Severity: important
> > 
> > Hi,
> > 
> > I think Linux 2.6.33 renamed "PC Speaker" to "Beep".  alsactl
> > doesn't seem to be liking this much.
> > 
> > During boot between kernels with different names I see:
> > Setting up ALSA...warning: 'alsactl restore' failed with error message 'Unknown hardware: "ICH" "SigmaTel STAC9700,83,84" "AC97a:83847600" "0x1043" "0x1493"
> > Hardware is initialized using a guess method
> > alsactl: set_control:1255: failed to obtain info for control #5 (No such file or directory)
> > alsactl: set_control:1255: failed to obtain info for control #6 (No such file or directory)'...done.
> [...]
> > So it seems that for .32 it sets up reasonable defaults, while for newer it just turns it off.
> > But I'm expecting my settings to be saved, even after a rename.
> 
> Could you please apply attached patch to /etc/init.d/alsa-utils and
> test again?

That patch doesn't seem to have any effect.

> --- alsa-utils.orig	2010-12-30 16:58:39.905964578 +0100
> +++ alsa-utils	2010-12-30 17:03:59.972338203 +0100
> @@ -206,6 +206,10 @@
>  	# On MacBookPro5,3 and later models (See Bug#597791)
>  	unmute_and_set_level "Front Speaker" "80%"
>  
> +	# SigmaTel renames controls for kernels > 2.6.32 (See Bug#608388)
> +	switch_control "Beep Playback Switch" on
> +	unmute_and_set_level "Beep Playback Volume" "80%"
> +
>  	return 0
>  }

Note that this has nothing to do with the SigmaTel modem.  In my
case it's the snd_ac97_codec driver.  But alot of the drivers (all?)
got changed.

It's changed in the following commit in the kernel:
commit d355c82a0191d5a3e971bd5af96cc81fe3ed25b9
Author: Jaroslav Kysela <[email protected]>
Date:   Tue Nov 3 15:47:25 2009 +0100

    ALSA: rename "PC Speaker" and "PC Beep" controls to "Beep"

    To avoid confusion in control names for the standard analog PC Beep generator
    using a small Internal PC Speaker, rename all related "PC Speaker" and "PC
    Beep" controls to "Beep" only. This name is more universal and can be also
    used on more platforms without confusion.

    Introduce also "Internal Speaker" in ControlNames.txt for systems with
    full-featured build-in internal speaker.

    Signed-off-by: Jaroslav Kysela <[email protected]>
    Signed-off-by: Takashi Iwai <[email protected]>






Information forwarded to [email protected], Debian ALSA Maintainers <[email protected]>:
Bug#608388; Package alsa-utils. (Fri, 31 Dec 2010 11:09:07 GMT) (full text, mbox, link).


Acknowledgement sent to Kurt Roeckx <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian ALSA Maintainers <[email protected]>. (Fri, 31 Dec 2010 11:09:07 GMT) (full text, mbox, link).


Message #25 received at [email protected] (full text, mbox, reply):

From: Kurt Roeckx <[email protected]>
To: Elimar Riesebieter <[email protected]>
Cc: [email protected]
Subject: Re: [Pkg-alsa-devel] Bug#608388: alsa-utils: restore fails after rename from "PC Speaker" to "Beep"
Date: Fri, 31 Dec 2010 12:05:37 +0100
On Thu, Dec 30, 2010 at 08:26:34PM +0100, Kurt Roeckx wrote:
> On Thu, Dec 30, 2010 at 05:11:01PM +0100, Elimar Riesebieter wrote:
> > --- alsa-utils.orig	2010-12-30 16:58:39.905964578 +0100
> > +++ alsa-utils	2010-12-30 17:03:59.972338203 +0100
> > @@ -206,6 +206,10 @@
> >  	# On MacBookPro5,3 and later models (See Bug#597791)
> >  	unmute_and_set_level "Front Speaker" "80%"
> >  
> > +	# SigmaTel renames controls for kernels > 2.6.32 (See Bug#608388)
> > +	switch_control "Beep Playback Switch" on
> > +	unmute_and_set_level "Beep Playback Volume" "80%"
> > +
> >  	return 0
> >  }

I also forgot to mention that the default for 2.6.32 seems to be 8
(out of 15), so 50% might make more sense.


Kurt





Message sent on to Kurt Roeckx <[email protected]>:
Bug#608388. (Fri, 03 Jun 2011 21:27:03 GMT) (full text, mbox, link).


Message #28 received at [email protected] (full text, mbox, reply):

From: Daniel Chen <[email protected]>
To: [email protected]
Subject: Re: alsa-utils: restore fails after rename from "PC Speaker" to "Beep"
Date: Fri, 3 Jun 2011 17:19:04 -0400
The "PC Speaker" string is sufficiently different to "Beep" that
restoring isn't feasible from within alsactl. We'd need to do some
regex magic in a script.

The default behavior as of newer 2.6.3x is to honor the initial beep
mode, which for many distros is '2'. I haven't checked the Debian
kernels yet to see whether that has been altered.




Information forwarded to [email protected], Debian ALSA Maintainers <[email protected]>:
Bug#608388; Package alsa-utils. (Mon, 16 Mar 2015 20:45:04 GMT) (full text, mbox, link).


Acknowledgement sent to Elimar Riesebieter <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian ALSA Maintainers <[email protected]>. (Mon, 16 Mar 2015 20:45:05 GMT) (full text, mbox, link).


Message #33 received at [email protected] (full text, mbox, reply):

From: Elimar Riesebieter <[email protected]>
To: [email protected]
Cc: Kurt Roeckx <[email protected]>
Subject: Re: alsa-utils: restore fails after rename from "PC Speaker" to "Beep"
Date: Mon, 16 Mar 2015 21:41:48 +0100
On Thu, 30 Dec 2010 14:48:32 +0100 Kurt Roeckx <[email protected]> wrote:
> Package: alsa-utils
> Version: 1.0.23-3
> Severity: important
> 
> Hi,
> 
> I think Linux 2.6.33 renamed "PC Speaker" to "Beep".  alsactl
> doesn't seem to be liking this much.

Hmm, we'll just before release of Jessie. It might be a good idea to
close this bug as we don't support 2.6 kernels anymore? Do you
agree?

Elimar
-- 
 You cannot propel yourself forward by
  patting yourself on the back.



Information forwarded to [email protected], Debian ALSA Maintainers <[email protected]>:
Bug#608388; Package alsa-utils. (Mon, 16 Mar 2015 21:15:05 GMT) (full text, mbox, link).


Acknowledgement sent to Kurt Roeckx <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian ALSA Maintainers <[email protected]>. (Mon, 16 Mar 2015 21:15:05 GMT) (full text, mbox, link).


Message #38 received at [email protected] (full text, mbox, reply):

From: Kurt Roeckx <[email protected]>
To: Elimar Riesebieter <[email protected]>
Cc: [email protected]
Subject: Re: alsa-utils: restore fails after rename from "PC Speaker" to "Beep"
Date: Mon, 16 Mar 2015 22:10:31 +0100
On Mon, Mar 16, 2015 at 09:41:48PM +0100, Elimar Riesebieter wrote:
> On Thu, 30 Dec 2010 14:48:32 +0100 Kurt Roeckx <[email protected]> wrote:
> > Package: alsa-utils
> > Version: 1.0.23-3
> > Severity: important
> > 
> > Hi,
> > 
> > I think Linux 2.6.33 renamed "PC Speaker" to "Beep".  alsactl
> > doesn't seem to be liking this much.
> 
> Hmm, we'll just before release of Jessie. It might be a good idea to
> close this bug as we don't support 2.6 kernels anymore? Do you
> agree?

squeeze (with 2.6.32) is still supported.  This is an issue when
going from squeeze to wheezy (or newer).


Kurt




Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Thu May 15 19:35:39 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.