Gatotray

Window managers, icon programs, widgets, etc.
Message
Author
User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

Gatotray

#1 Post by jemimah »

I don't know what puppy to compile for any more and stuff combined on Puppeee/Fluppy is no longer compatible with 4.3.1. But this is still worth knowing about so I'll post source code links.

Pros: small, multifunction applet, works in all WMs
cons: not transparent, no warning capability


http://gatopeichs.pbworks.com/f/gatotray-1.10.tgz

ImageImage

User avatar
clarf
Posts: 613
Joined: Wed 13 Jun 2007, 19:22
Location: The old Lone Wolf

#2 Post by clarf »

Thanks for the link jemimah,

Working fine in 214X.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

Re: Gatotray

#3 Post by disciple »

jemimah wrote:no warning capability
Apart from this:
Thermometer blinks on high temperature (>=85 C)
The log scale is rather weird :)
Does anyone know what the "wa" is?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#4 Post by jemimah »

Cool I didn't notice that. I wonder if it could be modified to auto-calibrate to the correct critical temperature.

gatopeich
Posts: 6
Joined: Sat 29 Jan 2011, 00:15

#5 Post by gatopeich »

So, are you using gatotray then?

I am the happy father of the creature but I get very little feedback about it. If you provide interesting feedback I would probably (depending on time availability) add some features, specially a settings dialog where to choose colors, ranges, and the program to start on-click.

gatopeich.-
http://gatopeichs.pbworks.com

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#6 Post by Béèm »

So it has to be compiled first, at least for the latest version.
The bin available on the web site excutes in LightHouse 502G.
But:
The cpu freq isn't displayed
A click should bring TOP, but it doesn't.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#7 Post by jemimah »

I would be very tempted replace Traytemp with Gatotray in my puplets if Gatotray had configurable warning threshold and action from right-click menu (and maybe configurable top command).

User avatar
clarf
Posts: 613
Joined: Wed 13 Jun 2007, 19:22
Location: The old Lone Wolf

#8 Post by clarf »

Béèm wrote:So it has to be compiled first, at least for the latest version.
The bin available on the web site excutes in LightHouse 502G.
But:
The cpu freq isn't displayed
A click should bring TOP, but it doesn't.
Hi Béèm,

Please try this version that I modified for 2.14X, it is already included in Puppy 214X-TOP5 series. It´s a great applet.

It works with older kernels, htop is opened with a left click and it shows the freq information.

Greetings,
clarf
Attachments
clarf_gatotray-1.10_patched_source.tar.gz
Patched Sources with commented changes
(14.07 KiB) Downloaded 1003 times
clarf-gatotray-binary.zip
Compiled in 214X
(8.38 KiB) Downloaded 918 times

gatopeich
Posts: 6
Joined: Sat 29 Jan 2011, 00:15

gatotray v2.0

#9 Post by gatopeich »

Hey I just finished adding a preferences dialog to gatotray, and the option to have the background transparent.

It involves quite big changes so I versioned it 2.0. I am keeping it as lightweight as ever though!

I am also thinking of allowing the user to customize top command, and the tooltip contents.

I am also thinking about setting a project page where I can coordinate patches, bugs, and suggestions, maybe in Google Code Hosting...
Attachments
gatotray-2.0.tar.bz2
(53.45 KiB) Downloaded 952 times

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#10 Post by jemimah »

Looks great so far - especially with the transparent background. I like that it monitors both the cpu and the temperature with one applet.

Is there any way to set the warning threshold? It looks like it's still hard coded to 85 degrees but I guess this threshold should depend on the cpu architecture and clock speed. I think there's a way to get the safe temperature range from the kernel, but I don't remember where off the top of my head.

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#11 Post by Béèm »

I try it on lucid 5.20 right now.
Indeed the thermometer is always red Temperature varies between 58 and 60°C.
Freq is not displayed.
CPU usage is displayed.
A click should bring up HTOP, but that doesn't occur.
But nice little applet. Promising
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#12 Post by technosaurus »

If you add a commandline option for max CPU temp that may be good, but I can't seem to find anything in /proc for a max CPU temp. Any suggestions where to find?
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#13 Post by jemimah »

I was thinking of something like this. You probably can't count on this being here but I think it is on most machines.

Code: Select all

pwd
/proc/acpi/thermal_zone/TZ1
# cat trip_points 
critical (S5):           110 C
passive:                 107 C: tc1=1 tc2=2 tsp=300 devices=CPU0 CPU1 
active[0]:               82 C: devices=C3C1 
active[1]:               74 C: devices=C3C2 
active[2]:               66 C: devices=C3C3 
active[3]:               50 C: devices=C3C4 
active[4]:               30 C: devices=C3C5 

Code: Select all

