UPS not recognized by GNOME Power Manager

Bug #278503 reported by ZippyV
4
Affects Status Importance Assigned to Milestone
devicekit-power (Ubuntu)
Invalid
Wishlist
Unassigned
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I have a ups battery for my desktop pc. The device is connected to a usb port. In Windows Vista the ups gets recognized automatically and a battery icon is displayed in the notification area. In Ubuntu there is not a sign that the computer is protected by a ups and so I can not set any power setting in case the power goes out and the battery is running out of juice.

The manufacturer does provide a Linux application but I don't see the need to install a 3th party application. Why can I not use the same tools as if I was working with a laptop? The only thing I need to set is to shut down the system when the battery is at a critical percentage. This should all be possible to do in the Gnome Power manager but it only displays the 'AC power' tab.

UPS device: http://www.mgeops.com/index.php/products__1/230v_products/ups/ellipse_asr
--------------------------------------
zippyv@PC-Ubuntu:~$ apt-cache policy gnome-power-manager
gnome-power-manager:
  Geïnstalleerd: 2.22.1-1ubuntu4
  Kandidaat: 2.22.1-1ubuntu4
  Versietabel:
 *** 2.22.1-1ubuntu4 0
        500 http://be.archive.ubuntu.com hardy/main Packages
        100 /var/lib/dpkg/status
--------------------------------------
zippyv@PC-Ubuntu:~$ lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04

ProblemType: Bug
Architecture: amd64
Date: Sun Oct 5 11:27:46 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/yelp
NonfreeKernelModules: nvidia
Package: yelp 2.22.1-0ubuntu2.8.04.3
PackageArchitecture: amd64
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=nl_BE.UTF-8
 SHELL=/bin/bash
SourcePackage: yelp
Uname: Linux 2.6.24-19-generic x86_64

Tags: apport-bug
Revision history for this message
ZippyV (zippyv) wrote :
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Thank you for taking the time to report this bug and help make Ubuntu better. Could you please do the following:

1. Run "gnome-power-bugreport.sh > g-p-m.log" and attach the resulting file "g-p-m.log" to this bug report.
2. Provide the output of "hal-find-by-capability --capability "battery" | xargs -n 1 hal-device"

Changed in gnome-power-manager:
status: New → Incomplete
Revision history for this message
ZippyV (zippyv) wrote :
Revision history for this message
ZippyV (zippyv) wrote :
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Right, HAL is showing no batteries, so this isn't a gnome-power-manager bug. Re-assigning to the kernel for now.

