On some of the Linux distributions and apparently more on XFCE (MX Linux) and Gnome (Manjaro) we could solve this by
xrandr --display :0 --output Virtual-0 --auto
or more simple just by
xrandr --output Virtual-0 --auto
but is not doing it automatically when the client changes (from browser to Android client) or the browser window size is changed ...
From some older documentation i learned there was at some point a package called spice-autorandr still available at https://github.com/seife/spice-autorandr
Sadly i was not able to compile it and test it. I have zer0 experience in C
Update:
While testing also in Manjaro, it seems the Virtual-0 can be Virtual-1 ...
Update2-EDITED:
For the OS that run on wayland we should aim to do what is in Fedora or openSUSE Tumbleweed. Those properly scale.
Update3:
After update of openSUSE Tumbleweed it lost the ability to autoscale.
The workaround was to shutdown and then start it again.
Update4:
Well, it seems it installed automatically this package
and after that the scale was lost again, and nothing helped.
Update5:
Debian Buster seems to also scale properly, but is on older Gnome version, and survives updates and reboots, but is running on X11 and not wayland ... so probably the workarounds need to be updated for the other distributions based on their Gnome version and we need something working for both wayland and X11?
On some of the Linux distributions and apparently more on XFCE (MX Linux) and Gnome (Manjaro) we could solve this by
xrandr --display :0 --output Virtual-0 --auto
or more simple just byxrandr --output Virtual-0 --auto
but is not doing it automatically when the client changes (from browser to Android client) or the browser window size is changed ... From some older documentation i learned there was at some point a package calledspice-autorandr
still available at https://github.com/seife/spice-autorandrSadly i was not able to compile it and test it. I have zer0 experience in C
Update: While testing also in Manjaro, it seems the Virtual-0 can be Virtual-1 ...
Update2-EDITED: For the OS that run on wayland we should aim to do what is in Fedora or openSUSE Tumbleweed. Those properly scale.
Update3: After update of openSUSE Tumbleweed it lost the ability to autoscale. The workaround was to shutdown and then start it again.
Update4: Well, it seems it installed automatically this package and after that the scale was lost again, and nothing helped.
Update5: Debian Buster seems to also scale properly, but is on older Gnome version, and survives updates and reboots, but is running on X11 and not wayland ... so probably the workarounds need to be updated for the other distributions based on their Gnome version and we need something working for both wayland and X11?