You are not logged in.
Today I did a "pacman -Syu" as I regularly do and there were a few updates, including a Xfce one so I decided to let it install the updates.
The problem is that the Battery Monitor plugin no longer works (it's very handy if you use a laptop like I do).
There is an error message if I d:
$ dmesg | tail
usb 3-1: new low speed USB device using ohci_hcd and address 2
usb 3-1: configuration #1 chosen from 1 choice
usbcore: registered new interface driver hiddev
input: Logitech Optical USB Mouse as /class/input/input10
input,hidraw0: USB HID v1.10 Mouse [Logitech Optical USB Mouse] on usb-0000:00:03.1-1
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
ACPI: EC: GPE storm detected, disabling EC GPE
xfce4-battery-p[8258]: segfault at 46 ip b76abb7d sp bfb7e878 error 4 in libc-2.8.so[b7650000+13c000]
and also another on the output of X (I guess thats it), I have done startx &> x.log and there is this:
(xfce4-panel:7376): Gtk-CRITICAL **: gtk_socket_get_id: assertion `GTK_WIDGET_ANCHORED (socket)' failed
** (xfce4-panel:7376): CRITICAL **: An item was unexpectedly removed: "Battery Monitor".
Is it just a problem on my machine or is it a general problem? If it is just a problem on my machine any suggestions on how can I fix it?
Thanks in advance.
Last edited by R00KIE (2008-11-01 12:56:24)
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
I also experience the same error... the battery doesn't seem to be working for me either.
With same command..
$ dmesg | tail
sd 5:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1 sdb2
sd 5:0:0:0: [sdb] Attached SCSI disk
sd 5:0:0:0: Attached scsi generic sg2 type 0
usb-storage: device scan complete
evdev.c(EVIOCGBIT): Suspicious buffer size 511, limiting output to 64 bytes. See http://userweb.kernel.org/~dtor/eviocgbit-bug.html
xfce4-battery-p[6281]: segfault at 46 ip b7661b7d sp bf9495c8 error 4 in libc-2.8.so[b7606000+13c000]
xfce4-battery-p[6321]: segfault at 46 ip b77c5b7d sp bfaaeb48 error 4 in libc-2.8.so[b776a000+13c000]
0000:00:19.0: eth0: Link is Up 1000 Mbps Full Duplex, Flow Control: None
0000:00:19.0: eth0: Link is Up 1000 Mbps Full Duplex, Flow Control: None
Offline
Same here on Samsung R20P / i686
Last edited by esters (2008-10-31 19:19:31)
Offline
did anyone check if there is a bug listed in xfce.org ?
Offline
there is already a new version
http://goodies.xfce.org/projects/panel- … ery-plugin
maybe it fixes the problem
Offline
same problem
version 0.5.1-1, looks like the newest one
Last edited by ogronom (2008-11-01 04:17:13)
Offline
Ok, the version on the Xfce page seemed to be the same I had on my system but I decided to download and compile it anyway and then I did a diff on the file I had on the system and the compiled one and they were different.
Then I went to AUR and searched for some makepkg script and I found one for an older (??) version of the plugin and I modified it.
The I decided to give it a try and I have the battery plugin working again
Here's what you need
File: PKGBUILD
pkgname=xfce4-battery-plugin
pkgver=0.5.1
pkgrel=1
pkgdesc="A battery applet for the Xfce4"
arch=(i686 x86_64)
license=('GPL2')
url="http://sourceforge.net/projects/battery-4-xfce4/"
groups=('xfce4-goodies')
depends=('libxfce4util' 'libxfcegui4' 'gtk2' 'xfce4-panel' 'dbus' 'libnotify')
makedepends=('pkgconfig')
options=('!libtool')
install=${pkgname}.install
source=(http://goodies.xfce.org/releases/xfce4-battery-plugin/${pkgname}-${pkgver}.tar.bz2)
md5sums=('d8a666d85bb3c1dd007b547de4dd7037')
build() {
cd ${startdir}/src/${pkgname}-${pkgver}
./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/xfce4 \
--localstatedir=/var --disable-static
make || return 1
make DESTDIR=${startdir}/pkg install
}
File: xfce4-battery-plugin.install
post_install() {
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}
post_upgrade() {
post_install $1
}
post_remove() {
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}
op=$1
shift
$op $*
After you have both files issue a makepkg (in the directory where you have both files of course). If all goes well then just issue
sudo pacman -U xfce4-battery-plugin-0.5.1-1-i686.pkg.tar
then logout and login again, the plugin should work again.
If it fails before compiling check what it complains about, in my case I had to install perl-xml-xpath (use sudo pacman -S perl-xml-xpath).
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
That worked for me too
The only difference from the original build is that the new one has code
# the purpose of this code is to check if there is an acpi system installed at all
# but since the code also exits when no /proc/acpi/battery directory is there we are safe
ex panel-plugin/libacpi.c << EOC > /dev/null 2>&1
/proc.acpi.info
d10
w
q
EOC
I have no idea what does it do , but if I get rid of it and makpkg once again, everything is working
Does it mean that this is the bug of Arch build, not plugin itself?
Offline
awesome, my battery bar is back
Offline
please file a bug. i'll remove the lines when this is this fix.
Offline
Errrmmmm where to file the bug and about what? ( noob here, never filed a bug before )
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
thx rookie for the bugfix (unfortunately i can't help you with the bugreport, though i guess you have to register at http://bugs.archlinux.org/).
regards,
woifi
Offline