Skip to content

Fan sensors cn not be found after a restart. #1937

Description

@HoruakutiX

Thanks for your work, I use this tool since v0.98.

But in v1.63(as well as v1.64, v1.59, v1.38, v1.08), after a system restart, my fancontrol can not find all of the fan sensors, both of the speed sensors and the control sensors.
the table is empty like this:
Screenshot (104)

only the carve remain and it show some errors such as "xxx sensor failed to initialize".
the log is as the following:

7/21/2023 21:47:24: NvAPIWrapper.Native.Exceptions.NVIDIAApiException: NVAPI_NOT_SUPPORTED
at NvAPIWrapper.GPU.GPUCoolerInformation.<get_Coolers>d__2.MoveNext()
at System.Linq.Enumerable.d__52.MoveNext() at System.Linq.Enumerable.<SelectManyIterator>d__192.MoveNext()
at System.Linq.Buffer1..ctor(IEnumerable1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) at FanControl.Domain.BackendProviders.NVApiWrapper.NVApiWrapperBackendProvider.Open() 7/21/2023 21:47:27: NvAPIWrapper.Native.Exceptions.NVIDIAApiException: NVAPI_NOT_SUPPORTED at NvAPIWrapper.GPU.GPUCoolerInformation.<get_Coolers>d__2.MoveNext() at System.Linq.Enumerable.<SelectIterator>d__52.MoveNext()
at System.Linq.Enumerable.d__192.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source)
at FanControl.Domain.BackendProviders.NVApiWrapper.NVApiWrapperBackendProvider.Open()
7/21/2023 21:47:27: NVApi could not initialize or has no sensors.
7/21/2023 21:47:45: NvAPIWrapper.Native.Exceptions.NVIDIAApiException: NVAPI_NOT_SUPPORTED
at NvAPIWrapper.GPU.GPUCoolerInformation.<get_Coolers>d__2.MoveNext()
at System.Linq.Enumerable.d__52.MoveNext() at System.Linq.Enumerable.<SelectManyIterator>d__192.MoveNext()
at System.Linq.Buffer1..ctor(IEnumerable1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) at FanControl.Domain.BackendProviders.NVApiWrapper.NVApiWrapperBackendProvider.Open() 7/21/2023 22:33:31: NvAPIWrapper.Native.Exceptions.NVIDIAApiException: NVAPI_NOT_SUPPORTED at NvAPIWrapper.GPU.GPUCoolerInformation.<get_Coolers>d__2.MoveNext() at System.Linq.Enumerable.<SelectIterator>d__52.MoveNext()
at System.Linq.Enumerable.d__192.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source)
at FanControl.Domain.BackendProviders.NVApiWrapper.NVApiWrapperBackendProvider.Open()
7/21/2023 22:33:34: NvAPIWrapper.Native.Exceptions.NVIDIAApiException: NVAPI_NOT_SUPPORTED
at NvAPIWrapper.GPU.GPUCoolerInformation.<get_Coolers>d__2.MoveNext()
at System.Linq.Enumerable.d__52.MoveNext() at System.Linq.Enumerable.<SelectManyIterator>d__192.MoveNext()
at System.Linq.Buffer1..ctor(IEnumerable1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at FanControl.Domain.BackendProviders.NVApiWrapper.NVApiWrapperBackendProvider.Open()
7/21/2023 22:33:34: NVApi could not initialize or has no sensors.
7/21/2023 23:43:48: System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Authentication failed because the remote party has closed the transport stream.
at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at FanControl.Domain.UpdaterService.d__23.MoveNext()
7/21/2023 23:43:48: System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Authentication failed because the remote party has closed the transport stream.
at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
7/21/2023 23:43:48: System.IO.IOException: Authentication failed because the remote party has closed the transport stream.
at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)

my gpu sensor is work correctly, so the question is only about the fan sensors.
I have tried old versions to fix this problem, but it seems like using old version can not help, so I report this bug to seek for help.
By the way, the hardware is definitely working correctly, because I can use MSI center to control all the fans.
CPU: Ryzen r5 5600x
Mather board: MSI B550M Mortar wifi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions