New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VirtualBox 5.X with "Auto-resize Guest Display" moves the window to first monitor #1015
Comments
Related? #769 |
Is this important? If this issue does not occur with this setting, then I highly suspect that something is wrong in VirtualBox. I cannot try myself since I'm allergic to downloading random programs from the internet and running them (and Fedora doesn't seem to have a VirtualBox package). Does the floating status of virtualbox have any influence? (E.g. "issue does not occur when VirtualBox is made floating) Could you add the following to the end of your config and provide the output (and explain it a bit, if you can; like which line corresponds to which thing that you did): client.connect_signal("property::geometry", function(c)
local g = c.geometry
print(os.date(), c.name, "x=" .. g.x, "y=" .. g.y, "width=" .. g.width, "height=" .. g.height)
end) I'm asking for this last thing since I suspect that VirtualBox is first moved to the other monitor (=> a line would be printed by the above) and then VirtualBox moves itself somehow around (=> a line is printed) and then Awesome's normal layout code kicks in and moves the window back into a "proper position" (=> a line is printed). |
It seems to also occur when I use "View" -> "Virtual Screen 1" -> "1024x768". Which seems to be the way to manually select the guest resolution.
The free version is packaged in ubuntu AFAIK. (I'm using the oracle version if it matters..)
If I make it floating it does not jump to another screen. =) There seems to be two ways to resize the guest. Either with the "auto-resize" or manually setting different resolutions. When the window is floating it stays on the same screen. But:
I added it and I'm getting a bunch of errors as red notifications:
I also don't know where the output of the print function would end up. Could you tell me? |
I seem to have found a "works for me" fix. With "auto-resize" enabled, if I have it floating and then maximize it (Ctrl+Alt+Space, Alt+M), it actually does what I want. Thanks! I'm still happy to give you more logs if you want. |
Whoops, sorry. It should be
Assuming you have
The line with the value "2" in the fourth column is where awesome's stderr goes to. The last column hopefully has a file name. (Other values mean more complicated things) Where this goes to depends on how you start awesome. For example, with gdm the output should end up in I have a debian machine. I will try to reproduce this there, but it might take a while until I have the time to do that. Edit by Elv13: |
How to reproduce:
Result:
btw, I'm running awesome in a gnome session and I'm using systemd. Therefore I found the output in I also had to add the client client.connect_signal("property::geometry", function(c)
local g = c.geometry(c)
print(os.date(), c.name, "x=" .. g.x, "y=" .. g.y, "width=" .. g.width, "height=" .. g.height)
end) |
Same issue here. I am using Archlinux with awesome 3.5.9 and Virtualbox 5.1.4. I am in pure awesome, no gnome or other desktop environment running. Monitor control via xrandr.
|
@psychon I add your debug code into my rc.lua, but I am not sure where to read the printed information. Please let me know if you need me to generate some logs, and where I can retrieve the logs (generated by the print function in lua). |
VirtualBox (5.0.24-dfsg-2, the version from debian testing) just managed to basically freeze my WM issue by getting into a fight. Its main window (not the one for a particular machine) started jumping around by single pixels (or was it its border width changing?). This busy loop meant that other commands weren't interpreted and I SIGKILL'd awesome. Edit: Oh and my /tmp is full due to awesome's stderr being filled with things like this:
Edit: Ok, I tried looking into the VBox source code a bit, but after the following I can conclude that they don't know what they are doing:
|
@psychon If you can't reproduce on master, can we close this? |
I have had similar problems. Using:
Launching VirtualBox with Windows XP client on external monitor: Launching from the laptop monitor, same sequence, but ends up in continuously swapping between laptop and external monitor. This can be stopped with "Meta-O" (change to other monitor). In both cases I can get the VirtualBox on to the external monitor by having it on an empty laptop screen, pressing Meta-O, and then immediately press Meta-O again (sometimes requires a couple of tries), then I get VirtualBox to stay on the external monitor in the right size. But if I start another application up that requires VB to resize, it starts jumping forth and back until caught by Meta-O. I have no idea what is causing it Awesome or VirtualBox, but they obviously do not like each other very much right now... |
I started trying out I3 after using awesome 3.4 for many years. So far I'm very happy with how it handles multiple monitors. |
FYI, I think this issue is related or even the same as this ticket over at VirtualBox: https://www.virtualbox.org/ticket/15863 |
Inspired by the virtualbox ticket I did an xtrace of virtualbox. I attached the log file. What I did:
|
This issues has apparently been fixed upstream |
Output of
awesome --version
:$ awesome --version
awesome v3.5.9 (Mighty Ravendark)
• Build: Mar 20 2016 11:06:36 for x86_64 by gcc version 5.3.1 (buildd@lgw01-10)
• Compiled against Lua 5.1.5 (running with Lua 5.1)
• D-Bus support: ✔
How to reproduce the issue:
Actual result:
When the window decides to resize the guest it jumps to the first monitor instead of staying on the current monitor.
Expected result:
It should stay on the same monitor like it did with awesome 3.4.
More info
Running Ubuntu 16.04 on a thinkpad t440s with a GeForce GT 730M. Also using nouveau.
The text was updated successfully, but these errors were encountered: