LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-20-2018, 03:53 AM   #1
d4t73
LQ Newbie
 
Registered: Jun 2018
Posts: 9

Rep: Reputation: Disabled
Conky hddtemp always displays 50c. Debian Stretch Mate


My hddtemp line in conky reads:

HDD Temp: ${execi 2 hddtemp /dev/sda | cut -c 31-32}°C

however; it always displays

"HDD Temp: 50°C"

regardless of what the temperature actually is.

For example, when I run hddtemp from the cli, I get:

hddtemp /dev/sda
/dev/sda: Samsung SSD 850 EVO 500G B �@: 37°C
 
Old 07-20-2018, 01:16 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Start with sudo hddtemp /dev/sdx x being your drive.
 
Old 07-20-2018, 01:34 PM   #3
d4t73
LQ Newbie
 
Registered: Jun 2018
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
Start with sudo hddtemp /dev/sdx x being your drive.
This is what I'm doing on the command line. This works fine. The problem is getting it to display properly in conky. For example, when the actual temp displayed on the command line is 36c, 50c is displayed in the conky window. In fact this is what displays all the time. If I remove the {}'s, the command itself is just displayed in the conky window.
 
Old 07-20-2018, 07:33 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
So when you run with sudo it works as expected. Suspect the fault is in permissions.

Are you running conky while as admin? (really shouldn't be)

Peek at this for some ideas. https://askubuntu.com/questions/6850...emp-with-conky

Last edited by jefro; 07-20-2018 at 07:34 PM.
 
Old 08-01-2018, 09:13 AM   #5
d4t73
LQ Newbie
 
Registered: Jun 2018
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
So when you run with sudo it works as expected. Suspect the fault is in permissions.

Are you running conky while as admin? (really shouldn't be)

Peek at this for some ideas. https://askubuntu.com/questions/6850...emp-with-conky
I think I am, now. hddtemp was getting a permissions error, so I had to run dpkg-reconfigure hddtemp
and reconfigure as admin, to get rid of the premissions error.

Here's the fix I used, which at least fixed the permissions error; and allowed the conky window to display 50c. It wasn't displaying anything before.

https://www.youtube.com/watch?v=xZ0h0ChY1hQ
 
  


Reply

Tags
conky, displays, hddtemp, incorrect



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MATE desktop doesn't always display after login on Stretch lensilvan Debian 1 10-20-2017 01:35 AM
LXer: Review: Debian 9 "Stretch" MATE LXer Syndicated Linux News 0 07-10-2017 01:49 PM
LXer: MATE 1.10 Uploaded in Debian Unstable, Ubuntu Stretch, and Ubuntu 15.10 Repos LXer Syndicated Linux News 0 09-10-2015 08:21 PM
[SOLVED] Conky calendar displays extra (unwanted) symbols. Randicus Draco Albus Linux - Desktop 1 05-06-2013 05:31 PM
LXer: Configure conky-Lua in Ubuntu (11.10 & 12.04), Fedora, debian and LinuxMint | Howto Conky LXer Syndicated Linux News 0 03-06-2012 12:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration