Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 27 Apr 2015, 18:36
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
pmcputemp -temperature monitor
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 4 [50 Posts]   Goto page: 1, 2, 3, 4 Next
Author Message
01micko


Joined: 11 Oct 2008
Posts: 7904
Location: qld

PostPosted: Sun 22 Mar 2015, 03:19    Post subject:  pmcputemp -temperature monitor
Subject description: simple tray app
 

This is pmcputemp - simple tray icon that shows CPU temperature.

NEW VERSION 0.63 (note, locales still at 0.60, I'll update soon)

Translations need updating for added dialogs

New feature shows the CPU frequency in real time in the tooltip (see below)

It is the successor to tempicon which is now discontinued, but if it still works for you feel free to use it.

The old one started life as a mash up of shell scripting and C rendering the icon at first in .XPM then later in .SVG image format. Of course there is a script in that thread somewhere where there is a 'proof of concept' using technosaurus' SIT tray utility.

The all new pmcputemp (pm = poor man's) builds the icon with cairo and renders a .PNG. It's 99% C except for a once only run script to find your temperature sensor output, which in the future may be rewritten in C. For more info see my github page - https://github.com/01micko/pmcputemp, where you can find the latest source, but also I have uploaded a tarball - https://01micko.com/src/pmcputemp-0.63.tar.xz.

I have built slacko64, Tahr pets

Here is the fatdog package: https://01micko.com/fatdog64/pmcputemp-0.60-x86_64-1.txz (NOTE: not updated yet! NB: jamesbond will be putting latest version in FD repo)

Others are attached below.

There are NLS translations to be done/fixed UPDATE- it, fr and zh are fixed thanks to xanad, charlie6 and icake


Translators: the .pot file is in the package. Need updating for 0.63. Thank you Smile
tooltip.png
 Description   New feature
 Filesize   7.46 KB
 Viewed   45 Time(s)

tooltip.png

pmcputemp-0.63-i686.pet
Description  Tahr package
pet

 Download 
Filename  pmcputemp-0.63-i686.pet 
Filesize  8.83 KB 
Downloaded  93 Time(s) 
pmcputemp-0.63-x86_64.pet
Description  Slacko64 package
pet

 Download 
Filename  pmcputemp-0.63-x86_64.pet 
Filesize  7.72 KB 
Downloaded  68 Time(s) 
pmcputemp_NLS-0.60-i686_ta.pet
Description  locales (tahr)
pet

 Download 
Filename  pmcputemp_NLS-0.60-i686_ta.pet 
Filesize  2.2 KB 
Downloaded  69 Time(s) 
pmcputemp_DOC-0.60-i686_ta.pet
Description  docs
pet

 Download 
Filename  pmcputemp_DOC-0.60-i686_ta.pet 
Filesize  1.11 KB 
Downloaded  52 Time(s) 
pmcputemp_NLS-0.60-x86_64.pet
Description  locales (slacko64)
pet

 Download 
Filename  pmcputemp_NLS-0.60-x86_64.pet 
Filesize  1.9 KB 
Downloaded  44 Time(s) 
pmcputemp_DOC-0.60-x86_64.pet
Description  docs
pet

 Download 
Filename  pmcputemp_DOC-0.60-x86_64.pet 
Filesize  1.09 KB 
Downloaded  57 Time(s) 
pmcputemp.jpg
 Description   How it appears; goes green, then red as it gets hotter.
 Filesize   4 KB
 Viewed   778 Time(s)

pmcputemp.jpg


_________________
Woof Mailing List | keep the faith Cool |

Last edited by 01micko on Mon 20 Apr 2015, 21:06; edited 9 times in total
Back to top
View user's profile Send private message Visit poster's website 
slavvo67

Joined: 12 Oct 2012
Posts: 643
Location: The other Mr. 305

PostPosted: Tue 24 Mar 2015, 00:11    Post subject:  

Welcome back! You have been missed!!!
Back to top
View user's profile Send private message 
xanad


Joined: 28 Feb 2014
Posts: 291
Location: 2 locations: MonteRosa Alp and Milano

PostPosted: Thu 26 Mar 2015, 06:15    Post subject:  

pmcputemp italian translation
----
.mo + .po
pmcputemp_it.tar.gz
Description 
gz

 Download 
Filename  pmcputemp_it.tar.gz 
Filesize  982 Bytes 
Downloaded  40 Time(s) 

_________________
www.xanad.tk Html5 Parallax

Last edited by xanad on Thu 26 Mar 2015, 13:40; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7904
Location: qld

PostPosted: Thu 26 Mar 2015, 09:08    Post subject:  

xanad, thank you, but I need the .po file too please Wink

Git repo is updated with Chinese .po : CN,HK,TW thanks to icake

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
jamesbond

Joined: 26 Feb 2007
Posts: 2423
Location: The Blue Marble

PostPosted: Thu 26 Mar 2015, 12:29    Post subject:  

Mick,

1. rc file name is a bit odd (pcutemprc - sounds like a typo)

2. if the file in the config file cannot be read, the program goes into infinite loop. This code looks suspect:
Code:
while(!feof(ft)) {
fscanf(ft, "%d", &temp_val);
}
I think you should only read once; if you've got an error just show "err"or something.

3. "find /sys/devices/ -type f -name temp1_input" returns two entries, and pmcputemp.sh chooses the first one (the bad one).
Code:
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon0/temp1_input
/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input

The first entry cannot be read (test -r $sys returns true but read p < $sys returns error), and because of that the program goes to infinite loop. If I manually edit the conf file with the second entry, then the program works nicely.

4. When the about window is open the temp is not updated and all operations are suspended. E.g. I click on the icon, I get an about window. While the window is open, temp. is not updated. If (while the about window is still open) I click the icon again, nothing seems to happen. But as soon as I close the about window, another about window shows up. If I click the icon 3 times when the about window is shown, the about window will be shown 3 times afterwards.

_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread
Back to top
View user's profile Send private message 
xanad


Joined: 28 Feb 2014
Posts: 291
Location: 2 locations: MonteRosa Alp and Milano

PostPosted: Thu 26 Mar 2015, 13:42    Post subject:  

01micko wrote:
xanad, thank you, but I need the .po file too please Wink


.mo + .po in previous atthachment - update

_________________
www.xanad.tk Html5 Parallax
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7904
Location: qld

PostPosted: Thu 26 Mar 2015, 17:53    Post subject:  

Thank you xanad.

---------------------------------------------------------------------------------------------------------

jamesbond wrote:

1. rc file name is a bit odd (pcutemprc - sounds like a typo)


Woops.. fixed!

jamesbond wrote:

2. if the file in the config file cannot be read, the program goes into infinite loop. This code looks suspect:
Code:
while(!feof(ft)) {
fscanf(ft, "%d", &temp_val);
}
I think you should only read once; if you've got an error just show "err"or something.


Ah, ok, so I simplified by removing the feof call and checking the status of fscanf()
Code:
int success = fscanf(ft, "%d", &temp_val);
      if (success < 1) {
         fprintf(stderr,_("Failed to read temperature, giving up."));
         exit (1);
      }
Hopefully that kills any endless loop. Hmm.. I probably should test for more sane result, becuase we are expecting a 5 digit result. (to do)

jamesbond wrote:

3. "find /sys/devices/ -type f -name temp1_input" returns two entries, and pmcputemp.sh chooses the first one (the bad one).
Code:
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon0/temp1_input
/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input

The first entry cannot be read (test -r $sys returns true but read p < $sys returns error), and because of that the program goes to infinite loop. If I manually edit the conf file with the second entry, then the program works nicely.


Yeah this is a bit of a problem. The real solution is to go the same way as HardInfo. I'll think about that.

jamesbond wrote:

4. When the about window is open the temp is not updated and all operations are suspended. E.g. I click on the icon, I get an about window. While the window is open, temp. is not updated. If (while the about window is still open) I click the icon again, nothing seems to happen. But as soon as I close the about window, another about window shows up. If I click the icon 3 times when the about window is shown, the about window will be shown 3 times afterwards.

Should be a fairly simple fix. On to it soon. EDIT: simply switching from Xlib to gtk solves that but I will have to factor in gtk3 support, not urgent though so I'll disable gtk3 support for now.

Thanks for report!

Cheers Smile

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7904
Location: qld

PostPosted: Thu 26 Mar 2015, 23:40    Post subject:  

New version is uploaded, thanks for all translations and bug reports.

Code:
# git log --pretty                                 
commit 206fab593452d86a97393b4cf74459e2fb5209ec
Author: 01micko <01micko@gmail.com>
Date:   Fri Mar 27 12:23:41 2015 +1000

    Bump version

commit 0178b12807e3a78629a47c768a012cf66c7023aa
Author: 01micko <01micko@gmail.com>
Date:   Fri Mar 27 12:22:53 2015 +1000

    Add check for a sane temperature value

commit 7849bb84574a3c317a00d12f6f5bfba798a52b15
Author: 01micko <01micko@gmail.com>
Date:   Fri Mar 27 12:17:49 2015 +1000

    pmcputemp.c: disable show_about() on click, menu only. Change reading of tem

commit d5d818215e642627958c0113e345a567af43fd09
Author: 01micko <01micko@gmail.com>
Date:   Fri Mar 27 12:16:36 2015 +1000

    about.c: change window from XWindow to GTK

commit e86dbb3f6fb5e89812354d5b34e9384f513c03a5
Author: 01micko <01micko@gmail.com>
Date:   Fri Mar 27 12:15:32 2015 +1000

    about.h: change function from show_xlib() to show_about()

commit 0a273dd6d83682e82532b94b056ef3f4008b7fed
Author: 01micko <01micko@gmail.com>
Date:   Fri Mar 27 12:11:37 2015 +1000

    configure: temporarily disable gtk3 build. Add .pot to install

commit 24ac0b627ef2c8f10aa9297f36b799081492c687
Author: 01micko <01micko@gmail.com>
Date:   Fri Mar 27 07:01:17 2015 +1000

    Update it translation : xanad

commit b2d0e5147b64e75e1e03f0d00f16c1ae987bcd9b
Author: 01micko <01micko@gmail.com>
Date:   Fri Mar 27 06:52:46 2015 +1000

    Fix name of rc file : jamesbond

commit 5c1a5b360c6c989b7934ebce5e5e8076fcbcceb4
Author: 01micko <01micko@gmail.com>
Date:   Thu Mar 26 23:05:52 2015 +1000

    Added proper Chinese translations for CN, HK and TW, removed old version. Th



@jamesbond. Most of your bugs should be fixed now, except for the script, but at least the endless loop should not occur now.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
OscarTalks

Joined: 05 Feb 2012
Posts: 1006
Location: London, England

PostPosted: Fri 27 Mar 2015, 05:50    Post subject:  

I downloaded the source (0.50) from the github page using the download zip button and compiled in Dpup Wheezy but I found I still needed to edit the file name to pmcputemprc in line 44 of the script.
_________________
Oscar in England

Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7904
Location: qld

PostPosted: Fri 27 Mar 2015, 06:22    Post subject:  

Thanks Oscar, the packages don't have the issue, uploaded to github now.

Also fixed the link to the source in main post pointing to the latest - it's the same (ie : has the fixed script).

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
OscarTalks

Joined: 05 Feb 2012
Posts: 1006
Location: London, England

PostPosted: Fri 27 Mar 2015, 08:35    Post subject:  

This is rather queer. It compiles and runs OK in Dpup Wheezy and Slacko 5.7
In Precise 5.7.1 it seems to compile OK but then when I try to run it I get a *** Stack Smashing *** issue. The version compiled in Wheezy runs in Precise with no errors.

Code:
# pmcputemp
loading coretemp
/sys/devices/platform/coretemp.0/temp2_input is written to /root/.config/pmcputemp
An attempt has been made to create a configuration file
*** stack smashing detected ***: pmcputemp terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x45)[0xb6eee0e5]
/lib/libc.so.6(+0x10409a)[0xb6eee09a]
pmcputemp[0x8049760]
pmcputemp[0x804978c]
pmcputemp[0x8049fbf]
/lib/libc.so.6(__libc_start_main+0xf3)[0xb6e034d3]
pmcputemp[0x8049421]
======= Memory map: ========
08048000-0804b000 r-xp 00000000 07:01 8604       /initrd/pup_rw/usr/bin/pmcputemp
0804b000-0804c000 r-xp 00002000 07:01 8604       /initrd/pup_rw/usr/bin/pmcputemp
0804c000-0804d000 rwxp 00003000 07:01 8604       /initrd/pup_rw/usr/bin/pmcputemp
0804d000-0808f000 rwxp 00000000 00:00 0          [heap]
b671c000-b6738000 r-xp 00000000 07:00 2399       /initrd/pup_ro2/lib/libgcc_s.so.1
b6738000-b6739000 r-xp 0001b000 07:00 2399       /initrd/pup_ro2/lib/libgcc_s.so.1
b6739000-b673a000 rwxp 0001c000 07:00 2399       /initrd/pup_ro2/lib/libgcc_s.so.1
b673a000-b673c000 rwxp 00000000 00:00 0
b673c000-b6773000 r-xp 00000000 07:01 8209       /initrd/pup_rw/usr/lib/locale/en_GB/LC_CTYPE
b6773000-b6774000 r-xp 00000000 07:01 8208       /initrd/pup_rw/usr/lib/locale/en_GB/LC_NUMERIC
b6774000-b6775000 r-xp 00000000 07:01 8207       /initrd/pup_rw/usr/lib/locale/en_GB/LC_TIME
b6775000-b677a000 r-xp 00000000 07:01 8206       /initrd/pup_rw/usr/lib/locale/en_GB/LC_COLLATE
b677a000-b677b000 r-xp 00000000 07:01 8205       /initrd/pup_rw/usr/lib/locale/en_GB/LC_MONETARY
b677b000-b677c000 r-xp 00000000 07:01 8204       /initrd/pup_rw/usr/lib/locale/en_GB/LC_MESSAGES/SYS_LC_MESSAGES
b677c000-b677d000 r-xp 00000000 07:01 8202       /initrd/pup_rw/usr/lib/locale/en_GB/LC_PAPER
b677d000-b677e000 r-xp 00000000 07:01 8201       /initrd/pup_rw/usr/lib/locale/en_GB/LC_NAME
b677e000-b677f000 r-xp 00000000 07:01 8200       /initrd/pup_rw/usr/lib/locale/en_GB/LC_ADDRESS
b677f000-b6780000 r-xp 00000000 07:01 8199       /initrd/pup_rw/usr/lib/locale/en_GB/LC_TELEPHONE
b6780000-b6781000 r-xp 00000000 07:01 8198       /initrd/pup_rw/usr/lib/locale/en_GB/LC_MEASUREMENT
b6781000-b6782000 r-xp 00000000 07:01 8197       /initrd/pup_rw/usr/lib/locale/en_GB/LC_IDENTIFICATION
b6782000-b6785000 rwxp 00000000 00:00 0
b6785000-b678a000 r-xp 00000000 07:00 7002       /initrd/pup_ro2/usr/lib/libXdmcp.so.6.0.0
b678a000-b678b000 r-xp 00004000 07:00 7002       /initrd/pup_ro2/usr/lib/libXdmcp.so.6.0.0
b678b000-b678c000 rwxp 00005000 07:00 7002       /initrd/pup_ro2/usr/lib/libXdmcp.so.6.0.0
b678c000-b678e000 r-xp 00000000 07:00 7245       /initrd/pup_ro2/usr/lib/libXau.so.6.0.0
b678e000-b678f000 r-xp 00001000 07:00 7245       /initrd/pup_ro2/usr/lib/libXau.so.6.0.0
b678f000-b6790000 rwxp 00002000 07:00 7245       /initrd/pup_ro2/usr/lib/libXau.so.6.0.0
b6790000-b67b6000 r-xp 00000000 07:00 4919       /initrd/pup_ro2/lib/libexpat.so.1.5.2
b67b6000-b67b7000 ---p 00026000 07:00 4919       /initrd/pup_ro2/lib/libexpat.so.1.5.2
b67b7000-b67b9000 r-xp 00026000 07:00 4919       /initrd/pup_ro2/lib/libexpat.so.1.5.2
b67b9000-b67ba000 rwxp 00028000 07:00 4919       /initrd/pup_ro2/lib/libexpat.so.1.5.2
b67ba000-b67cd000 r-xp 00000000 07:00 4905       /initrd/pup_ro2/lib/libresolv-2.15.so
b67cd000-b67ce000 ---p 00013000 07:00 4905       /initrd/pup_ro2/lib/libresolv-2.15.so
b67ce000-b67cf000 r-xp 00013000 07:00 4905       /initrd/pup_ro2/lib/libresolv-2.15.so
b67cf000-b67d0000 rwxp 00014000 07:00 4905       /initrd/pup_ro2/lib/libresolv-2.15.so
b67d0000-b67d3000 rwxp 00000000 00:00 0
b67d3000-b67f0000 r-xp 00000000 07:00 2511       /initrd/pup_ro2/lib/libselinux.so.1
b67f0000-b67f1000 r-xp 0001c000 07:00 2511       /initrd/pup_ro2/lib/libselinux.so.1
b67f1000-b67f2000 rwxp 0001d000 07:00 2511       /initrd/pup_ro2/lib/libselinux.so.1
b67f2000-b67f5000 r-xp 00000000 07:00 2400       /initrd/pup_ro2/lib/libdl-2.15.so
b67f5000-b67f6000 r-xp 00002000 07:00 2400       /initrd/pup_ro2/lib/libdl-2.15.so
b67f6000-b67f7000 rwxp 00003000 07:00 2400       /initrd/pup_ro2/lib/libdl-2.15.so
b67f7000-b680b000 r-xp 00000000 07:00 2386       /initrd/pup_ro2/lib/libz.so.1.2.3.4
b680b000-b680c000 r-xp 00013000 07:00 2386       /initrd/pup_ro2/lib/libz.so.1.2.3.4
b680c000-b680d000 rwxp 00014000 07:00 2386       /initrd/pup_ro2/lib/libz.so.1.2.3.4
b680d000-b682c000 r-xp 00000000 07:00 7291       /initrd/pup_ro2/usr/lib/libxcb.so.1.1.0
b682c000-b682d000 r-xp 0001f000 07:00 7291       /initrd/pup_ro2/usr/lib/libxcb.so.1.1.0
b682d000-b682e000 rwxp 00020000 07:00 7291       /initrd/pup_ro2/usr/lib/libxcb.so.1.1.0
b682e000-b6836000 r-xp 00000000 07:00 6375       /initrd/pup_ro2/usr/lib/libxcb-render.so.0.0.0
b6836000-b6837000 r-xp 00008000 07:00 6375       /initrd/pup_ro2/usr/lib/libxcb-render.so.0.0.0
b6837000-b6838000 rwxp 00009000 07:00 6375       /initrd/pup_ro2/usr/lib/libxcb-render.so.0.0.0
b6838000-b6839000 rwxp 00000000 00:00 0
b6839000-b683b000 r-xp 00000000 07:00 6013       /initrd/pup_ro2/usr/lib/libxcb-shm.so.0.0.0
b683b000-b683c000 r-xp 00001000 07:00 6013       /initrd/pup_ro2/usr/lib/libxcb-shm.so.0.0.0
b683c000-b683d000 rwxp 00002000 07:00 6013       /initrd/pup_ro2/usr/lib/libxcb-shm.so.0.0.0
b683d000-b6865000 r-xp 00000000 07:00 4914       /initrd/pup_ro2/lib/libpng12.so.0.46.0
b6865000-b6866000 r-xp 00027000 07:00 4914       /initrd/pup_ro2/lib/libpng12.so.0.46.0
b6866000-b6867000 rwxp 00028000 07:00 4914       /initrd/pup_ro2/lib/libpng12.so.0.46.0
b6867000-b68fc000 r-xp 00000000 07:00 7011       /initrd/pup_ro2/usr/lib/libfreetype.so.6.8.0
b68fc000-b6900000 r-xp 00094000 07:00 7011       /initrd/pup_ro2/usr/lib/libfreetype.so.6.8.0
b6900000-b6901000 rwxp 00098000 07:00 7011       /initrd/pup_ro2/usr/lib/libfreetype.so.6.8.0
b6901000-b6994000 r-xp 00000000 07:00 7226       /initrd/pup_ro2/usr/lib/libpixman-1.so.0.24.4
b6994000-b6998000 r-xp 00092000 07:00 7226       /initrd/pup_ro2/usr/lib/libpixman-1.so.0.24.4
b6998000-b6999000 rwxp 00096000 07:00 7226       /initrd/pup_ro2/usr/lib/libpixman-1.so.0.24.4
b6999000-b69a0000 r-xp 00000000 07:00 2517       /initrd/pup_ro2/lib/librt-2.15.so
b69a0000-b69a1000 r-xp 00006000 07:00 2517       /initrd/pup_ro2/lib/librt-2.15.so
b69a1000-b69a2000 rwxp 00007000 07:00 2517       /initrd/pup_ro2/lib/librt-2.15.so
b69a2000-b69a3000 rwxp 00000000 00:00 0
b69a3000-b69dd000 r-xp 00000000 07:00 4885       /initrd/pup_ro2/lib/libpcre.so.3.12.1
b69dd000-b69de000 r-xp 00039000 07:00 4885       /initrd/pup_ro2/lib/libpcre.so.3.12.1
b69de000-b69df000 rwxp 0003a000 07:00 4885       /initrd/pup_ro2/lib/libpcre.so.3.12.1Aborted
#

_________________
Oscar in England

Back to top
View user's profile Send private message 
ally


Joined: 19 May 2012
Posts: 975
Location: lincoln

PostPosted: Fri 27 Mar 2015, 09:25    Post subject:  

hey micko

sorry to be dense, am running fatdog64-700 and the app works great from terminal, have added to the startup folder but the app (v-0.5) doesn't start, what am I doing wrong?

Smile
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7904
Location: qld

PostPosted: Fri 27 Mar 2015, 17:50    Post subject:  

hey ally

Make sure you didn't put the binary in ~/Startup. If you did put it back in /usr/bin.

FatDog-700 comes with a Startup folder in /etc/xdg/Startup. Use that one. Make a symlink either by opening /usr/bin and /etc/xdg/Startup and dragging pmcputemp into /etc/xdg/Startup and choosing 'symlink' from the rox menu.

Otherwise run this-
Code:
cd /etc/xdg/Startup/
ln -s ../../../usr/bin/pmcputemp . #that is a dot after a space on the end of this line
cd -


Restart X and you should be ok, if not try a reboot. If not again try reinstalling the program (uninstall first).

eg:
Code:
removepkg pmcputemp-0.50-x86_64-1.txz
installpkg pmcputemp-0.50-x86_64-1.txz


----------------------------------------------------------------------------------------------------------

Hi Oscar.

Interesting problem. Ultimately it indicates a bug in the program, usually not allocating enough space in memory for a variable. See http://www.drdobbs.com/security/anatomy-of-a-stack-smashing-attack-and-h/240001832. I'll have to find the bug and squash it. I wonder if it happens in tahr? I built the binary for tahr in a VM, which doesn't have a temp sensor so I couldn't test it.

As for it only occurring when compiled in Ubuntu, it's because they have a permanent flag set to gcc set >> -fstack-protector. You could try adding -fno-stack-protector to the CFLAGS var in the Makefile which will make the binary build but obviously doesn't fix the bug. ref << http://www.thegeekstuff.com/2013/02/stack-smashing-attacks-gcc/.

LATER

Oscar, I did a bare metal install in tahr (see rant) and it exhibits the bug too. I've narrowed it down to the paint_icon() function because if you comment the 2 paint_icon() calls and have an icon already in the config dir the program runs fine albeit without updating the temperature. (caveat: I did have to bump up the allocation for a couple of the char[] values too, so it wasn't only there).


