Skip to content

Task Scheduler task does not activate the display (XuanFang 3.5) #958

@CyrTech

Description

@CyrTech

Describe the bug
I installed the Windows version using the MSI installer.
I configured the screen (type B) and when I start it manually verything works fine.
I then created a Tast Scheduler Task (as described here) and then I got two different bugs:

#1 The task (system start or login, doesn't matter) does nothing. Main.exe is running in the background but the display stays dark. I looked into the log.log but the entries are identical to the manual start.

#2 On some occasions the display shows the theme and runs normally. But upside down. When I stop and restart the main.exe it is in portrait mode as configured. Playing with settings in config.yaml and in the theme does not solve this.

To Reproduce
#1 is reproduceable, but the logging data shows nothing other than for a manual start.
#2 sust sometime happens. Logs are fine and the next reboot, it could be a dark display again.

Variants for the task:
1 Just main.exe on system startup
2 Just main.exe on user login
3 Run with highes priviledges on system startup
4 Run with highes priviledges on user login

  • Enable "admin compatibility mode" for main.exe and run the four above again.

-> Logging and errors did not change

Expected behavior
#1 The task scheduler tasks start the main.exe and the display comes alive.
#2 The task scheduler tasts starts the main.exe and the LCD is not upside down.

Logs
17.02.2026 08:24:50 [INFO] Loading theme bash-dark-green-gpu from res\themes\bash-dark-green-gpu\theme.yaml
17.02.2026 08:24:51 [WARNING] Cannot find valid DISPLAY_SIZE property in selected theme bash-dark-green-gpu, defaulting to 3.5"
17.02.2026 08:24:51 [DEBUG] HW revision: B
17.02.2026 08:24:51 [DEBUG] Static COM port: COM3
17.02.2026 08:24:51 [WARNING] It is recommended to use LibreHardwareMonitor integration for Windows instead of Python libraries (require admin. rights)
17.02.2026 08:24:51 [DEBUG] Using Python 3.13.11 (tags/v3.13.11:6278944, Dec 5 2025, 16:26:58) [MSC v.1944 64 bit (AMD64)]
17.02.2026 08:24:51 [INFO] Tray icon has been displayed
17.02.2026 08:24:51 [INFO] Initialize display
17.02.2026 08:24:51 [DEBUG] HW sub-revision: 2577
17.02.2026 08:24:51 [INFO] Only HW revision 'flagship' supports backplate LED color setting
17.02.2026 08:24:51 [DEBUG] Drawing Image: BACKGROUND
17.02.2026 08:24:51 [DEBUG] Bitmap C:\Users\klaatu\AppData\Local\Programs\Turing System Monitor\res\themes\bash-dark-green-gpu/background.png is now loaded in the cache
17.02.2026 08:24:51 [INFO] Waiting for all pending request to be sent to display (10s max)...
17.02.2026 08:24:56 [DEBUG] (Waited 4.9s)
17.02.2026 08:24:56 [INFO] Starting system monitoring
17.02.2026 08:24:57 [WARNING] Your CPU temperature is not supported yet
17.02.2026 08:24:57 [INFO] Detected Nvidia GPU(s)

Environment:

  • Smart screen model: XuanFang 3.5”
  • Revision of this project: 3.9.7, main branch
  • OS with version Windows 11 25H2
  • Python version [e.g. Python 3.13.7]
  • Intel CPU i7-12700, Nvidia GPU 3050

Additional context
I have an old PC just updated for Windows 11 25H2. There is no other software then the OS itself installed!
The task scheduler tasks starts the main.exe flawlessly on system startup and shows the theme.
This is what I expected on my workstation too.
Can it be a problem with the installed Python 3.13?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions