Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 284182 - x11-plugins/gkrellm-hddtemp-0.2_beta-r1 does not show any device name and corresponding temp. values
Summary: x11-plugins/gkrellm-hddtemp-0.2_beta-r1 does not show any device name and cor...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Jim Ramsay (lack) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-08 14:56 UTC by Attila Stehr
Modified: 2010-07-27 17:42 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Stehr 2009-09-08 14:56:00 UTC
The plugin can be activated but it then shows _empty_ rows.

The notes at the end of the install process say "hddtemp has to be suid root to 
allow regular users to run this plugin."
Maybe the problem is, that hddtemp is only executed as non-root when the full path is given (see additional information). I guess gkrellm tries to call hddtemp to determine temperature values without success. But I may be utterly wrong.

as well:
There is no possibility to do reasonable configuration like setting to show values in °Celsius or °Fahrenheit. But I will be fine w/o settings if °C is shown. :o)



Reproducible: Always

Steps to Reproduce:
1. emerge -v gkrellm-hddtemp
2. run gkrellm
3. activate the hddtemp-plugin


Actual Results:  
There appear empty bar(s) without the device name and w/o temperature value shown.



Expected Results:  
Temperature value and device name (sda, sdb...) shown.



atti@magic ~ $ hddtemp /dev/sda
-bash: hddtemp: command not found

atti@magic ~ $ /usr/sbin/hddtemp /dev/sda
/dev/sda: ST3320620AS: 35°C
atti@magic ~ $ 



Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-gentoo-1.12.11.1
Timestamp of tree: Tue, 08 Sep 2009 10:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict stricter test unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
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="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X acpi alsa amd64 applet archive bash-completion boundschecking bzip2 cairo cdinstall cdr clamav cracklib crypt cups cupsddk dbus dga directfb dri dvd dvdnav dvdr eds esd evo fam fbcon fontconfig fuse glitz gmp gnome gnutls gpm gstreamer gtk gzip hal hddtemp icu libnotify lm_sensors logitech-mouse lzma lzo md5sum memlimit mmx mmxext mp4 mudflap multilib nautilus networkmanager nls nocd nptl nptlonly offensive opengl openmp pam pda ppds pth rtc session smp spell sse sse2 ssl startup-notification symlink sysfs test threads threadsafe thunar truetype unicode usb videos xcb xml xorg xulrunner zlib" ALSA_CARDS="via82xx" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="radeon fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Attila Stehr 2009-09-10 16:35:01 UTC
When starting gkrellm on the command line there is the following output:
"gkrellm-hddtemp: connect: Verbindungsaufbau abgelehnt"
which is translated:
"gkrellm-hddtemp: connect: connection refused!"

It looks like hddtemp has to be started as daemon. For example:
atti@magic ~ $ /usr/sbin/hddtemp -d /dev/sd[abcde]

Now, is gkrellm / the plugin expected to do so or the user? If it's upon the user, that should be mentioned at the end of the emerge process. 

Doing it manually doesn't lead to a satisfying result since gkrellm crashes and xmessage shows 
"gkrellm Speicherzugriffsverletzung: HDDtemp (create_monitor)"
which is
"gkrellm memory access violation: HDDtemp (create_monitor)"

:(
Comment 2 crusaderky 2009-09-19 18:11:10 UTC
I get similar results with gkrellm-hddtemp-0.2_beta-r1, gkrellm-2.3.2-r1 and hddtemp-0.3_beta15-r3.

Running hddtemp works fine as a normal user and reports the correct temperature:

$ /usr/sbin/hddtemp /dev/sda 
WARNING: Drive /dev/sda doesn't appear in the database of supported drives
WARNING: But using a common value, it reports something.
WARNING: Note that the temperature shown could be wrong.
WARNING: See --help, --debug and --drivebase options.
WARNING: And don't forget you can add your drive to hddtemp.db
/dev/sda: MAXTOR STM3250820AS:  38°C or °F

As a core functionality of gkrellm, I can enable monitors for sda and sdb, but they will show 0°C.

If I try to enable gkrellm-hddtemp from the plugins tab, gkrellm segfaults with the same message as reported above.
Comment 3 Jim Ramsay (lack) (RETIRED) gentoo-dev 2010-07-27 17:42:03 UTC
With recent versions of app-admin/gkrellm (with USE="hddtemp"), the hddtemp information is just part of the normal sensor information, and no longer needs a separate plugin.

So I have masked gkrellm-hddtemp for removal in 30 days; please use the hddtemp USE flag of app-admin/gkrellm instead.