nut init isn't functional at all

Bug #422177 reported by ilna
2
Affects Status Importance Assigned to Milestone
nut (Ubuntu)
Invalid
Undecided
Arnaud Quette
Nominated for Karmic by ilna

Bug Description

Binary package hint: nut

Up to date Kubuntu Karmic is in use.

Recently I have tried to install nut and faced with these problems:

1. hal starts 'hald-addon-hid-ups' process which is not compatible with nut. To prevent the starting I have added the file:

$ cat /etc/hal/fdi/preprobe/10osvendor/10-ignore-power-mgmt.fdi
<?xml version="1.0" encoding="UTF-8"?>

<deviceinfo version="0.2">

  <device>
    <match key="usb_device.vendor_id" int="1892">
      <match key="usb_device.product_id" int="1281">
        <merge key="info.ignore" type="bool">true</merge>
      </match>
    </match>
  </device>

</deviceinfo>

where usb_device.xxx_id were found with 'hal-device'. Probably more common UPS-related matching exists, but I have not found it.

2. I have added nut and ups-monitor services to default runlevels, but nothing starts. To force nut be usable I manually start it via:

$ sudo upsdrvctl start
$ sudo upsd

Only at this point KNutClient is able to connect the service.

Revision history for this message
Arnaud Quette (aquette) wrote : Re: [Bug 422177] [NEW] nut init isn't functional at all

2009/8/31 ilna

> Public bug reported:
>
> Binary package hint: nut
>
> Up to date Kubuntu Karmic is in use.
>
> Recently I have tried to install nut and faced with these problems:
>
> 1. hal starts 'hald-addon-hid-ups' process which is not compatible with
> nut. To prevent the starting I have added the file:
>
>
this is not needed. the call to detach the kernel driver will eject the hal
addon

> 2. I have added nut and ups-monitor services to default runlevels, but
> nothing starts. To force nut be usable I manually start it via:
>
> $ sudo upsdrvctl start
> $ sudo upsd
>
>
read /usr/share/doc/nut/README.Debian.gz
you will see that you have forgotten to edit /etc/nut/nut.conf -> MODE
I've modified the init script to use this, and will push other distros in
this way too.

Only at this point KNutClient is able to connect the service.
>

just a matter of time.

I'll wait for your ack to close the bug.

FYI, I'm working (will be working) on the NUT Control Center (probably not
the definitive name), which will be a complete config / client UI.

Arnaud
--
Linux / Unix Expert R&D - Eaton - http://www.eaton.com/mgeops
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/

Revision history for this message
ilna (a-gaydenko) wrote :

Arnaud,

You are right - it's my fault. The thing is I *have* configured 'standalone' mode at first, but, probably, during digging in the issue I have removed (purge?) the package, reinstalled it later and forgot to edit this config file again. Have terminated all ups-related processes, restarted nut - all works fine.

So, the only issue (for following users) is to prevent hal-started process.

As far as the issue doesn't affect me any more, it may be closed.

NUT Control Center? Great! Good luck! Hope, it will be KDE-Kompatible wrt systray.

Thanks!

Revision history for this message
Arnaud Quette (aquette) wrote : Re: [Bug 422177] Re: nut init isn't functional at all

2009/9/1 ilna

> Arnaud,
>
> You are right - it's my fault. The thing is I *have* configured
> 'standalone' mode at first, but, probably, during digging in the issue I
> have removed (purge?) the package, reinstalled it later and forgot to
> edit this config file again. Have terminated all ups-related processes,
> restarted nut - all works fine.
>

glad to hear it.

> So, the only issue (for following users) is to prevent hal-started
> process.
>
>
though it's cleaner, once more, it's not needed.
and it will soon disapear.

> As far as the issue doesn't affect me any more, it may be closed.
>
> NUT Control Center? Great! Good luck! Hope, it will be KDE-Kompatible
> wrt systray.
>

with the tray (xdg compat), so this should well integrate in any xdg
compliant desktop...

cheers,
Arnaud
--
Linux / Unix Expert R&D - Eaton - http://www.eaton.com/mgeops
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/

Changed in nut (Ubuntu):
assignee: nobody → Arnaud Quette (aquette)
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.