Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ebuild|patch] pbbuttonsd - don't sleep while playing music
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
ravageNG
n00b
n00b


Joined: 29 Jul 2003
Posts: 46

PostPosted: Mon Apr 25, 2005 9:34 pm    Post subject: [ebuild|patch] pbbuttonsd - don't sleep while playing music Reply with quote

Hello Powerbook and iBook users,
and of course all other people reading this post :)

I've written an patch for pbbuttonsd 0.6.9 to avoid going to sleep while playing audio (ALSA only).
And it works at least for me :D

:arrow: How it works:
It scans the status of the alsa device: for my iBook G4 it's looking into /proc/asound/Snapper/pcm0p/sub0/status. We are checking "state: RUNNING".

:arrow: Configuration:
Add
ALSALoad_sleeplock = yes
ALSALoad_procinfo = "/proc/asound/Snapper/pcm0p/sub0/status"
to your /etc/pbbuttonsd.conf.
Adjust path to your needs! The above is for my iBook G4 ...

:arrow: Problems: Only tested on my iBook G4... feedback very welcome!

:arrow: Ebuild including patch can be found here: http://www.darav.de/pbbuttons-cr7.tar.bz2

:?: As already mentioned: I'm very interessted in comments on which Powerbook and iBooks it works and where not (and which changes are required to get it running if you found out).
PLEASE POST YOUR FEEDBACK!

p.s.: I'm in contact with the author of pbbuttonsd - but we need your feedback first.
p.s.: Currently I'm busy until next week. So don't expect too many answers from my side.
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Wed Apr 27, 2005 10:04 am    Post subject: Reply with quote

working nice here on my Alu Powerbook G4. Great job !

cheers
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
ravageNG
n00b
n00b


Joined: 29 Jul 2003
Posts: 46

PostPosted: Wed Apr 27, 2005 3:20 pm    Post subject: Reply with quote

Thanks for reporting.
Did you change the path (ALSALoad_procinfo) ?

More welcome! :) :?:
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Wed Apr 27, 2005 3:30 pm    Post subject: Reply with quote

Quote:
Did you change the path (ALSALoad_procinfo) ?


no need to change, same path here ;)

cheers
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
hallus
n00b
n00b


Joined: 18 May 2005
Posts: 1

PostPosted: Wed May 18, 2005 5:08 pm    Post subject: dim Reply with quote

hi.
I recently have got new ibook 12" 1.2ghz.

patch works great.

i was wondering if you could add function so it could prevent DIM while on battery while mplayer is running.

that'd be usefull too ;-)

gluck.thanks.
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