Re: [Nut-upsuser] 2.2.2-pre2 64 bit rpm tested on openSUSE 10.3

2008-04-22 Thread Arnaud Quette
Hi Roger 2008/4/21, Roger Price [EMAIL PROTECTED]: On Mon, 21 Apr 2008, Roger Price wrote: On Mon, 21 Apr 2008, Arnaud Quette wrote: A source RPM for SuSE is also available, but I'm not sure it's x64 ready! http://opensource.mgeops.com/stable/sources/suse/ I had confused

Re: [Nut-upsuser] 2.2.2-pre2 64 bit rpm tested on openSUSE 10.3

2008-04-22 Thread Roger Price
On Tue, 22 Apr 2008, Arnaud Quette wrote: right. the API used is an old one, to have a wide platform support spectrum. You'll find a 3.0.7 archive here: http://opensource.mgeops.com/stable/sources/projects/psp/ - Retrieve the .bz2 - extract it, and get into the dir - call configure a

Re: [Nut-upsuser] 2.2.2-pre2 64 bit rpm tested on openSUSE 10.3

2008-04-22 Thread Arjen de Korte
I loaded g++ which had not been asked for; it requires package gcc42-c++. The build then went much further, ending in /usr/lib64/libupsclient.so: undefined reference to `select_read' /usr/lib64/libupsclient.so: undefined reference to `select_write' collect2: ld returned 1 exit status

Re: [Nut-upsuser] 2.2.2-pre2 64 bit rpm tested on openSUSE 10.3

2008-04-22 Thread Manuel Wolfshant
Roger Price wrote: On Tue, 22 Apr 2008, Arnaud Quette wrote: right. the API used is an old one, to have a wide platform support spectrum. You'll find a 3.0.7 archive here: http://opensource.mgeops.com/stable/sources/projects/psp/ - Retrieve the .bz2 - extract it, and get into the dir

Re: [Nut-upsuser] 2.2.2-pre2 64 bit rpm tested on openSUSE 10.3

2008-04-22 Thread Arnaud Quette
2008/4/21, Arjen de Korte [EMAIL PROTECTED]: Arnaud Quette wrote: There is no /var/state in openSUSE 10.3, so I changed PIPEFN and LOCKFN to /var/run and defined directory /var/run/ups. We need a pre3 to fix this since this has been a long standing bug. This path is

Re: [Nut-upsuser] 2.2.2-pre2 64 bit rpm tested on openSUSE 10.3

