Virtual machine screen goes black and cannot be used after lock

Discussions about using Linux guests in VirtualBox.
Post Reply
harald123
Posts: 64
Joined: 30. Oct 2020, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Linux Mint 19 Tara

Virtual machine screen goes black and cannot be used after lock

Post by harald123 »

When, I lock the virtual machine. Ctrl+Alt+L, Linux Mint 19, the screen gets black and cannot log back in. Only powering the machine off and restarting brings it back. This is happening consistently.
I tried with this keyboard combination , but it did not work: ctrl-alt-F1 , user, Enter, password, Enter, sudo service mdm restart , Enter, ctrl-d, alt-left .

Ram for graphic card 114 MB, assigned 2 processors to the virtual machine, 3d acceleration is turned off, output of command from similar topic:

Code: Select all

find /lib/modules/`uname -r` -type f -name "*.ko" | grep vbox
/lib/modules/4.15.0-20-generic/misc/vboxsf.ko
/lib/modules/4.15.0-20-generic/misc/vboxvideo.ko
/lib/modules/4.15.0-20-generic/misc/vboxguest.ko


Log and graphic settings attached.


screen_black.PNG
screen_black.PNG (17.74 KiB) Viewed 6271 times
Attachments
graphic settings.png
graphic settings.png (25.45 KiB) Viewed 6271 times
Mint-2022-07-23-20-31-19.zip
(31.12 KiB) Downloaded 5 times
zenity_bro
Posts: 3
Joined: 6. Jul 2022, 07:30

Re: Virtual machine screen goes black and cannot be used after lock

Post by zenity_bro »

Also facing the same issue. This happens to other guest OS on latest version of Virtual Box as of now. Installed the Guest Additions and the problem still presists
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Virtual machine screen goes black and cannot be used after lock

Post by mpack »

Harald, you are still on 6.1.18. You really ought to be using the current version (6.1.36) if you want to discuss current problems.
Leetmeymayk
Posts: 6
Joined: 10. Aug 2022, 18:10

Re: Virtual machine screen goes black and cannot be used after lock

Post by Leetmeymayk »

Not really a solution, but the way I see it VM can be basically considered an application so outside option to explicitly lock VM (usually just having a password) it seem reasonable in most cases to disable screensaver, automatic screen locking and suspend or hibernation on inactivity. That is one way to avoid the problem without solving it.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Virtual machine screen goes black and cannot be used after lock

Post by scottgus1 »

Leetmeymayk wrote:disable screensaver, automatic screen locking and suspend or hibernation on inactivity
Yes, if this is done in the VM. The VM's OS should be configured with no power control, stay on the entire time. Let the host control power.
harald123
Posts: 64
Joined: 30. Oct 2020, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Linux Mint 19 Tara

Re: Virtual machine screen goes black and cannot be used after lock

Post by harald123 »

it happens again with version 7.0.4r154605 , disabled power control of display in guest vm and will monitor how it behaves.
black.png
black.png (12.23 KiB) Viewed 4972 times
harald123
Posts: 64
Joined: 30. Oct 2020, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Linux Mint 19 Tara

Re: Virtual machine screen goes black and cannot be used after lock

Post by harald123 »

unfortunately it still happens after disabling power control of display in guest vm

is there anything else that might be useful to change ?
creatldd1
Posts: 2
Joined: 18. Mar 2023, 13:45

Re: Virtual machine screen goes black and cannot be used after lock

Post by creatldd1 »

Experienced the same problem with Debian 11 / Gnome Edition
I switched to Cinnamon and the problem is gone.
Could it be related to the version of wayland used... ?
Post Reply