FanControl.Releases icon indicating copy to clipboard operation
FanControl.Releases copied to clipboard

Autostart not working

Open jonalange opened this issue 3 years ago • 16 comments

How is autostart supposed to work? Should the temp icon be in the tray?

I enabled the "start with windows" option and also added a shortcut of the exe to windows auto start folder. But I don't have the tray icon after startup and I can't find any process related to FanControl in taskmanager.

What is the process called?

jonalange avatar Jan 01 '22 11:01 jonalange

I found this issue https://github.com/Rem0o/FanControl.Releases/issues/304

But for me the checkbox is checked every time (it doesn't get unchecked automatically). The app is just not running

jonalange avatar Jan 01 '22 16:01 jonalange

Take a look at the task in the Task Scheduler, and try to run it manually.

Rem0o avatar Jan 01 '22 19:01 Rem0o

It's not even in the list...

jonalange avatar Jan 01 '22 22:01 jonalange

Ok, I added the task myself. But now the app opens completely and not minimized. I set the checkbox in the settings, but it's not doing anything. Any suggestions?

jonalange avatar Jan 01 '22 22:01 jonalange

Make sure the "start in" folder is set right in the task.

Rem0o avatar Jan 02 '22 18:01 Rem0o

I don't really know what you mean. Now every time the pc starts my saved config gets overridden by some default stuff...

Everything pretty strange and bugged

jonalange avatar Jan 02 '22 22:01 jonalange

image

This must point to the same folder FanControl is in.

Rem0o avatar Jan 03 '22 00:01 Rem0o

I have the same issue too I think (v99). If I run manually it works fine - if I tick the box that says "Start with windows" (irrespective if I choose a delay or not) it can't load up the config correctly and loads what seems to be a default config. I've tried to run it through task manager but can't get that to work either :(

Smashing software, I really like the design and thinking behind it so hopefully we can track down the issue :)

ghost avatar Jan 04 '22 20:01 ghost

Just had a quick play - if I create a task with "Run with highest privileges" unchecked then it does run (although obviously it pops up the normal UAC prompt). If I run it with the option checked fancontrol.exe never starts.

On Windows 11 (latest consumer - not Insiders build)

ghost avatar Jan 04 '22 20:01 ghost

Is the user running the task an admin?

Rem0o avatar Jan 05 '22 00:01 Rem0o

Yes, it has admin rights

ghost avatar Jan 05 '22 08:01 ghost

Yay! I have managed to get a bit of a hack working ok - basically using "start" rather than loading a new command shell and then getting task scheduler to call a bash file. Info below in case it helps.

fcstart.cmd:

start "" /d c:\utils\fancontrol /min /b c:\utils\fancontrol\fancontrol.exe

fcstart.xml (for task job):

<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.3" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Date>2022-01-05T08:14:08.0270221</Date>
    <Author>PC1\me</Author>
    <URI>\FCStart</URI>
  </RegistrationInfo>
  <Triggers>
    <LogonTrigger>
      <Enabled>true</Enabled>
      <UserId>PC1\me</UserId>
    </LogonTrigger>
  </Triggers>
  <Principals>
    <Principal id="Author">
      <UserId>S-1-5-21-302125468-2124314595-863171202-1001</UserId>
      <LogonType>InteractiveToken</LogonType>
      <RunLevel>HighestAvailable</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>false</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
    <IdleSettings>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>false</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
    <UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>
    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>PT72H</ExecutionTimeLimit>
    <Priority>7</Priority>
  </Settings>
  <Actions Context="Author">
    <Exec>
      <Command>C:\Utils\fcstart.cmd</Command>
    </Exec>
  </Actions>
</Task>

ghost avatar Jan 05 '22 08:01 ghost

I was able to fix this by changing Medium Mandatory Level to Administrators under the "When running the task, use the following user account:" option. See link: https://appuals.com/task-scheduler-says-one-or-more-specified-arguments-not-valid/

OMGrant avatar May 01 '22 12:05 OMGrant

I was able to fix this by changing Medium Mandatory Level to Administrators under the "When running the task, use the following user account:" option. See link: https://appuals.com/task-scheduler-says-one-or-more-specified-arguments-not-valid/

We currently suspect the bug affects admins that have identical account and computer names. Is that your case? Anyway, until it gets fixed, you can also use the tool i created, which automates everything: https://github.com/xhul-dev/FanControl-WinStart

xhul-dev avatar May 01 '22 13:05 xhul-dev

We currently suspect the bug affects admins that have identical account and computer names. Is that your case?

Negative. When I discovered Startup with Windows wasn't working on my system, I investigated the Task Scheduler task. Just by opening the Task Properties and trying to save them again without any changes, I received this error message: One or more specified arguments not valid. Upon researching this error message I came upon the solution in the link above which fixed the issue for me.

OMGrant avatar May 01 '22 14:05 OMGrant

We currently suspect the bug affects admins that have identical account and computer names. Is that your case?

Negative. When I discovered Startup with Windows wasn't working on my system, I investigated the Task Scheduler task. Just by opening the Task Properties and trying to save them again without any changes, I received this error message: One or more specified arguments not valid. Upon researching this error message I came upon the solution in the link above which fixed the issue for me.

So, if you changed the user on the task scheduler, that means the task itself was successfully created by Fan Control, just wasn't working? If yes, that means the issue you had was different than the one i was thinking about (where Fan Control fails to create the task).

xhul-dev avatar May 01 '22 14:05 xhul-dev

I have a 30 second delay, set to start the app and minimize to system tray at startup yet it doesn't start when I boot my system.

  • Checked task scheduler and it's in there but says the directory name is invalid.
  • Location has a \

BrendanMan3 avatar Mar 01 '23 18:03 BrendanMan3