You are not logged in.

#1 2017-06-05 19:35:24

kata198
Member
Registered: 2017-06-05
Posts: 5

Issue running under virtualbox after upgrade

Hey yall.

So long-time arch users here ( back when "arch" was because we used march=i686 instead of that slow i386 smile ) but having an issue I can't resolve (but have kinda worked around).


So, after update from linux < 4.10 on an archlinux install running under virtualbox on a Microsoft Surface I get black screen trying to start gnome-session via startx.

Everything worked fine and peachy before.

Windowmaker works, which suggests to me it could be the #d that's failing..

So after a little digging, I find that we hax libGL and libEGL via: /etc/ld.so.conf.d/00vboxvideo.conf which puts /var/lib/VBoxGuestAdditions/lib ahead in the dynamic resolution path.

This directory contains:


[tim@slimsilver ~]$ ls -l /var/lib/VBoxGuestAdditions/lib
total 0
lrwxrwxrwx 1 root root 45 Jun  5 14:19 libEGL.so.1 -> /opt/VBoxGuestAdditions-5.1.22/lib/VBoxEGL.so
lrwxrwxrwx 1 root root 45 Jun  5 14:19 libGL.so.1 -> /opt/VBoxGuestAdditions-5.1.22/lib/VBoxOGL.so

Ah ha!

So I created a /usr/bin/startx2 which contains:


#!/bin/bash
 
sudo /bin/true;
if [[ -e '/etc/ld.so.conf.d/00vboxvideo.conf' ]];
then
    printf "\n\n-- Found /etc/ld.so.conf.d/00vboxvideo.conf - Removing....\n"
    # Prompt for password here
    sudo -p 'Enter your password for sudo (to root): ' /bin/true
    if [[ $? -ne 0 ]];
    then
        printf "\n\nERR: Cannot login as root... Aborting.\n\n" >&2
        exit 1;
    fi
    sudo rm -f /etc/ld.so.conf.d/00vboxvideo.conf;
    sudo ldconfig
fi

exec startx
exit $?

Basically -- it undoes that hack if present.

So after that, X starts, 3d still works, but the resolution is pretty fubar... it doesn't scale AT ALL.   So if I change resolutions, I get THE SAME resolution as native windows, except a smaller area with black bars around it. So, for example, 800x600 will give me an 800x600 region in the center with black bars all around.

So... it's very annoying and hard to use with this resolution issue, and often requires restarting x when the resolution gets into a bad state.

I have guest additions installed, stock kernel, stock everything.

Has anyone else experienced a similar issue? Any insight?

Offline

#2 2017-06-05 19:38:45

kata198
Member
Registered: 2017-06-05
Posts: 5

Re: Issue running under virtualbox after upgrade

Sorry, correction:

It does not quite match the windows resolution either... I just mean by that it doesn't scale or fullscreen or anything.

Even at both windows at 1920x1440 and X at the same, I get two black bars on either side. Nothing renders over there.


Again, this all worked before upgrade.

Offline

Board footer

Powered by FluxBB