Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Puavo Display Manager, part1 #654

Draft
wants to merge 20 commits into
base: bookworm
Choose a base branch
from

Conversation

tuomasjjrasanen
Copy link
Contributor

@tuomasjjrasanen tuomasjjrasanen commented Jan 29, 2024

Goal

Introduce new displays part and new puavo-display-manager program. User or admin observable experience/behavior is not changed 1.

Changes in nutshell

  • New part: puavo-displays, which shall be the home for all display-related functionality.
  • puavo-displays adopts run-xrandr and set-max-bpc scripts from ltsp part
  • New puavo-display-manager program, which, for now, is just a drop-in replacement for run-xrandr (it actually wraps it); all call sites are changed to use puavo-display-manager instead.
  • xrandr-functionality from set-max-bpc is moved to a library module

Footnotes

  1. xrandr usage is optimized (max bpc is set only on connected outputs + xrandr is called just once), so user experience is somewhat better due to faster display configuration.

@tuomasjjrasanen tuomasjjrasanen self-assigned this Jan 29, 2024
@tuomasjjrasanen tuomasjjrasanen marked this pull request as draft February 2, 2024 10:06
@tuomasjjrasanen tuomasjjrasanen force-pushed the puavo-display-manager-part1 branch 2 times, most recently from 45b0105 to 8279d07 Compare February 2, 2024 15:48
For now, it's just a wrapper for run-xrandr. Nothing more, nothing
less. It accepts the same --only-set-max-bpc flag, which is then
passed to run-xrandr.
Because puavo-display-manager is there now, call it instead.
…on the command line

This makes --help work without querying puavo configurations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant