You are not logged in.

#1 2009-07-10 08:22:12

axelgenus
Member
From: Italy
Registered: 2007-04-15
Posts: 100
Website

[SOLVED] UPS not detected

Hi guys,

I installed Arch again after some times with Gentoo. Everything worked out-of-box but UPS. I own an APC UPS and with Gentoo it was recognized and gnome-power-manager managed it. Wth Arch it seems like it's just not there. lsusb shows it but gnome-power-manager doesn't show the AC and the battery status. I tried adding my user to "power" group but nothing changed.

Hints?

Last edited by axelgenus (2009-07-11 21:57:59)

Offline

#2 2009-07-10 15:59:28

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: [SOLVED] UPS not detected

First of all, does it help ?

http://wiki.archlinux.org/index.php/APC_UPS

Offline

#3 2009-07-10 16:11:58

axelgenus
Member
From: Italy
Registered: 2007-04-15
Posts: 100
Website

Re: [SOLVED] UPS not detected

That's a different thing. With apcupsd I can manage my UPS but not with gnome-power-manager. It's like it's not connected (but it is since lsusb shows the device). Moreover I didn't use the daemon on Gentoo.

EDIT: Maybe I realized what the problem is about: permissions.

$ sudo dmesg | grep hidraw
[...]
generic-usb 0003:051D:0002.0004: hiddev0,hidraw3: USB HID v1.10 Device [American Power Conversion Back-UPS CS 650 FW:817.v3.I USB FW:v3] on usb-0000:00:1a.2-1/input0
$ ls -la /dev/hidraw*
[...]
crw-rw---- 1 root root 251, 3 10 lug 08:47 hidraw3

As you can see the UPS is loaded but the relative entry in /dev is only readable by root (user or group). Shouldn't it be in power group?

Last edited by axelgenus (2009-07-10 16:45:00)

Offline

#4 2009-07-10 19:30:29

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: [SOLVED] UPS not detected

and if you try to install these software manually from source, similar in gentoo ?

Offline

#5 2009-07-10 21:00:58

axelgenus
Member
From: Italy
Registered: 2007-04-15
Posts: 100
Website

Re: [SOLVED] UPS not detected

I don't think it's a compilation-related issue. Usually this kind of problems are caused by wrong/missing permissions. Moreover GNOME 2.26 uses devicekit which I didn't need on Gentoo (with GNOME 2.24) so it could be a regression (?). Does anyone has an UPS? Is it working with gnome-power-manager?

Offline

#6 2009-07-11 08:26:33

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: [SOLVED] UPS not detected

And does it works with version 2.24 gnome? And i've given you a working solution, why do you find more information? Just a joke:)

Offline

#7 2009-07-11 08:40:25

axelgenus
Member
From: Italy
Registered: 2007-04-15
Posts: 100
Website

Re: [SOLVED] UPS not detected

Yes, as I said before with GNOME 2.24 gnome-power-manager detected the UPS.

I didn't understand the rest of your post, sorry.

Offline

#8 2009-07-11 08:54:37

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: [SOLVED] UPS not detected

In that case report it their bugracker, i think it's not arch related in this way.

Offline

#9 2009-07-11 09:14:26

axelgenus
Member
From: Italy
Registered: 2007-04-15
Posts: 100
Website

Re: [SOLVED] UPS not detected

I guess I should but I would like to know if someone else which owns an UPS has the same issue. I also tried Ubuntu Jaunty which uses GNOME 2.26 and gnome-power-manager does detect the UPS.

Last edited by axelgenus (2009-07-11 09:16:45)

Offline

#10 2009-07-11 15:12:59

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: [SOLVED] UPS not detected

If this is so important i tried it with manual compilation, and if you guess it's a permission problem, you compare it with ubuntu...

Offline

#11 2009-07-11 20:05:24

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: [SOLVED] UPS not detected

axelgenus: Are you part of the power group? I don't have a lot of knowledge on hal, but I'm guessing hal needs an entry for your ups. I believe gnome-power-manager accesses all of its devices through hal.

There is no need to compile gnome-power-manager. Do not report this to the bug tracker as it is not an arch bug.

Hopefully someone with more knowledge on the subject can help you more.

Edit: You made mention of devicekit so you know more than I do big_smile You might have see how devicekit works and if it integrates into hal or dbus.

Last edited by pyther (2009-07-11 20:09:58)


Website - Blog - arch-home
Arch User since March 2005

Offline

#12 2009-07-11 20:49:28

axelgenus
Member
From: Italy
Registered: 2007-04-15
Posts: 100
Website

Re: [SOLVED] UPS not detected

Yes I am in the "power" group. I know GNOME quite well also. devicekit is the new way GNOME handles devices' policies. I'm going to compare the Ubuntu configuration (from the liveCD) against Arch as suggested by djszapi...

EDIT: Ubuntu still uses gnome-power-manager 2.24 so it's a regression. I'm going to study devicekit a bit more so I can debug it.

Last edited by axelgenus (2009-07-11 21:30:05)

Offline

#13 2009-07-11 21:56:57

axelgenus
Member
From: Italy
Registered: 2007-04-15
Posts: 100
Website

Re: [SOLVED] UPS not detected

This issue has been solved upstream. gnome-power-manager needs devicekit-power version 009 to support UPS'es. This is the original Arch PKGBUILD modified by me (I simply changed the version and the MD5 sum):

pkgname=devicekit-power
pkgver=009
pkgrel=1
pkgdesc="DeviceKit-power is an abstraction for enumerating power devices, listening to device events and querying history and statistics"
arch=('i686' 'x86_64')
url="http://www.freedesktop.org/wiki/Software/DeviceKit"
license=('LGPL')
depends=('devicekit>=003' 'libusb>=0.1.12' 'policykit>=0.9')
makedepends=('gtk-doc' 'pkgconfig' 'intltool' 'docbook-xsl')
options=('!emptydirs' '!libtool')
source=("http://hal.freedesktop.org/releases/DeviceKit-power-${pkgver}.tar.gz")
md5sums=('535703fa7b9c323d6388b5aff28cfeeb')

build() {
  cd "${srcdir}/DeviceKit-power-${pkgver}"
  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
              --libexecdir=/usr/lib/DeviceKit --disable-static
  make || return 1
  make DESTDIR="${pkgdir}" install || return 1
}

It works again now!

Last edited by axelgenus (2009-07-11 21:57:39)

Offline

#14 2009-07-11 22:23:56

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: [SOLVED] UPS not detected

Cool, is version 009 a stable release? If so, you might want to flag the pkg out of date.


Website - Blog - arch-home
Arch User since March 2005

Offline

#15 2009-07-12 11:29:15

axelgenus
Member
From: Italy
Registered: 2007-04-15
Posts: 100
Website

Re: [SOLVED] UPS not detected

pyther wrote:

Cool, is version 009 a stable release? If so, you might want to flag the pkg out of date.

Already did that last night. wink

Offline

Board footer

Powered by FluxBB