Skip to content

feat: Upgrade to .NET 11, add CrossCooling, and improve dark theme support - #371

Closed
ymg2006 wants to merge 1 commit into
wygodad:mainfrom
ymg2006:main
Closed

ymg2006 wants to merge 1 commit into
wygodad:mainfrom
ymg2006:main

Conversation

@ymg2006

@ymg2006 ymg2006 commented Nov 23, 2026

Copy link
Copy Markdown

The reason to add cross cooling is that the heat pipes in raider ge78hx are shared and cpu temps are much higher than graphic cards temperatures.
a495d4cb-331a-419c-8aba-e99f51b8ca91

Summary

This pull request introduces three improvements to GhostDeck:

  1. Upgrade to .NET 11 to modernize the application framework and maintain compatibility with the latest .NET ecosystem.
  2. Introduce CrossCooling, a configurable fan control feature that allows CPU and GPU cooling demands to influence each other's fans for more effective thermal management.
  3. Improve dark theme consistency by ensuring context menus automatically use dark styling when the application's dark theme is enabled.

These changes aim to improve thermal management flexibility, modernize the application, and provide a more consistent user experience while preserving existing functionality.

Type of change

Select all that apply:

  • New feature
  • Bug fix
  • Hardware or model support
  • User interface or OSD change
  • Performance improvement
  • Refactoring
  • Documentation
  • Build, tooling, or CI change
  • Other:

Related issue or discussion

  • Closes # Not applicable
  • Related discussion: Not applicable

Changes

1. .NET 11 Upgrade

  • Update the application target framework to .NET 11.
  • Modernize framework compatibility and build configuration.
  • Preserve existing application architecture and functionality.

2. CrossCooling

Introduce configurable cross-fan cooling behavior that enables fans to respond to thermal demand from both the CPU and GPU.

Supported CrossCooling modes:

  • Off: Preserve the original independent CPU and GPU fan behavior.
  • CPU → GPU: Allow CPU cooling demand to additionally influence the GPU fan.
  • GPU → CPU: Allow GPU cooling demand to additionally influence the CPU fan.
  • Both Fans: Both fans respond to the maximum cooling demand calculated from the CPU and GPU fan curves.

CrossCooling is designed to operate alongside the existing fan curve configuration without requiring users to abandon their current cooling profiles.

The feature is particularly useful for workloads where one processor generates significant heat while the other processor's fan would otherwise operate at a lower speed.

3. Dark Theme Context Menus

  • Apply dark styling to context menus when dark mode is enabled.
  • Preserve light context menu styling when using the light theme.
  • Improve consistency between context menus and the main application interface.

User-visible changelog

  • Added CrossCooling, allowing CPU and GPU cooling demands to influence either or both fans.
  • Added four CrossCooling modes: Off, CPU → GPU, GPU → CPU, and Both Fans.
  • Improved thermal management flexibility for CPU-heavy, GPU-heavy, and mixed workloads.
  • Updated context menus to automatically match the application's selected light or dark theme.
  • Upgraded the application framework to .NET 11.

Contribution authorship and code origin

This contribution was:

  • Created by the submitter specifically for GhostDeck
  • Adapted from an existing open-source project
  • Ported from another application or project
  • Created with contributions from other people
  • Other:

Complete the applicable authorship option before submission.

If any code, design, algorithm, or implementation was adapted, ported, or reused, provide its origin:

  • Source: To be confirmed
  • Original author: To be confirmed
  • License: To be confirmed
  • Description of reused or adapted elements: CrossCooling is designed to integrate with GhostDeck's existing fan control architecture. Any externally reused implementation must be identified.

I confirm that:

  • I have permission to submit all included code and assets.
  • Reused code and assets are compatible with the GhostDeck license.
  • Required attribution and license notices have been preserved.

AI assistance

Select the option that best applies:

  • This contribution was created without generative AI assistance
  • This contribution was created with generative AI assistance

AI tools used, if applicable:

  • Claude
  • ChatGPT
  • Codex
  • GitHub Copilot
  • Gemini
  • Another AI tool:

