MarLoe / VMware.PreferencePane

System Preferences pane to change screen resolution on your macOS guest.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Screen size not persisted across reboot

iamludal opened this issue · comments

commented

I'm reopening the issue #1 because it doesn't seem to work with me.

Even after unlocking the pad, changing the resolution and applying the new settings, this doesn't work.

Also, I noticed that the following command:

sudo vmware-resolutionSet <width> <height>

works but doesn't keep the resolution after a reboot.

Sorry for the late reply.

I am not able to help you out. I am calling this exact same tool behind the scene.
It order for it to persist across boot, it must run elevated.

Sorry I cannot help you out.

commented

Don't worry. That's just strange, because I ran this command elevated...

commented

EDIT: Here's a workaround for this issue.

  1. Create a new file named Resolution.cmd wherever you want, with the following content :
#!/bin/bash

sleep 5

/Library/Application\ Support/VMware\ Tools/vmware-resolutionSet 1920 1080

Change 1920 and 1080 by your desired resolution.

  1. In a terminal, type crontab -e and add the following content :
@reboot path/to/Resolution.cmd
  1. Reboot, and now it should work!

NB: Without sleep 5, you will encounter the Unable to find the service., probably because it is not loaded yet at this moment — hence this arbitrary delay of 5 seconds.