ls /proc/acpi/thermal_zone/*/trip_points
/proc/acpi/thermal_zone/TZ1/trip_points
/proc/acpi/thermal_zone/TZ3/trip_points
/proc/acpi/thermal_zone/TZ4/trip_points
/proc/acpi/thermal_zone/TZ5/trip_points

gatopeich
Posts: 6
Joined: Sat 29 Jan 2011, 00:15

New project page dedicated to gatotray

#14 Post by gatopeich »

Hello, in order to coordinate all this feedback I am getting for gatotray, I have started a project page at Google code hosting: http://code.google.com/p/gatotray/

Please go there and submit your feature requests under the "Issues" category (http://code.google.com/p/gatotray/issues). Thus I hope to keep good track, and I will work on them at the best pace my dayjob allows...

Cheers!

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

Re: New project page dedicated to gatotray

#15 Post by disciple »

gatopeich wrote:Hello, in order to coordinate all this feedback I am getting for gatotray, I have started a project page at Google code hosting: http://code.google.com/p/gatotray/
Great!
disciple wrote:Does anyone know what the "wa" is?
Maybe I missed this information somewhere, but can anyone tell me? Or is it not displayed on your computers?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

gatopeich
Posts: 6
Joined: Sat 29 Jan 2011, 00:15

#16 Post by gatopeich »

disciple wrote:
Does anyone know what the "wa" is?
Sure enough, "wa" is top's abbreviation for I/O waiting time. It amounts for the time the system spends waiting for disk and network operations, while the CPU is sitting on its hands (idle).

I give it a very visible position in gatotray because long I/O times are often indicative of bad system tuning, or of disk-costly daemons running at the wrong time, or also processes eating too much memory and triggering a lot of swap.

Since the system gets unresponsive during I/O wait 'attacks', they are difficult to identify, but gatotray is always there and can provide a clue in a glimpse without the need to open any app, and acts as a shortcut to 'xterm top', which is a relatively lightweight and fast way to see what is going on.

gatopeich
Posts: 6
Joined: Sat 29 Jan 2011, 00:15

#17 Post by gatopeich »

jemimah wrote:I was thinking of something like this. You probably can't count on this being here but I think it is on most machines.

Code: Select all

pwd
/proc/acpi/thermal_zone/TZ1
# cat trip_points 
critical (S5):           110 C
passive:                 107 C: tc1=1 tc2=2 tsp=300 devices=CPU0 CPU1 
active[0]:               82 C: devices=C3C1 
active[1]:               74 C: devices=C3C2 
active[2]:               66 C: devices=C3C3 
active[3]:               50 C: devices=C3C4 
active[4]:               30 C: devices=C3C5 

Code: Select all

ls /proc/acpi/thermal_zone/*/trip_points
/proc/acpi/thermal_zone/TZ1/trip_points
/proc/acpi/thermal_zone/TZ3/trip_points
/proc/acpi/thermal_zone/TZ4/trip_points
/proc/acpi/thermal_zone/TZ5/trip_points
Check this out, it is the current reference for temperature reading in Linux: http://lwn.net/Articles/268958/
Here is some discussion: http://www.mail-archive.com/linux-acpi@ ... 12483.html
And this is the somewhat obsoleted one: http://acpi.sourceforge.net/documentation/thermal.html

And please fill an issue on the new site for gatotay! http://code.google.com/p/gatotray/issues/list

User avatar
Artie
Posts: 448
Joined: Tue 04 Oct 2005, 17:45
Location: Norway
Contact:

#18 Post by Artie »

This thread got me curious about temperatures in my old laptop. It's a Compaq Evo N610c running Lupu 5.2. In system information sensors it says

C1D6 45 degrees C and never varies
TZ1 45 degrees C but this one varies a lot up and down with the load

I tried to install the heat monitor from Pwidgets but that one is useless as it's stuck on 45. Would it be possible to have an option showing TZ1 in your app?

Artie

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#19 Post by technosaurus »

Artie wrote:This thread got me curious about temperatures in my old laptop. It's a Compaq Evo N610c running Lupu 5.2. In system information sensors it says

C1D6 45 degrees C and never varies
TZ1 45 degrees C but this one varies a lot up and down with the load

I tried to install the heat monitor from Pwidgets but that one is useless as it's stuck on 45. Would it be possible to have an option showing TZ1 in your app?

Artie
Artie - Please honor the developer's request to request feature enhancements and report bugs at:
http://code.google.com/p/gatotray/issues/list
Having them in a single location is vital to proper tracking.
(btw google code's issue tracker has a means to discuss each issue until it is closed)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
chiron
Posts: 87
Joined: Mon 30 Oct 2006, 18:13
Location: Franken, Bavaria, Germany

#20 Post by chiron »

I did some patching around with Gatotray, my version now starts GKrellm (when installed) on clicking. Plus, I fiddled with the values for the thermometer, so now it starts with 35°C, and reaches the top at 85°C. Blinking starts at 70°C. If I can remember how to do the simple text-file operations in C, I will make a config-file, where one can put temperature range, max temperature, the application to start on clicking, and the text that is displayed on mouseover.

If somebody is interested and Gatopeich doesn't mind, I will put it up for downloading.

Post Reply