You are not logged in.

#1 2008-10-31 17:34:57

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

[Solved] Xfce 4.4.3-1 battery monitor problem

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

#2 2008-10-31 18:48:22

tofu
Member
Registered: 2008-02-26
Posts: 42

Re: [Solved] Xfce 4.4.3-1 battery monitor problem

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

#3 2008-10-31 19:19:16

esters
Member
Registered: 2006-11-04
Posts: 173

Re: [Solved] Xfce 4.4.3-1 battery monitor problem

Same here on Samsung R20P / i686

Last edited by esters (2008-10-31 19:19:31)

Offline

#4 2008-10-31 20:48:43

Bestiapeluda
Member
From: Buenos Aires, Argentina
Registered: 2007-10-16
Posts: 181

Re: [Solved] Xfce 4.4.3-1 battery monitor problem

did anyone check if there is a bug listed in xfce.org ?

Offline

#5 2008-10-31 20:53:59

Bestiapeluda
Member
From: Buenos Aires, Argentina
Registered: 2007-10-16
Posts: 181

Re: [Solved] Xfce 4.4.3-1 battery monitor problem

there is already a new version
http://goodies.xfce.org/projects/panel- … ery-plugin
maybe it fixes the problem

Offline

#6 2008-11-01 04:08:07

ogronom
Member
From: Toronto, Canada
Registered: 2008-05-06
Posts: 123

Re: [Solved] Xfce 4.4.3-1 battery monitor problem

same problem
version 0.5.1-1, looks like the newest one

Last edited by ogronom (2008-11-01 04:17:13)

Offline

#7 2008-11-01 12:55:38

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [Solved] Xfce 4.4.3-1 battery monitor problem

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 big_smile

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

#8 2008-11-01 15:12:08

ogronom
Member
From: Toronto, Canada
Registered: 2008-05-06
Posts: 123

Re: [Solved] Xfce 4.4.3-1 battery monitor problem

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 sad, 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

#9 2008-11-01 18:47:34

tofu
Member
Registered: 2008-02-26
Posts: 42

Re: [Solved] Xfce 4.4.3-1 battery monitor problem

awesome, my battery bar is back

Offline

#10 2008-11-03 05:37:49

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: [Solved] Xfce 4.4.3-1 battery monitor problem

please file a bug. i'll remove the lines when this is this fix.

Offline

#11 2008-11-03 10:13:01

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [Solved] Xfce 4.4.3-1 battery monitor problem

Errrmmmm where to file the bug and about what? ( noob here, never filed a bug before roll )


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#12 2008-11-04 11:49:41

woifi
Member
Registered: 2008-11-04
Posts: 8

Re: [Solved] Xfce 4.4.3-1 battery monitor problem

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

Board footer

Powered by FluxBB