View previous topic :: View next topic |
Author |
Message |
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1776 Location: PB, Germany
|
Posted: Fri Feb 02, 2007 8:23 pm Post subject: iBook2: sound blocked by pbbuttonsd [partly solved] |
|
|
Hello.
It's weird but pbbuttonsd blocks the sound hardware. I noticed earlier that sometimes the alsa sound is going to be blocked. Now I can reproduce:
If I start audacious (or aplay or something..) it plays fine. Using pbbuttonsd volume hotkeys while playing changes volume. If I quit audacious and start again it only works if I didn't touch volume keys in the meantime. Otherwise I get an error by audacious or by aplay like this: Code: | LSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
aplay: main:545: audio open error: device blocked |
Yes, I've built snd_powermac as module while the FAQ tells not to do. If I put it into the kernel, the problem is the same, just that I can't reload the modules. Finally I even wrote a script to do that: Code: | /etc/init.d/alsasound restart && /etc/init.d/pbbuttonsd restart && killall gtkpbbuttons
gtkpbbuttons -d -t MacOSX
echo "alsa restarted" |festival --tts |
Any suggestion? _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Last edited by Massimo B. on Tue Mar 13, 2007 11:02 pm; edited 1 time in total |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1776 Location: PB, Germany
|
Posted: Sat Feb 03, 2007 10:01 am Post subject: |
|
|
Interesting, JoseJX. It doesn't occur without gtkpbbuttonsd. Should I point a bugreport to gtkpbbuttonsd?
First I don't need to kill gtkpbbuttonsd as it quits if a new one is started or pbbuttonsd restarts.
After some tests I found out: The blockage only occurs if gtkpbbuttonsd runs in daemon mode. Don't you guys use this tool? Otherwise I don't have any information about brightness or volume. _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1776 Location: PB, Germany
|
Posted: Sat Feb 03, 2007 1:56 pm Post subject: |
|
|
I wasn't aware of macosd, I will try this. Any advantage over pbbuttonsd? The theme looks the same.
But I can't emerge that: Code: | # emerge -auNDtv macosd
These are the packages that would be merged, in reverse order:
Calculating dependencies \
emerge: there are no ebuilds to satisfy ">=x11-libs/evas-0.9.9.027".
(dependency required by "app-laptop/macosd-0.3.1" [ebuild]) |
_________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Sun Feb 04, 2007 3:49 pm Post subject: |
|
|
Hmm, seems that vapier broke the tree. :p It looks like he moved evas to his overlay, so grab his overlay and it should work. _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1776 Location: PB, Germany
|
Posted: Tue Feb 06, 2007 11:14 pm Post subject: |
|
|
Well it took some ~ppc stuff to get emerged: Code: | app-laptop/macosd ~ppc
x11-libs/evas ~ppc
dev-db/edb ~ppc
dev-libs/eet ~ppc | Then I don't see the advantage. The scale isn't correct and shows maximum just after 3 brightness points (of 15). The application doesn't seem to have a daemonize mode on its own. Having all this enlightnment stuff dependencies that shouldn't be the usual way to get OSD on ppc books in my opinion. Should gtkpbbuttonsd be fixed? Or do you still recommend macosd (well the author itself recommends it over gtkpbb..., and me also loving C++) _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Wed Feb 07, 2007 2:42 am Post subject: |
|
|
I didn't recommend macosd, I just said that it was an alternative :p
I haven't had a chance to look into the issue with gtkpbbuttons. Once I do, I'll let you know. _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
Back to top |
|
|
jerry arns Tux's lil' helper
Joined: 13 Dec 2003 Posts: 95 Location: France
|
Posted: Wed Feb 07, 2007 9:43 pm Post subject: |
|
|
Hey, thanks paoleela!
For sometime now, I needed to restart alsasound and pbbuttonds once in while because, sound wouldn't work any more.
I can totally reproduce what you describe:
launch xine => sound ok
stop xine
re-launch xine => sound ok
stop xine
change volume level with volume key
re-launch xine => sound KO
Same scenario but no gtkpbbuttons launched: no problem!
[ebuild R ] app-laptop/pbbuttonsd-0.7.9 USE="alsa (-acpi) -debug -ibam -oss" 0 kB
[ebuild R ] app-laptop/gtkpbbuttons-0.6.9 USE="-gnome" 0 kB
So I will drop gtkpbbuttonsd for now (and miss the loow battery alert...) _________________ Left handed, right minded. |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Thu Feb 08, 2007 2:25 am Post subject: |
|
|
Hmm, actually it seems that it didn't fix the problem. Starting with the -d option is what breaks it. I'll keep digging, but for now, instead of using the -d option, just start it in the background with & _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1776 Location: PB, Germany
|
Posted: Thu Feb 08, 2007 7:35 am Post subject: |
|
|
Ok. No one noticed before
I prepared a bugreport.
macosd isn't a choice as I said. The scaling is wrong. The theme is the same anyway. _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
praveen n00b
Joined: 08 Jun 2005 Posts: 43
|
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1776 Location: PB, Germany
|
Posted: Thu Feb 08, 2007 8:40 am Post subject: |
|
|
I think the only downside when running without -d is that there is no sys logging. _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1776 Location: PB, Germany
|
Posted: Sun Feb 11, 2007 8:48 pm Post subject: macosd gone |
|
|
macosd has disappeared now from portage or any overlay. _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
|