- Thread Starter
- #51
mjollnir,Did you apply your patch aftermake extract
& before you didmake reinstall
?
I updated the /etc/rc.conf to reflect the i915 intel driver modules at start-up ..
kld_list="/boot/modules/i915kms.ko
( asking just to make sure )?I changed my xorg.conf from "vesa" to "intel".
mjollnir,
Do you mean doing a "cp" with "i915_pciids.h" from
full path: /usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-99da0ba/include/drm
to :
/usr/ports/graphics/drm-fbsd12.0-kmod/include/drm/ ?
If so; the answer is no. And this would explain why it didn't work if this patch does indeed work.
Would that be the right course of action?
I most certainly have!I assume you have set in /etc/rc.confkld_list="/boot/modules/i915kms.ko
( asking just to make sure )?
Yes sir!
Have you installed the x11-drivers/xf86-video-intel?
T-Daemon,Don't copy or move the file anywhere. It must remain where it is.
mjollnir,Did you apply your patch aftermake extract
& before you didmake reinstall
?
cd /usr/ports/x11-drivers/xf86-video-intel
make clean
make fetch
make extract
make patch
cd /usr/ports/x11-drivers/xf86-video-intel
make makepatch
make clean
and restore the original files of that directory. The next time the port is build the include file will be patched, too.--- src/i915_pciids.h.orig 2020-09-04 17:30:22 UTC
+++ src/i915_pciids.h
@@ -487,7 +487,7 @@
#define INTEL_CFL_S_GT2_IDS(info) \
INTEL_VGA_DEVICE(0x3E91, info), /* SRV GT2 */ \
INTEL_VGA_DEVICE(0x3E92, info), /* SRV GT2 */ \
- INTEL_VGA_DEVICE(0x3E96, info), /* SRV GT2 */ \
+ INTEL_VGA_DEVICE(0x3E98, info), /* SRV GT2 */ \
INTEL_VGA_DEVICE(0x3E98, info), /* SRV GT2 */ \
INTEL_VGA_DEVICE(0x3E9A, info) /* SRV GT2 */
chrbr,Dear StreetDancer,
regarding the patching or modification of i915_pciids.h you can generate a patch which survives an svn update.
First
Make a backup of the ./files/ and store it at a safe place, just to be sure. Go to the directory where i915_pciids.h is located and make a copy of the original file as i915_pciids.h.orig. Then change i915_pciids.h as desired. Afterwards generate the patch from the ports root directory as below.Code:cd /usr/ports/x11-drivers/xf86-video-intel make clean make fetch make extract make patch
patch-src_i915_pciids.h has appeared in /usr/ports/x11-drivers/xf86-video-intel/files. Check if the changes are as desired. Then runCode:cd /usr/ports/x11-drivers/xf86-video-intel make makepatch
make clean
and restore the original files of that directory. The next time the port is build the include file will be patched, too.
This should be the resulting file - if I have changed the correct position:
Code:--- src/i915_pciids.h.orig 2020-09-04 17:30:22 UTC +++ src/i915_pciids.h @@ -487,7 +487,7 @@ #define INTEL_CFL_S_GT2_IDS(info) \ INTEL_VGA_DEVICE(0x3E91, info), /* SRV GT2 */ \ INTEL_VGA_DEVICE(0x3E92, info), /* SRV GT2 */ \ - INTEL_VGA_DEVICE(0x3E96, info), /* SRV GT2 */ \ + INTEL_VGA_DEVICE(0x3E98, info), /* SRV GT2 */ \ INTEL_VGA_DEVICE(0x3E98, info), /* SRV GT2 */ \ INTEL_VGA_DEVICE(0x3E9A, info) /* SRV GT2 */
diff -u
and manual copy instead of make makepatch
. First everything sounds like black magic, but it is well documented and helps to understand the ports system.regarding the patching or modification of i915_pciids.h you can generate a patch which survives an svn update.
cd /usr/ports/x11-drivers/xf86-video-intel
make clean
make fetch
make extract
make patch
Ok, I misunderstood which port to modify. But my intention has been to show how to generate a patch. I can make the patch file for the other port, too.@chrbr I'm afraid you misunderstood the situation, x11-drivers/xf86-video-intel is not the port needing patching but graphics/drm-fbsd12.0-kmod.
make extract
requires the kernel sources I do not have. I am not keen to download them, only if it is really wanted. kldstat
, if it's not restart or kldload /boot/modules/i915kms.ko
the driver, then try startx
.This is clearly true. I have not so much experience in the X11 setup. Therefore I will better not interfer .First lets test the manually modified pciid file first, make the patch later. There is no sense in creating patches when the whole procedure doesn't end up.
My last posts are after I removed xorg.conf and my user is a member of "wheel" and I was told by the handbook, I believe that it's equal to video group. (Has always worked on everything else; including the vesa drivers).Lets test the manually modified pciid file first, make the patch later. There is no sense in creating patches when the whole procedure doesn't end up.
According to
x11-drivers/xf86-video-intel is optional and xorg.conf not needed. StreetDancer please remove / rename xorg.conf, and make sure you are in the member of the "video" group, check if the driver is loaded, runkldstat
, if it's not restart orkldload /boot/modules/i915kms.ko
the driver, then trystartx
.
my user is a member of "wheel" and I was told by the handbook I believe that it's equal to video group.
Please ensure that all users requiring graphics are members of the
"video" group.
pkg install {de,en}-freebsd-doc
, replace de with your native tongue, and point your favorite browser to /usr/local/share/doc/freebsd. message: "query '[%C/%n] %M'",
, read through all pkg message|less
, and apply the requested settings.