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

DPI problem? #3

Open
seqizz opened this issue Apr 9, 2021 · 2 comments
Open

DPI problem? #3

seqizz opened this issue Apr 9, 2021 · 2 comments

Comments

@seqizz
Copy link

seqizz commented Apr 9, 2021

Hi again,

Now I am able to run this as a systemd user service, I've realized after switching to laptop screen again, some of the fonts (window manager's) are started to show huge. Do you set/assume any DPI or anything which can affect it?

I am not even sure how to debug this, doesn't happen with autorandr and I guess we currently can't see the commands autorandrd is giving (e.g. verbose output).

@theotherjimmy
Copy link
Owner

Heh, yeah, There's a TODO in the code about this. autorandrd does not call xrandr, so I would have to have some verbose output option. I'll make a verbose output option soon.

@theotherjimmy
Copy link
Owner

Notes for later:

The aforementioned TODO is here: https://github.com/theotherjimmy/autorandr-rs/blob/main/src/bin/autorandrd.rs#L121-L123

The mm_w and mm_h variables are passed to the randr_set_screen_size call, which probably affects DPI in some way. I think we'll have to make that calculation correct, probably by doing something similar to the computation of fb_size. I'm not sure exactly how to do this ATM.

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