Skip to content

Write X config first, prime-discrete last#466

Merged
jackpot51 merged 1 commit intomasterfrom
fs-write-order
Sep 19, 2025
Merged

Write X config first, prime-discrete last#466
jackpot51 merged 1 commit intomasterfrom
fs-write-order

Conversation

@crawfxrd
Copy link
Copy Markdown
Member

Attempt to write X config first to fail early in case /usr is mounted as read-only.

Resolves: #387

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>
@crawfxrd crawfxrd requested review from a team September 17, 2025 18:49
@jacobgkau jacobgkau self-assigned this Sep 18, 2025
Copy link
Copy Markdown
Member

@jacobgkau jacobgkau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 switchable on 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.

@jackpot51 jackpot51 merged commit 2f47617 into master Sep 19, 2025
20 checks passed
@jackpot51 jackpot51 deleted the fs-write-order branch September 19, 2025 13:31
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.

Failing to set graphics mode changes the displayed mode

3 participants