Hi all,
I have an MGE Protection Center 750 UPS that I can’t communicate with. This worked perfectly well with Ubuntu Gutsy but not with openSuSE 10.3. Now it doesn’t with Ubuntu Hardy (tried it, didn’t like it!) or - more importantly for me - with openSuSE 11.0 (knew I’d love it!)
However, with openSuSE 10.2 and Hardy, I couldn’t communicate with the UPS; now PSP crashes.
Maybe there is something in the newer kernel that isn’t set the same.
ups.conf, as set up by Personal Solution Pac, contains:
*[mgeups]
driver = usbhid-ups
port = auto
desc = “Computer Room”
offdelay = 120
lsusb gives me:
*Bus 003 Device 002: ID 0463:ffff MGE UPS Systems UPS
*
nut seems to start up all right using /etc/init.d/upsd restart
When I run psp -d I get:
*$ psp -d
/etc/issue: Welcome to openSUSE 11.0 (i586) - Kernel \r (\l).
System is: Novell / SuSE
option debug
App PID is: 2545
lockfile is /home/pete/.mgeups-psp.lock
lockfile is /home/pete/.mgeups-psp.lock
/etc/issue: Welcome to openSUSE 11.0 (i586) - Kernel \r (\l).
System is: Novell / SuSE
Reading configuration from NUT files…
Warning: can’t read upsmon.conf
NUT is already configured
getShutdownBatteryLevel = -1
shutdownBatteryLevel = -1
shutdownBatteryRuntime = -1
System tray is visible
Old PID is: 2538
MgeUtils::destroyAppLock(/home/pete/.mgeups-psp.lock)
MgeUtils::deleteFile(/home/pete/.mgeups-psp.lock)
NUT is already configured
NUT is already configured
MainWindow(view=status)
Pixmap (mgeups-psp-32.png) found in: /usr/share/mgeups-psp/pixmaps
creating view: config
getShutdownBatteryLevel = -1
****************** TEST ******************
getShutdownBatteryLevel = -1
setUserMode(0)
case MgeUtils::USER_MODE || default
getShutdownBatteryLevel = -1
****************** TEST ******************
getShutdownBatteryLevel = -1
creating view: status
new NutClient
(Re)connecting NutClient
Sleeping 1 seconds more before trying to reconnect
Pixmap (bar_bkgnd.png) found in: /usr/share/mgeups-psp/pixmaps
Pixmap (bar.png) found in: /usr/share/mgeups-psp/pixmaps
Pixmap (mgeups-psp-32.png) found in: /usr/share/mgeups-psp/pixmaps
Systray has to be created…
Pixmap (mgeups-psp-22.png) found in: /usr/share/mgeups-psp/pixmaps
lockfile is /home/pete/.mgeups-psp.lock
Pixmap (com_fault32.png) found in: /usr/share/mgeups-psp/pixmaps
Pixmap (com_fault22.png) found in: /usr/share/mgeups-psp/pixmaps
MgeSystemTray is visible
creating view: about
setting view: status
===========================> parents are different
(psp:2545): Gtk-WARNING **: Attempting to add a widget with type gtkmm__GtkFixed to a container of type gtkmm__GtkViewport, but the widget is already inside a container of type gtkmm__GtkViewport, the GTK+ FAQ at http://www.gtk.org/faq/ explains how to reparent a widget.
setting view: status
/etc/issue: Welcome to openSUSE 11.0 (i586) - Kernel \r (\l).
System is: Novell / SuSE
Font name: Normal 12
=========> Font used: Normal, 12
Reading configuration from NUT files…
Warning: can’t read upsmon.conf
NUT is already configured
getShutdownBatteryLevel = -1
shutdownBatteryLevel = -1
shutdownBatteryRuntime = -1
System tray is visible
getShutdownBatteryLevel = -1
****************** TEST ******************
LOWBATT-CFG (nutClient) = -1
setShutdownBatteryLevel = -1
getShutdownBatteryLevel = -1
NUT is already configured
lockfile is /home/pete/.mgeups-psp.lock
/etc/issue: Welcome to openSUSE 11.0 (i586) - Kernel \r (\l).
System is: Novell / SuSE
NUT services aren’t started
Exit code is: 1536
NUT services started successfully
Finalizing init…
waiting for writer lock
got writer lock
(Re)connecting NutClient
*** glibc detected *** psp: malloc(): memory corruption (fast): 0x081ee2b0 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7071fc4]
/lib/libc.so.6[0xb7074bcc]
/lib/libc.so.6(__libc_malloc+0x9c)[0xb707611c]
/lib/libc.so.6(__nss_lookup_function+0x9c)[0xb70e3bec]
/lib/libc.so.6[0xb70bae22]
/lib/libc.so.6(getaddrinfo+0x19c)[0xb70bd04c]
/usr/lib/libupsclient.so.0(upscli_connect+0x108)[0xb7292008]
psp[0x805ebc3]
/usr/lib/libglibmm-2.4.so.1[0xb779b255]
/usr/lib/libglib-2.0.so.0[0xb72f939f]
/lib/libpthread.so.0[0xb714f175]
/lib/libc.so.6(clone+0x5e)[0xb70d3dce]
======= Memory map: ========
[removed because it made the message too long!]
$*
followed by the gui crashing.
Any suggestions. (I’ve tried the Microsoft method of uninstalling and re-installing!!)
Cheers,
Pete