Bug 254464

Summary: x11/lxde-meta, emulators/virtualbox-ose-additions: black screen at startup, if the guest was in full-screen mode during shutdown
Product: Ports & Packages Reporter: Emrion <kmachine>
Component: Individual Port(s)Assignee: Graham Perrin <grahamperrin>
Status: Closed Unable to Reproduce    
Severity: Affects Some People CC: cyclaero, grahamperrin
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Xorg log for VBoxVGA as graphic adapter none

Description Emrion 2021-03-21 14:58:10 UTC
Created attachment 223477 [details]
Xorg log for VBoxVGA as graphic adapter

Hi,

I have a virtualbox VM with FreeBSD 12.2-RELEASE-p4 as guest on a Windows machine (VirtualBox  6.1.18 r142142). After updating to virtualbox-ose-additions-6.1.18 (latest repo, all packages are up to date), I got a blank screen instead of Lxde. I normally use the VBoxVGA as graphic adapter but tried VMSVGA as well (with the proper driver installed): same result.

See the provided log.

Reference: https://forums.freebsd.org/threads/update-to-virtualbox-ose-additions-6-1-18-killed-xorg.79451
Comment 1 cyclaero 2021-03-23 17:36:36 UTC
Initially, I experienced the same problem. and I took also part on said Forums thread (user obsigna).

After some trials & errors, I got it to work. I vaguely remembered that some weeks ago I read somewhere, that it is important to orderly finish the desktop session before deleting the old and installing the new virtualbox-ose-additions. I cannot find this anymore, but I am sure that I did not dream reading it. Anyway this worked out. I started with an almost identical snapshot, which had still the old additions installed. In order to be really on the narrow road of said hint, I did the following:

1. deactivate the vbox entries in /etc/rc.conf
2. restart into the GNOME desktop
3. delete the old additions
4. restart into the GNOME desktop again
5. install the new addions and activate the vbox entries in /etc/rc.conf
6. restart into the GNOME desktop again, now with new additions

Now everything is working fine. Most probably, step 4 was not necessary. But so what, its done and everything is working now.
Comment 2 Emrion 2021-03-24 20:28:29 UTC
This trick doesn't work for me.

Looking at /var/log/messages, I found: "console-kit-daemon[729]: WARNING: Error waiting for native console 9 activation: Inappropriate ioctl for device"

If it can help...
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2021-04-21 16:41:24 UTC
From <https://forums.freebsd.org/threads/79451/#post-507672>: 

>> … killed Xorg​
> 
> The problem is not so broad.
> 
> Please:
> 
> * what do LXDE and Plasma have in common?
> 
> …

The KDE Quick start at <https://community.kde.org/FreeBSD/Setup#Quick_start> is updated with reference to this bug.
Comment 4 Emrion 2021-06-12 14:16:02 UTC
I just found that the problem is related to full screen mode. If I exit from full screen and reboot, LXDE works.

Then, I can reenter in full screen mode without problems. I can even reboot, it still works (although the resolution is 1920x1020 instead of 1920x1080). But, if I power off the VM and start it, I get again a black screen.
Comment 5 Graham Perrin freebsd_committer freebsd_triage 2021-06-12 15:38:18 UTC
(In reply to Emrion from comment #4)

> … black screen …

Today's <https://forums.freebsd.org/threads/80860/> is: 

> Spun off from posts by other users under 
> <https://forums.FreeBSD.org/threads/79825/post-512542> 
> (after the original issue was solved).

Emrion, please join me in the new topic. Thanks.
Comment 6 Graham Perrin freebsd_committer freebsd_triage 2022-10-14 06:27:10 UTC
Still not reproducible on amd64, 

(In reply to Emrion from comment #4)

<https://forums.freebsd.org/posts/516964> (2021-06-12 16:53): 

> Not reproducible here in that way. I used the menu of LXDE to perform the 
> shutdown whilst the guest was in full screen mode, started the guest, used 
> SDDM to begin the LXDE session then took the screenshot below.
> 
> Emrion please: how, exactly, did you power off the guest in your case?
> 
> Do you use SDDM?
Comment 7 Emrion 2022-10-14 17:10:57 UTC
(In reply to Graham Perrin from comment #6)
I use slim but IIRC, even without slim I get this black screen.
Frankly, I tested a bunch of things without any result.
I don't think this problem is biting many people.
So, let it be.
Comment 8 Graham Perrin freebsd_committer freebsd_triage 2022-10-14 17:52:34 UTC
(In reply to Emrion from comment #7)

Thank you. 

A difficulty is, not having the issue reproducible – to tell whether it's caused by: 

a) a port (or ports); 

b) local configuration; 

c) some combination of (a) + (b). 

If you'd like to continue on the freebsd-virtualization list (I'm a subscriber), we might reach a conclusion, then, if necessary, reopen this report. 

<https://lists.freebsd.org/subscription/freebsd-virtualization>