Please include the following additional information, if you have not already done so (pay attention to lspci's additional options), as required by the Ubuntu Kernel Team:
1. Please include the output of the command "uname -a" in your next response. It should be one, long line of text which includes the exact kernel version you're running, as well as the CPU architecture.
2. Please run the command "dmesg > dmesg.log" after a fresh boot with the UPS connected and attach the resulting file "dmesg.log" to this bug report.
3. Please run the command "sudo lspci -vvnn > lspci-vvnn.log" and attach the resulting file "lspci-vvnn.log" to this bug report.
4. Please run the command "lsusb -v > lsusb.log" with the UPS connected and attach the resulting file "lsusb.log" to the bug report.

For your reference, the full description of procedures for kernel-related bug reports is available at https://wiki.ubuntu.com/KernelTeamBugPolicies Thanks in advance!

Changed in gnome-power-manager:
assignee: nobody → chrisccoulson
Revision history for this message
ZippyV (zippyv) wrote :

uname -a

Linux PC-Ubuntu 2.6.24-19-generic #1 SMP Wed Aug 20 17:53:40 UTC 2008 x86_64 GNU/Linux

Revision history for this message
ZippyV (zippyv) wrote :
Revision history for this message
ZippyV (zippyv) wrote :

Nothing of interest here

Revision history for this message
ZippyV (zippyv) wrote :

Line 204:

Bus 001 Device 007: ID 0463:ffff MGE UPS Systems UPS

Revision history for this message
ZippyV (zippyv) wrote :

I was thinking this bug could be fixed with the new kernel in Ubuntu 8.10 but the ups still doesn't get recognized in the Gnome power manager.

Uname:

Linux PC-Ubuntu 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:06 UTC 2008 x86_64 GNU/Linux

Revision history for this message
ZippyV (zippyv) wrote :

(8.10)

dmesg

Revision history for this message
ZippyV (zippyv) wrote :

lsusb

Revision history for this message
ZippyV (zippyv) wrote :

lspci

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Looking at the output os "lsusb", it seems like some power information is exported from the device. Could you attach the output of "lshal" again now you're running Intrepid.

Thanks

Changed in linux:
assignee: chrisccoulson → nobody
Revision history for this message
ZippyV (zippyv) wrote :

lshal

Device found at line 2475

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Thanks. Could you also please provide the output of the following commands:

ls -l /sys/devices/pci0000:00/0000:00:0b.0/usb1/1-1
cat /sys/devices/pci0000:00/0000:00:0b.0/usb1/1-1/*

Revision history for this message
ZippyV (zippyv) wrote :

usb1 was not found so I tried usb2/2-1

----------------------
zippyv@PC-Ubuntu:~/Bureaublad/bug$ ls -l /sys/devices/pci0000:00/0000:00:0b.0/usb2/2-1
totaal 0
drwxr-xr-x 4 root root 0 2008-11-24 01:47 2-1:1.0
-rw-r--r-- 1 root root 4096 2008-11-24 01:53 authorized
-r--r--r-- 1 root root 4096 2008-11-24 01:47 bcdDevice
-rw-r--r-- 1 root root 4096 2008-11-24 01:47 bConfigurationValue
-r--r--r-- 1 root root 4096 2008-11-24 01:47 bDeviceClass
-r--r--r-- 1 root root 4096 2008-11-24 01:47 bDeviceProtocol
-r--r--r-- 1 root root 4096 2008-11-24 01:47 bDeviceSubClass
-r--r--r-- 1 root root 4096 2008-11-24 01:47 bmAttributes
-r--r--r-- 1 root root 4096 2008-11-24 01:53 bMaxPacketSize0
-r--r--r-- 1 root root 4096 2008-11-24 01:47 bMaxPower
-r--r--r-- 1 root root 4096 2008-11-24 01:47 bNumConfigurations
-r--r--r-- 1 root root 4096 2008-11-24 01:47 bNumInterfaces
-r--r--r-- 1 root root 4096 2008-11-24 01:53 busnum
-r--r--r-- 1 root root 4096 2008-11-24 01:47 configuration
-r--r--r-- 1 root root 65553 2008-11-24 01:53 descriptors
-r--r--r-- 1 root root 4096 2008-11-24 01:47 dev
-r--r--r-- 1 root root 4096 2008-11-24 01:47 devnum
lrwxrwxrwx 1 root root 0 2008-11-24 01:47 driver -> ../../../../../bus/usb/drivers/usb
lrwxrwxrwx 1 root root 0 2008-11-24 01:53 ep_00 -> usb_endpoint/usbdev2.5_ep00
-r--r--r-- 1 root root 4096 2008-11-24 01:47 idProduct
-r--r--r-- 1 root root 4096 2008-11-24 01:47 idVendor
-r--r--r-- 1 root root 4096 2008-11-24 01:53 manufacturer
-r--r--r-- 1 root root 4096 2008-11-24 01:47 maxchild
drwxr-xr-x 2 root root 0 2008-11-24 01:53 power
-r--r--r-- 1 root root 4096 2008-11-24 01:53 product
-r--r--r-- 1 root root 4096 2008-11-24 01:53 quirks
-r--r--r-- 1 root root 4096 2008-11-24 01:47 serial
-r--r--r-- 1 root root 4096 2008-11-24 01:47 speed
lrwxrwxrwx 1 root root 0 2008-11-24 01:47 subsystem -> ../../../../../bus/usb
-rw-r--r-- 1 root root 4096 2008-11-24 01:47 uevent
-r--r--r-- 1 root root 4096 2008-11-24 01:53 urbnum
drwxr-xr-x 3 root root 0 2008-11-24 01:47 usb_endpoint
-r--r--r-- 1 root root 4096 2008-11-24 01:47 version

---------------------

zippyv@PC-Ubuntu:~/Bureaublad/bug$ cat /sys/devices/pci0000:00/0000:00:0b.0/usb2/2-1/*
cat: /sys/devices/pci0000:00/0000:00:0b.0/usb2/2-1/2-1:1.0: Is een map
1
4241
1
00
00
00
a0
8
 20mA
1
 1
2
c��AB "�
  !!"�189:132
5
cat: /sys/devices/pci0000:00/0000:00:0b.0/usb2/2-1/driver: Is een map
cat: /sys/devices/pci0000:00/0000:00:0b.0/usb2/2-1/ep_00: Is een map
ffff
0463
MGE UPS SYSTEMS
0
cat: /sys/devices/pci0000:00/0000:00:0b.0/usb2/2-1/power: Is een map
ELLIPSE
0x0
000000000
1.5
cat: /sys/devices/pci0000:00/0000:00:0b.0/usb2/2-1/subsystem: Is een map
MAJOR=189
MINOR=132
DEVTYPE=usb_device
DRIVER=usb
DEVICE=/proc/bus/usb/002/005
PRODUCT=463/ffff/4241
TYPE=0/0/0
BUSNUM=002
DEVNUM=005
10
cat: /sys/devices/pci0000:00/0000:00:0b.0/usb2/2-1/usb_endpoint: Is een map
 1.10

Revision history for this message
ZippyV (zippyv) wrote :

I've decided to refresh all the logs that I posted here before. One thing I noticed is that the usb2 folder of the device doesn't seem to exist anymore, now I could query the usb1 folder.

Revision history for this message
ZippyV (zippyv) wrote :

I managed to fix the problem by installing the nut-hal-drivers package ( http://packages.ubuntu.com/hardy/nut-hal-drivers ).

Next question, why can't this package be installed automatically when I plug in my ups?

Revision history for this message
Andy Whitcroft (apw) wrote :

Seems that this is something that Jockey might be able to help with. There does not appear to be a kernel issue here closing the linux task Invalid as nothing was needed there. Opening a new task for jockey.

Changed in linux (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
ZippyV (zippyv) wrote :

I did a fresh install of 9.04 and the UPS is now recognized automatically.

Martin Pitt (pitti)
affects: jockey (Ubuntu) → devicekit-power (Ubuntu)
Changed in devicekit-power (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Phillip Susi (psusi) wrote :

Closing based on reporter feedback.

Changed in devicekit-power (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.