! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
[xfce4-battery-plugin] displaying strange data when acpid is absend.
Status:
RESOLVED: DUPLICATE
Product:
Xfce4-battery-plugin
Component:
General

Comments

Description Eugene V. Lyubimkin 2007-09-29 08:20:18 CEST
If I run xfce4-battery-plugin when acpid isn't installed, it will display strange "50%%" on panel and no reaction to either plugin's settings will be.

If acpid is running, all is fine.

So I make a suggestion:

1) add the acpid in dependencies of the packet;
 and/or
2) check at plugin's start that acpid is running and, if not, display the appropriate error message.

I have xfce 4.4.1 and xfce4-battery-plugin 0.5.0-1.

P.S. I chosen component "ristretto" only to commit the bug, why there is no other entries?
Comment 1 Stephan Arts editbugs 2007-09-29 13:52:36 CEST
re-assigning to goodies@xfce.org (goodies maintainers)

change product to panel plugins
Comment 2 Christoph Mende 2008-12-09 15:59:09 CET
Created attachment 2023 
use sysfs

you don't necessarily need acpid, attached patch makes xfce4-battery read from sysfs, which is the new interface to the battery. the proc interface has been removed in recent kernel versions
Comment 3 Yves-Alexis Perez editbugs 2008-12-09 16:43:27 CET
(In reply to comment #2)
> Created an attachment (id=2023) [details]
> use sysfs
> 
> you don't necessarily need acpid, attached patch makes xfce4-battery read from
> sysfs, which is the new interface to the battery. the proc interface has been
> removed in recent kernel versions

Hmhm, recent battery plugin already reads data from sysfs if available. Did you test it?
Comment 4 Yves-Alexis Perez editbugs 2008-12-09 16:49:54 CET
(In reply to comment #3)
> Hmhm, recent battery plugin already reads data from sysfs if available. Did you
> test it?

Sorry, wrong, we patch it for that. Sorry for the noise. It'd be nice if the patch was integrated (or if the plugin switched to the hal_based branch)
Comment 5 Florian Rivoal editbugs 2010-12-27 15:06:45 CET
The patch in bug #3793 has been integrated. Sorry for the long wait.

*** This bug has been marked as a duplicate of bug 3793 ***

Bug #3579

Reported by:
Eugene V. Lyubimkin
Reported on: 2007-09-29
Last modified on: 2010-12-27

People

Assignee:
Xfce-Goodies Maintainers
CC List:
4 users

Version

Version:
0.5.1 or older

Attachments

use sysfs (8.63 KB, patch)
2008-12-09 15:59 CET , Christoph Mende
no flags

Additional information