LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-01-2021, 02:53 PM   #1
ardya
Member
 
Registered: Mar 2006
Distribution: Slackware since 1997
Posts: 89

Rep: Reputation: 18
Wayland on VBox guest running -current


According to https://www.virtualbox.org/ticket/13471 Wayland is supposed to work with VMSVGA in VBox. I'm using VBox 6.1.22 on the host. Guest is slackware-current with 6.1.22 guest extensions running kernel 5.10.33.

Is there special configuration required on the guest to run GUI in Wayland? When I choose any Wayland option in chooser, the UI never loads.
 
Old 05-01-2021, 03:15 PM   #2
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,525

Rep: Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355
Quote:
Originally Posted by ardya View Post
According to https://www.virtualbox.org/ticket/13471 Wayland is supposed to work with VMSVGA in VBox. I'm using VBox 6.1.22 on the host. Guest is slackware-current with 6.1.22 guest extensions running kernel 5.10.33.

Is there special configuration required on the guest to run GUI in Wayland? When I choose any Wayland option in chooser, the UI never loads.
I guess that you should have the guest tools properly installed.

The Wayland desktops needs a functional DRM on the Linux console and MESA.

Last edited by LuckyCyborg; 05-01-2021 at 03:17 PM.
 
Old 05-01-2021, 03:29 PM   #3
ardya
Member
 
Registered: Mar 2006
Distribution: Slackware since 1997
Posts: 89

Original Poster
Rep: Reputation: 18
Since nothing in the installer logs indicates the guest tools are not properly installed, can you provide more detail on how you guess they might not be?
The guest has a complete Slackware current install, no missing pkgs, last updated today.
Code:
lsmod|egrep 'vb|video'
vboxsf                 90112  1
vboxvideo              45056  0
ttm                   110592  2 vmwgfx,vboxvideo
drm_kms_helper        266240  2 vmwgfx,vboxvideo
drm                   610304  7 vmwgfx,drm_kms_helper,vboxvideo,ttm
vboxguest             385024  2 vboxsf
video                  49152  0
 
Old 05-01-2021, 03:43 PM   #4
MDKDIO
Member
 
Registered: Mar 2004
Location: Sweden
Distribution: Slackware 15
Posts: 521

Rep: Reputation: 187Reputation: 187
Quote:
Originally Posted by ardya View Post
..... Guest is slackware-current with 6.1.22 guest extensions running
By "extensions", do you mean the extpack or the guestadditions?

The VBoxGuestAdditions_6.1.22.iso is needed according to the online manual found here
https://www.virtualbox.org/manual/Us...resizing-linux
 
Old 05-01-2021, 03:45 PM   #5
ardya
Member
 
Registered: Mar 2006
Distribution: Slackware since 1997
Posts: 89

Original Poster
Rep: Reputation: 18
After trying some things, it seems to work. I had to create a new user to test with, it seems there's something in my normal users init or settings thats stopping or hanging the wayland/plasma initialization.
 
Old 05-01-2021, 03:47 PM   #6
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,525

Rep: Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355
Quote:
Originally Posted by ardya View Post
Since nothing in the installer logs indicates the guest tools are not properly installed, can you provide more detail on how you guess they might not be?
The guest has a complete Slackware current install, no missing pkgs, last updated today.
Code:
lsmod|egrep 'vb|video'
vboxsf                 90112  1
vboxvideo              45056  0
ttm                   110592  2 vmwgfx,vboxvideo
drm_kms_helper        266240  2 vmwgfx,vboxvideo
drm                   610304  7 vmwgfx,drm_kms_helper,vboxvideo,ttm
vboxguest             385024  2 vboxsf
video                  49152  0
Look, I am not a specialist on virtual machines, but from what I know regarding the bare metal, you need the KMS active on the Linux console, for Wayland to work. Aka modesettings, DRM and so on.

On the bare metal, this means using the proper and accelerated driver of radeon, amdgpu, i915, nouveau, etc.
 
Old 05-02-2021, 12:50 AM   #7
notzed
Member
 
Registered: Dec 2020
Location: South Australia
Distribution: slackware64-current
Posts: 95

Rep: Reputation: Disabled
Quote:
Originally Posted by LuckyCyborg View Post
Look, I am not a specialist on virtual machines, but from what I know regarding the bare metal, you need the KMS active on the Linux console, for Wayland to work. Aka modesettings, DRM and so on.

On the bare metal, this means using the proper and accelerated driver of radeon, amdgpu, i915, nouveau, etc.
modesetting and drm don't require acceleration, it just requires a supported card. Amongst the current hardware the supported cards also include the virtual cards provided by vm managers and a bunch of obsolete hardware. Some provide acceleration, some don't. There's also a bunch of modern SOC hardware which often don't have gpl drivers for their acceleration blocks.

In qemu you can configure an ancient cirrus logic vga card and wayland will even start with that. It's too slow to use but it does work albeit with some reduced fx.
 
Old 05-02-2021, 01:37 AM   #8
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,024

Rep: Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213
Quote:
Originally Posted by notzed View Post
modesetting and drm don't require acceleration, it just requires a supported card. Amongst the current hardware the supported cards also include the virtual cards provided by vm managers and a bunch of obsolete hardware. Some provide acceleration, some don't. There's also a bunch of modern SOC hardware which often don't have gpl drivers for their acceleration blocks.

In qemu you can configure an ancient cirrus logic vga card and wayland will even start with that. It's too slow to use but it does work albeit with some reduced fx.
Well, in theory you are right, speaking of Wayland in general. Sure, the Weston can do that, the Wayland/Gnome3 can do that.

BUT, we, on Slackware we have today a single implementation of Wayland: Wayland/Plasma5 and it still needs functional DRI drivers even today.

But, looks like they will fix this on the near future:

https://bugs.kde.org/show_bug.cgi?id=436053
https://invent.kde.org/plasma/kwin/c...05a99656938ce9

Let's remember that on Wayland there is not such thing like a generic Wayland server - they are custom tailored by the Wayland desktop environments.

Last edited by ZhaoLin1457; 05-02-2021 at 01:53 AM.
 
Old 05-02-2021, 07:57 PM   #9
notzed
Member
 
Registered: Dec 2020
Location: South Australia
Distribution: slackware64-current
Posts: 95

Rep: Reputation: Disabled
I'm confused here. I can use any of the plasma session options from the login screen via the dumb bochs vga framebuffer device in qemu, using slackware64-current.

How is that not working on slackware?
 
Old 05-03-2021, 03:16 AM   #10
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,525

Rep: Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355Reputation: 3355
Quote:
Originally Posted by notzed View Post
I'm confused here. I can use any of the plasma session options from the login screen via the dumb bochs vga framebuffer device in qemu, using slackware64-current.

How is that not working on slackware?
Well, looks like your "dumb bochs vga framebuffer" has a DRI device and KMS support, via "bochs-drm" module.

Out of curiosity, you can try to boot your device with "nomodeset" parameter on the kernel parameters, and see if Wayland/Plasma5 still works.

Probably not - as @ZhaoLin1457 is right, they still have to release a KWin(_wayland) version capable to run directly on framebuffer with no DRI support, as you seen in that bug report and the associated patch.

Last edited by LuckyCyborg; 05-03-2021 at 05:38 AM.
 
Old 05-08-2021, 04:47 PM   #11
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,011

Rep: Reputation: Disabled
Quote:
Originally Posted by ardya View Post
According to https://www.virtualbox.org/ticket/13471 Wayland is supposed to work with VMSVGA in VBox. I'm using VBox 6.1.22 on the host. Guest is slackware-current with 6.1.22 guest extensions running kernel 5.10.33.

Is there special configuration required on the guest to run GUI in Wayland? When I choose any Wayland option in chooser, the UI never loads.
No,
No special configuration required. Wayland and Full Wayland works with VMSVGA enabled virtualbox Slackware-current client (VB 6.1.20/kernel 5.12.x - any kernel supporting VMSVGA will do).
Full Wayland is slow, Wayland works but some glitches need to be fixed (e.g. mouse pointer does not work in kate).

by the way the output of your command
Quote:
lsmod|egrep 'vb|video'
is weird.
It should not show anything except video modules. In your case it shows
Quote:
lsmod|egrep 'vb|video'
vboxsf 90112 1
vboxvideo 45056 0
ttm 110592 2 vmwgfx,vboxvideo
drm_kms_helper 266240 2 vmwgfx,vboxvideo
drm 610304 7 vmwgfx,drm_kms_helper,vboxvideo,ttm
vboxguest 385024 2 vboxsf
video 49152 0
no way that this is
Quote:
lsmod|egrep 'vb|video'
command... unless vboxsf is video module

proper output:
Quote:
lsmod|egrep 'vb|video'
vboxvideo 36864 0
drm_ttm_helper 12288 1 vboxvideo
drm_kms_helper 188416 2 vmwgfx,vboxvideo
ttm 57344 3 vmwgfx,vboxvideo,drm_ttm_helper
drm 368640 13 vmwgfx,drm_kms_helper,vboxvideo,drm_ttm_helper,ttm
vboxguest 266240 5

Last edited by Aeterna; 05-08-2021 at 06:42 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware as Vbox guest - can't Install guest additions Captain Brillo Slackware 3 12-05-2018 09:41 PM
[SOLVED] Problem after upgrade VBox 4.3 to Vbox 5.0 satimis Linux - Virtualization and Cloud 8 02-18-2016 11:57 AM
[SOLVED] slackware 64 current guest in vbox resolution and mouse messed up glorsplitz Slackware 1 02-09-2016 08:47 AM
[SOLVED] vbox 4.0.2 - guest sabayon5.4 on win7 - mnt local gentoo from vbox sabayon? shinystuffrox Linux - Virtualization and Cloud 1 03-04-2011 01:10 AM
Upgrading VBox 2.0.2 on Fedora 9 to VBox 2.0.6 fcquayso Linux - Newbie 2 12-10-2008 04:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration