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

Log spam an wrong scaling when trying to set a specific scale #182

Open
LelouBil opened this issue Feb 1, 2025 · 1 comment
Open

Log spam an wrong scaling when trying to set a specific scale #182

LelouBil opened this issue Feb 1, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@LelouBil
Copy link

LelouBil commented Feb 1, 2025

Hello, I just started to use way-displays with Hyprland and came accross the following problem:

Here is my display information (from hyprctl monitors) after launching way-displays

Monitor eDP-1 (ID 0):
	2560x1600@165.00000 at 0x0
	description: BOE 0x0BC9
	make: BOE
	model: 0x0BC9
	serial: 
	active workspace: 2 (2)
	special workspace: 0 ()
	reserved: 0 108 0 0
	scale: 2
	transform: 0
	focused: yes
	dpmsStatus: 1
	vrr: true
	solitary: 0
	activelyTearing: false
	directScanoutTo: 0
	disabled: false
	currentFormat: XRGB8888
	mirrorOf: none
	availableModes: 2560x1600@165.00Hz 2560x1600@60.00Hz 1920x1200@165.00Hz 1920x1080@165.00Hz 1600x1200@165.00Hz 1680x1050@165.00Hz 1280x1024@165.00Hz 1440x900@165.00Hz 1280x800@165.00Hz 1280x720@165.00Hz 1024x768@165.00Hz 800x600@165.00Hz 640x480@165.00Hz 

However, a scale of 2 is too big, so I tried to set the same scale as I have configured in Hyprland : 1.6

When running way-displays -s SCALE eDP-1 1.6 the way-displays log file (and the output of the command I just ran) spams this endlessly.

eDP-1 Changing:
  from:
    scale:     1.500 (1.958)
    size:      1707x1067
    position:  0,0
    mode:      2560x1600@165Hz (165,000mHz) (preferred)
    VRR:       on
  to:
    scale:     1.625

Changes successful

Moreover, Hyprland is refusing this scale because it is not a clean divisor of my resolution, and prints a warning message on my screen saying to put the scale to 1.6 precisely.

So, why does way-displays not use the number I gave it precisely, and why does this result in log spam until I change the scale back again ?

@alex-courtis
Copy link
Owner

Thanks for reporting. This strict behaviour is new.

It seems that we round scales to 1/8 to work around multi monitor issues arising from unavoidable wayland rounding #138

It looks like this issue should be reproducible.

@alex-courtis alex-courtis added the bug Something isn't working label Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants