Bug 894032
| Summary: | [alsa-delay] Pulseaudio is misconfigured after script failed | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Jiri Koten <jkoten> | ||||||||
| Component: | alsa-utils | Assignee: | Jaroslav Kysela <jkysela> | ||||||||
| Status: | CLOSED ERRATA | QA Contact: | Ken Benoit <kbenoit> | ||||||||
| Severity: | medium | Docs Contact: | |||||||||
| Priority: | medium | ||||||||||
| Version: | 6.4 | CC: | jkysela, jshortt, kbenoit, salmy, tpelka | ||||||||
| Target Milestone: | rc | Keywords: | Regression | ||||||||
| Target Release: | --- | ||||||||||
| Hardware: | All | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | No Doc Update | |||||||||
| Doc Text: |
undefined
|
Story Points: | --- | ||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2016-05-11 00:39:42 UTC | Type: | Bug | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Bug Depends On: | |||||||||||
| Bug Blocks: | 1269638, 1270066 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Jiri Koten
2013-01-10 14:58:36 UTC
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate, in the next release of Red Hat Enterprise Linux. Installed RHEL-6.8-20160125.0 on a test system and installed the pulseaudio package as well. Ran "alsa-delay --pa --pdevice=plug:dmix:1 25". The following error message was displayed: Using temporary tree: /tmp/alsa-delay-script Using backup tree : /var/lib/misc/alsa-delay-script snd_hda_intel 1 cp: cannot stat `/etc/modprobe.d/alsa.conf': No such file or directory This does not occur on RHEL-6.7 or earlier versions. Created attachment 1133564 [details]
A patch to fix the missing file condition
Ken - I attached a patch which should fix this. Could you continue tests with it? You may eventually create empty /etc/modprobe.d/alsa.conf file . I will build new alsa-utils-1.1.0-4 packages when the tests are fine. Patched alsa-delay with the patch from comment 5. Ran the script on a clean RHEL-6.8-20160212.2 install and had the following output: Using temporary tree: /tmp/alsa-delay-script Using backup tree : /var/lib/misc/alsa-delay-script snd_hda_intel 1 /etc/modprobe.d/alsa.conf changed *** use --revert option to revert configuration changes *** WARNING! An audio application uses ALSA driver: 12083 ? 00:00:00 pulseaudio Would you like to kill these apps? (Y/ ) y > kill 12083 > rmmod snd_seq > rmmod snd_seq_device > rmmod snd_hda_codec_realtek ERROR: Module snd_hda_codec_realtek is in use Unable to remove kernel module snd_hda_codec_realtek. Pulseaudio probably respawned too quickly blocking the driver. You may revert the config and run the alsa-delay script from the single runlevel. On RHEL-6.8-20160308.0 executing (with the patch from comment 5): alsa-delay --pa --pdevice=plug:dmix:1 25 Results in: Using temporary tree: /tmp/alsa-delay-script Using backup tree : /var/lib/misc/alsa-delay-script snd_hda_intel 1 /etc/modprobe.d/alsa.conf changed *** use --revert option to revert configuration changes *** WARNING! An audio application uses ALSA driver: 12083 ? 00:00:00 pulseaudio Would you like to kill these apps? (Y/ ) y > kill 12083 > rmmod snd_seq > rmmod snd_seq_device > rmmod snd_hda_codec_realtek ERROR: Module snd_hda_codec_realtek is in use Unable to remove kernel module snd_hda_codec_realtek. Then executing: alsa-delay --revert And rebooting results in the loopback devices being listed: $ aplay -l **** List of PLAYBACK Hardware Devices **** card 1: PCH [HDA Intel PCH], device 0: ALC3232 Analog [ALC3232 Analog] Subdevices: 0/1 Subdevice #0: subdevice #0 card 2: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM] Subdevices: 8/8 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 Subdevice #4: subdevice #4 Subdevice #5: subdevice #5 Subdevice #6: subdevice #6 Subdevice #7: subdevice #7 card 2: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM] Subdevices: 8/8 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 Subdevice #4: subdevice #4 Subdevice #5: subdevice #5 Subdevice #6: subdevice #6 Subdevice #7: subdevice #7 Created attachment 1137327 [details]
Second update for alsa-delay
"/sbin/chkconfig alsaloop off" call is missing.. Thanks. Could you test updated patch?
Reran "alsa-delay --pa --pdevice=plug:dmix:1 25" from single user mode after applying the patch from comment 10. Here is the output from the command: Using temporary tree: /tmp/alsa-delay-script Using backup tree : /var/lib/misc/alsa-delay-script /etc/init.d/alsaloop exists snd_hda_intel 1 /etc/modprobe.d/alsa.conf changed *** use --revert option to revert configuration changes *** > rmmod snd_hda_intel > rmmod snd_seq > rmmod snd_seq_device > rmmod snd_hda_codec_realtek > rmmod snd_hda_codec_generic > rmmod snd_hda_codec > rmmod snd_hwdep > rmmod snd_pcm > rmmod snd_timer > rmmod snd_page_alloc Kernel modules ready: 0 [PCH ]: HDA-Intel - HDA Intel PCH HDA Intel PCH at 0xe1234000 irq 48 amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control hw:1 open error: No such file or directory amixer: Control device hw:1 open error: No such file or directory /etc/pulse/default.pa changed *** use --revert option to revert configuration changes *** /etc/alsa/alsaloop-default.conf exists Restarting alsaloop: delay 25000 us. FATAL: Error inserting snd_aloop (/lib/modules/2.6.32-621.el6.x86_64/kernel/sound/drivers/snd-aloop.ko): No such device Starting alsaloop: [60G[[0;32m OK [0;39m] ERROR: Not started, check /var/log/messages for details Removing tree /tmp/alsa-delay-script: success Rebooting shows no loopback device and Gnome also shows no volume controls. Created attachment 1137442 [details]
Third update (patch) for alsa-delay script
Remove /etc/init.d/alsaloop script to allow re-configuration.
OK, /etc/init.d/alsaloop must be removed, too before new configuration. Run 'alsa-delay --revert' again before new config. Here's the output on a clean RHEL-6.8-20160308.0 install in single user mode:
Using temporary tree: /tmp/alsa-delay-script
Using backup tree : /var/lib/misc/alsa-delay-script
snd_hda_intel 1
/etc/modprobe.d/alsa.conf changed
*** use --revert option to revert configuration changes ***
> rmmod snd_hda_intel
> rmmod snd_seq
> rmmod snd_seq_device
> rmmod snd_hda_codec_realtek
> rmmod snd_hda_codec_generic
> rmmod snd_hda_codec
> rmmod snd_hwdep
> rmmod snd_pcm
> rmmod snd_timer
> rmmod snd_page_alloc
Kernel modules ready:
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xe1234000 irq 48
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control hw:1 open error: No such file or directory
amixer: Control device hw:1 open error: No such file or directory
/etc/pulse/default.pa changed
*** use --revert option to revert configuration changes ***
Restarting alsaloop: delay 25000 us.
FATAL: Error inserting snd_aloop (/lib/modules/2.6.32-621.el6.x86_64/kernel/sound/drivers/snd-aloop.ko): No such device
Starting alsaloop: [60G[[0;32m OK [0;39m]
ERROR: Not started, check /var/log/messages for details
Removing tree /tmp/alsa-delay-script: success
Manually tested on multiple systems with alsa-utils-1.1.0-8.el6 installed (RHEL-6.8-20160329.n.0) using the alsa-delay example provided in the description while in runlevel 5 (in Gnome). When performing an upgrade path from a working alsaloop and pulseaudio setup in RHEL-6.7 to RHEL-6.8 results in the loop devices still being displayed through aplay but I am unable to access gnome-volume-control as it says it is waiting for the sound system to respond indefinitely. Doing a clean install of RHEL-6.8-20160329.n.0 and performing the steps with alsa-delay results in mostly correct looking output from the script except that alsaloop doesn't start successfully (ERROR: Not started, check /var/log/messages for details). Checking /var/log/messages shows the following messages repeated: alsaloop[12881]: playback plug:dmix open error: Device or resource busy alsaloop[12881]: Loopback initialization failure. On the one system where alsaloop ran successfully the system is hanging in the graphical boot after attempting a reboot. I have since gotten the clean install of RHEL-6.8 alsa-delay configuration working. It was a user error situation. Currently testing upgrade path from RHEL-6.7 to RHEL-6.8. Upgrade path from RHEL-6.7 (with pre-existing alsaloop configuration) to RHEL-6.8-20160329.n.0 is working correctly as well. Marking as verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-0921.html |