Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 408893 - app-admin/conky-1.8.1-r4 USE=apcupsd shows N/A in the output
Summary: app-admin/conky-1.8.1-r4 USE=apcupsd shows N/A in the output
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-19 17:14 UTC by upendra
Modified: 2013-10-24 17:02 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix broken apcups support in >Conky 1.8.0 (fix-apcupsd.patch,2.80 KB, patch)
2012-08-20 19:30 UTC, Machredsch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description upendra 2012-03-19 17:14:38 UTC
conky o/p shows N/A for all apcupsd related outputs.

eix conky
[U] app-admin/conky
     Available versions:  1.8.1-r4 1.8.1-r6 {X apcupsd audacious curl debug eve hddtemp imlib iostats lua lua-cairo lua-imlib math moc mpd nano-syntax ncurses nvidia +portmon rss thinkpad truetype vim-syntax weather-metar weather-xoap wifi xmms2}
     Installed versions:  1.8.1-r4(12:06:22 PM 03/19/2012)(X apcupsd curl hddtemp imlib iostats ncurses portmon truetype vim-syntax weather-metar weather-xoap -audacious -debug -eve -lua -lua-cairo -lua-imlib -math -moc -mpd -nano-syntax -nvidia -rss -thinkpad -wifi -xmms2)

conky.conf
${apcupsd localhost 3551}
${apcupsd_model}* ${apcupsd_status}
Mode: ${apcupsd_upsmode} 
LOAD :${apcupsd_load}% TIME LEFT:${apcupsd_timeleft}m 
Capacity: ${apcupsd_charge}% ${apcupsd_temp}
Load Bar: ${apcupsd_loadbar}


lsof -i | grep 355
apcupsd    3905     root    5u  IPv4 23462478      0t0  TCP *:3551 (LISTEN)
Comment 1 upendra 2012-03-19 17:16:51 UTC
Tried conky-1.8.1-r6 aswell but the issue continues. Thanks.
Comment 2 upendra 2012-03-19 17:23:26 UTC
emerge --info
Portage 2.1.10.44 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r2, 3.2.1-gentoo-r2 x86_64)
=================================================================
System uname: Linux-3.2.1-gentoo-r2-x86_64-Intel-R-_Core-TM-2_CPU_6400_@_2.13GHz-with-gentoo-2.0.3
Timestamp of tree: Fri, 16 Mar 2012 16:45:01 +0000
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.5.4-r4, 2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          9999
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.6-r1, 4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo sunrise vmware lxde portage-backup akoya mozilla cj-overlay local
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -Os -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=core2 -Os -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/ rsync://mirror.mcs.anl.gov/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo rsync://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.tds.net/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/nfs1/var/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/vmware /var/lib/layman/lxde /var/lib/layman/portage-backup /var/lib/layman/akoya /var/lib/layman/mozilla /var/lib/layman/cj-overlay /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 aspell berkdb bzip2 cli consolekit cracklib crypt cups cxx dbus dri gdbm gpm gstreamer gtk hal iconv ipv6 jpeg ldap mmx modules mudflap multilib ncurses nls nptl nptlonly nsplugin openmp pam pcre pppd readline session sse sse2 ssl svg sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias cgi cgid" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 upendra 2012-03-28 18:46:07 UTC
Anyone? Still unconfirmed.
Comment 4 Daniel Pielmeier gentoo-dev 2012-04-08 11:14:27 UTC
I can confirm this behavior, but I do not own a APC UPS and thus can not get the apcupsd running. I guess you have apcupsd running and properly configured but still get the N/A output.
Comment 5 Machredsch 2012-05-06 11:37:24 UTC
Same problem here with APC Back-UPS CS 350.
The problem occured with conky 1.8.1 and isn't fixed for me with conky 1.9.0.
Comment 6 Machredsch 2012-08-20 19:30:12 UTC
Created attachment 321788 [details, diff]
Fix broken apcups support in >Conky 1.8.0

Tried the Debian Patch as mentioned upstream. Works fine for me with conky-1.9.0-r1 and my APC. The Patch isn't from the developer of conky itself and reverts back to the old handling of apcups until 1.8.0.
Comment 7 Slava Barinov 2013-01-14 06:22:23 UTC
(In reply to comment #6)
> Created attachment 321788 [details, diff] [details, diff]
> Fix broken apcups support in >Conky 1.8.0
> 
> Tried the Debian Patch as mentioned upstream. Works fine for me with
> conky-1.9.0-r1 and my APC. The Patch isn't from the developer of conky
> itself and reverts back to the old handling of apcups until 1.8.0.

Tested this patch on 1.9.0-r2 with Back-UPS BR 800. Patch works fine with current sources in portage.
Comment 8 Matthew Marlowe (RETIRED) gentoo-dev 2013-10-21 21:36:58 UTC
Can someone confirm that this patch is still needed, works with the current version of conky in portage, and will apply to our current testing ebuild 3.4.10-r4?
Comment 9 Daniel Pielmeier gentoo-dev 2013-10-22 08:13:49 UTC
(In reply to Matthew Marlowe from comment #8)
> Can someone confirm that this patch is still needed, works with the current
> version of conky in portage, and will apply to our current testing ebuild
> 3.4.10-r4?

Matthew the patch is actually for conky and not apcupsd.
Comment 10 Daniel Pielmeier gentoo-dev 2013-10-24 17:02:16 UTC
+*conky-1.9.0-r3 (24 Oct 2013)
+
+  24 Oct 2013; Daniel Pielmeier <billie@gentoo.org> +conky-1.9.0-r3.ebuild,
+  +files/conky-1.9.0-apcupsd.patch:
+  Add patch from Debian to make apcupsd work again. This reverts the apcupsd
+  code in conky back to version 1.8.1. Upstream is currently idle, so this is
+  probably the best solution for the time being. This fixes bug #408893. Thanks
+  to Upendra Ghandi for the report.

Okay, I have added the patch. Probably the best we can do for now. Please test and if there are any issues reopen the bug and report back.