Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

HP Microserver Gen8: cant open module "mga"

Need help with peripherals or devices?
Post Reply
Message
Author
WolfG
Posts: 31
Joined: 2015-10-12 11:06
Has thanked: 2 times

HP Microserver Gen8: cant open module "mga"

#1 Post by WolfG »

Hello.

After installing xserver-xorg-video-mga firmware-linux and reboot the file /var/log/installer/Xorg.0.log shows error loading "mga" driver:

Code: Select all

[     5.304] (==) ModulePath set to "/usr/lib/xorg/modules"
[     5.304] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[     5.304] (II) Loader magic: 0x55a1093ceac0
[     5.304] (II) Module ABI versions:
[     5.304]    X.Org ANSI C Emulation: 0.4
[     5.304]    X.Org Video Driver: 24.1
[     5.304]    X.Org XInput driver : 24.1
[     5.304]    X.Org Server Extension : 10.0
[     5.307] (--) PCI:*(1@0:0:1) 102b:0533:103c:3381 rev 0, Mem @ 0xf9000000/16777216, 0xfbee0000/16384, 0xfb000000/8388608, BIOS @ 0x????????/131072
[     5.307] (==) Matched mga as autoconfigured driver 0
[     5.307] (==) Matched modesetting as autoconfigured driver 1
[     5.307] (==) Matched fbdev as autoconfigured driver 2
[     5.307] (==) Matched vesa as autoconfigured driver 3
[     5.307] (==) Assigned the driver to the xf86ConfigLayout
[     5.307] (II) LoadModule: "mga"
[     5.307] (WW) Warning, couldn't open module mga
[     5.307] (EE) Failed to load module "mga" (module does not exist, 0)
The mga module is in the subdirectory in /usr/lib/xorg/modules/drivers/mga_drv.so

Any hints whats going wrong?
Last edited by WolfG on 2021-09-12 16:29, edited 1 time in total.

User avatar
NorthEast
Posts: 348
Joined: 2018-11-18 04:35
Has thanked: 12 times
Been thanked: 30 times

Re: HP Miocroserver Gen8: cant open module "mga"

#2 Post by NorthEast »

If you haven't done so, I'd have a look a system update and upgrade to see if that helped.

Aki
Global Moderator
Global Moderator
Posts: 2816
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 68 times
Been thanked: 382 times

Re: HP Miocroserver Gen8: cant open module "mga"

#3 Post by Aki »

Hello,
WolfG wrote: 2021-09-11 15:37 After installing xserver-xorg-video-mga firmware-linux and reboot the file /var/log/installer/Xorg.0.log shows error loading "mga" driver:
[ 5.307] (II) LoadModule: "mga"
[ 5.307] (WW) Warning, couldn't open module mga
[ 5.307] (EE) Failed to load module "mga" (module does not exist, 0)[/code]
The mga module is in the subdirectory in /usr/lib/xorg/modules/drivers/mga_drv.so

Any hints whats going wrong?
The log you sent is from file /var/log/installer/Xorg.0.log . This log file is generated at install time and is never touched afterwords: it is a log for debugging of installer issues. Therefore, this is log is referred at what happened at install time, when the module mga was not installed. The log file with messages from the running X server is /var/log/Xorg.0.log (without /installer/ in the path).
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

WolfG
Posts: 31
Joined: 2015-10-12 11:06
Has thanked: 2 times

Re: HP Miocroserver Gen8: cant open module "mga"

#4 Post by WolfG »

This are all Xorg.*.log files after clean installation and first login with user wg:

Code: Select all

root@debian:~# find / -name Xorg.*.log 2>/dev/null
/home/wg/.local/share/xorg/Xorg.0.log
/var/log/installer/Xorg.0.log
root@debian:~#
xserver-xorg-video-mga not yet installed.

I have expected an Xorg.0.log in /var/log.

Perhaps it depends in the display-manager, I'm using gdm3.
Last edited by WolfG on 2021-09-12 16:29, edited 1 time in total.

Aki
Global Moderator
Global Moderator
Posts: 2816
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 68 times
Been thanked: 382 times

Re: HP Microserver Gen8: cant open module "mga"

#5 Post by Aki »

WolfG wrote: 2021-09-12 12:37 I have expected an Xorg.0.log in /var/log.
Perhaps it depends in the display-manager, I'm using gdm3.
Are you using Wayland instead of Xserver ? [1]
[1] https://wiki.debian.org/Wayland
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

WolfG
Posts: 31
Joined: 2015-10-12 11:06
Has thanked: 2 times

Re: HP Miocroserver Gen8: cant open module "mga"

#6 Post by WolfG »

Checked it, and no Wayland:

Code: Select all

root@debian:~# loginctl
SESSION  UID USER SEAT  TTY
      2 1000 wg   seat0 tty2
      6    0 root

2 sessions listed.
root@debian:~# loginctl show-session 2 -p Type
Type=x11
root@debian:~# 
I've installed the mga driver and /home/wg/.local/share/xorg/Xorg.0.log is still the only Xorg logfil, except installer, I can find:

Code: Select all

root@debian:~# find / -name Xorg.*.log 2>/dev/null
/home/wg/.local/share/xorg/Xorg.0.log
/var/log/installer/Xorg.0.log
root@debian:~#
With mga installed and reboot the logfile /home/wg/.local/share/xorg/Xorg.0.log shows a new issue:

Code: Select all

[    58.555] (II) LoadModule: "mga"
[    58.556] (II) Loading /usr/lib/xorg/modules/drivers/mga_drv.so
[    58.570] (II) Module mga: vendor="X.Org Foundation"
[    58.570]    compiled for 1.20.3, module version = 2.0.0
[    58.570]    Module class: X.Org Video Driver
[    58.570]    ABI class: X.Org Video Driver, version 24.0
[    58.570] (II) LoadModule: "modesetting"
[    58.570] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    58.582] (II) Module modesetting: vendor="X.Org Foundation"
[    58.582]    compiled for 1.20.11, module version = 1.20.11
[    58.582]    Module class: X.Org Video Driver
[    58.582]    ABI class: X.Org Video Driver, version 24.1
[    58.582] (II) LoadModule: "fbdev"
[    58.582] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[    58.586] (II) Module fbdev: vendor="X.Org Foundation"
[    58.586]    compiled for 1.20.0, module version = 0.5.0
[    58.586]    Module class: X.Org Video Driver
[    58.586]    ABI class: X.Org Video Driver, version 24.0
[    58.586] (II) LoadModule: "vesa"
[    58.586] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[    58.598] (II) Module vesa: vendor="X.Org Foundation"
[    58.599]    compiled for 1.20.9, module version = 2.5.0
[    58.599]    Module class: X.Org Video Driver
[    58.599]    ABI class: X.Org Video Driver, version 24.1
[    58.599] (II) MGA: driver for Matrox chipsets: mga2064w, mga1064sg, mga2164w,
        mga2164w AGP, mgag100, mgag100 PCI, mgag200, mgag200 PCI,
        mgag200 SE A PCI, mgag200 SE B PCI, mgag200 EV Maxim,
        mgag200 ER SH7757, mgag200 eW Nuvoton, mgag200 eW3 Nuvoton,
        mgag200eH, mgag200eH3, mgag400, mgag550
[    58.599] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    58.599] (II) FBDEV: driver for framebuffer: fbdev
[    58.599] (II) VESA: driver for VESA chipsets: vesa
[    58.599] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[    58.599] (EE) mga: The PCI device 0x533 at 01@00:00:1 has a kernel module claiming it.
[    58.599] (EE) mga: This driver cannot operate until it has been unloaded.
I assume I have to unload or blacklist the vesa driver.
...
Did not work :( just - creates other errors.
...

Reistalled vesa.
This is the current state:

Code: Select all

[  1748.722] (EE) mga: The PCI device 0x533 at 01@00:00:1 has a kernel module claiming it.
[  1748.722] (EE) mga: This driver cannot operate until it has been unloaded.
[  1748.891] (EE) modeset(0): glamor initialization failed
Any hints?

Aki
Global Moderator
Global Moderator
Posts: 2816
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 68 times
Been thanked: 382 times

Re: HP Microserver Gen8: cant open module "mga"

#7 Post by Aki »

The output of the command:

Code: Select all

lspci -k
should show which is the kernel module that is using the mga graphic card: can you send the output ?

How do you start the Xserver ?

What is the output of the following command ?

Code: Select all

ps -ax | grep xorg
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

WolfG
Posts: 31
Joined: 2015-10-12 11:06
Has thanked: 2 times

Re: HP Microserver Gen8: cant open module "mga"

#8 Post by WolfG »

This is the output of lspci -k:

Code: Select all

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller (rev 09)
	Kernel driver in use: ie31200_edac
	Kernel modules: ie31200_edac
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
	Kernel driver in use: pcieport
00:06.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
	Kernel driver in use: pcieport
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
	Subsystem: Hewlett-Packard Company 6 Series/C200 Series Chipset Family USB Enhanced Host Controller
	Kernel driver in use: ehci-pci
	Kernel modules: ehci_pci
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
	Kernel driver in use: pcieport
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b5)
	Kernel driver in use: pcieport
