Closed DemiMarie closed 1 week ago
The two width_mm_atom
and height_mm_atom
are currently set to 0 in dummy driver. Hard coding them to a reference display size is not ideal. I guess a protocol bump should allow vmside to query the actual size from the xside.
Not necessarily. qubes.SetMonitorLayout
service should set appropriate size, when it receives it from dom0 (or gui domain). I guess it doesn't get it for some reason.
The unittests for qvm_start_daemon.py
makes it evident. The w_mm
and h_mm
is calculated only for hidpi screens. Overall very easy to fix. This else case should be fixed and unittests should be readjusted. Could I select 96DPI for non-hidpi screens? Arch Wiki mentions it as the most common non-hidpi resolution.
p.s. and while I am at it, maybe switch to Xlib library instead of parsing the xrandr output?
How to file a helpful issue
Qubes OS release
R4.2
Brief summary
Qubes OS trips this warning from winit:
This means that the display size is zero, which is obviously nonsense.
Steps to reproduce
Run
xrandr
. I get the following:Expected behavior
Display size is accurate (outside Whonix), or at least non-zero.
Actual behavior
Display size is zero.