Bug#247209: Modemlights not aware of connection status.

Richard B. Kreckel <Richard.Kreckel@ginac.de>, 247209@bugs.debian.org
Mon, 5 Jul 2004 23:21:12 +0200 (CEST)


On Mon, 5 Jul 2004, Richard B. Kreckel wrote:
> > > That bug is clearly still present in debian/testing, so, please, explain
> > > what you mean (once you're sober).
> >
> > That is what i asked you and more than a month later i got the answer...
> > I've no modem, no phone line, so i am unable to test this applet
> > directly, that's why i am asking help and reports.
> >
> > So, reopening.
>
> Package gnome-applets still seems to be from Gnome 2.4 in testing.  I just
> tried the version from unstable and indeed, the problem is persisting.
>
> I'll see if I can have a look into this.  But it'll take a while.

I just had a quick look at gnome-applets-2.6.2/modemlights/modemlights.c.
There, is_connected() presumably calls is_Modem_on() in my case (PPP,
DSL), which in turn tries to check mldata->lock_file.  However, that is
initialized inside modmelights_applet_fill() to "/var/lock/LCK..ttyS0" or
"/var/lock/LCK..modem", depending on whether /dev/modem exists or not.

I don't see anything in /etc/ppp/ or /usr/bin/pon which populates
/var/lock.  Indeed, there rather seems to be a pidfile called
/var/run/ppp0.pid.  So, how can this program possibly work?  It confuses
me that it used to be working back in the days of woody.  I am unable to
say whether an upgrade of the package gnome-applets or the package ppp
broke it.

Maybe you would like to forward this problem upstream.

Regards
    -richy.
-- 
Richard B. Kreckel
<http://www.ginac.de/~kreckel/>