00:1c.6 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 7 (rev b5)
	Kernel driver in use: pcieport
00:1c.7 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 8 (rev b5)
	Kernel driver in use: pcieport
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
	Subsystem: Hewlett-Packard Company 6 Series/C200 Series Chipset Family USB Enhanced Host Controller
	Kernel driver in use: ehci-pci
	Kernel modules: ehci_pci
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a5)
00:1f.0 ISA bridge: Intel Corporation C204 Chipset LPC Controller (rev 05)
	Kernel driver in use: lpc_ich
	Kernel modules: lpc_ich
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port Desktop SATA AHCI Controller (rev 05)
	Subsystem: Hewlett-Packard Company 6 Series/C200 Series Chipset Family 6 port Desktop SATA AHCI Controller
	Kernel driver in use: ahci
	Kernel modules: ahci
01:00.0 System peripheral: Hewlett-Packard Company Integrated Lights-Out Standard Slave Instrumentation & System Support (rev 05)
	Subsystem: Hewlett-Packard Company iLO4
	Kernel driver in use: hpwdt
	Kernel modules: hpwdt
01:00.1 VGA compatible controller: Matrox Electronics Systems Ltd. MGA G200EH
	Subsystem: Hewlett-Packard Company iLO4
	Kernel driver in use: mgag200
	Kernel modules: mgag200
01:00.2 System peripheral: Hewlett-Packard Company Integrated Lights-Out Standard Management Processor Support and Messaging (rev 05)
	Subsystem: Hewlett-Packard Company iLO4
	Kernel driver in use: hpilo
	Kernel modules: hpilo
01:00.4 USB controller: Hewlett-Packard Company Integrated Lights-Out Standard Virtual USB Controller (rev 02)
	Subsystem: Hewlett-Packard Company iLO4
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci_hcd
03:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5720 2-port Gigabit Ethernet PCIe
	DeviceName: NIC Port 1
	Subsystem: Hewlett-Packard Company NC332i Adapter
	Kernel driver in use: tg3
	Kernel modules: tg3
03:00.1 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5720 2-port Gigabit Ethernet PCIe
	DeviceName: NIC Port 2
	Subsystem: Hewlett-Packard Company NC332i Adapter
	Kernel driver in use: tg3
	Kernel modules: tg3
04:00.0 USB controller: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller (rev 03)
	Subsystem: Hewlett-Packard Company uPD720201 USB 3.0 Host Controller
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
Starting the Xserver: I'm using GDM3, I dunno what scripts the default system config is using; last time I bothered about this was with UNIX System V svr4 :) .

and this is ps -ax

Code: Select all

root@debian:~# ps -ax | grep xorg
   1229 tty2     Sl+    0:59 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -nolisten tcp -background none -noreset -keeptty -novtswitch -verbose 3
   2021 pts/0    S+     0:00 grep xorg
root@debian:~#
With GDM3 the Xorg.0.log resides /var/lib/gdm3/.local/share/xorg/Xorg.0.log


Thanks again for your time!

Aki
Global Moderator
Global Moderator
Posts: 2816
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 68 times
Been thanked: 382 times

Re: HP Microserver Gen8: cant open module "mga"

#9 Post by Aki »

Hello,
WolfG wrote: 2021-09-15 08:45 This is the output of lspci -k:
[..]

Code: Select all

01:00.1 VGA compatible controller: Matrox Electronics Systems Ltd. MGA G200EH
	Subsystem: Hewlett-Packard Company iLO4
	Kernel driver in use: mgag200
	Kernel modules: mgag200
[..]
The Matrox G200 graphic card is used by the mgag200 kernel driver (the right one, if I recall correctly), as you can see in the previous log and it is used for the drm graphic support:

Code: Select all

