Mode Setting-porteus-5.0rc3

Non release banter
raja
Shogun
Shogun
Posts: 434
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32 and Porteus-Artix-64
Location: Chennai,India

Mode Setting-porteus-5.0rc3

Post#1 by raja » 07 Aug 2021, 10:53

Porteus-5.0rc3- x-server chooses modesetting as the preferred driver to fix resolution,refresh rare and screen size. I noticed inclusion of two files modesetting.conf and vesa.conf in /etc/x11. I deleted them and added a intel.conf file in xorg.conf.d folder.

X server now listed intel as the first driver to use but unfortunately, still went with modesetting,drv.so.

It uses 'glamor' and start checking from 640x480 to 1920x1080 and wastes lot of time.

Intel driver used to fix this no time

I want this game to end. How can I force x11 to use intel graphic driver. It was fine all previous offer[/quote]

Code: Select all

10.834] (==) Matched modesetting as autoconfigured driver 0
[    10.834] (==) Matched fbdev as autoconfigured driver 1
[    10.834] (==) Matched vesa as autoconfigured driver 2
[    10.834] (==) Assigned the driver to the xf86ConfigLayout
[    10.834] (II) LoadModule: "modesetting"
[    10.834] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
Intel HD graphic Driver 620
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3925
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Mode Setting-porteus-5.0rc3

Post#2 by ncmprhnsbl » 09 Aug 2021, 03:11

i don't have this hardware, so here's some guesses:
1. would the kernel parameter: nomodeset be applicable here? or is that something different?
2. or blacklisting "modesetting" in /etc/modprobe.d :
blacklist_modesetting.conf:

Code: Select all

blacklist modesetting
3. or add what you put in xorg.conf.d/intel.conf directly in xorg.conf
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

raja
Shogun
Shogun
Posts: 434
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32 and Porteus-Artix-64
Location: Chennai,India

Mode Setting-porteus-5.0rc3

Post#3 by raja » 09 Aug 2021, 09:20

ncmp...there seem to be a problem with naming intel driver during x-server compiling.

Instead of "intel_drv.so" , "inteldrv.so" (typo) ?, is used. X-server searches for inteldrv.so, and goes on to modsetting.

Obviously it will not be there

This I noticed after I included intel..conf

30-intel.conf:

Code: Select all

Section "OutputClass"
    Identifier "intel"
    MatchDriver "i915"
    Driver "intel_drv.so"
    ModulePath "/usr/lib64/xorg/modules"
EndSectio
Error log in xorg:

Code: Select all

    14.486] (II) xfree86: Adding drm device (/dev/dri/card0)
[    14.501] (**) OutputClass "intel" ModulePath extended to "/usr/lib64/xorg/modules,/usr/lib64/xorg/modules"
[    14.501] (--) PCI:*(0@0:2:0) 8086:5916:1025:1094 rev 2, Mem @ 0xb0000000/16777216, 0xa0000000/268435456, I/O @ 0x00003000/64, BIOS @ 0x????????/131072
[    14.502] (II) Open ACPI successful (/var/run/acpid.socket)
[    14.502] (II) LoadModule: "glx"
[    14.504] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[    14.590] (II) Module glx: vendor="X.Org Foundation"
[    14.590] 	compiled for 1.20.11, module version = 1.0.0
[    14.590] 	ABI class: X.Org Server Extension, version 10.0
[    14.590] (II) Applying OutputClass "intel" to /dev/dri/card0
[    14.590] 	loading driver: intel_drv.so
[    14.590] (==) Matched intel_drv.so as autoconfigured driver 0
[    14.590] (==) Matched modesetting as autoconfigured driver 1
[    14.590] (==) Matched fbdev as autoconfigured driver 2
[    14.590] (==) Matched vesa as autoconfigured driver 3


[    14.590] (==) Assigned the driver to the xf86ConfigLayout
[    14.590] (II) LoadModule: "inteldrv.so" (inteldrv)
[    14.590] (WW) LoadModule: given non-canonical module name "inteldrv.so"
[    14.602] (WW) Warning, couldn't open module inteldrv.so
[    14.602] (EE) Failed to load module "inteldrv.so" (module does not exist, 0)
[    14.602] (II) LoadModule: "modesetting"
So, missing underscore after intel is the source of trouble. But renaming intel_drv.so without _ in /usr/lib64/xorg/modules/drivers does not help.
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

