! 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 !
Suppress tooltip option
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xfce4-sensors-plugin
Component:
General

Comments

Description swordplay 2014-04-22 22:56:20 CEST
Need a way to suppress the tooltip popup when hovering over the plugin.

I'm trying to build a mostly translucent toolbar that contains only the sensors information.  I'd like for the toolbar to become solid when I hover over it, but when I do the tooltip pops up and obscures the toolbar text.

It seems like there may be a way to write a .gtkrc-2.0 file to suppress it, but it is not obvious, and honestly I'm not very familiar with writing such things. The information, if it doesn't require days of study, isn't anywhere obvious on the XFCE site.

I'd much prefer a checkbox - "Display tooltip" or the like.

Aloha, and thanks!

:D

m a r
Comment 1 Fabian Nowak editbugs 2014-04-29 00:00:32 CEST
Will care for that. This will also pose a workaround for the panel crashes when using the tachometer mode. Thanks for the idea ;)
Comment 2 swordplay 2014-04-29 02:25:52 CEST
Awesome, thanks!
Comment 3 Fabian Nowak editbugs 2014-04-29 23:59:03 CEST
started implementing in commit 240bf2e67e77f6d9ad6507f8bd0acf3a5b3db57d . Feel free to test. The tachometers still don't work 100%, but it seems better with the tooltip turned off.
Comment 4 Fabian Nowak editbugs 2014-04-30 00:30:34 CEST
Seems to work.
Comment 5 swordplay 2014-04-30 01:05:18 CEST
If I could, I would! :)

Unfortunately, I'm not sure how.  I've built a few applications with "configure-make-install" in the past, but pulling from git is beyond me.

Maybe it will make it into 4.12?  Perhaps it will show up in the dev PPA soonish?

Anyhow, big thanks and much aloha for the quick response!  Looking forward to using it.

m a r
Comment 6 Fabian Nowak editbugs 2014-04-30 20:56:35 CEST
(In reply to swordplay from comment #5)

As indicated on http://git.xfce.org/panel-plugins/xfce4-sensors-plugin/:

$ git clone git://git.xfce.org/panel-plugins/xfce4-sensors-plugin

Then:

$ ./autogen.sh && make && sudo make install clean

You need to have the development packages of Glib, Gtk, Xfce, libsensors, libnotify installed, e.g. on Debian:

$ sudo apt-get install libnotify-dev libglib2.0-dev libgtk2.0-dev xfce4-dev-tools xfce4-panel-dev gcc-4.9 automake autoconf

This should be enough. Optionally, install hddtemp and nvidia-glx package for the GPU sensor.
Comment 7 swordplay 2014-04-30 22:33:08 CEST
Okay, I built it on Linux Mint 16 and got it installed using checkinstall to create a deb, instead of make install clean.  Let me know if that was a mistake.

There were a lot of errors (spaces and some environmental variables instead of actual values) in the checkinstall menu -- I cleaned up the spaces and removed the "depends" values, so perhaps that had some bad effect? The deb eventually built and installed without error.

The plugin didn't show up in the list of panel plugins.  I logged out and back in, and still nothing.  I tried to run the plugin directly, but don't know the parameters it requires on the command line.

xfce4-sensors worked from command line, but the ACPI dropdown showed no values at all. Hard Disks dropdown did show my hard drive and it's temperature.

Currently, if I run sensors from the command line, this is the output:

acpitz-virtual-0
Adapter: Virtual device
temp1:        +27.8°C  (crit = +106.0°C)
temp2:        +29.8°C  (crit = +106.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +36.0°C  (high = +85.0°C, crit = +105.0°C)
Core 0:         +32.0°C  (high = +85.0°C, crit = +105.0°C)
Core 1:         +29.0°C  (high = +85.0°C, crit = +105.0°C)
Core 2:         +35.0°C  (high = +85.0°C, crit = +105.0°C)
Core 3:         +36.0°C  (high = +85.0°C, crit = +105.0°C)

f71889a-isa-0290
Adapter: ISA adapter
+3.3V:        +3.25 V  
in1:          +0.90 V  (max =  +2.04 V)
in2:          +0.01 V  
in3:          +0.94 V  
in4:          +1.09 V  
in5:          +0.74 V  
in6:          +1.03 V  
3VSB:         +3.26 V  
Vbat:         +3.30 V  
fan1:        1435 RPM
fan2:        1427 RPM
fan3:           0 RPM  ALARM
temp1:        +34.0°C  (high = +255.0°C, hyst = +251.0°C)  ALARM (CRIT)
                       (crit = +255.0°C, hyst = +251.0°C)  sensor = transistor
temp2:          FAULT  (high = +255.0°C, hyst = +251.0°C)
                       (crit = +255.0°C, hyst = +251.0°C)  sensor = transistor
temp3:        +40.0°C  (high = +255.0°C, hyst = +253.0°C)  ALARM (CRIT)
                       (crit = +255.0°C, hyst = +253.0°C)  sensor = transistor

pkg-temp-0-virtual-0
Adapter: Virtual device
temp1:        +36.0°C  


There are obviously some problems with the f71889a-isa-0290 temperature limits, but they are reporting two correct temperature values.  I have tried to find a sensors3.conf file for my board, but have been unsuccessful.

Here is hddtemp output:
/dev/sdb: ST9750420AS: 33°C

Hope it helps somewhat and let me know if I can do more.
Comment 8 Fabian Nowak editbugs 2014-05-01 12:28:44 CEST
(In reply to swordplay from comment #7)
> Okay, I built it on Linux Mint 16 and got it installed using checkinstall to
> create a deb, instead of make install clean.  Let me know if that was a
> mistake.

No mistake, but regard the log files: Installing to /usr/local as well.

> 
> There were a lot of errors (spaces and some environmental variables instead
> of actual values) in the checkinstall menu -- I cleaned up the spaces and
> removed the "depends" values, so perhaps that had some bad effect? The deb
> eventually built and installed without error.

Don't think so.

> 
> The plugin didn't show up in the list of panel plugins.  I logged out and
> back in, and still nothing.  I tried to run the plugin directly, but don't
> know the parameters it requires on the command line.

Yes, 

$ cd /usr/share/xfce4/panel/plugins && sudo ln -s /usr/local/share/xfce4/panel-plugins/xfce4-sensors-plugin.desktop

This will present a .desktop file to the panel in which the correct path to the plugin binary file is inserted.

> 
> xfce4-sensors worked from command line, but the ACPI dropdown showed no
> values at all. 

Sorry, can't help with that. There are two ACPI things, with one reading by the sensors-plugin from /sys or /proc, and the other being from lmsensors, as you wrote further down (acpitz). 

> Hard Disks dropdown did show my hard drive and it's
> temperature.

So the library is basically working :)
Comment 9 swordplay 2014-05-02 03:23:16 CEST
I think I might be at my limit here.

As a test, I installed the distro's sensor plugin, and it is properly displaying all the items in the sensors list I posted previously.

So, while your new version built, I'm afraid that it doesn't work properly for me.  I never got to test the suppressed tooltip.

I'm perfectly willing to help, but I don't think I'm going to be able to use it until it is packaged up properly for the distro without clear and direct instruction.

I'm sure it's working for you, and that it will eventually migrate down to me.

Much aloha,

m a r

Bug #10840

Reported by:
swordplay
Reported on: 2014-04-22
Last modified on: 2014-05-02

People

Assignee:
Fabian Nowak
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information