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

Sensors shown in the system tray appear in random order

Open CalculonPrime opened this issue 2 years ago • 18 comments

Describe the bug Temperature sensor order in system tray appears random. Doesn't always match specified sensor order. So if I select CPU core max temp and Coolant temp as the two sensors to show in the system tray. Sometimes they will be shown in the order listed. Other times, the order will be reversed.

Is there a log.txt file next to FanControl.exe with recent date entries? Seems like you'd need debug-level logging to have any hope of helpful logs for this.

Relevant hardware specs and setup Asrock Z790 Pro RS motherboard + Corsair H115I AIO Cooler

CalculonPrime avatar Mar 15 '23 02:03 CalculonPrime

I can't control the order of the icons in the tray. I would recommend setting a different color for each to get an easier time differentiating them.

Rem0o avatar Mar 15 '23 13:03 Rem0o

I'm aware of two programs that are able to show multiple system tray icons in a fixed order that appears to be consistent each time the program is run.

  • HWiNFO64 is one such program. You can display multiple sensors in the system tray, and they will be consistently shown in the same order as the sensors are listed in the monitor window.
  • "Enable Virtual Desktop" for Windows is another. it's no longer maintained, but you can probably still find it out on the web. It has an option to show a system tray icon for each window (4 by default), and they're always displayed consistently in order.

I have no idea how hard it would be to follow whatever strategies these programs used, but it does look possible. I've run the programs above on the latest version of Windows 10. In the case of HWiNFO64, it's not open source, but the maintainer may be willing to tell you how he solved the problem if you contact him, or ask in the support forums.

CalculonPrime avatar Mar 17 '23 03:03 CalculonPrime

Did you move any of the icon at all, like for one to be permanently in your task bar? In my case, I put two temperatures in my always visible tray, and they always stay in the same place. I always spawn them in order, but Windows ultimately decides where to put them.

Rem0o avatar Mar 17 '23 12:03 Rem0o

OK, upon further investigation I don't think I reported this bug correctly. There still is a bug, but it may be easier to fix than the original one.

I don't actually see a random order in the sensors. The order is deterministic, but the problem is:

  • When I add or edit sensors, they appear in the same order as they do in the GUI (expected)
  • If I then save and exit FanControl, and restart it, they are displayed in the reverse order as they are listed.

So, the workaround for me is just to create the sensors in the reverse order as what I want. Then I just need to save and exit FanControl, and all future restarts will show them in the order I want, unless I need to edit them again.

CalculonPrime avatar Mar 17 '23 21:03 CalculonPrime

Ah! Tested this a bit, and by default they get added from right to left. Could add a simple reverse() to get a left to right behavior.

Rem0o avatar Mar 18 '23 16:03 Rem0o

So I came looking for this answer is there anyway we can get the GPU temp to be the one that is shown in the taskbar?

paperc07 avatar Apr 21 '23 10:04 paperc07

@paperc07 image

Rem0o avatar Apr 21 '23 13:04 Rem0o

ty so much

paperc07 avatar Apr 21 '23 17:04 paperc07

I have tried every kind of order but when I reboot Windows, I always get gpu temperature first and cpu second.

tormento avatar Jun 25 '23 18:06 tormento

I take it this problem hasn't been solved yet?

Green - GPU Blue - CPU Brown - VRM.

Well, it is not convenient at all: the order in Fan Control b system tray does not coincide at all.

2023-08-02 14_36_19-Greenshot

Spuner avatar Aug 02 '23 10:08 Spuner

The issue still persists, the items on the Tray Icons screen are ordered correctly but in the tray they are not, I have to initiate drag action to order them

The solution is to put the definitions in "TrayIcons" section in userConfig.json file in the order you want them to show up (from left to right). It seems until I start fiddling with the settings they will display in correct order.

jacklul avatar Jun 10 '24 15:06 jacklul

@jacklul im the ui you can drag to reorder the tray icons, no need to manually do it in the json config.

Rem0o avatar Jun 10 '24 16:06 Rem0o

@jacklul im the ui you can drag to reorder the tray icons, no need to manually do it in the json config.

I have to initiate drag action to order them

This is what I've been doing, but the order they appear in tray after reboot is always reverse, so you can either put them reversed in the UI or do it manually in the file. So basically the order they show up after dragging them in the UI is wrong, what matters is the order in the config file.

jacklul avatar Jun 10 '24 16:06 jacklul

Are you expecting right to left or left to right?

This is what I get and expect everywhere: image

Rem0o avatar Jun 10 '24 17:06 Rem0o

image image then after restarting the app: image

jacklul avatar Jun 10 '24 18:06 jacklul

Did you try to reorder by dragging them on the tray itself? That won't stick. Just make sure the order in the app is ok and every time it restarts it the order will be the same.

Rem0o avatar Jun 10 '24 19:06 Rem0o

Reordering in the UI puts them in reverse order than it is after app restart I did not reorder them on the tray, assumed that won't work (knowing MSI Afterburner had the same behavior)

jacklul avatar Jun 10 '24 19:06 jacklul

current: Version 201 (NET 8.0), but I saw this behaviour since many previous versions When the app starts, the icons are ordered from left to right in systray the same as they are top to bottom in the UI. But! When changing configs (through right click on the systray icons) the icons are in reversed order (right to left) in the systray. At least in my case. Also in reverse when the Tray Icons are changed (adding, removing, changing order, etc ...) through the UI and saving the config.

willygeerts avatar Sep 11 '24 22:09 willygeerts