Congratulations!
Gilles.
Asmodehn Shade wrote:
> Thanks a lot ! I was able to make it work ;)... Well it
seems I still have to make the power down test... finger
crossed ;)
>
> Thanks again !
>
> I dont think I will bother with upsnut, since it has
been already a hassle to set this up, and I mgiht not need
it that much ;)
>
> Later ;)
>
>
> On Sat, 26 May 2007 10:12:11 +0200
> Gilles Gravier <Gilles Gravier.org> wrote:
>
>
>> The problem with the master/slave code I also got.
I had to tweak my
>> apcupsd.conf... The result is the attached one,
which works. You should
>> be able to use it more or less as is.
>>
>> Look in particular at the end section of the
file... for network
>> configuration.
>>
>> Gilles.
>>
>> Asmodehn Shade wrote:
>>
>>> Hi Gilles and netbsd folks ;)
>>>
>>> Well I guess I am trying to do the smae than
you are... Here is where I am at, trying to make my APC
BackUPS RS 1000 to work with either apcupsd or ups-nut :
>>> - apcupsd : detected fine, but got the error as
well about the master/slave code disabled. A bit annoying as
I will have another machine on the smae UPS. It seems also
that this prevents the daemon to run. ps -aux | grep apcupsd
returns nothing...
>>> - ups-nut and ups-nut-usb : driver = newhidups
-> which port to use ?
>>>
>>> Did you make any progress on your side since
then ?
>>>
>>> Thanks a lot for your help,
>>>
>>> --
>>> Asmodehn
>>>
>>> On Fri, 27 Apr 2007 22:02:38 +0200
>>> Gilles Gravier <Gilles Gravier.org> wrote:
>>>
>>>
>>>
>>>> Wooooooooooooooooooohooooooooooooooooo!
>>>>
>>>> OK. I got ugen0 detection once I removed
all the uhidev stuff from my
>>>> kernel configuration file. When I had
uhidev present, the UPS would
>>>> always be detected as uhidev not ugen.
>>>>
>>>> Then, with that, I set USBTYPE and CABLE to
usb for apcupsd.conf ... and
>>>> it WORKS!
>>>>
>>>> OK... So building a kernel wasn't too hard.
>>>>
>>>> Now... anybody can tell me how to get
nut-ups to work with the same?
>>>> Seems that nut-ups uses driver hidups (so
should I get back to having my
>>>> UPS detected as uhidev?)... but what port
to use?
>>>>
>>>> I get :
>>>>
>>>> bash-3.2# upsd -D -D -f
>>>> Network UPS Tools upsd 2.0.4
>>>> Can't connect to UPS [apc]
(hidups-usb): No such file or directory
>>>> Synchronizing........ giving up
>>>>
>>>>
>>>> Not looking good.
>>>>
>>>> Gilles
>>>>
>>>> Steven M. Bellovin wrote:
>>>>
>>>>
>>>>> On Mon, 23 Apr 2007 14:27:33 +0200
>>>>> Gilles Gravier <Gilles Gravier.org> wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Steve,
>>>>>>
>>>>>> Can you help me there? How do you
use that specific line? In what?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> That goes in a kernel config file, for
any system 4.0beta or later.
>>>>> (That describes all of my machines -- I
upgraded the last one
>>>>> yesterday to let it talk to at UPS.)
You then build a custom kernel
>>>>> according to the instructions in the
NetBSD guide.
>>>>>
>>>>> Here's my config file on that machine:
>>>>>
>>>>> include
"arch/i386/conf/GENERIC"
>>>>>
>>>>> options SHMMAXPGS=32768 #
2048 pages is the default
>>>>> options IPSEC # IP
security
>>>>> options IPSEC_ESP # IP
security (encryption part; define w/IPSEC)
>>>>> options
PCKBD_LAYOUT="(KB_US | KB_SWAPCTRLCAPS)"
>>>>> options HZ=1000
>>>>>
>>>>> ugen* at uhub? port ? vendor
"0x051d" flags 1
>>>>>
>>>>> Note the 'include' line -- it saves a
lot of trouble if you're willing
>>>>> to accept all of the unnecessary
drivers in GENERIC. (I am -- trimming
>>>>> it down would save me very little
memory, as such things go.)
>>>>>
>>>>>
>>>>> --Steve Bellovin, http://www.cs.columbi
a.edu/~smb
>>>>>
>>>>>
>>>>>
>>>> --
>>>> /*Gilles Gravier*/ *=* *Gilles Gravier.org* <mailto:Gilles Gravier.org>
>>>> *=* *http://www.gravier.org/*
>>>> ICQ : *77488526*
>>>> <http://www.icq.com/whitepages/about_me.php?Uin=774885
26> * || *MSN
>>>> Messenger : Gilles Gravier.org <http://members.msn.com/
Gilles Gravier.org>*
>>>> *Skype : ggravier
<callto://ggravier>* || *Y! : ggravier
>>>> <http://profile
s.yahoo.com/ggravier> || AOL : gillesgravier
>>>> <aim:goim?screenname=gillesgravier>
>>>> PGP Key ID : *0x8DE6D026*
>>>> <http://pgp.mit.edu:11371/pks/lookup?search
=0x8DE6D026&op=index>
>>>> "Chastity is its own punishment."
(/Solomon Short/) [/David Gerrold/]
>>>> "De toutes les aberrations sexuelles,
la chasteté est la plus
>>>> aberrante." [Anatole France]
>>>>
>>>>
>>>>
>>>
>>>
>> --
>> /*Gilles Gravier*/ *=* *Gilles Gravier.org* <mailto:Gilles Gravier.org>
>> *=* *http://www.gravier.org/*
>> ICQ : *77488526*
>> <http://www.icq.com/whitepages/about_me.php?Uin=774885
26> * || *MSN
>> Messenger : Gilles Gravier.org <http://members.msn.com/
Gilles Gravier.org>*
>> *Skype : ggravier <callto://ggravier>* || *Y!
: ggravier
>> <http://profile
s.yahoo.com/ggravier> || AOL : gillesgravier
>> <aim:goim?screenname=gillesgravier>
>> PGP Key ID : *0x8DE6D026*
>> <http://pgp.mit.edu:11371/pks/lookup?search
=0x8DE6D026&op=index>
>> My Last Known Position / Ma Derniere Position
Connue
>> <
http://www.gmap-track.com/user.php?user=ggravier>
>> "Chastity is its own punishment."
(/Solomon Short/) [/David Gerrold/]
>> "De toutes les aberrations sexuelles, la
chasteté est la plus
>> aberrante." [Anatole France]
>>
>>
>>
>
>
--
/*Gilles Gravier*/ *=* *Gilles Gravier.org*
<mailto:Gilles Gravier.org>
*=* *http://www.gravier.org/*
ICQ : *77488526*
<http://www.icq.com/whitepages/about_me.php?Uin=774885
26> * || *MSN
Messenger : Gilles Gravier.org <http://members.msn.com/
Gilles Gravier.org>*
*Skype : ggravier <callto://ggravier>* || *Y! :
ggravier
<http://profile
s.yahoo.com/ggravier> || AOL : gillesgravier
<aim:goim?screenname=gillesgravier>
PGP Key ID : *0x8DE6D026*
<http://pgp.mit.edu:11371/pks/lookup?search
=0x8DE6D026&op=index>
My Last Known Position / Ma Derniere Position Connue
<
http://www.gmap-track.com/user.php?user=ggravier>
"Chastity is its own punishment." (/Solomon
Short/) [/David Gerrold/]
"De toutes les aberrations sexuelles, la chasteté est
la plus
aberrante." [Anatole France]
|