diff --git a/pmb/parse/arguments.py b/pmb/parse/arguments.py index 139ea2d4..57757c0c 100644 --- a/pmb/parse/arguments.py +++ b/pmb/parse/arguments.py @@ -136,6 +136,9 @@ def arguments_qemu(subparser): ret.add_argument("--no-gl", dest="qemu_gl", default=True, action='store_false', help="Avoid using GL for accelerating graphics in QEMU " "(use software rasterizer, slow!)") + ret.add_argument("--video", dest="qemu_video", default="1024x768@60", + help="Video resolution for QEMU (WidthxHeight@RefreshRate). " + "Default is 1024x768@60.") ret.add_argument("--audio", dest="qemu_audio", choices=["alsa", "pa", "sdl"], help="QEMU's audio backend (default: none)", diff --git a/pmb/qemu/run.py b/pmb/qemu/run.py index 6cbb32d5..f1e48541 100644 --- a/pmb/qemu/run.py +++ b/pmb/qemu/run.py @@ -73,6 +73,10 @@ def command_qemu(args, arch, img_path): cmdline = args.deviceinfo["kernel_cmdline"] if args.cmdline: cmdline = args.cmdline + + if "video=" not in cmdline: + cmdline += " video=" + args.qemu_video + logging.debug("Kernel cmdline: " + cmdline) port_ssh = str(args.port)