[Nut-upsuser] 2.2.2-pre2 64 bit rpm tested on openSUSE 10.3
rprice at cs.uml.edu
Sun Apr 20 13:58:59 UTC 2008
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
On Sun, 20 Apr 2008, Kjell Claesson wrote:
> Hi Roger.
> I can answer that, so you don't have to wait :-)
> The nut-hal package is a package that contains the hal drivers and fdi file
> udev rules.
> 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 KDE)
> So no configuration or anything. Just plug it in and it should work.
Hello Kjell, I guess that there would be some configuration, for example
to say after what interval shutdown would start, and to specify the
> So your stationary computer look like a laptop, where you have a battery
> monitor showing that the battery is loading (running on main's). When power
> is gone it shows running on battery and shut down when battery gets low.
> This package is meant to be used by people running a singel computer
> and a desktop (Gnome, KDE , ....).
> So if you fall under this category, you may try it, and see how it looks.
> If you don't like it and want the normal nut, it is only to uninstall and
> install the nut package.
> (Hope this explanation is OK. Anything to add Arjen and Charles ?)
For me power monitoring should, like justice, not only be done but be seen
to be done: I have gotten used to the screen display provided by
mgeups-psp so I installed nut-2.2.2-pre2.x86_64.rpm and mgeups-psp-3.0.4-2
Bus 002 Device 002: ID 0463:ffff MGE UPS Systems UPS
driver = usbhid-ups
port = auto
desc = "MGE Protection Center 750"
vendorid = 0463
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
MONITOR mgeups at localhost 1 monuser mgepass master
SHUTDOWNCMD "/sbin/shutdown -h +2 Arret systeme!"
NOTIFYFLAG ONLINE SYSLOG+EXEC
NOTIFYFLAG ONBATT SYSLOG+EXEC
NOTIFYFLAG COMMOK IGNORE
NOTIFYFLAG COMMBAD IGNORE
AT ONBATT * START-TIMER ups-on-battery-timer 121
AT ONLINE * CANCEL-TIMER ups-on-battery-timer
AT ONBATT * EXECUTE ups-on-battery
AT ONLINE * EXECUTE ups-back-on-line
There is no /var/state in openSUSE 10.3, so I changed PIPEFN and LOCKFN to
/var/run and defined directory /var/run/ups.
And now, flags waving and fireworks for the grand opening:
glacon2:~ # rcupsd start
Starting NUT UPS drivers done
Starting NUT UPS server done
Starting NUT UPS monitor done
There is no sign of action by mgeups-psp, no window, no icon.
glacon2:~ # ps aux | grep ups
upsd 16455 16484 1004 ? Ss /usr/lib/ups/driver/usbhid-ups -a mgeups
upsd 16459 14328 720 ? Ss /usr/sbin/upsd -u upsd
root 16462 16168 696 ? Ss /usr/sbin/upsmon
upsd 16463 16592 816 ? S /usr/sbin/upsmon
I wonder why upsmon is running twice?
In YaST2 -> System -> System Services (Runlevel) I set upsd
"Enabled" and restarted the machine for a clean test.
After restart, in /var/log/messages I see
usbhid-ups: Startup successful
upsd: listening on 0.0.0.0 port 3493
upsd: Connected to UPS [mgeups]: usbhid-ups-mgeups
upsd: Startup successful
upsmon: Startup successful
upsd: Connection from 127.0.0.1
upsd: Client monuser at 127.0.0.1 logged into UPS [mgeups]
upsmon: Master privileges unavailable on UPS [mgeups at localhost]
upsmon: Response: [ERR ACCESS-DENIED]
The directory /var/run/ups is empty. the command upsc reports:
glacon2:~ # upsc mgeups at localhost
driver.version.data: MGE HID 1.10
outlet.0.desc: Main Outlet
outlet.1.desc: PowerShare Outlet 1
outlet.2.desc: PowerShare Outlet 2
ups.mfr: MGE UPS SYSTEMS
ups.model: Ellipse 1500
ups.status: OL CHRG
I disconnected the UPS from the wall and upsc reported
ups.status: OB DISCHRG
but there is no notification of an impending shutdown and no shutdown.
In /var/log/messages, I see
Apr 20 15:29:55 glacon2 upsmon: UPS mgeups at localhost on battery
Apr 20 15:30:03 glacon2 upssched: Failed to connect to parent and
failed to create parent: No such file or directory
Apr 20 15:34:34 glacon2 upsd: Connection from 127.0.0.1
Apr 20 15:34:34 glacon2 upsd: Client on 127.0.0.1 logged out
Directory /var/run/ups is still empty. It looks as if I have a problem
with upssched - any help would be much appreciated.
More information about the Nut-upsuser