-----------------------------------------------------------------------------------------------------------

<rant>
How come, after 45 downloads of the tahr version no one piped up and said "this program is shit, doesn't work". Question
No wonder developers like tempestuous and rcrsn51 pull there programs after a 20 or so downloads and no reports. I can totally understand why they get pissed off. Used to piss me off getting the same 10 or 20 testers of my isos when there were literally hundreds of downloads according to the server logs.

Does anyone wonder why motivation is thin around here?
</rant>

tahr version is pulled for now.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7904
Location: qld

PostPosted: Sat 28 Mar 2015, 07:53    Post subject:  

Bugfixed Tahr version is posted. Thanks to @OscarTalks who had enough balls to say my shit program did not work! Laughing

Oscar, all sources uploaded to usual locations.



------------------------------
Footnote:

That "bug" is exactly why I don't use Ubuntu. They use the -fstack-protector as a pretense for "security". I call bullshit on that one. To fix the bug, and no other action necessary in this particular instance, I had to move a local var to global. Right. That's not Ubuntu's fault, it's gcc's, but you would think, with their wealth of resources, that they'd test something as simple as that eh?

Welcome to GNU.. Laughing

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
davids45


Joined: 26 Nov 2006
Posts: 681
Location: Chatswood, NSW

PostPosted: Sat 28 Mar 2015, 21:13    Post subject: Temp now comes, ... but goes?
Subject description: Dpup Wheezy-3.5.2.11
 

G'day 01micko,
<embarrassed>
I tried your latest cpu-temp yesterday after downloading it (.50) a day or so ago, and saw nothing happening, so thought it was something I had missed or it was the old-ish desktop I'm using (a work discard).
</embarrassed>

Read Oscar's post so tried to run 0.50 from a terminal and got the same response as he did.
Have now downloaded and run 0.51 (clicked the .pet) and nothing happened.
Went to a terminal and ran pmcputemp and the temp icon appeared on the task bar. A comfortable 34C.
Closed the terminal and the temp icon also disappeared Confused .

Somehow I think this Cheshire-Cat behaviour is not what you intended (given all your very good earlier, rich-man's cpu-temp pets)?

I'm running this on Dpup Wheezy-3.5.2.11, by the way.

David S.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 4 [50 Posts]   Goto page: 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1389s ][ Queries: 12 (0.0071s) ][ GZIP on ]