Write X config first, prime-discrete last#466
Merged
Conversation
Attempt to write X config first to fail early in case `/usr` is mounted as read-only. Signed-off-by: Tim Crawford <tcrawford@system76.com>
jackpot51
approved these changes
Sep 17, 2025
jacobgkau
approved these changes
Sep 18, 2025
Member
jacobgkau
left a comment
There was a problem hiding this comment.
Regression testing on Pop!_OS 22.04 passed:
CLI
Tasks which test the behavior of the CLI client.
- Power profiles can be queried and set
- Switchable graphics can be queried
- Command returns "not supported" message on a non-switchable system
- Command returns
switchableon a laptop with switchable graphics
- Discrete graphics power state can be queried and set (compute mode)
- Works on oryp5 (proprietary firmware); known not to work on oryp6.
GNOME Shell
Tasks which test the behavior of the shell extension.
- Test that the power profile can be switched, and that the dots are correct
- Test that a power profile change from the CLI is reflected in the extension
- When switching to balanced, with screen brightness maxed, screen brightness drops to 40%
- When switching to battery, with screen brightness maxed, screen brightness drops to 10%
- When switching to balanced, with screen brightness minimized, screen brightness does not change
- When restarting the daemon, and the daemon defaults to a balanced profile, the brightness should not change
- When restarting the system, screen brightness should be the same as before
- When plugging in a display in Integrated mode, the system prompts to switch to Hybrid mode
- Switchable system other than galp5
Switchable graphics (test with combination of CLI and GUI)
- Switching from Integrated to NVIDIA
- Switching from Integrated to Hybrid
- Switching from Integrated to Compute
- Switching from NVIDIA to Integrated
- Switching from NVIDIA to Hybrid
- Switching from NVIDIA to Compute
- Switching from Hybrid to Integrated
- Switching from Hybrid to NVIDIA
- Switching from Hybrid to Compute
- Switching from Compute to Integrated
- Switching from Compute to NVIDIA
- Switching from Compute to Hybrid
Graphics switching is still working as expected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Attempt to write X config first to fail early in case
/usris mounted as read-only.Resolves: #387