hello icon indicating copy to clipboard operation
hello copied to clipboard

Support VMWare Graphic drivers.

Open ghost opened this issue 4 years ago • 9 comments

I am use the VMWare to try Hello System. but the screen resolution only good for 1024x768. I can see the open-vm-tools already installed. but why the screen resolution can not fit the windows. I have (1920x1080) screen.

ghost avatar Jan 19 '21 01:01 ghost

Edit the file /usr/local/etc/X11/xorg.conf.d/10-video-initgfx.conf,

Change the "vesa" to "vmware";

Then, edit the file /etc/rc.conf, disable the auto detect.

initgfx_enable = "YES" change to initfx_enable = "NO"

Reboot, the vmware driver should be loaded correctly.

lxm2021 avatar Feb 25 '21 12:02 lxm2021

Does it work as intended with NomadBSD without the need for manual intervention? We are using initgfx which is from NomadBSD, hence the question.

probonopd avatar Feb 25 '21 19:02 probonopd

I have checked the initglx code, it does not detect VMware PCI information, only virtual box. So when running in VMware, it can not correctly set the proper config file, may ask them to add support for VMware.

And , each time when boot up , initglx will delete the previous config file and generate a new one , I have tested it , I reboot, the file I edited was replaced by the initglx.

And , there is no need to detect VGA every time when system reboot.

I think NomadBSD tend to be running on USB drive, so they using initglx to detect VGA every time when system reboot.

This can be improved in Hello system , I think.

lxm2021 avatar Feb 25 '21 19:02 lxm2021

I have checked the initgfx_config code, it does not detect VMware PCI information, only virtual box.

I have opened a ticket for VMware support in initgfx.

there is no need to detect VGA every time when system reboot

Since helloSystem (unlike NomadBSD) is running from a truly read-only Live medium, we need to detect graphics each time the Live system boots. (This is not true for the installed system.) Doing so should add only a few seconds to the Live boot process, so should be almost negligible. On the installed (not Live) system, we do not detect graphics each time the installed system boots. Only if the GPU does not match /var/initgfx_config.id.

probonopd avatar Feb 27 '21 14:02 probonopd

Hello @netroby @lxm2021

According to he initgfx author,

it should be trivial to add support to initgfx. There shouldn't even be the need for a Xorg config file, just like VirtualBox. What's the output of pciconf -lv | grep -B3 display and kenv smbios.system.product in VMware?

Can you please post this information? Thank you very much.

probonopd avatar Feb 28 '21 16:02 probonopd

1 2

lxm2021 avatar Mar 02 '21 09:03 lxm2021

Not sure if this is applicable to the VMWare situation, but in Parallels I am able to get almost full and native resolution by adding this to /boot/loader.conf

efi_max_resolution="1080p"

69graves avatar Mar 03 '21 20:03 69graves

Does running /usr/local/bin/vmware-user-suid-wrapper change the situation? It looks like this is supposed to be started by /usr/local/etc/xdg/autostart/vmware-user.desktop but nothing in helloSystem currently does anything with /usr/local/etc/xdg/autostart/.

probonopd avatar Oct 29 '22 21:10 probonopd

For the future: adding efi_max_resolution="1080p" to /boot/loader.conf and changing Maximum resolution of any one monitor settings in virtual machine settings to 1920 x 1080 worked for me (VMware)

hugmouse avatar Feb 23 '23 20:02 hugmouse