AI was used for:

  • Code generation
  • Code review
  • Debugging
  • Refactoring
  • Tests
  • Documentation
  • Research or explanation
  • Other:

Additional context about AI assistance:

ChatGPT was used to help describe the CrossCooling design, organize feature requirements, and prepare the pull request documentation.

Any additional AI assistance used during implementation, debugging, or testing should be disclosed before submission.

The submitter remains responsible for reviewing, understanding, testing, and maintaining all submitted code.

Testing

Test environment

  • GhostDeck version or commit: To be provided
  • Windows version: To be provided
  • MSI laptop model: To be provided
  • BIOS version: To be provided
  • EC firmware version: To be provided
  • MSI Center version, if relevant: To be provided

Test procedure

  1. Build and launch GhostDeck using .NET 11.
  2. Verify that existing application functions operate normally.
  3. Disable CrossCooling and confirm the original independent fan control behavior.
  4. Enable CPU → GPU and verify that CPU cooling demand can increase GPU fan demand.
  5. Enable GPU → CPU and verify that GPU cooling demand can increase CPU fan demand.
  6. Enable Both Fans and verify that the maximum calculated cooling demand is applied to both fan targets.
  7. Check that existing fan curves remain respected when CrossCooling is enabled.
  8. Switch between light and dark themes and verify that context menus follow the selected theme.
  9. Restart the application and verify that any persisted CrossCooling configuration is restored.
  10. Check for unexpected fan behavior, UI errors, or regressions.

Test result

Pending verification.

Actual build results, hardware observations, and runtime behavior should be documented after testing.

Regression testing

Existing functionality to verify:

  • Independent CPU and GPU fan control.
  • Existing custom fan curves.
  • Automatic and manual fan control modes.
  • Existing configuration loading and saving.
  • Application startup and shutdown.
  • System tray and context menu functionality.
  • Light and dark theme switching.

Hardware-specific behavior

Does this change read from or write to hardware-specific interfaces, WMI methods, Embedded Controller registers, firmware-dependent values, or model-specific configuration?

  • No
  • Yes

CrossCooling changes the calculation of fan targets that are ultimately applied through GhostDeck's hardware fan control system.

  • Affected laptop models: Models supported by GhostDeck's existing fan control implementation; specific CrossCooling compatibility requires verification.
  • Affected firmware versions: Not yet confirmed.
  • Registers or interfaces used: Existing GhostDeck fan control interfaces. Exact underlying interfaces must be verified against the implementation.
  • Values read: CPU and GPU thermal readings and calculated fan cooling demands.
  • Values written: CPU and GPU fan targets through the existing fan control mechanism.
  • Source or documentation for these values: Existing GhostDeck fan control implementation.
  • Expected behavior: Coordinate fan demand according to the selected CrossCooling mode while preserving existing hardware limitations and fan safety constraints.
  • Known risks or limitations: Fan response, firmware restrictions, and hardware support may vary between MSI laptop models.
  • Recovery or rollback procedure: Disable CrossCooling to restore independent fan demand calculations. If necessary, revert the change and restore the previous GhostDeck build.

No new EC register addresses or firmware-specific commands are claimed by this description. Any such additions must be documented separately.

Compatibility

Select all that apply:

  • Tested on a confirmed supported model
  • Tested on an experimental model
  • Tested without MSI Center installed
  • Tested with MSI Center installed
  • Tested after restarting Windows
  • Tested after sleep or hibernation
  • Tested on AC power
  • Tested on battery power
  • Not applicable

Compatibility notes:

CrossCooling is intended to work with GhostDeck's existing supported fan control implementations.

Compatibility across MSI models and firmware versions requires physical hardware validation.

.NET 11 requires a compatible .NET runtime and supported Windows environment.

Security and privacy

Does this change:

  • Require administrator privileges
  • Start a process or scheduled task
  • Access the network
  • Download remote content
  • Store user data or configuration
  • Read hardware identifiers
  • Execute external commands
  • None of the above

The relevant checkboxes must be verified against the implementation, particularly existing privilege requirements and whether CrossCooling settings are persisted.

Describe any security or privacy implications:

CrossCooling is intended to operate locally using GhostDeck's existing temperature monitoring and fan control infrastructure.

No additional network communication or collection of personal information is required by the proposed feature.

Existing hardware access permissions and firmware safety restrictions must remain enforced.

Screenshots or recordings

Screenshots should demonstrate:

  • CrossCooling settings and available modes.
  • Context menus displayed in dark mode.
  • Context menus displayed in light mode.

Screenshots to be attached before submission.

Documentation

Describe any documentation that was added or updated:

  • README
  • Technical documentation
  • Supported models
  • FAQ
  • User-facing help
  • Code comments
  • No documentation changes were required

Documentation notes:

Recommended documentation includes explanations of the four CrossCooling modes, their interaction with existing fan curves, and any hardware-specific limitations.

Mark the files actually updated before submission.

Checklist

  • This pull request is focused on one feature or problem.
  • I searched existing issues, discussions, and pull requests before submitting.
  • The project builds successfully.
  • I tested the affected functionality.
  • I performed relevant regression testing.
  • I reviewed and understand all submitted code.
  • I take responsibility for all submitted code, including AI-assisted portions.
  • I documented hardware-specific behavior and firmware dependencies.
  • I documented known risks and limitations.
  • I added or updated tests where practical.
  • I updated documentation where necessary.
  • I did not include credentials, tokens, personal data, installers, compiled binaries, or build output.
  • I did not introduce unrelated formatting or refactoring changes.
  • Reused code and assets are properly attributed and license-compatible.

Additional notes

This pull request combines framework modernization, fan control enhancements, and theme consistency improvements.

CrossCooling is an optional feature: With CrossCooling disabled, the application should preserve GhostDeck's existing independent CPU and GPU fan behavior.

CrossCooling should respect the underlying hardware and firmware restrictions and must not bypass existing fan control safety mechanisms.

The .NET 11 upgrade and UI changes are intended to preserve compatibility with the existing GhostDeck architecture.

The final scope, hardware support, implementation details, and test results should be confirmed against the submitted changes.

…pport

- Upgrade the application target framework to .NET 11.
- Introduce CrossCooling to enable CPU and GPU temperature-based fan coordination.
- Add configurable CrossCooling modes:
  - **Off:** Preserve original independent fan control.
  - **CPU → GPU:** Allow CPU cooling demand to influence the GPU fan.
  - **GPU → CPU:** Allow GPU cooling demand to influence the CPU fan.
  - **Both Fans:** Use the maximum CPU/GPU cooling demand for both fans.
- Integrate CrossCooling settings with existing fan control functionality.
- Update context menus to automatically follow the application's active theme, displaying dark menus in dark mode.
- Preserve existing light theme behavior and compatibility with current settings.
@wygodad

wygodad commented Nov 24, 2026

Copy link
Copy Markdown
Owner

@ymg2006 thanks for the pull request and for the photo of the shared heat pipes on the Raider GE78HX.

Why it can't be merged as it is

It combines three separate changes, and each needs its own decision:

  1. .NET 11. GhostDeck is moving to .NET 10, the long-term support release, in two steps: first a release whose updater can handle a build that needs a newer .NET, then the build itself. Switching the target framework on its own would leave people who only have .NET 8 with a GhostDeck that no longer starts after an automatic update.
  2. CrossCooling. It rewrites both fan-curve tables and the fan-mode byte repeatedly while it runs. Every write like that has to be tested on real hardware and documented before it ships, and the pull request lists the test results as pending.
  3. Dark context menus. A separate interface change.

What happens now

I'm closing this pull request. The .NET migration is planned and will come in the next releases.

@wygodad wygodad closed this Nov 24, 2026
wygodad added a commit that referenced this pull request Nov 24, 2026
…NDERING; shorter label for "Fan Boost off once cooled"; credit for the themed menus (#371)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants