Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iBook2: sound blocked by pbbuttonsd [partly solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Fri Feb 02, 2007 8:23 pm    Post subject: iBook2: sound blocked by pbbuttonsd [partly solved] Reply with quote

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?
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme


Last edited by Massimo B. on Tue Mar 13, 2007 11:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Feb 03, 2007 1:43 am    Post subject: Reply with quote

Does it happen without gtkpbbuttons?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Sat Feb 03, 2007 10:01 am    Post subject: Reply with quote

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.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Feb 03, 2007 1:14 pm    Post subject: Reply with quote

Actually, I'm using macosd right now, so I didn't notice it. I'll take a look.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Sat Feb 03, 2007 1:56 pm    Post subject: Reply with quote

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])

_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Feb 04, 2007 3:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Tue Feb 06, 2007 11:14 pm    Post subject: Reply with quote

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++)
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Feb 07, 2007 2:42 am    Post subject: Reply with quote

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
View user's profile Send private message
jerry arns
Tux's lil' helper
Tux's lil' helper


Joined: 13 Dec 2003
Posts: 95
Location: France

PostPosted: Wed Feb 07, 2007 9:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Feb 08, 2007 2:19 am    Post subject: Reply with quote

Okay, it's not gtkpbbuttons fault. It's this bug: https://bugs.gentoo.org/show_bug.cgi?id=118600

I'll ping Diego and make sure he's okay with applying the patch, but if you're antsy, feel free to apply the audiolib patch yourself and recompile audiolib. I can't reproduce the problem here after doing that.

I've also made a patch for macosd, if you're interested in using that instead, which fixes the display bars, get it here:
http://dev.gentoo.org/~josejx/brightfix.patch
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml


Last edited by JoseJX on Thu Feb 08, 2007 4:56 am; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Feb 08, 2007 2:25 am    Post subject: Reply with quote

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
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Thu Feb 08, 2007 7:35 am    Post subject: Reply with quote

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.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
praveen
n00b
n00b


Joined: 08 Jun 2005
Posts: 43

PostPosted: Thu Feb 08, 2007 8:27 am    Post subject: Reply with quote

I posted about this sometime back. I think its related to gtkpbbuttonsd

https://forums.gentoo.org/viewtopic-t-515930-highlight-.html

I had some email communication with the developer of gtkpbbuttonsd but I did not hear from him afterwards.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Thu Feb 08, 2007 8:40 am    Post subject: Reply with quote

I think the only downside when running without -d is that there is no sys logging.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Sun Feb 11, 2007 8:48 pm    Post subject: macosd gone Reply with quote

macosd has disappeared now from portage or any overlay.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum