vmware / open-vm-tools

Official repository of VMware open-vm-tools project
http://sourceforge.net/projects/open-vm-tools/
2.26k stars 427 forks source link

OpenSuSE Tumbleweed, Gnome 3.16.X on Wayland has no automatic screen resolution adjustment #22

Open clauseggers opened 9 years ago

clauseggers commented 9 years ago

I'm having the following issue on OpenSuSE Tumbleweed running Gnome 3.16.X on Wayland: The automatic screen resolution adjustment to fit the window size does not work. Further, there are resolutions missing from the list, and some non-available ones, when I open the Display control-panel in Gnome under Wayland. If I login in Gnome under Xorg, then things work as expected.

A typical Xorg log can be seen here: http://susepaste.org/890dd3fe In it the proper resolutions are listed.

When I log into Gnome on Wayland I get the following log messages: gnome-session

Xlib: extension "VMWARE_CTRL" missing on display ":0"

vmtoolsd
[ warning] [Gtk] gtk_disable_setlocale() must be called before gtk_init()

gnome-session
vmware-user: could not open /proc/fs/vmblock/dev

Now I don't know whether this is a open-vm-tools, SuSE Tumbleweed, Gnome, or Wayland issue, but perhaps you can help me finding out?

clauseggers commented 9 years ago

I have just tried the release version of Fedora 22, and it exhibits the same issue, in that Gnome on Wayland can’t automatically set the display resolution to fit the window.

ravindravmw commented 9 years ago

I have opened an internal bug to track this issue. In the meantime, could you please share any configuration you might have for Wayland?

ravindravmw commented 9 years ago

I don't see any mention of what VMware software (and its version) are you using to run your VM? Could you please share that as well?

clauseggers commented 9 years ago

Hi Ravindra Thanks for following up on this. I’m using VMware Fusion 7.1.1.

jozzfest commented 9 years ago

I'd like to note this also occurs in Fedora 21 when specifically selecting GNOME on Wayland on the login screen as well. Wayland appears to be entering the forefront for newer releases.

Using VMWare Workstation (10.0.6 build-2700073.)

clauseggers commented 9 years ago

I’m glad to hear that I’m not alone in experiencing this. Let me add that there are several more issues that are not working (I have only tested for Gnome 3.14–3.16.X):

I’m also getting a lot of crashes of Gnome and Gdm (under Xorg). They look like this: screen shot 2015-05-28 at 18 05 29

Where I’m thrown out of Gnome into the tty above. If I press I can log in as root and reboot (still CLI).

clauseggers commented 9 years ago

A small update on the status: Copy and paste of text across the VM to the host now works in Tumbleweed and Fedora. In Tumbleweed the suspend scripts does not work.

screen shot 2015-05-29 at 11 50 48

jmhickman commented 7 years ago

So, with Wayland being the default window server of Fedora 25, I'd like to surface this ticket and see if perhaps there is some movement on it?

I'm running Workstation 12.5, and am missing the nice features like automatic resolution/window adjustment that works in X. I'm running on Windows 10 with a Fedora 25 guest OS.

icole commented 7 years ago

After installing Fedora 25 I am experiencing this issue as well. Rolling back to Fedora 24 without Wayland by default everything works as expected. Would love an update on this as well to be able to upgrade.

unlimitedsola commented 7 years ago

+1, same issue here after upgraded to Fedora 25.

blacksd commented 7 years ago

+1, I'm able - like the others - to perform the automatic screen adjustment only logging with the advanced setting "GNOME on Xorg". Please bring Wayland compatibility!

grindvoll commented 7 years ago

+1, experiencing same issue with Fedora 25. Had to change from Wayland to Xorg to get automatic screen adjustment to work.

fmo-sky commented 7 years ago

Same issue here, running Fedora 25 on VMware Fusion Pro 8.5.3, I had to revert to Gnome on Xorg

marcel-burkhard commented 7 years ago

Same problem: VMware Workstation 12 Player (12.5.6 build-5528349) and Fedora 25 (upgraded from 23 where it worked)

oliverkurth commented 7 years ago

@marcel-burkhard (and anyone encountering this issue - please check if you have the vmtoolsd user process running. When you check with ps, and it should look similar to this:

vmware@ubuntu:~$ ps uawx | grep vmtoo
root        809  0.0  0.4 187700  9772 ?        Ssl  11:11   0:03 /usr/bin/vmtoolsd
vmware    20994  0.3  1.4 501304 28520 ?        Sl   13:07   0:00 /usr/bin/vmtoolsd -n vmusr --blockFd 3
vmware    21270  0.0  0.0  14224   964 pts/8    S+   13:07   0:00 grep --color=auto vmtoo

The process running with the non privileged user id ('vmware' in this case) should be started with the GUI, but you can start it manually with

vmware-user-suid-wrapper

The command will return the prompt, please check again with ps if it was successful.

Also, what version of open-vm-tools are you using?

rhertzog commented 7 years ago

What's the status of this bug? Is there anything we can do to help?

I got the same bug report on Kali because Gnome (at least in Debian) switched to Wayland by default now for the upcoming 3.26 release: https://bugs.kali.org/view.php?id=4159

rhertzog commented 7 years ago

@oliverkurth In Kali we have open-vm-tools 10.1.10-1 but the GUI is running as "root". Is it possible that this is a problem ?

u0m3 commented 7 years ago

@oliverkurth on Kali this is how vmtoolsd runs:

root@kali:~# ps uawx | grep vmtoo
root      1458  0.6  1.3 284136 28476 tty2     S+   01:07   0:21 /usr/bin/vmtoolsd -n vmusr
root      1704  0.0  0.0  12724   936 pts/0    S+   01:59   0:00 grep vmtoo
root@kali:~# 

I made some screenshots (vmware window mode 800x600 for consistency) of vmware* commands ran when using Wayland and Xorg: https://imgur.com/a/YlKJs (first one is Wayland - you can tell by the extra window/border around the terminal window). The interesting thing seems to be the missing VMWARE_CTRL extension when running Wayland.

ravindravmw commented 7 years ago

Could OpenSuSE pick the resolutionKMS patch from https://src.fedoraproject.org/rpms/open-vm-tools/c/adf1c8e6c8d78de8bb6ca9e0f7f5700a51d641c9?branch=master? This patch should work for open-vm-tools 10.1.x versions.

@Fedora Users, could you please try updating your Fedora 25/26 images to see if that fixes this issue? We updated the Fedora repository with the patch a while back.

rhertzog commented 7 years ago

Direct URL to Fedora's patch: https://src.fedoraproject.org/rpms/open-vm-tools/raw/master/f/resolutionKMS-wayland.patch

ml8mr commented 7 years ago

On 08/20/2017 11:54 PM, Ravindra Kumar wrote:

Could OpenSuSE pick the resolutionKMS patch from https://src.fedoraproject.org/rpms/open-vm-tools/c/adf1c8e6c8d78de8bb6ca9e0f7f5700a51d641c9?branch=master? This patch should work for open-vm-tools 10.1.x versions.

Good timing. I was just about to submit 10.1.10 to Tumbleweed. I've now added this patch, but need to do some validation before submitting. If anyone is interested in testing this build, you can find the new packages here:

http://download.opensuse.org/repositories/home:/mlatimer:/branches:/Virtualization:/VMware/openSUSE_Factory/

Thanks, Mike

jackdpeterson commented 7 years ago

I'm experiencing the same broken screen-scaling and display issues in Ubuntu 17.10 after running updates today. Also experiencing the inability to apt-get purge the open-vm-tools-desktop as well :-/.

failed to stop run-vmblockx2dfuse.mount: Unit run-vmblockx2dfuse.mount not loaded.

/usr/bin/deb-systemd-helper: error: systemctl preset failed on run-vmblockx2dfuse.mount: No such file or directory.
Failed to get unit file state for run-vmblockx2dfuse.mount.
run-vmblockx2dfuse.mount is a disabled or a static unit, not starting it.

Not sure if the two are related ... but let's just say that working in my regular VM that I use for development is rather unstable.

ravindravmw commented 7 years ago

@jackdpeterson your issue needs to be reported to Canonical (launchpad). Could you please raise it there?

ChrisCheney commented 7 years ago

There is already a bug open against Ubuntu unfortunately they seem to be intent to ignore it.

lp#1703499 - ResolutionKMS patch for Wayland (RHBZ#1292234)

rhertzog commented 7 years ago

Ubuntu is in sync wth Debian in their current development release, I opened a bug on the Debian side recently: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872779

rhertzog commented 7 years ago

The fedora patch was not working well in Debian and I worked with Thomas Hellstrom to get a fixed patch. It's going to be part of open-vm-tools 10.2 according to him. HTH.

ravindravmw commented 7 years ago

@rhertzog thanks for the updated patch. I will sync-up with Thomas on this.

kdar commented 6 years ago

I'm having this issue using Arch linux running gnome 3.26.2 on wayland.

DISTRIB_ID=Arch
DISTRIB_RELEASE=rolling
DISTRIB_DESCRIPTION="Arch Linux"
NAME="Antergos Linux"
VERSION="16.5-ISO-Rolling"
VERSION_ID="16.5"
Linux dev2 4.13.12-1-ARCH #1 SMP PREEMPT Wed Nov 8 11:54:06 CET 2017 x86_64 GNU/Linux
root        402  0.1  0.0 207120 10504 ?        Ssl  14:08   0:00 /usr/bin/vmtoolsd
kdar    1588  0.2  0.1 253860 27228 tty2     S+   14:09   0:00 /usr/bin/vmtoolsd -n vmusr

If I run gnome on X11, auto resize works fine. In wayland, I have to set the resolution manually and it does not auto resize.

ceesco53 commented 6 years ago

@ravindravmw Did the patch linked by @rhertzog get synched up into 10.2?

I'm still having full screen resolution problems with Arch Linux even after patching with links provided by @oliverkurth over in issue #226

oliverkurth commented 6 years ago

@ceesco53 the patch added the resolutionKMS plugin, which is part of 10.2.0 now.

If you still have issues with screen resolution, check if the resolutionKMS plugin is loaded. Look for messages in /var/log/vmware-vmsvc.log, or attach that file here.

ceesco53 commented 6 years ago

@oliverkurth there is one error in my /tmp/vmtoold.log :

[Feb 02 15:54:53.232] [ info] [vmtoolsd] Plugin 'libresolutionKMS.so' didn't provide deployment data, unloading.

There are no messages in /var/log/vmware-vmsvc.log

[UPDATE] [SOLVED] I ran sudo pacman -Syu xf86-video-vmware and libresolutionKMS loads now. Fullscreen and autofit work perfectly. I didn't think this was a dependency for wayland - guess I was wrong.

$ loginctl show-session c2 -p Type Type=wayland

oliverkurth commented 6 years ago

Okay great, thank you! Maybe you can file a bug against the open-vm-tools package in Arch Linux to add that depenency.

vith commented 6 years ago

I went ahead and opened a bug about the missing xf86-video-vmware dependency in Arch Linux here: https://bugs.archlinux.org/task/57473