-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot get temperature of a tempfile on widget but with cat I can #498
Comments
Hello, can you please show output of the I used this command to find temperature files:
I figured out that the temperature file I am looking for is theme.lua
-------------------------------------------------------------------------------------------------------------
local tempicon = wibox.widget.imagebox(theme.widget_temp)
local temp = lain.widget.temp({
timeout = 10,
-- Run: `find /sys/devices -type f -name *temp*`
tempfile = "/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon3/temp1_input", -- AMD CPU
settings = function()
widget:set_markup(markup.font(theme.font, " " .. math.ceil(coretemp_now) .. "°C "))
end
}) Output of my temperature file:
|
@bzgec
I tried your find command and filtered files that value equals to my /sys/class/hwmon/hwmon1/temp1_input. I just realize that the file /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input have the same value of the previous. I put this one in my widget config and it worked. But now, I just only doubt why the first file didn't work appropriately... This issue can be closed, I kept it open in hope of someone explain me my doubt. And Thanks for your help!!!!! |
@gcarlos64 I had the same problem and I somehow, reading the lain code and digging into kernel file descriptors, solved it in the same way. Some system information:
|
Hi, I'm trying to use the temperature widget but get only "N/A" temperature. My widget config is:
When I
cat
this tempfile I get the correct temperature of my CPU (I got this tempfile over lm-sensor "debug").My widget works when the tempfile is on /sys/devices/virtual/thermal/thermal_zone* path, but don't have any temp file of my cpu and gpu over here.
Awesome and lua versions:
So, I don't know if it's a bug or if I did something wrong, so sorry if it's not pertinent.
Since now, thanks for the help!
The text was updated successfully, but these errors were encountered: