Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: Conky / CPU Temp

  1. #1
    Join Date
    Feb 2010
    Location
    Summerwind
    Beans
    12,471
    Distro
    Ubuntu 17.10 Artful Aardvark

    Conky / CPU Temp

    I am trying to use this code to add CPU temp to Conky and am getting no data . I have conky-all and lm-sensors installed . The degrees symbol C shows up , but that's all . Any thoughts on this are welcome .
    Code:
    ${execi 30 sensors | grep 'Core0' | cut -c15-16}°C${color}${font}
    Last edited by Frogs Hair; July 29th, 2011 at 04:46 PM.
    “Start where you are. Use what you have. Do what you can".

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Manual

  2. #2
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!

    Re: Conky / CPU Temp

    Does sensors work in terminal, and are the right sensors present in your hardware? It never works in either of my two old machines. Also does lm-sesnors command need to be run as root with sudo? If so you will need to reconfigure it to be run as normal user, which I did for hddtemp (and vnstat) with
    Code:
    sudo chmod u+s /usr/sbin/hddtemp
    and
    Code:
    sudo chmod u+s /usr/bin/vnstat
    I use a similar conky syntax to show the output of hddtemp, the nearest I can get to cpu temperature, and the only difference I can see that might be a problem is that I have a space after the cut -c request:-
    Code:
    ${alignc}${execi 60 hddtemp /dev/sda | cut -c 6-28} C
    and I do not pipe twice as you do, though I can not see why these should make any difference.
    DISTRO: Xubuntu 16.04-64bit --- Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo --- Wireless-Info --- SolvedThreads

  3. #3
    Join Date
    Apr 2011
    Location
    Hyderbad ,India
    Beans
    108
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Conky / CPU Temp

    I use this code for CPU temp.Try if this works;

    Code:
    ${execi 8 sensors | grep -A 1 'temp2' | cut -c13-16 | sed '/^$/d'}°C
    Drop box is a great solution for cloud storage.
    Use this link to get 250 mb more space than the usual 2 gb

  4. #4
    Join Date
    Feb 2010
    Location
    Summerwind
    Beans
    12,471
    Distro
    Ubuntu 17.10 Artful Aardvark

    Re: Conky / CPU Temp

    Thank you both for the suggestions , my other Conky themes report CPU temp . This is the first I have put together my self and I will experiment and report back .
    Last edited by Frogs Hair; July 29th, 2011 at 10:12 PM.
    “Start where you are. Use what you have. Do what you can".

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Manual

  5. #5
    Join Date
    Feb 2010
    Location
    Summerwind
    Beans
    12,471
    Distro
    Ubuntu 17.10 Artful Aardvark

    Re: Conky / CPU Temp

    Success ! I will have to restart to get it reporting properly . Thank you again !

    Code:
       Mem: ${offset 9}$color$mem / $memmax${offset 10}
      ${color 111000}CPU 0 ${offset 9}$color${cpu cpu0}% (${execi 8 sensors | grep -A 1 'temp2' | cut -c13-16 | sed '/^$/d'}°C)   
      ${color 111000}CPU 1 ${offset 9}$color${cpu cpu1}% (${execi 8 sensors | grep -A 1 'temp2' | cut -c13-16 | sed '/^$/d'}°C)
    Attached Images Attached Images
    Last edited by Frogs Hair; July 29th, 2011 at 10:57 PM.
    “Start where you are. Use what you have. Do what you can".

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Manual

  6. #6
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!

    Re: Conky / CPU Temp

    Great!

    Just to satisfy me, can you tell me how you get the degree sign to show in your conky output on screen? If I use the degree sign from "character map" in my ~/.conkyrc file, I get a strange accented A showing, (see screenshot).
    DISTRO: Xubuntu 16.04-64bit --- Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo --- Wireless-Info --- SolvedThreads

  7. #7
    Join Date
    Feb 2010
    Location
    Summerwind
    Beans
    12,471
    Distro
    Ubuntu 17.10 Artful Aardvark

    Re: Conky / CPU Temp

    I used the syntax that I posted . I discovered that each core does not have a sensor so I eliminated one of the lines and placed the temp. below the CPU % .
    “Start where you are. Use what you have. Do what you can".

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Manual

  8. #8
    Join Date
    Feb 2008
    Beans
    84
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Conky / CPU Temp

    Quote Originally Posted by Frogs Hair View Post
    Success ! I will have to restart to get it reporting properly . Thank you again !

    Code:
       Mem: ${offset 9}$color$mem / $memmax${offset 10}
      ${color 111000}CPU 0 ${offset 9}$color${cpu cpu0}% (${execi 8 sensors | grep -A 1 'temp2' | cut -c13-16 | sed '/^$/d'}°C)   
      ${color 111000}CPU 1 ${offset 9}$color${cpu cpu1}% (${execi 8 sensors | grep -A 1 'temp2' | cut -c13-16 | sed '/^$/d'}°C)
    Hi, i just used this code in my theme config. for conky with a few tiny changes;

    here's what i used after changing the code;
    Code:
    ${color FFFFFF}${font caviar dreams:size=8}Temperature CPU0: ${cpu cpu0}% (${execi 8 sensors | grep -A 1 'temp1' | cut -c13-16 | sed '/^$/d'}°C)   
    ${color FFFFFF}${font caviar dreams:size=8}Temperature CPU1: ${cpu cpu1}% (${execi 8 sensors | grep -A 1 'temp1' | cut -c13-16 | sed '/^$/d'}°C)
    ##output in attachment##
    what i want to know is why the temperature values remain the same for both CPU's, does this mean i have only one sensor for both CPU's, i'm using Dell Inspiron 1545 with Core2Duo T6600 processor, also, if i change temp1 to temp0 OR temp2 as it was given, it doesn't show anything. so what's going on ?
    Attached Images Attached Images
    Last edited by faixan; December 12th, 2011 at 07:43 AM.

  9. #9
    Join Date
    Feb 2008
    Beans
    84
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Conky / CPU Temp

    also i'm trying to add fanspeeds, and the codes i've tried, just crash conky... :s any suggestions? :s

  10. #10
    Join Date
    Feb 2008
    Beans
    84
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Conky / CPU Temp

    Quote Originally Posted by Frogs Hair View Post
    Success ! I will have to restart to get it reporting properly . Thank you again !

    Code:
       Mem: ${offset 9}$color$mem / $memmax${offset 10}
      ${color 111000}CPU 0 ${offset 9}$color${cpu cpu0}% (${execi 8 sensors | grep -A 1 'temp2' | cut -c13-16 | sed '/^$/d'}°C)   
      ${color 111000}CPU 1 ${offset 9}$color${cpu cpu1}% (${execi 8 sensors | grep -A 1 'temp2' | cut -c13-16 | sed '/^$/d'}°C)
    Quote Originally Posted by faixan View Post
    Hi, i just used this code in my theme config. for conky with a few tiny changes;

    here's what i used after changing the code;
    Code:
    ${color FFFFFF}${font caviar dreams:size=8}Temperature CPU0: ${cpu cpu0}% (${execi 8 sensors | grep -A 1 'temp1' | cut -c13-16 | sed '/^$/d'}°C)   
    ${color FFFFFF}${font caviar dreams:size=8}Temperature CPU1: ${cpu cpu1}% (${execi 8 sensors | grep -A 1 'temp1' | cut -c13-16 | sed '/^$/d'}°C)
    ##output in attachment##
    what i want to know is why the temperature values remain the same for both CPU's, does this mean i have only one sensor for both CPU's, i'm using Dell Inspiron 1545 with Core2Duo T6600 processor, also, if i change temp1 to temp0 OR temp2 as it was given, it doesn't show anything. so what's going on ?
    Quote Originally Posted by faixan View Post
    also i'm trying to add fanspeeds, and the codes i've tried, just crash conky... :s any suggestions? :s
    another thing, does this "sensor temp1" show the temperature from same sensor as "acpitemp" ?

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •