Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Slight Conky problem?


  • Please log in to reply
18 replies to this topic

#1 TheJokerz

TheJokerz

  • Members
  • 283 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Ohio
  • Local time:09:31 PM

Posted 21 September 2016 - 07:54 PM

I installed Conky from this wonderful guide http://www.bleepingcomputer.com/forums/t/567477/how-to-install-and-configure-conky-system-monitor/#entry4088505!  Thank you AI1000!

 

Here is my problem, when I use the conky & command I receive a bunch of syntax errors.  Not really sure if this is normal or not?

swyant@media ~ $ conky &
[1] 2693
swyant@media ~ $ conky: Syntax error (/home/swyant/.conkyrc:1: '=' expected near 'top_right') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: desktop window (1800027) is subwindow of root window (9a)
conky: window type - normal
conky: drawing to created window (0x3600002)
conky: drawing to double buffer
conky: can't open '/sys/class/hwmon/hwmon1/temp1_input': No such file or directory
please check your device or remove this var from conky
conky: can't open '/sys/class/hwmon/hwmon2/temp1_input': No such file or directory
please check your device or remove this var from conky
conky: forked to background, pid is 2694

Also Conky is working for the most part.  It is not detecting my cpu temps?  I am not a total noob when it comes to Linux, and followed AI1000 instructions to the T.  Any help or input would be greatly appreciated!

 

 

 

Thanks


utl8q0-5.png


BC AdBot (Login to Remove)

 


#2 TheJokerz

TheJokerz
  • Topic Starter

  • Members
  • 283 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Ohio
  • Local time:09:31 PM

Posted 21 September 2016 - 08:15 PM

Also just realized that it is not monitoring my network activity as well.  


utl8q0-5.png


#3 wizardfromoz

wizardfromoz

  • Banned
  • 2,799 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:11:31 AM

Posted 21 September 2016 - 09:05 PM

Hi Joker ... sorry just read this thread after posting in response to your other comments at Al's article.

 

Can you tell us what version of Conky you are using, from your package manager? The 1.9 series is probably what Al was using when he first wrote that article. Whereas the 1.10.x series uses a different syntax which has incompatible issues with the old style.

 

Also, can you reproduce here the content of your .conkyrc file?

 

Al is possibly a few hours away from being on deck (Scotland), but will likely be better able to assist.

 

Cheers

 

:wizardball: Wizard


Edited by wizardfromoz, 21 September 2016 - 09:43 PM.


#4 wizardfromoz

wizardfromoz

  • Banned
  • 2,799 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:11:31 AM

Posted 21 September 2016 - 10:14 PM

I've just installed conky following Al's directions from http://www.bleepingcomputer.com/forums/t/567477/how-to-install-and-configure-conky-system-monitor/  and I get the following from using <conky &>

 

 

vQfVcAJ.png

 

 

This is on Linux Mint 17.3 'Rosa' with the MATE desktop environment.

 

@TheJokerz:

 

You can also determine the version of Conky (or any package) by using the following:

apt-cache policy conky

OR

apt-cache madison conky

My output is as follows:

 

chris@Adata ~ $ apt-cache policy conky
conky:
  Installed: (none)
  Candidate: 1.9.0-4
  Version table:
     1.9.0-4 0
        500 http://mirror.internode.on.net/pub/ubuntu/ubuntu/ trusty/universe amd64 Packages
chris@Adata ~ $ apt-cache madison conky
     conky |    1.9.0-4 | http://mirror.internode.on.net/pub/ubuntu/ubuntu/ trusty/universe amd64 Packages
chris@Adata ~ $
 

 

You could also tell us the Linux Distro, version and desktop you are using.

 

Cheers

 

:wizardball: Wizard

yada



#5 Al1000

Al1000

  • Global Moderator
  • 7,187 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:02:31 AM

Posted 22 September 2016 - 01:58 AM

TheJokerz,

You could also tell us the Linux Distro, version and desktop you are using.


Yes, please do, in addition to the version of Conky. If you are using the .conkyrc file that I posted, then there's no need to post it since we know what it is. What would be useful though is if you could post the contents of your global conky configuration file, which is /etc/conky/conky.conf.

#6 TheJokerz

TheJokerz
  • Topic Starter

  • Members
  • 283 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Ohio
  • Local time:09:31 PM

Posted 22 September 2016 - 06:20 AM

Thank you for the responses.  And that also makes sense!

 

Here is my conky

swyant@media ~ $ apt-cache policy conky
conky:
  Installed: (none)
  Candidate: 1.10.1-3
  Version table:
     1.10.1-3 500
        500 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu xenial/universe i386 Packages

I guess my computer info would help as well!  Here is that info

swyant@media ~ $ inxi -Fx
System:    Host: media Kernel: 4.4.0-21-generic x86_64 (64 bit gcc: 5.3.1)
           Desktop: Cinnamon 3.0.7 (Gtk 3.18.9-1ubuntu3.1)
           Distro: Linux Mint 18 Sarah
Machine:   System: Dell (portable) product: Latitude E4310 v: 0001
           Mobo: Dell model: 04HKYP v: A00 Bios: Dell v: A14 date: 12/05/2013
CPU:       Dual core Intel Core i7 M 620 (-HT-MCP-) cache: 4096 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 10638
           clock speeds: max: 2667 MHz 1: 1999 MHz 2: 1599 MHz 3: 1866 MHz
           4: 1466 MHz
Graphics:  Card: Intel Core Processor Integrated Graphics Controller
           bus-ID: 00:02.0
           Display Server: X.Org 1.18.3 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1366x768@60.00hz
           GLX Renderer: Mesa DRI Intel Ironlake Mobile
           GLX Version: 2.1 Mesa 11.2.0 Direct Rendering: Yes
Audio:     Card Intel 5 Series/3400 Series High Definition Audio
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.4.0-21-generic
Network:   Card-1: Intel 82577LM Gigabit Network Connection
           driver: e1000e v: 3.2.6-k port: 6040 bus-ID: 00:19.0
           IF: eno1 state: down mac: 5c:26:0a:12:97:e2
           Card-2: Broadcom BCM4313 802.11bgn Wireless Network Adapter
           driver: wl bus-ID: 02:00.0
           IF: wlp2s0 state: up mac: 1c:65:9d:22:46:ad
Drives:    HDD Total Size: 250.1GB (3.0% used)
           ID-1: /dev/sda model: WDC_WD2500BEKT size: 250.1GB
Partition: ID-1: / size: 222G used: 6.2G (3%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 1.00GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 63.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 198 Uptime: 7 min Memory: 969.1/7909.5MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.421) inxi: 2.2.35

If there is anything else you need please let me know.

 

Thanks!


utl8q0-5.png


#7 Al1000

Al1000

  • Global Moderator
  • 7,187 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:02:31 AM

Posted 22 September 2016 - 07:47 AM

I have installed this version of Conky in Mint 18, and there are a few differences. If you compare ~/.conkyrc to /etc/conky/conky.conf you'll see the differences in the syntax - although since it seems to run ok off the old syntax I wouldn't bother changing it.
 
Re your network connections: run ifconfig to find the name of your active connection, which in my installation of Mint 18 is called enp0s16. Then open your .conkyrc file and change both instances of eth0 to enp0s16 (or whatever your network connection is called), save the file, and Conky should restart showing your network traffic.

Re CPU temperature, do you have a /sys/class/hwmon/ directory, and if so what are its contents?

#8 TheJokerz

TheJokerz
  • Topic Starter

  • Members
  • 283 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Ohio
  • Local time:09:31 PM

Posted 22 September 2016 - 07:57 AM

See I did not even catch the network part.. Guess I should fully read the script before I post that something is not working!  I like to tinker and see if I can figure stuff out on my own before I ask for help!

 

I will have to check the /sys/class/hwmon/ when I get home from work.

 

Thank you


utl8q0-5.png


#9 Al1000

Al1000

  • Global Moderator
  • 7,187 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:02:31 AM

Posted 22 September 2016 - 08:11 AM

You're welcome.