$ apt-file search "mgag200.ko" | grep amd64
linux-image-5.10.0-8-amd64: /lib/modules/5.10.0-8-amd64/kernel/drivers/gpu/drm/mgag200/mgag200.ko
linux-image-5.10.0-8-amd64-dbg: /usr/lib/debug/lib/modules/5.10.0-8-amd64/kernel/drivers/gpu/drm/mgag200/mgag200.ko
linux-image-5.10.0-8-amd64-unsigned: /lib/modules/5.10.0-8-amd64/kernel/drivers/gpu/drm/mgag200/mgag200.ko
linux-image-5.10.0-8-rt-amd64: /lib/modules/5.10.0-8-rt-amd64/kernel/drivers/gpu/drm/mgag200/mgag200.ko
linux-image-5.10.0-8-rt-amd64-dbg: /usr/lib/debug/lib/modules/5.10.0-8-rt-amd64/kernel/drivers/gpu/drm/mgag200/mgag200.ko
linux-image-5.10.0-8-rt-amd64-unsigned: /lib/modules/5.10.0-8-rt-amd64/kernel/drivers/gpu/drm/mgag200/mgag200.ko
WolfG wrote: 2021-09-15 08:45 With GDM3 the Xorg.0.log resides /var/lib/gdm3/.local/share/xorg/Xorg.0.log
Is the following message still present in Xorg.0.log ? Can you check the date-time of the Xorg.0.log to verify is the current one ?

Code: Select all

[    58.599] (EE) mga: The PCI device 0x533 at 01@00:00:1 has a kernel module claiming it.
[    58.599] (EE) mga: This driver cannot operate until it has been unloaded.
How many different Xorg.*.log files have you now in the operating system ? Can you show their date-times using the following command ?

Code: Select all

find / -name Xorg.*.log -exec ls \-la {} \; 2>/dev/null
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

WolfG
Posts: 31
Joined: 2015-10-12 11:06
Has thanked: 2 times

Re: HP Microserver Gen8: cant open module "mga"

#10 Post by WolfG »

Here you go:

Code: Select all

root@debian:~# find / -name Xorg.*.log -exec ls \-la {} \; 2>/dev/null
-rw-r--r-- 1 wg wg 37952 Sep 16 11:49 /home/wg/.local/share/xorg/Xorg.1.log
-rw------- 1 root root 47932 Sep 12 11:07 /var/log/installer/Xorg.0.log
-rw-r--r-- 1 Debian-gdm Debian-gdm 29317 Sep 16 11:50 /var/lib/gdm3/.local/share/xorg/Xorg.0.log
root@debian:~#

Aki
Global Moderator
Global Moderator
Posts: 2816
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 68 times
Been thanked: 382 times

Re: HP Microserver Gen8: cant open module "mga"

#11 Post by Aki »

Hello,

Sorry for the late reply, but I've preferred to install a virtual machine to create a test environment for your specific case (Debian Bullseye installation with gdm3 and Gnome 3 desktop environment) even if on a different hardware setup.
WolfG wrote: 2021-09-16 09:51 Here you go:

Code: Select all

root@debian:~# find / -name Xorg.*.log -exec ls \-la {} \; 2>/dev/null
-rw-r--r-- 1 wg wg 37952 Sep 16 11:49 /home/wg/.local/share/xorg/Xorg.1.log
-rw------- 1 root root 47932 Sep 12 11:07 /var/log/installer/Xorg.0.log
-rw-r--r-- 1 Debian-gdm Debian-gdm 29317 Sep 16 11:50 /var/lib/gdm3/.local/share/xorg/Xorg.0.log
root@debian:~#
First of all, Debian Bullseye installs Gnome Desktop Environment with Wayland by default, therefore I had to manually change gdm3 configuration to make it start the Xorg server instead of the Wayland compositor: have you manually changed the gdm3 configuration, too ?

As in your installation, there are two Xorg logs after the start of graphic server start: this happens because the Xorg graphical server is started as regular user (and not as root user). The X server activate two virtual "displays" (named ":0" for gdm3 and ":1" for the session itself after the login; logs are named Xorg.0.log and Xorg.1.log, according to the display names they refer to). In my test, logs are, just like in your installation:

Code: Select all

# find / -name Xorg.*.log -exec ls -la {} \;  2> /dev/null 
-rw-r--r-- 1 Debian-gdm Debian-gdm 56738 21 set 19.19 /var/lib/gdm3/.local/share/xorg/Xorg.0.log
-rw-r--r-- 1 aki aki 52788 21 set 19.19 /home/aki/.local/share/xorg/Xorg.1.log
I wasn't able to replicate the error message of your first message of the current thread, even if with a different graphic hardware. Is the error message still generated ?
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Post Reply