<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI Emoji";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-CA" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">You’re not seeing any results because that’s not a kernel module.  It’s also not an Intel video driver at all – see below.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">There is no newer/better intel video driver than what your distro provides – Intel is 100% explicitly clear about that.  The official driver is whatever comes with the kernel, period.  See
</span><a href="https://www.intel.com/content/www/us/en/support/articles/000005520/graphics.html">How to Identify & Find Graphics Drivers for Linux* (intel.com)</a>.<o:p></o:p></p>
<p class="MsoNormal">The only supported way to get an updated Intel video device driver is to upgrade to a newer Linux kernel.  The device driver is bundled with the kernel, and is version-locked to the kernel.<o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">iHD_drv_video is <i>
not</i> a newer/better device driver for Intel video cards, it’s the Intel VAAPI driver, only used for video encoding and decoding and a handful of other acceleration tasks.  (</span><a href="https://github.com/intel/media-driver">GitHub - intel/media-driver</a>) 
   There’s a similar driver for (I think) older chips, <a href="https://github.com/intel/intel-vaapi-driver">
GitHub - intel/intel-vaapi-driver: VA-API user mode driver for Intel GEN Graphics family</a>.<o:p></o:p></p>
<p class="MsoNormal">The distro-provided, kernel-bundled, i915 Kernel DRI driver will continue to be used for everything that isn’t a VAAPI function.  (There are plenty of other acceleration tasks the i915 driver handles on its, own, I don’t really understand
 why VAAPI has to be a separate thing that can’t be bundled into i915.ko, maybe it’s a licensing issue?)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The test to see if the VAAPI driver is now functioning is to run the vainfo(1) tool.  (On Debian, it’s contained in the “vainfo” package.)  While Ubuntu-specific, this page describes checking for VAAPI support in more details:
<a href="https://ubuntuhandbook.org/index.php/2021/08/enable-hardware-video-acceleration-va-api-for-firefox-in-ubuntu-20-04-18-04-higher/">
Enable Hardware Video Acceleration (VA-API) For Firefox in Ubuntu 20.04 / 18.04 & Higher | UbuntuHandbook</a>.  More VAAPI links are at
<a href="https://www.freedesktop.org/wiki/Software/vaapi/">vaapi (www.freedesktop.org)</a>.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Anything with an inefficient or slow H.264 implementation (how would this even happen in 2023???) could benefit from VAAPI acceleration, whether encoding, decoding, or transcoding.  I’m not sure what else it could accomplish for you.  Also
 remember that Intel accelerated video functions can sometimes be, even when they’re slightly faster, more power-hungry and heat-producing than the equivalent optimized CPU code – so in laptops or fanless builds, you’re probably better off not using VAAPI at
 all.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Not very much uses VAAPI – mostly just video tools, including video players, and they have to be built with VAAPI support.  One would hope that there’s a decent amount of widget re-use by now, and
 that e.g. your system-default video player could make use of this capability without any special configuration, but that’s far from guaranteed.  VLC, naturally, supports VAAPI, but they note that using it can be worse than
<i>not</i> using it (</span><a href="https://wiki.videolan.org/VLC_VAAPI/">VLC VAAPI - VideoLAN Wiki</a>); other playback tools may not have the same problem.
<o:p></o:p></p>
<p class="MsoNormal">VAAPI just uses a different set of transistors to accomplish exactly the same task your CPU would normally do in “software”.  If you don’t do H.264 playback or recording, VAAPI is probably pointless for you.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The other instructions at RPMFusion’s Multimedia page may be somewhat useful, they add support for a variety of other codecs that your system (excluding VLC, as always…) might not currently support.  If you don’t have a legacy collection
 of files that you can’t currently play, following these instructions isn’t going to change anything for you.  I take issue with the last item on that page: randomly installing firmware packages from untrusted 3<sup>rd</sup>-party repos might improve some aspect
 of your system, or might break it completely instead – make sure you know how to back out that change using an emergency boot disk before running that command!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I hate that I have to say this, but you probably don’t want to enable RPMFusion on any corporate system without checking with your company’s lawyer(s), or at least VP-level responsible people, first.  Their entire existence is founded on
 shipping RPMs that Red Hat & the Fedora Project (mostly) *<b>can’t</b>* legally or technically include, not *<b>don’t want to</b>* -  IMHO that’s a very serious misrepresentation by the RPMFusion project.  As a personal user, I loved that there was a source
 of precompiled packages that followed RMS’ “software wants to be free” ideology, but as a corporate user, it’s… not necessarily toxic, but for sure problematic/questionable.  This is totally a YMMV area – you may work for a small org. that has no chance of
 ever being on anyone’s target list and therefore doesn’t care, or you might work for some high-profile org. that needs to remain utterly beyond reproach at all times in all things: YMMV, as I said.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-Adam<span style="mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Roundtable <roundtable-bounces@muug.ca>
<b>On Behalf Of </b>Chris Audet<br>
<b>Sent:</b> Saturday, February 18, 2023 9:33 AM<br>
<b>To:</b> Trevor Cordes <trevor@tecnopolis.ca><br>
<b>Cc:</b> Continuation of Round Table discussion <roundtable@muug.ca><br>
<b>Subject:</b> Re: [RndTbl] intel-media-driver with Intel 1165G7 and Rocky 9<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">>Forget GUI tools, GUIs suck<o:p></o:p></p>
<div>
<p class="MsoNormal">Based <span style="font-family:"Segoe UI Emoji",sans-serif">💪</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Judging on <a href="https://www.intel.com/content/www/us/en/support/articles/000005520/graphics.html">
the results from this kb</a> the DRM driver appears to be loaded:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">bash-5.1$ lspci -k | grep -EA3 'VGA|3D|Display'<br>
0000:00:02.0 VGA compatible controller: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 01)<br>
Subsystem: Lenovo Device 3f19<br>
Kernel driver in use: i915<br>
Kernel modules: i915</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">For completeness, here are the results from the suggested commands.  I think I'm missing some of the expected output (possibly because this PC uses Wayland)?  I tried to grep for 46, intel, and 2c2141cd33dfa6e4d8f1ad9fdc6cd2d1d380c7.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">bash-5.1$ rpm -ql intel-media-driver-21.1.3-1.el9.x86_64<br>
/usr/lib/.build-id<br>
/usr/lib/.build-id/46<br>
/usr/lib/.build-id/46/2c2141cd33dfa6e4d8f1ad9fdc6cd2d1d380c7<br>
/usr/lib64/dri/iHD_drv_video.so<br>
/usr/share/doc/intel-media-driver<br>
/usr/share/doc/intel-media-driver/README.md<br>
/usr/share/licenses/intel-media-driver<br>
/usr/share/licenses/intel-media-driver/LICENSE.md<br>
/usr/share/metainfo/intel-media-driver.metainfo.xml</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">bash-5.1$ lsmod | grep i915<br>
i915                 3321856  21<br>
i2c_algo_bit           16384  1 i915<br>
intel_gtt              24576  1 i915<br>
drm_buddy              20480  1 i915<br>
drm_dp_helper         159744  1 i915<br>
drm_kms_helper        200704  2 drm_dp_helper,i915<br>
cec                    53248  2 drm_dp_helper,i915<br>
ttm                    86016  1 i915<br>
drm                   622592  14 drm_dp_helper,drm_kms_helper,drm_buddy,i915,ttm<br>
video                  57344  2 ideapad_laptop,i915</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Wed, Feb 15, 2023 at 9:38 PM Trevor Cordes <<a href="mailto:trevor@tecnopolis.ca">trevor@tecnopolis.ca</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">On 2023-02-15 Chris Audet wrote:<br>
> [root@what ~]# dnf install intel-media-driver<br>
> Last metadata expiration check: 2:11:34 ago on Wed 15 Feb 2023<br>
> 03:49:21 PM. Package intel-media-driver-21.1.3-1.el9.x86_64 is<br>
<br>
rpm -ql intel-media-driver-21.1.3-1.el9.x86_64 |grep ko.xz<br>
<br>
take the string between the last / and the ko.xz and do:<br>
<br>
lsmod |grep inteldrivermodname<br>
<br>
(change inteldrivermodname to the string)<br>
<br>
If you get output, it's loaded, and likely being used.<br>
<br>
If you want to see if it's really being used and have some fun (read:<br>
crash your video) then try<br>
<br>
rmmod inteldrivermodname<br>
<br>
(ugly but it shoudn't foobar your fs's or anything... can likely ssh<br>
into the box to reboot properly, or use magic-sys-rq keys)<br>
<br>
Forget GUI tools, GUIs suck!  :-)<o:p></o:p></p>
</blockquote>
</div>
</div>
</body>
</html>