Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(solved) X.org: Failed to load module "vmware".
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ultimeight
n00b
n00b


Joined: 09 Apr 2023
Posts: 49

PostPosted: Sun Apr 09, 2023 4:16 pm    Post subject: (solved) X.org: Failed to load module "vmware". Reply with quote

Hi fellow Gentoo users, new Gentoo user here. So couple days ago, I installed it on a VM (VirtualBox). Today I installed Xorg and some Suckless utilities like dwm, st and slstatus. Everything was working as expected and smoothly, until I did a system update (emaint sync -A then emerge -avuD @world followed by a depclean) a few hours ago.

Xorg is not able to launch GUI using the startx command, here's the log file and output of emerge --info

make.conf
Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j4"
USE="pulseaudio -alsa -systemd -bluetooth -dvdr -cdr -dvd -ios -ipod -gnome -kde -plasma X elogind virtualbox"
# NOTE: This stage was built with the bindist Use flag enabled
INPUT_DEVICES="libinput synaptics"
VIDEO_CARDS="virtio"
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C
ACCEPT_LICENSE="*"
GENTOO_MIRRORS="https://download.nus.edu.sg/mirror/gentoo/ http://download.nus.edu.sg/mirror/gentoo/ rsync://download.nus.edu.sg/gentoo/"
GRUB_PLATFORMS="efi-64"


Please let me know if you need any other info and thank you for reading my post.


Last edited by ultimeight on Tue Apr 11, 2023 11:22 am; edited 3 times in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54320
Location: 56N 3W

PostPosted: Sun Apr 09, 2023 4:34 pm    Post subject: Reply with quote

ultimeight,

Welcome to Gentoo.

Code:
[    32.829] (II) Server terminated successfully (0). Closing log file.

That says that Xorg started, it was using the modeset driver, found nothing to do, so it quit.

That's fine.

The startx command requires that you write a ~/.xinitrc file or you
Code:
emerge twm xclocx xterm
so that the defaults work.

In your Gentoo guest, what does
Code:
lspci -nnk
say about your video card?
You can probably do better than the modeset driver but the modeset driver will show you a GUI.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ultimeight
n00b
n00b


Joined: 09 Apr 2023
Posts: 49

PostPosted: Sun Apr 09, 2023 4:49 pm    Post subject: Reply with quote

Hi NeddySeagoon, appreciate the quick response.

I have a ~/.xinitrc file which contains only a single line:
Code:
exec dwm


Here's the output of lspci -nnk:

Code:
00:00.0 Host bridge [0600]: Intel Corporation 440FX - 82441FX PMC [Natoma] [8086:1237] (rev 02)
00:01.0 ISA bridge [0601]: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] [8086:7000]
00:01.1 IDE interface [0101]: Intel Corporation 82371AB/EB/MB PIIX4 IDE [8086:7111] (rev 01)
   Kernel driver in use: ata_piix
   Kernel modules: ata_piix, pata_acpi, ata_generic
00:02.0 VGA compatible controller [0300]: VMware SVGA II Adapter [15ad:0405]
   Subsystem: VMware SVGA II Adapter [15ad:0405]
   Kernel driver in use: vmwgfx
   Kernel modules: vmwgfx
00:03.0 Ethernet controller [0200]: Intel Corporation 82540EM Gigabit Ethernet Controller [8086:100e] (rev 02)
   Subsystem: Intel Corporation PRO/1000 MT Desktop Adapter [8086:001e]
   Kernel driver in use: e1000
   Kernel modules: e1000
00:04.0 System peripheral [0880]: InnoTek Systemberatung GmbH VirtualBox Guest Service [80ee:cafe]
   Kernel driver in use: vboxguest
   Kernel modules: vboxguest
00:05.0 Multimedia audio controller [0401]: Intel Corporation 82801AA AC'97 Audio Controller [8086:2415] (rev 01)
   Subsystem: Dell 82801AA AC'97 Audio Controller [1028:0177]
   Kernel driver in use: snd_intel8x0
   Kernel modules: snd_intel8x0
00:06.0 USB controller [0c03]: Apple Inc. KeyLargo/Intrepid USB [106b:003f]
   Kernel driver in use: ohci-pci
   Kernel modules: ohci_pci
00:07.0 Bridge [0680]: Intel Corporation 82371AB/EB/MB PIIX4 ACPI [8086:7113] (rev 08)
   Kernel driver in use: piix4_smbus
   Kernel modules: i2c_piix4
00:0d.0 SATA controller [0106]: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] [8086:2829] (rev 02)
   Kernel driver in use: ahci
   Kernel modules: ahci


And I have xterm installed, the default setup runs fine, i.e. three xterm windows would pop up on the screen. Let me know if you need anything else.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54320
Location: 56N 3W

PostPosted: Sun Apr 09, 2023 5:14 pm    Post subject: Reply with quote

ultimeight,

Your Xorg works. Knowing
Code:
00:02.0 VGA compatible controller [0300]: VMware SVGA II Adapter [15ad:0405]
   Subsystem: VMware SVGA II Adapter [15ad:0405]
   Kernel driver in use: vmwgfx
   Kernel modules: vmwgfx


We can make it faster. You need the vmware VIDEO_CARD and the matching kernel support.
There is no VIDEO_CARDS="virtio".

mesa and xorg-drivers drivers will need to be rebuilt to pick up the new VIDEO_CARD option.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ultimeight
n00b
n00b


Joined: 09 Apr 2023
Posts: 49

PostPosted: Sun Apr 09, 2023 5:46 pm    Post subject: Reply with quote

I changed the "virtio" to "vmwgfx" in my make.conf, then I ran emerge -avN x11-base/xorg-drivers However, portage shows me 0 packages,

Code:

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 3.17 s.


Total: 0 packages, Size of downloads: 0 KiB


Nothing re-installs/compiles, did a reboot after running these commands, but the issue persists, what am I doing wrong here?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54320
Location: 56N 3W

PostPosted: Sun Apr 09, 2023 6:01 pm    Post subject: Reply with quote

ultimeight,

Code:
Kernel modules: vmwgfx
If you don't have that its a kernel rebuild.

There are two parts to the driver. vmwgfx in the kernel and the VIDEO_CARDS="vmware" part for userspace.
You need both pieces.

Set VIDEO_CARDS="vmware"
Then run
Code:
emerge -1av  xorg-drivers mesa
Both should show VIDEO_CARDS=" ...vmware* ... *
If so, let it run.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ultimeight
n00b
n00b


Joined: 09 Apr 2023
Posts: 49

PostPosted: Mon Apr 10, 2023 1:52 pm    Post subject: Reply with quote

Hi,

I did the following changes,

In my make.conf I changed the VIDEO_CARDS variable to "vmware".
Then I ran doas emerge -1av xorg-drivers mesa
Then I did a reboot but I did not enter into GUI, here's the log file. The last line of output that I get when I run the startx command is as follows:
Code:
waiting for X server to shut down (II) Server terminated successfully (0). Closing log file..1: cannot open shared object file: No such file or directoryxinit: connection to X server lost

xauth: (argv):1:    bad display name "throne:0" in "remove" command

Also, I would really appreciate if you could suggest me a resource to learn about this, like a specific wiki page or something.
Thanks.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54320
Location: 56N 3W

PostPosted: Mon Apr 10, 2023 2:28 pm    Post subject: Reply with quote

ultimeight,

That's better.

Code:
[   181.009] (II) vmware(0): Initialized VMWARE_CTRL extension version 0.2
[   181.010] (WW) vmware(0): Failed to initialize Gallium3D Xa. No render acceleration available.
[   181.010] (WW) vmware(0): Skipped initialization of direct rendering due to lack of render acceleration.
[   181.010] (--) vmware(0): Render acceleration is disabled.
[   181.010] (==) vmware(0): Rendercheck mode is disabled.
[   181.010] (--) vmware(0): Direct rendering (DRI2 3D) is disabled.
[   181.010] (--) vmware(0): Direct rendering (DRI3 3D) is disabled.


