-
Notifications
You must be signed in to change notification settings - Fork 424
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
ERROR: Can't get value of subfeature temp1_input: Can't read #445
Comments
On which operating system? Linux? Could you give me the output of those commands:
|
Linux indeed with bash. I had to install acpi. The ouptut is coming from version v_1.10. $ LANG=C sensors -u
acpitz-virtual-0
Adapter: Virtual device
temp1:
temp1_input: 48.000
temp1_crit: 103.000
nouveau-pci-0100
Adapter: PCI adapter
temp1:
ERROR: Can't get value of subfeature temp1_input: Can't read
temp1_max: 95.000
temp1_max_hyst: 3.000
temp1_crit: 105.000
temp1_crit_hyst: 5.000
temp1_emergency: 135.000
temp1_emergency_hyst: 5.000
thinkpad-isa-0000
Adapter: ISA adapter
fan1:
fan1_input: 2136.000
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:
temp1_input: 47.000
temp1_max: 87.000
temp1_crit: 105.000
temp1_crit_alarm: 0.000
Core 0:
temp2_input: 47.000
temp2_max: 87.000
temp2_crit: 105.000
temp2_crit_alarm: 0.000
Core 1:
temp3_input: 44.000
temp3_max: 87.000
temp3_crit: 105.000
temp3_crit_alarm: 0.000
Core 2:
temp4_input: 45.000
temp4_max: 87.000
temp4_crit: 105.000
temp4_crit_alarm: 0.000
Core 3:
temp5_input: 43.000
temp5_max: 87.000
temp5_crit: 105.000
temp5_crit_alarm: 0.000
ERROR: Can't get value of subfeature temp1_input: Can't read
$ LANG=C acpi -t
Thermal 0: ok, 50.0 degrees C
ERROR: Can't get value of subfeature temp1_input: Can't read Thanks for your response |
The This may be a hardware problem (see for example this issue which may be (or not) related to your problem) but I'm not an expert in the domain. In any case, you should investigate the issue to find how to fix it. Hiding this problem (as was done in v_1.9) was not a good service to users, so it has been removed. |
As far as I can guess the errors comes from my nvidia graphic card. Do you know how I could make sure that it doesn't get queried by liquidprompt ? |
I'm getting the same error. @mikeSimonson Mine is not nvidia though, it is Intel Ivybridge Mobile Here's my output:
Linux Kernel: 4.4.0-21-generic |
@rahilwazir From what I can see the error comes from your radeon card. |
@mikeSimonson Ah yeah forgot that 😄, so do you think this error comes from the external gpu? |
yep, I want to find a way to power it off completely |
@rahilwazir Going in the bios to shutdown completely the nvidia card worked perfectly. |
We are currently averaging all the temperature we collect. The temperature indicator should be completely redesigned. Cc: @nojhan |
Well when it's an integrated intel GPU it might make sense but it's right that for a discrete card it doesn't make much sense. |
I think that the problem is that in newer kernels, the power management has got much better. Discrete GPU are switched off dinamically when not needed; so you can't read the temperature because the gizmo is off. For anyone concerned, you can simply change the line calling
and you'll silence the error. I understand that this is hiding the problem, but well... |
@Rmano Noone before told me that temperature sensors appeared/disappeared dynamically, and so the output of errors by |
@dolmen --- I think (notice that I am not sure) related to this: http://askubuntu.com/a/469439/16395. On my laptop which have a dynamic discrete CPU it used to say -128°C when the GPU was powered off, but now it spits out the error (and I really think that both ways of deal with it are wrong from |
Ok. I can confirm that the error is only in
|
I have a similar problem, but when wifi is turned off. It can't read the wifi temp.
|
Interestingly, I just switched from the Cinnamon to MATE windowing environments in Linux Mint and this error message cropped up. Device is a Lenovo X1 Carbon 5th Gen. I switched to MATE because the compositing window manager was a bit flaky graphcally. So it does sound like something GPU-related. |
I can confirm @reedobrien's statement about WiFi. But I also have an nVidia card that doesn't report the temperature with the Nouveau drivers. One thing that might be useful (for Linux at least) is to be able to specify which temperature sensors to use. For instance, with my laptop, I could use the custom Dell, which include CPU, two ambient sensors and a fourth, unidentified sensor. I suppose you could go so far as to say which sensors turn on and off dynamically. |
I have the same error, to solve my problem I installed
|
This problem really ruins the terminal experience, and I'm of the opinion that it's not liquidprompt's job to tell me that there's a problem with some unrelated part of my setup. It's liquidprompt's job to make the terminal more usable, not less in most circumstances. "What you need, when you need it" is the motto, is it not? This is not something I need to see every single time I perform a command, and it may not even be fixable since the error in my case stems from My system is ATI Ryzen 1800x, 2x GTX 1080ti, Arch |
@GameKyuubi please remember that this project is open source and free. Contributors try to make the project bug free, but we have limited time and resources, and we don't have access to all the different machines and configurations that could cause issues. You can open a pull request if you want to help out. If you don't want temperature display at all, that module can be disabled (removing the error) with the config option @GameKyuubi does bring up a good point: could we show the error once when the prompt starts, then suppress it after that? Right now we do the opposite; suppressing the error when the prompt starts, then showing it after that: I agree with @dolmen that we shouldn't be hiding helpful errors, but since |
I sympathize with @dolmen, but the proper fix is to fix the lm-senors, so it ignores the troublesome chip. For Write a file
Change |
Thanks @adamryczkowski for this great tip. We should definitely add this to the documentation. |
Thanks @adamryczkowski, that was definitely the proper fix for me 👍 |
My error is:
I did the following:
There we get the marked info and do the following:
|
are there any plans to resolve that? PR does look good to address problems discussed here |
This is by far the project's most active issue. It also should be my number 1 priority, but you will have to read on to see what the problem is. Like I said, this is such a crazy common problem that I have added it to the FAQ. I'm going to try to keep the discussion focused on one issue thread, instead of responding to every single duplicate issue (#598, #611). There are also many related issues (#448, it doesn't make sense to include CPU and other sources together) (#610, there can be sensors that are grossly incorrect). There seem to be 3 separate but related issues here:
By far, the most suggested fix is to redirect stderr from The other 2 solutions that I have suggested in the FAQ are to install This leads me to my preferred fix: Since that hasn't happened yet, my next preferred fix is to print the error once on prompt startup, and then suppress it from then on. Right now Liquidprompt does the opposite: it suppresses at startup (since it is testing if So, I'm looking for suggestions. I want this fixed, but so far I'm not happy with any of the solutions. |
Why not just make temperature readings an opt-in feature then? Any idea about percentage of users that are actually needing this feature? |
Not a terrible idea, but would have to be something changed in v2.0. Good to point out that users can always disable it if they don't want it. Most users reporting this issue actually do want temperature I think.
We don't collect metrics, so I have no idea. Since it's enabled by default, probably quite a few, but probably less than you might think since you need to have |
I like to see the temperature there too. From the discussion above, I understand that some users expressed that, they want to see error messages from the tools called by liquidprompt. In this case it is a message that is printed with every prompt. I find that intrusive to normal typing and not helpful, as it is seen out of context. I'd rather go back and discuss the origin of this 'never hide errors' concept. |
Liquidprompt hides errors all the time. A search for The issue here is hiding useful errors. Yes, often they are not useful, as these many users are reporting, but that doesn't change that sometimes these specific errors are useful. And if we hide those errors all the time, that is a big problem for those times when the error is helpful. This is why I want a better solution. We should hide the error when it is not helpful (when the user doesn't care) and show it when it is. Obviously this is difficult, which is why we don't have an acceptable solution yet. This is why my ideal solution is that |
@Rycieos Sorry for over-generalizing. I did not check how other tools are handled. If their config would label Two ideas:
|
@jnweiger I had forgotten that labels are a supported feature of sensors; it had obviously been a while since I read
and got this out:
It labels the first part of the section, but not the
Not ideal, though maybe we could add more processing to the output stream. Anyway, good thought on labels, something to keep in mind. The problems I see with them: we shouldn't completely rely on them as most users won't want to add configuration to get this feature to work. And besides that, some users won't be able to, as the |
Ah, I had looked at |
Another data point. This isn't just an issue with temperatures. In my laptop, I am getting It has to do with the current input for the laptop. When just running
with no error message. However, when run with So, in this case, it isn't an error message really...or maybe it's a bug in the sensors package? When the power is plugged in, I don't get an error, and I get a value for |
WA doesn't help me.I got error from PCI Adapter and error like the following:
@Rmano method is working for me for hiding error like that
|
Fixed in 4a52696. See the commit message for the full details. I apologize, I was an idiot on this one. |
When I update to the tag v_1.10 I get the error above.
The error is not present in v_1.9.
The text was updated successfully, but these errors were encountered: