Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 404535 - media-sound/alsa-utils: using modprobe -l not existing anymore with sys-apps/kmod
Summary: media-sound/alsa-utils: using modprobe -l not existing anymore with sys-apps/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo ALSA team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-19 15:39 UTC by Ulenrich
Modified: 2012-03-19 10:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Modified 1.0.24 init script - using "find" instead of "modprobe -l" (init,6.23 KB, text/plain)
2012-03-01 19:51 UTC, Zorzo Luca
Details
Config for the attached init (conf,872 bytes, text/plain)
2012-03-01 19:53 UTC, Zorzo Luca
Details
Config for the attached init (conf,874 bytes, text/plain)
2012-03-01 19:54 UTC, Zorzo Luca
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulenrich 2012-02-19 15:39:18 UTC
media-sound/alsa-utils-1.0.24.2-r1
has "modprobe -l" in 
/etc/init.d/alsasound

This option is not existing anymore in kmod's modprobe.

Also Debian manpage says:
      -l --list List all modules matching the given wildcard (or "*" if no wildcard is given).  This
                 option is provided for backwards compatibility  and  may  go  away  in  future:  see
                 find(1) and basename(1) for a more flexible alternative.
Comment 1 Ulenrich 2012-02-19 15:49:38 UTC
media-sound/alsa-utils-1.0.25
just updated this package, but nevertheless there is also
modprobe -l
in /etc/init.d/alsasound
Comment 2 Tony Vroon (RETIRED) gentoo-dev 2012-02-20 09:03:30 UTC
+*alsa-utils-1.0.25-r1 (20 Feb 2012)
+
+  20 Feb 2012; Tony Vroon <chainsaw@gentoo.org> +alsa-utils-1.0.25-r1.ebuild,
+  +files/alsasound.confd-r4, +files/alsasound.initd-r5:
+  Use -I option on alsactl restore to avoid aborting unnecessarily, as per Adam
+  Nielsen in bug #281631. libsamplerate is both a build & run time dependency,
+  as per Albert W. Hopkins in bug #403557. Remove unsupported autoload/unload
+  as it breaks with kmod, as per Ulenrich in bug #404535.

The unsupported broken functionality has been removed from the ebuild. Thank you for your bug report.
Comment 3 Zorzo Luca 2012-03-01 19:51:56 UTC
Created attachment 303863 [details]
Modified 1.0.24 init script - using "find" instead of "modprobe -l"

With the init included in alsa-utils-1.0.25-r1 oss modules aren't loaded.
Comment 4 Zorzo Luca 2012-03-01 19:53:22 UTC
Created attachment 303865 [details]
Config for the attached init
Comment 5 Zorzo Luca 2012-03-01 19:54:34 UTC
Created attachment 303867 [details]
Config for the attached init
Comment 6 Tony Vroon (RETIRED) gentoo-dev 2012-03-02 08:51:00 UTC
The attached patches will not be accepted as the functionality in question has been removed.
Comment 7 Niels 2012-03-18 10:30:54 UTC
When Alsa crashes or freezes, it's very convenient to be able to do '/etc/init.d/alsasound restart'. Is that functionality kept? On Fedora, which I also use, this is impossible, and I have to restart the computer.

Do you recommend not using modules for Alsa?
Comment 8 Tony Vroon (RETIRED) gentoo-dev 2012-03-18 11:37:12 UTC
(In reply to comment #7)
> Do you recommend not using modules for Alsa?

The use of modules for ALSA is not a supported configuration. If you want to use it anyway, *you* are responsible for making sure modules are loaded & unloaded.

If the sound driver and hardware state can desync badly enough to cause a "crash", that is a bug which should be reported upstream so that it can be investigated and fixed. Not hidden by repeatedly restarting the driver.
Comment 9 Niels 2012-03-19 10:04:25 UTC
I agree that bugs should be reported (and fixed), and I do so. But in the mean time, restarting Alsa is very convenient. Convenient is a nice feature!

I'll probably move away from modules now, if only to get easier updates.

Thanks for your answer!