flint: U4919DW screen buggy on Ubuntu 20.04
The wild screen U4919DW is buggy on Ubuntu 20.04.
Ubuntu is not able to parse the exported EDID oif this screen, as result the screen is exported with a dummy size of 1mm x 1mm.
This make trouble silx and flint.
Here is a patch we have to apply locally on each beamlines using this screen.
This have to be reapplied everytime we install a new version of silx.
Patch used at ID24
# /users/blissadm/conda/miniconda/envs/bliss_dev/lib/python3.7/site-packages/silx/gui/qt/_qt.py
def _patchPhysicalSize():
print("Patch Qt.QScreen.physicalDotsPerInch for Dell U4919DW")
previous = QScreen.physicalDotsPerInch
def patched(self):
if self.model() == "Dell U4919DW-":
return 108.37
return previous(self)
QScreen.physicalDotsPerInch = patched
_patchPhysicalSize()
Edited by Valentin Valls