Render acceleration, or not, is an option in the Virtualbox settings for the virtual video card.

From the the
Code:
[   181.483] (II) Server terminated successfully (0). Closing log file.
it looks like Xorg started, found nothing to do and exited.

I don't know what
Code:
xauth: (argv):1:    bad display name "throne:0" in "remove" command
means. It looks bad though.

It looks like Xorg quit after finding nothing to do.

I'm not aware of anywhere all the useful information is collected together in one place. If it were, I suspect than it would not be useful.
There are man pages, like
Code:
man xorg
but man pages tell you what a command can do, not how to get it to do what you want it to do. Worse, when you start out you often don't know how to ask the question.
This leads to questions like, How do I use foo to do bar?
Often, the answer is you don't. Use baz instead. ... Hence I always ask for a statement of the problem to be solved, then I can maybe suggest a way to solve the problem.

Xorg is huge, its been growing like a weed for about 50 years. I first met it in the mid 80's. It predates Linux. You need to narrow down your focus area before its possible to recommend a resource.
Try
Code:
man xorg
and
Code:
man xorg.conf
to get an idea of the scale of the problem. I'm not expecting them to be useful to you.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ultimeight
n00b
n00b


Joined: 09 Apr 2023
Posts: 49

PostPosted: Tue Apr 11, 2023 6:52 am    Post subject: Reply with quote

I have installed the necessary drivers, namely, x11-drivers/xf86-video-vmware, x11-drivers/xf86-video-fbdev and x11-drivers/xf86-video-vesa. And enabled 3D acceleration in the Virtual Box's VM settings. I am still unable to resolve the issue completely. Here's what the log file says now.
I googled for this particular line:
Code:
[    32.840] xf86EnableIO: failed to enable I/O ports 0000-03ff (Operation not permitted)

And apparently, this may be due to outdated drivers, or improper drivers. So I synced my repo and did a system update followed by a reboot, However, still no luck. One thing that I know for sure now is that, this is a driver related issue, X.org is working just fine.
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1549
Location: South America

PostPosted: Tue Apr 11, 2023 10:56 am    Post subject: Reply with quote

ultimeight wrote:
I googled for this particular line:
Code:
[    32.840] xf86EnableIO: failed to enable I/O ports 0000-03ff (Operation not permitted)

And apparently, this may be due to outdated drivers, or improper drivers.

This error is harmless, and will probably go away if you uninstall x11-drivers/xf86-video-fbdev and x11-drivers/xf86-video-vesa. You don't need those, it is clear from your log that xf86-video-vmware is taking control:

Code:
[    32.842] (II) UnloadModule: "modesetting"
[    32.842] (II) Unloading modesetting
[    32.842] (II) UnloadModule: "fbdev"
[    32.842] (II) Unloading fbdev
[    32.842] (II) UnloadSubModule: "fbdevhw"
[    32.842] (II) Unloading fbdevhw
[    32.842] (II) UnloadModule: "vesa"
[    32.842] (II) Unloading vesa

And Xorg is still exiting successfully:

Code:
[    36.772] (II) Server terminated successfully (0). Closing log file.

I have a different hypothesis: dwm is exiting or failing to start.

ultimeight wrote:
I have a ~/.xinitrc file which contains only a single line:
Code:
exec dwm


I don't use dwm, though, so I don't have suggestions for troubleshooting that.
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
ultimeight
n00b
n00b


Joined: 09 Apr 2023
Posts: 49

PostPosted: Tue Apr 11, 2023 11:20 am    Post subject: Reply with quote

It turns out the it was a dwm issue, and not xorg or drivers. I recompiled dwm and now it is working properly, had to install libXinerama, but I wonder how it stopped working abruptly after doing a system update. Anyways I really appreciate all the help folks, marking the thread as solved.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum