[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pbbuttonsd new problems

On Wed, 2004-07-07 at 12:23, Matthias Grimm wrote:
> Am Mittwoch, 7. Juli 2004 09:52 schrieb Stefano Zacchiroli:
> > BTW the most annoying fact about this pbbuttonsd is that when pbbuttonsd
> > crashes there's no way to get it up and running again without rebooting
> > the machine. "/etc/init.d/pbbuttonsd stop" doesn't work and after
> > manually -9-killing pbbuttonsd there's no way to start it again since it
> > complaints that another daemong is running even it that's not the case,
> > are there any hiddent pid/lock files I'm not aware of?
> Pbbuttonsd installs an message queue which it can't clean up if kicked off 
> with kill -9. Use 'ipcs' (as root) to check the message queue id and after 
> that remove it with 'ipcrm msg <msgid>'. After that procedure pbbuttonsd will 
> start again without reboot.

Would it be possible to have this added to the /etc/init.d/pbbuttonsd
script within the force-reload option?  Looks like if the old
/var/run/pbbuttonsd.pid file is there the pid of the message que should
be easy to get.  My quick and dirty 5 second hack was:

ipcrm msg `ipcs -q -p |grep -f /var/run/pbbuttonsd.pid |awk '{ print

This would make it automagic to less google savvy users for the future.

> It seems that the new problems occour in conjunction with kernel 2.6.7. Most 
> of you use it. I never saw those problems with kernel 2.4, so I have to 
> install kernel 2.6.7 and have a closer look. 
> There have been a lot of changes since pbbuttons 0.5.9 but the sleep code 
> didn't change, so I have no explanation for the failures yet. I'm thankful 
> for every hint how this behaviour can be deterministically reproduced.

pbbuttonsd became unstable after upgrading the unstable debian package
and then trying to blank screen "sleep" the computer by pressing the
power button on AC.  It never made it to launching all of the
appropriate scripts.

I had to reboot my ibook g3 900 dual usb (kernel 2.4.24) after I
upgraded, but after that it works perfectly.  I like the new event.d and
scripts.d features.

>   Best Regrads
>     Matthias


Reply to: