[Bug]: sync client makes MacBook Pro switch to dGPU, should use iGPU first
- Dominant language
- C++
- Stars
- 3.9k
- Forks
- 1k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 127
Description
### ⚠️ Before submitting, please verify the following: ⚠️
- [X] This is a **bug**, not a question or a configuration issue.
- [X] This issue is **not** already reported on Github (I've searched it).
- [X] Nextcloud Server and Desktop Client are **up to date**. See [Server Maintenance and Release Schedule](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) and [Desktop Releases](https://nextcloud.com/install/#install-clients) for supported versions.
- [X] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/)
### Bug description
the new facelift of the sync client will now default to using the dGPU (High performance mode) on a macbook with dual GPUs. The machine will _stay_ on High performance mode, even when the menu bar gui is not being shown. Will only revert back to iGPU once the app is quit
I consider this a bug because using the dGPU uses significantly more battery, and should only ever be turned on when using a graphics intensive app (photoshop, blender, coding shaders, etc).
This has only started happening when I updated to 3.14.0. previous versions did not do this.
[this issue stating the same problem is closed](https://github.com/nextcloud/desktop/issues/501)
### Steps to reproduce
1. open nextcloud sync client
2. use an app like [gswitch](https://github.com/CodySchrank/gSwitch) to determine gpu switching (can list Nextcloud as a dependency)
### Expected behavior
Syncing clients should never use dGPU when iGPU is available, uses too much battery
### Which files are affected by this bug
all files?
### Operating system
macOS
### Which version of the operating system you are running.
macOS Sonoma
### Package
Official macOS 12+ universal pkg
### Nextcloud Server version
Nextcloud Hub 8 (29.0.4)
### Nextcloud Desktop Client version
3.14.0
### Is this bug present after an update or on a fresh install?
Updated from a minor version (ex. 3.4.2 to 3.4.4)
### Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
### Are you using an external user-backend?
- [X] Default internal user-backend
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
### Nextcloud Server logs
_No response_
### Additional info
_No response_
Contributor guide
Research direction
No source files or tests are identified. First reproduce the behavior on a dual-GPU MacBook running macOS Sonoma with gSwitch, compare client version 3.14.0 with a prior version, and trace the macOS desktop client startup and menu-bar visibility behavior. Done means the sync client uses the iGPU when available and does not keep the dGPU active while the menu-bar GUI is hidden.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, macos
- Domain
- desktop, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100