You are not logged in.
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
First of all, does it help ?
Offline
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
and if you try to install these software manually from source, similar in gentoo ?
Offline
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
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
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
In that case report it their bugracker, i think it's not arch related in this way.
Offline
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
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
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 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)
Offline
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
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
Cool, is version 009 a stable release? If so, you might want to flag the pkg out of date.
Already did that last night.
Offline