LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 847|回复: 0

zz:PulseAudio 为什么不能启动

[复制链接]
发表于 2007-12-14 09:30:47 | 显示全部楼层 |阅读模式
转发三封邮件,发件人是 Will Woods (redhat)



  1. Will Woods

  2.         主题                Re: how is pulseaudio supposed to work?         
  3.         邮送域                redhat.com         

  4. On Thu, 2007-12-13 at 20:54 +0200, Pekka Savola wrote:
  5. > Hi,
  6. >
  7. > Fedora 8 was working fine until I reinstalled it (but keeping my home
  8. > dir intact).  How sound doesn't work on many applications.  This is
  9. > likely a pulseaudio issue.
  10. >
  11. > Having looked at PulseAudio documentation, I haven't found out "the
  12. > big picture", i.e., how it is supposed to work.  Should there be a
  13. > daemon running or something?  Lot of docs also say "pulseaudio is now
  14. > default" but I haven't found out where this can be configured i.e.
  15. > where you can turn it off again [1] if you don't like it or check that
  16. > everything is configured as required.

  17. The default setup works like this:

  18. 1) /etc/alsa/pulse-default.conf makes pcm.pulse the default ALSA device.
  19. - This file is provided by alsa-plugins-pulseaudio.

  20. 2) When you log in through gdm/kdm, HAL grants you read/write access to
  21. the ALSA device nodes.
  22. - This is handled by ConsoleKit, but wdm/xdm don't support it properly.
  23. - Strictly speaking this has nothing to do with PulseAudio.

  24. 3) When GNOME/KDE/etc start up, they start pulseaudio.
  25. - Actually, GNOME starts ESD, but /usr/bin/esd -> esdcompat
  26. - esdcompat is provided by pulseaudio-esound-compat
  27. - kde-settings-pulseaudio provides /etc/kde/env/pulseaudio.sh

  28. 4) Sound-using apps use ALSA/ESD as usual.
  29. - It's all actually going through pulseaudio, though.

  30. So - if you're not using GNOME or KDE, or if you're logging in through
  31. xdm or wdm, or if you're missing some packages, audio might not work
  32. right.

  33. If you upgraded your system, the easiest thing to do is:
  34. # sudo yum groupupdate sound-and-video gnome-desktop kde-desktop
  35. (you can remove GNOME or KDE at your discretion)

  36. Oh, and if something else has already claimed the ALSA device,
  37. pulseaudio won't start properly. So you will want to make sure you get
  38. the packages set up right and *then* log out and back in, or reboot.

  39. If you really *must* disable PulseAudio, removing or renaming
  40. /etc/alsa/pulse-default.conf is the easiest way.

  41. Hope that helps,

  42. -w

  43. --
  44. fedora-devel-list mailing list
  45. fedora-devel-list@redhat.com
  46. https://www.redhat.com/mailman/listinfo/fedora-devel-list

复制代码




  1. On Thu, 2007-12-13 at 21:42 +0200, Pekka Savola wrote:
  2. > I'm using gdm (default config), but /dev/dsp, /dev/audio and don't
  3. > give me perms, I guess this is a problem:
  4. >
  5. > crw-rw----+ 1 root root 14, 3 2007-12-12 20:14 /dev/dsp

  6. 1) /dev/dsp is for the deprecated OSS interface. The ALSA stuff lives
  7. in /dev/snd/.

  8. 2) the '+' indicates that there are ACLs on the file. Try:
  9. $ getfacl /dev/dsp
  10. and you should see something like this:
  11. getfacl: Removing leading '/' from absolute path names
  12. # file: dev/dsp
  13. # owner: root
  14. # group: root
  15. user::rw-
  16. user:gdm:rw-
  17. user:wwoods:rw-
  18. group::rw-
  19. mask::rw-
  20. other::---

  21. Notice that my user (wwoods) has rw access, so that's OK.

  22. > > 3) When GNOME/KDE/etc start up, they start pulseaudio.
  23. > > - Actually, GNOME starts ESD, but /usr/bin/esd -> esdcompat
  24. > > - esdcompat is provided by pulseaudio-esound-compat
  25. > > - kde-settings-pulseaudio provides /etc/kde/env/pulseaudio.sh
  26. >
  27. > Right -- I''m using XFCE so I think I'm hosed.

  28. Not really - you just have to start pulseaudio yourself, in one of the
  29. various startup scripts.

  30. > I guess  in the xfce rpms should start up something like this in their
  31. > init scripts (but don't).

  32. Yeah - same for fluxbox and other such windowmanagers.

  33. > I wonder if there could have been some Conflicts: or other magic in
  34. > the RPMs that would prevent making pulseaudio default if the user has
  35. > a setup which is known not to work.

  36. Fixing it in the packaging system seems like the wrong way to approach
  37. it. It'd be best to fix the ALSA config so pulse is only the default
  38. *when it's running*.

  39. -w
复制代码




  1. On Thu, 2007-12-13 at 14:24 -0600, Callum Lerwick wrote:
  2. > > Richi Plana wrote:
  3. > > How much extra latency are we getting from this ? I've noticed the extra
  4. > > lag in some of our games.
  5. >
  6. > Probably because SDL is going through ESD? And OpenAL is going to go
  7. > through SDL? Which is a completely bogus situation IMHO but it works for
  8. > now.

  9. Right. If I understand correctly, SDL choked when trying to use
  10. PulseAudio as its ALSA device, so we used a last-minute workaround of
  11. forcing it to use ESD. See this thread for details:
  12. http://article.gmane.org/gmane.linux.redhat.fedora.devel/70224/

  13. > Pulse's ALSA wrapper needs to be fixed to work with SDL and OpenAL
  14. > and/or SDL and OpenAL need to get native Pulse support.

  15. A preliminary driver was written in April:
  16. http://www.nabble.com/PulseAudio-output-for-SDL-to10047401.html
  17. I dunno what the status of that is now, but Lennart has said that we'll
  18. get native support by F9. Let's hope.

  19. -w
复制代码



看上去 w 这个家伙什么都知道!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表