Connecting NUT to Gnome Power Management

Hi all.

I have a UPS (serially connected on /dev/ttyS0) which I would like to have monitored etc by Gnome.

The manufacturer is Phoenix here in Spain, but I’ve discovered that it is Megatec compatible.

I have configured NUT and as a user (me), can get the following output:

andy@emu1:~> upsc Phoenix
battery.voltage: 12.50
battery.voltage.nominal: 11.5 megatec
driver.parameter.pollinterval: 2
driver.parameter.port: /dev/ttyS0
driver.version: 2.2.2
driver.version.internal: 1.5.14
input.frequency: 50.2
input.frequency.nominal: 50.0
input.voltage: 195.0
input.voltage.fault: 165.0
input.voltage.maximum: 226.0
input.voltage.minimum: 184.0
input.voltage.nominal: 220.0
output.voltage: 218.0
ups.beeper.status: disabled
ups.delay.shutdown: 0
ups.delay.start: 2
ups.load: 0.0
ups.model: PH650UPX VER3.10C
ups.serial: unknown
ups.status: OL OFF
ups.type: standby

This appears to confirm that NUT is working. However, I need a way to get NUT linked to Gnome and be able to receive notifications about power and configure the UPS behaviour.

Any advice will be gratefully received.


Environment spec:

Opensuse 11.0 32bit
Gnome 2.22
Pentium P4 2.8

Well I know very little about this area but it is of interest so I googled a bit and found this blog entry explaining how to connect upsd to gnome power management. It seems there are some drawbacks also. And it seems it doesn’t work with serial port UPSes. Anyway you can be the judge.

Monitoring a UPS with nut on Debian or Ubuntu Linux | Random Bits

Thanks. I’ve actually been there - and got as far as the upsc command.

Thanks for taking the time to go looking for me.

I’m still left without a link between the Gnome power management and nut…


Maybe wait for the devicekit implementation, or write your own GNOME widget to call upsc periodically and present the results.


When you say wait for the deviekit implementation, do you mean that there is one in progress?


That’s what the blog page said, did you not see that?