Ticket #1172 (new defect)

Opened 12 years ago

Last modified 12 years ago

reactivate: alsa-utils initscript is gone in Natty

Reported by: geofft Owned by:
Priority: normal Milestone: The Distant Future
Component: -- Keywords:
Cc: Fixed in version:
Upstream bug:

Description

/etc/init.d/debathena-reactivate runs

        # Set the volume to zero for all sound cards, and save that state.
        (/etc/init.d/alsa-utils stop all && alsactl store) > /dev/null 2>&1

As of Natty, that initscript is replaced by two Upstart jobs alsa-store and alsa-restore, that merely run alsactl store / alsactl store:

alsa-utils (1.0.24.2-0ubuntu1) natty; urgency=low

  [ David Henningsson ]
  * New upstream release.
  * Drop our own alsa mixer init script and udev rule, in favour of upstream's
    alsactl. Move most existing volume settings to the alsactl database. 
  * Dropped patches:
    - move_asound_state_to_var.patch
    - remove_alsaconf.patch
    - alsactl_init_update_to_52bd2f8a_head.patch
  * debian/rules: Call configure with --disable-alsaconf argument.
  * debian/patches/alsactl_sbin.patch: Adjust upstream udev rule to call
    alsactl in /sbin.

  [ Luke Yelavich ]
  * Create 2 new upstart jobs for storing, and restoring alsa mixer levels, to
    perform the same functionality as the systemd jobs used by RedHat et al.
  * Remove or clean up files:
    - debian/dirs
    - debian/init
    - debian/udev.*
  * debian/control: Build depend on libasound2-dev >= 1.0.24.1
  * debian/postinst: Remove alsa-mixer-save.conf on upgrade
  * debian/changelog.ALSA: Updated
  * debian/rules: No need to run the alsa upstart jobs on package
    install/upgrade

 -- Luke Yelavich <themuso@ubuntu.com>  Tue, 22 Feb 2011 15:56:54 +1100

So running /etc/init.d/alsa-utils stop fails, and the && presumably masks the failure, and this line doesn't do anything. We should fix it to do something useful, or remove it.

Change History

comment:1 Changed 12 years ago by geofft

Oh, and apparently the mute functionality wasn't even _really_ intended to be used via the initscript:

alsa-utils (1.0.23-2ubuntu2) maverick; urgency=low

  * debian/init: Restore change from 1.0.21-1ubuntu2 lost during merge
    that skips muting and zeroing levels prior to shutdown/reboot,
    which was a hack for broken drivers.  This change closes LP: #21804,
    LP: #208920, #227505, #360108, #432660, #449783, #553132, #564472,
    LP: #584609, #592016, #596360, #613054, #617516, #622487, #632019.
  ...

 -- Daniel T Chen <crimsun@ubuntu.com>  Sun, 05 Sep 2010 11:57:59 -0400

comment:2 Changed 12 years ago by geofft

Yeah, this code hasn't been / shouldn't have been working since Lucid:

alsa-utils (1.0.21-1ubuntu2) lucid; urgency=low

  * debian/init: Stop muting on reboot/shutdown.  The original intent was
    to prevent pops, and that's just a hack for broken linux that is now
    causing more problems than it resolves.

 -- Daniel T Chen <crimsun@ubuntu.com>  Sat, 12 Dec 2009 23:04:50 -0500

comment:3 Changed 12 years ago by jdreed

Is it easier to fix this or just fix #425?

Note: See TracTickets for help on using tickets.