How to configure hyprland.conf without explictly specifying monitor resolution?

Previously I used i3wm. Now I just switched to Hyprland. It works great, but I have a problem.

In default hyprland.conf, monitor is configured with monitor=,preferred,auto,auto. But it looks like the resolution is set to 1280x720. So I checked wayland-info and configured hyprland.conf to 1920x1080 i.e. monitor=,[email protected],auto,auto. Now it looks like working with wlr-randr showing

eDP-1 ..
..
Modes:
    1920x1080 px, 60.020000 Hz (preferred, current)
    ...

However, is it possible to let hyprland auto detect without manually specifying resolution in hyprland.conf? It seems to me hyprland auto detect the wrong resolution. But I am not sure which place to check and fix it. I appreciate any suggestions, and comments. Thanks.

My env is Debian Trixie with 6.19.6+deb14+1-amd64.

There are a few options in addition to preferred mentioned in the wiki. highres is probably what you want. So you would use: monitor=,highres,auto,auto

3 Likes