2008-04-21 Thread Arjen de Korte
Roger Price wrote: The better strategy would be to start a upssched timer (I'll call this 'powerout') as soon as the power is lost. If the power returns, cancel the timer and it is business as usual. When the 'powerout' timer elapses after two minutes, you start a second timer (I'll call this

Re: [Nut-upsuser] 2.2.2-pre2 64 bit rpm tested on openSUSE 10.3

2008-04-21 Thread Roger Price
On Sun, 20 Apr 2008, Roger Price wrote: # /etc/ups/upssched.conf CMDSCRIPT /usr/sbin/upssched-cmd PIPEFN /var/run/ups/upssched.pipe LOCKFN /var/run/ups/upssched.lock ... No surprise here, it's just more n00b fumbling. The correct answer, which is provided by the rpm but which I wrongly

Re: [Nut-upsuser] 2.2.2-pre2 64 bit rpm tested on openSUSE 10.3

2008-04-21 Thread Arjen de Korte
Roger Price wrote: No surprise here, it's just more n00b fumbling. The correct answer, which is provided by the rpm but which I wrongly ignored, is: # /etc/ups/upssched.conf CMDSCRIPT /usr/sbin/upssched-cmd PIPEFN /var/lib/ups/upssched/upssched.pipe LOCKFN

Re: [Nut-upsuser] 2.2.2-pre2 64 bit rpm tested on openSUSE 10.3

2008-04-21 Thread Arnaud Quette
2008/4/20, Arjen de Korte [EMAIL PROTECTED]: Roger Price wrote: ... As you are using a usb ups, you may use this instead of the nut package. If you install it, the ups gets hotplugged by udev hal and would show up as a battery in the power monitor in Gnome. (should be the same in

Re: [Nut-upsuser] 2.2.2-pre2 64 bit rpm tested on openSUSE 10.3

2008-04-21 Thread Arjen de Korte
Arnaud Quette wrote: There is no /var/state in openSUSE 10.3, so I changed PIPEFN and LOCKFN to /var/run and defined directory /var/run/ups. We need a pre3 to fix this since this has been a long standing bug. This path is hardcoded in the example configuration, where running

Re: [Nut-upsuser] 2.2.2-pre2 64 bit rpm tested on openSUSE 10.3

2008-04-21 Thread Roger Price
On Mon, 21 Apr 2008, Arnaud Quette wrote: Also note that the PSP 3.0.4 is the one provided by MGE *UPS Systems*. I don't think this one is maintained anymore, so you really want to switch to the MGE *Office Protection Systems which is the 3.0.6 one, available here:

Re: [Nut-upsuser] 2.2.2-pre2 64 bit rpm tested on openSUSE 10.3

2008-04-21 Thread Roger Price
On Mon, 21 Apr 2008, Roger Price wrote: On Mon, 21 Apr 2008, Arnaud Quette wrote: A source RPM for SuSE is also available, but I'm not sure it's x64 ready! http://opensource.mgeops.com/stable/sources/suse/ I had confused mgeups and mgeops. I downloaded the source rpm and ran the

[Nut-upsuser] 2.2.2-pre2 64 bit rpm tested on openSUSE 10.3

2008-04-20 Thread Roger Price
I started testing the 64 bit rpms of 2.2.2-pre2 on openSUSE 10.3 with an MGE Ellipse 1500 USB. Here is my writeup of the test, with my apologies for a long post. It looks as if I have a problem with upssched. My 64 bit rpm's are available at

Re: [Nut-upsuser] 2.2.2-pre2 64 bit rpm tested on openSUSE 10.3

2008-04-20 Thread Arjen de Korte
Roger Price wrote: My 64 bit rpm's are available at http://rogerprice.org/nut-2.2.2/nut-2.2.2-pre2.x86_64.rpm http://rogerprice.org/nut-2.2.2/nut-devel-2.2.2-pre2.x86_64.rpm http://rogerprice.org/nut-2.2.2/nut-hal-2.2.2-pre2.x86_64.rpm Great, thanks for that! The nut-hal package is a

Re: [Nut-upsuser] 2.2.2-pre2 64 bit rpm tested on openSUSE 10.3

2008-04-20 Thread Arjen de Korte
Arjen de Korte wrote: # /etc/ups/upssched.conf CMDSCRIPT /usr/sbin/upssched-cmd #PIPEFN /var/state/ups/upssched.pipe #LOCKFN /var/state/ups/upssched.lock PIPEFN /var/run/ups/upssched.pipe LOCKFN /var/run/ups/upssched.lock AT ONBATT * START-TIMER ups-on-battery-timer 121 AT ONLINE *

Re: [Nut-upsuser] 2.2.2-pre2 64 bit rpm tested on openSUSE 10.3

2008-04-20 Thread Roger Price
On Sun, 20 Apr 2008, Arjen de Korte wrote: Roger Price wrote: # /etc/ups/upsmon.conf MONITOR [EMAIL PROTECTED] 1 monuser mgepass master MINSUPPLIES 1 SHUTDOWNCMD /sbin/shutdown -h +2 Arret systeme! NOTIFYCMD /usr/sbin/upssched POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME

Re: [Nut-upsuser] 2.2.2-pre2 64 bit rpm tested on openSUSE 10.3

2008-04-20 Thread Arjen de Korte
Hello Arjen, I live in the Alpes Maritimes in the south of France. This is an area with frequent electrical storms, plenty of lightning and it is common to have several short power cuts in succession during a storm. My strategy is to tolerate short power cuts, up to 120 seconds, but if the

Re: [Nut-upsuser] 2.2.2-pre2 64 bit rpm tested on openSUSE 10.3

2008-04-20 Thread Roger Price
On Sun, 20 Apr 2008, Arjen de Korte wrote: Hello Arjen, I live in the Alpes Maritimes in the south of France. This is an area with frequent electrical storms, plenty of lightning and it is common to have several short power cuts in succession during a storm. My strategy is to tolerate