OSDN Git Service

init.sh: allow setting VMware solution via cmdline
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 27 Jul 2017 07:30:31 +0000 (15:30 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 27 Jul 2017 07:55:24 +0000 (15:55 +0800)
The VMware vmwgfx driver doesn't honor the standard video= cmdline.
Force to set the resolution via the debug.drm.mode.force property.

init.sh

diff --git a/init.sh b/init.sh
index cf6b1a1..8ca4e3b 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -107,6 +107,9 @@ function set_drm_mode()
                ET1602*)
                        drm_mode=1366x768
                        ;;
+               VMware*)
+                       [ -n "$video" ] && drm_mode=$video
+                       ;;
                *)
                        ;;
        esac