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

Rounded refresh rate breaks on some displays #15

Closed
kujeger opened this issue Jul 3, 2018 · 0 comments
Closed

Rounded refresh rate breaks on some displays #15

kujeger opened this issue Jul 3, 2018 · 0 comments

Comments

@kujeger
Copy link
Contributor

kujeger commented Jul 3, 2018

Firstly thanks for a very useful tool!

I'm seeing some problems when applying profiles on my laptop though, getting this error:
xrandr: Configure crtc 1 failed

Debugging it, it happens when the refresh rate is set to 60, but not when using 59.95 as reported by xrandr.

Looking into the python code, I see it is internally rounded before writing to profiles etc in xrandr.py:
current_rate = int(round(float(rate)))

Changing it to just
current_rate = rate resolved the problem for me.

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

No branches or pull requests

2 participants