Skip to content

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

Open

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?

Activity

  1. CyrTech commented on Feb 20, 2026

    @CyrTech
    Author

    I now magically managed to stert the display from a task scheduler task on system start. Don't know what I changed.

    The cuplritt is still that the display starts always upside-down aka "reverse-portrait". My USB ports are left-botton and I use the internal connector on top.

    If I stop the "main.exe" and restart it (task scheduler or on the commandline) the display is in the correct direction "portrait" and not "reverse-portrait"

  2. c0ldJS commented on Mar 17, 2026

    @c0ldJS

    "The cuplritt [sic] is still that the display starts always upside-down aka "reverse-portrait"."

    In your instance's config.yaml, what is the value for DISPLAY_REVERSE:?

  3. CyrTech commented on Mar 18, 2026

    @CyrTech
    Author

    Currently it is set to:

    DISPLAY_REVERSE: false

    and about 80% of days I get a Portrait-Mode display as expected. On 20% of days, the display is flipped upside down.

    I set DISPLAY_REVERSE: true but that then would give me 20% of days a Portrait and 80% an upside down image.
    Since I tried to delayed the app by 1 minute there also cannot be an access vilolation or so. I am out of options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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