Conky doesn't show CPU temperature by default, although it seems common to get it to do so. I have always used hwmon for this purpose because it works on my computers and is light on system resources, but you can also use lm-sensors (which you might have to install) if you can't get hwmon to work.

https://ubuntuforums.org/showthread.php?t=1778078

#10 TheJokerz

TheJokerz
  • Topic Starter

  • Members
  • 283 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Ohio
  • Local time:09:31 PM

Posted 22 September 2016 - 04:41 PM


Re CPU temperature, do you have a /sys/class/hwmon/ directory, and if so what are its contents?

AI1000 It does have this directory 

swyant@media /sys/class $ cd /sys/class/hwmon
swyant@media /sys/class/hwmon $ ls
hwmon0  hwmon1

I also was able to get to start monitoring my network activity!  I was also able to add my two other cores or "threads" as intel calls them.

 

Thanks in advance


utl8q0-5.png


#11 Al1000

Al1000

  • Global Moderator
  • 7,187 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:02:31 AM

Posted 22 September 2016 - 05:53 PM

Looks like it's getting there. :)
 
What is in those directories?
ls /sys/class/hwmon/hwmon0/
ls /sys/class/hwmon/hwmon1/


#12 TheJokerz

TheJokerz
  • Topic Starter

  • Members
  • 283 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Ohio
  • Local time:09:31 PM

Posted 22 September 2016 - 06:41 PM

Here is what is in these directories

swyant@media /sys/class/hwmon/hwmon0 $ ls
fan1_input  power      temp1_input  temp2_label  temp4_input
fan1_label  pwm1       temp1_label  temp3_input  temp4_label
name        subsystem  temp2_input  temp3_label  uevent
swyant@media /sys/class/hwmon/hwmon0 $ cd ..
swyant@media /sys/class/hwmon $ cd /sys/class/hwmon/hwmon1
swyant@media /sys/class/hwmon/hwmon1 $ ls
device  subsystem         temp2_input  temp4_crit        temp4_label
name    temp2_crit        temp2_label  temp4_crit_alarm  temp4_max
power   temp2_crit_alarm  temp2_max    temp4_input       uevent


utl8q0-5.png


#13 Al1000

Al1000

  • Global Moderator
  • 7,187 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:02:31 AM

Posted 23 September 2016 - 01:58 AM

It looks like it's going to be a matter of trying different settings to see what works. I take it your CPU has 4 cores, so you should be able to display the temperature for each. I would try this in your .conkyrc:

CPU 1 Temp: ${hwmon 0 temp 1}C    CPU 2 Temp: ${hwmon 0 temp 2}C
CPU 3 Temp: ${hwmon 0 temp 3}C    CPU 4 Temp: ${hwmon 0 temp 4}C
If no joy, maybe try swapping instances of 0 in the above code for 1 to see if you get any readings.

#14 TheJokerz

TheJokerz
  • Topic Starter

  • Members
  • 283 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Ohio
  • Local time:09:31 PM

Posted 23 September 2016 - 07:16 AM

Okay I will give this a shot when I am at home again (dang work...)  Thank you for all of your help AI1000!


utl8q0-5.png


#15 TheJokerz

TheJokerz
  • Topic Starter

  • Members
  • 283 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Ohio
  • Local time:09:31 PM

Posted 23 September 2016 - 08:23 PM

FYI I got the temp working by putting 0.  It was like this 

CPU 1 Temp: ${hwmon 1 temp 1}C    CPU 2 Temp: ${hwmon 2 temp 1}C
CPU 3 Temp: ${hwmon 3 temp 3}C    CPU 4 Temp: ${hwmon 4 temp 4}C

And I changed it to this

CPU 1 Temp: ${hwmon 0 temp 1}C    CPU 2 Temp: ${hwmon 0 temp 1}C
CPU 3 Temp: ${hwmon 0 temp 3}C    CPU 4 Temp: ${hwmon 0 temp 4}C

It is the little things!

 

Now my next question is this, can I get them to display F instead of C?


Edited by TheJokerz, 23 September 2016 - 08:24 PM.

utl8q0-5.png





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users