raja
Shogun
Shogun
Posts: 434
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32 and Porteus-Artix-64
Location: Chennai,India

Mode Setting-porteus-5.0rc3

Post#4 by raja » 26 Aug 2021, 15:51

ncmp, it is confirmed that xorg-server from slackware is faulty. I replaced the version .....11-1 to current slackware version ...13.1 and restarted xserver.

Same error.. load Module:"inteldrv.so". And Modesetting driver was used.

Somewhere in a configuration file, slackware developers have used the string "inteldrv.so", instead of the accepted usage for the string "intel", during compilation.

If you have any communication channel with them, please ask them to correct.

The concerned "c" file is in .../hw/loader/loadmodule.c.

The statement referred therein is ,Load Module:"%s". So the program picks the string from some conf. file.

I installed an Arch version of xorg-server.....13.2 and Porteus-5.0rc3, now boots using "Intel HD Graphics 620 with its own driver.

Boot time reduced by 3 seconds.
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

raja
Shogun
Shogun
Posts: 434
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32 and Porteus-Artix-64
Location: Chennai,India

Mode Setting-porteus-5.0rc3

Post#5 by raja » 30 Aug 2021, 11:34

xorg log with Arch xorg-server:

Code: Select all

[     8.499] X.Org X Server 1.20.13 X Protocol Version 11, Revision 0
[     8.499] Build Operating System: Linux Archlinux
[     8.499] Current Operating System: Linux porteus.example.net 5.4.126-porteus #1 SMP Wed Jun 16 17:24:43 UTC 2021 x86_64
[     8.499] Kernel command line: quiet initrd=/boot/syslinux/initrd-5.0-rc3.xz from=/mnt/sda2 BOOT_IMAGE=/boot/syslinux/vmlinuz-5.4.126 
[     8.557] (==) Matched intel as autoconfigured driver 0
[     8.557] (==) Matched modesetting as autoconfigured driver 1
[     8.557] (==) Matched fbdev as autoconfigured driver 2
[     8.557] (==) Matched vesa as autoconfigured driver 3
[     8.557] (==) Assigned the driver to the xf86ConfigLayout
[     8.557] (II) LoadModule: "intel"
[     8.557] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[     8.626] (II) Module intel: vendor="X.Org Foundation"
[     8.626] 	compiled for 1.20.9, module version = 2.99.917
[     8.626] 	Module class: X.Org Video Driver
[     8.626] 	ABI class: X.Org Video Driver, version 24.1
[     8.651] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
	i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
	915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
	Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
	GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[     8.652] (II) intel: Driver for Intel(R) HD Graphics
[     8.652] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[     8.652] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics

last line in log:
[     8.919] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
Porteus-5.0rc3-QT - Booted with following applications in under 9 seconds flat.(Pentium 620 processor,4GB memory,no HDD,Gigabyte MB)

Gimp
Qview
Abiword
Geany
Avidemux
Flisomaker
Great Little Radio Player
OBS Studio
Simple Screen Recorder
Guvcview
VLC Media Player
Ocenaudio
Florence
Bluetooth Manager
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

User avatar
babam
Warlord
Warlord
Posts: 526
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 5.0rc3 Xfce K6.1.1
Location: Rainy city

Mode Setting-porteus-5.0rc3

Post#6 by babam » 04 Sep 2021, 23:20

raja, whether the backlight (brightness control) can work.
Sorry, my English is bad.

raja
Shogun
Shogun
Posts: 434
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32 and Porteus-Artix-64
Location: Chennai,India

Mode Setting-porteus-5.0rc3

Post#7 by raja » 09 Sep 2021, 09:55

babam,

Brightness control works, but back light control greyed out...may be monitor does not have the circuit like laptop display.

OS- 5.0rc3- QT. Kernel my customized version -5.4.126
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

Post Reply