Skip to content

Conversation

ReenigneArcher
Copy link
Member

Description

Add app example to change display resolution and refresh rate in Linux with Wayland and wlr-xrandr.

Screenshot

Issues Fixed or Closed

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update (updates to dependencies)
  • Documentation update (changes to documentation)
  • Repository update (changes to repository files, e.g. .github/...)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the in code docstring/documentation-blocks for new or existing methods/components

Branch Updates

LizardByte requires that branches be up-to-date before merging. This means that after any PR is merged, this branch
must be updated before it can be merged. You must also
Allow edits from maintainers.

  • I want maintainers to keep my branch updated

@ReenigneArcher ReenigneArcher force-pushed the docs-add-wayland-resolution-example branch from bd0c789 to 8cc2f3d Compare March 11, 2023 15:27
@ReenigneArcher ReenigneArcher merged commit 27c9c0e into nightly Mar 11, 2023
@ReenigneArcher ReenigneArcher deleted the docs-add-wayland-resolution-example branch March 11, 2023 16:24
@RevengeRip
Copy link

Isn't wlr-xrandr only works on wlroots based compositors and will not work on most popular Wayland compositors such as KWin and Mutter?

@ReenigneArcher
Copy link
Member Author

ReenigneArcher commented Mar 11, 2023

Isn't wlr-xrandr only works on wlroots based compositors and will not work on most popular Wayland compositors such as KWin and Mutter?

I'm not entirely sure. I don't use linux as a daily, but wanted to get some example in for wayland.

According to the manpage on Debian (and other sources), it says it can manage outputs of a Wayland compositor. https://manpages.debian.org/testing/wlr-randr/wlr-randr.1.en.html

@KarlVogel
Copy link
Contributor

Something that might be useful, but lutris has an implementation to do resolution switching for gnome/mutter X11/Wayland

https://github.com/lutris/lutris/blob/27cb82afcc80685b3df6fb602986e10f588fd598/lutris/game.py#L859
https://github.com/lutris/lutris/blob/27cb82afcc80685b3df6fb602986e10f588fd598/lutris/util/display.py#L85

@RevengeRip
Copy link

RevengeRip commented Mar 20, 2023

Isn't wlr-xrandr only works on wlroots based compositors and will not work on most popular Wayland compositors such as KWin and Mutter?

I'm not entirely sure. I don't use linux as a daily, but wanted to get some example in for wayland.

According to the manpage on Debian (and other sources), it says it can manage outputs of a Wayland compositor. https://manpages.debian.org/testing/wlr-randr/wlr-randr.1.en.html

Well, indeed it's only supported on wlroots-based compositors which Mutter and KWin aren't, it's even said in description for this utility. Unfortunately, there's no protocol in Wayland for screen managements, so every compositor implementing it themselves.
On KDE you can use kscreen-doctor (part of kscreen)
For example for do I use: kscreen-doctor output.eDP-1.mode.5 (1920x1080@144 for my screen)
for undo: kscreen-doctor output.eDP-1.mode.0 (1280x800@144 use it for my Steam Deck)
Resolution and refresh rate could be set explicitly
kscreen-doctor output.HDMI-2.mode.1920x1080@60

@ReenigneArcher
Copy link
Member Author

it's even said in description for this utility

@OlegAckbar yes, I should have read the entire description. What's your suggestion then... to remove this example or add additional notes to it?

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.

3 participants