Display DSI-1 only works on L5
Using this app in QEMU fails due to it being a Virtual display. The l5-scale-the-screen script has DSI-1 hardcoded in it.
If I run the same command but use -output Virtual-1
then it works in QEMU.
The below changes to the script fixed it for me:
#!/bin/bash
function usage()
{
echo "Usage: $0, or just press the Scale the Screen Icon in the app tray"
exit 0
}
case "$1" in
--help|-h|-?)
usage
;;
esac
DISPLAY=$(wlr-randr | head -n 1 | awk '{print $1}')
yad --title scale_screen --form \
--field='Default dpi (2x scale)':fbtn "wlr-randr --output $DISPLAY --scale 2" \
--field='Low dpi (1.75x scale)!window-restore-symbolic':fbtn "wlr-randr --output $DISPLAY --scale 1.75" \
--field='Medium dpi (1.5x scale)!window-minimize-symbolic':fbtn "wlr-randr --output $DISPLAY --scale 1.5" \
--field='High dpi (1.25x scale)!window-maximize-symbolic':fbtn "wlr-randr --output $DISPLAY --scale 1.25" \
--field='Max dpi (1x scale)!view-fullscreen-symbolic':fbtn "wlr-randr --output $DISPLAY --scale 1" \
--field='Restart Phosh':fbtn "sudo systemctl restart phosh" \
--button='Close!gtk-cancel':1
Edited by Neil Simpson