LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-23-2023, 02:31 PM   #31
babam
LQ Newbie
 
Registered: Aug 2021
Distribution: Porteus, ZorinOS
Posts: 29

Rep: Reputation: Disabled

Quote:
Originally Posted by hazel View Post
Nope, I can't get intel-media-22.3.0 to build, even using an edited slackbuild. It errors out at about 57% complete, just like when I did it by hand. Curiously, the error messages suggest actual errors in the code, undeclared variables and such-like.
How about version 21.3.5, did it build successfully?
 
Old 02-24-2023, 03:45 AM   #32
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,651
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Quote:
Originally Posted by babam View Post
How about version 21.3.5, did it build successfully?
Dunno, I haven't tried it. I'll try and see.
 
Old 02-24-2023, 03:03 PM   #33
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 239Reputation: 239Reputation: 239
Hi Hazel, when compiling that intel-media package I noticed it took quite a while and the end product is big:
Quote:
-rw-r--r-- 1 root root 10973939 Feb 22 22:22 intel-media-driver-22.6.6-x86_64-1ponce.tgz
Could it be that your 'tmp' space used for building gets filled up? Sometimes, when building something big and I don't clear my build-space the compiling falters without a clear reason.

hth
 
Old 02-24-2023, 06:31 PM   #34
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,011

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by brobr View Post
Hi Aeterna, thanks for this, now Brave can have hardware-acceleration set (with "brave://settings/system") without the fans coming on all the time ;-).

Some observations (with KabyLake, 9th generation; i7-7700HQ; pipewire; re-compiled ffmpeg, slackware64-current) when trying this out.

1. No Guc or HuC output in dmesg.
2. Testing with vlc (or QMplay2 with FFmpeg-VA-API Decoder) instead of mpv worked fine; gave "Video" output in 'intel-gpu-top' of ~7-11%.

Code:
bash-5.2$ cvlc Big_Buck_Bunny_1080_10s_5MB.mp4 
VLC media player 3.0.17.3 Vetinari (revision 3.0.13-8-g41878ff4f2)
[0000000000b25c60] dummy interface: using the dummy interface module...
[00007ff630c138a0] avcodec decoder: Using OpenGL/VAAPI backend for VDPAU for hardware decoding
3. Brave leads to more "RENDER/3D" output (~20-25%, starting at ~39%) than Firefox (~8%, starting at 15%)(No "Video" output).

with "brave://gpu/" (colors from brave output):


4. FWIW (not being a versed ffmpeg user), the ffmpeg conversions falter at my end on:


Without the "-vf 'format=nv12,hwupload'" it worked (with "Big_Buck_Bunny_720_10s_2MB.mkv").

hth
1) this is what I see running cvlc (differences are hardware related, so all is fine):
Code:
cvlc Big_Buck_Bunny_1080_10s_1MB.mp4 
VLC media player 3.0.17.4 Vetinari (revision 3.0.13-8-g41878ff4f2)
[0000000031b40dd0] dummy interface: using the dummy interface module...
TagLib: MP4: No audio tracks
[00006f6ab4c11100] avcodec decoder: Using Intel iHD driver for Intel(R) Gen Graphics - 22.6.6 () for hardware decoding
2) ffmgeg conversion (I am not versed in ffmpeg either) should confirm the use of VAAPI so as long as you see:

Code:
...
[AVHWDeviceContext @ 0x1d19d40] libva: VA-API version 1.17.0
...
Stream mapping:
  Stream #0:0 -> #0:0 (theora (native) -> hevc (hevc_vaapi))
  Stream #0:1 -> #0:1 (vorbis (native) -> mp3 (libmp3lame)) <- or whetever encoder
[hevc_vaapi @ 0x1e10dc0] Using input frames context (format vaapi) with hevc_vaapi encoder.
...
should be fine
3) never used brave
but I assume that
Code:
brave://flags
should work: search for specific options and enable what you want. Of course some options are specific for chrome only.
I would enable
Quote:
Raw Draw
you have it disabled (not possible to enable?)

A note regarding WebGPU:
Quote:
Enables access to the experimental WebGPU API. Warning: As GPU sandboxing isn't implemented yet for the WebGPU API, it is possible to read GPU data for other processes. – Mac, Windows, Linux, ChromeOS, Fuchsia, Lacros
..so I did not enable WebGPU in chrome

4) GuC and HuC
Based on Intel info
/etc/modprobe.d/i915.conf
options i915 enable_guc=3
options i915 enable_fbc=1
should be set 0 (zero)
this means that GuC and HuC are not available for Kabylake

hope this helps

Last edited by Aeterna; 02-24-2023 at 08:20 PM.
 
1 members found this post helpful.
Old 02-24-2023, 06:40 PM   #35
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,011

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
Dunno, I haven't tried it. I'll try and see.
well just checked github site:
Quote:
Intel Media Driver 2021Q4 Release - 22.1.1

Official quarterly release including some enhancements and key fixes.
Dependencies

GmmLib: intel-gmmlib-22.0.1
Libva: 2.13.0

Supported Platforms

BDW (Broadwell)
SKL (Skylake)
BXTx (BXT: Broxton, APL: Apollo Lake, GLK: Gemini Lake)
KBLx (KBL: Kaby Lake, CFL: Coffe Lake, WHL: Whiskey Lake, CML: Comet Lake, AML: Amber Lake)
ICL (Ice Lake)
JSL (Jasper Lake) / EHL (Elkhart Lake)
TGLx (TGL: Tiger Lake, RKL: Rocket Lake, ADL-S/P/N: Alder Lake)
DG1/SG1
Alchemist(DG2)/ATS-M(Arctic Sound Mainstream)
this is your limit for libva-2.13 in -stable you can use intel media driver 22.1.1

anything above 22.1.1 probably will fail

Last edited by Aeterna; 02-24-2023 at 06:42 PM.
 
Old 02-24-2023, 11:59 PM   #36
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,651
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Quote:
Originally Posted by brobr View Post
Hi Hazel, when compiling that intel-media package I noticed it took quite a while and the end product is big:

Could it be that your 'tmp' space used for building gets filled up? Sometimes, when building something big and I don't clear my build-space the compiling falters without a clear reason.

hth
It's tmpfs so it should expand as required, shouldn't it? du shows 1.8G currently. Anyway, I've got -22.1 building now. It takes a very long time to get anywhere, and if it fails, it will be around the 57% mark.

update: 59% and still building!

update: crashed at 68%!
Code:
/tmp/SBo/media-driver-intel-media-21.3.5/media_driver/linux/common/ddi/media_libva.cpp: In function 'VAStatus DdiMedia_InitMediaContext(VADriverContextP, int32_t, int32_t*, int32_t*)':
/tmp/SBo/media-driver-intel-media-21.3.5/media_driver/linux/common/ddi/media_libva.cpp:1833:32: error: 'OpenGmm' was not declared in this scope
 1833 |         GMM_STATUS gmmStatus = OpenGmm(&mediaCtx->GmmFuncs);
      |                                ^~~~~~~
make[2]: *** [media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/build.make:8168: media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/ddi/media_libva.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:316: media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

Last edited by hazel; 02-25-2023 at 12:31 AM.
 
Old 02-25-2023, 01:29 AM   #37
babam
LQ Newbie
 
Registered: Aug 2021
Distribution: Porteus, ZorinOS
Posts: 29

Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
update: 59% and still building!

update: crashed at 68%!
The problem is in your system.

22.3.0 buildable on Slackware-15.0 (libva-2.13.0)
 
Old 02-25-2023, 01:36 AM   #38
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,651
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Must be something in my hardware then because I've got the right libva; I just checked.

Really I was just curious. I don't play games or watch videos so I don't actually need true hardware acceleration.
 
Old 02-25-2023, 06:50 AM   #39
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 239Reputation: 239Reputation: 239
Quote:
Originally Posted by hazel View Post
It's tmpfs so it should expand as required, shouldn't it?
Yes, but it can be restricted; at my end it's set to 6G in the /etc/fstab
Code:
tmpfs                   /tmp                             tmpfs       size=6G,mode=777 
                           0   0
Maybe I should increase it ;-)
 
Old 02-25-2023, 07:22 AM   #40
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 239Reputation: 239Reputation: 239
Quote:
Originally Posted by Aeterna View Post
3) never used brave
but I assume that
Code:
brave://flags
should work: search for specific options and enable what you want. Of course some options are specific for chrome only.
I would enable
you have it disabled (not possible to enable?)
Ha, never used "brave://flags"; Thanks. BTW, it was default; setting this to `enabled` does not, at least, change the 'Render/3D' levels
Quote:
Originally Posted by Aeterna View Post

4) GuC and HuC
Based on Intel info
/etc/modprobe.d/i915.conf
options i915 enable_guc=3
options i915 enable_fbc=1
should be set 0 (zero)
this means that GuC and HuC are not available for Kabylake

hope this helps
Yes thanks; I had set "enable_guc=0" but left "enable_fbc=1", which seems to work with the 7th generation chip (I called it wrongly to be 9th generation; wishful thinking, haha ;-).

Arch has a nice guide for intel-graphics: https://wiki.archlinux.org/title/Intel_graphics

This thread is very helpful; thanks again.

Last edited by brobr; 02-25-2023 at 07:25 AM.
 
Old 02-25-2023, 07:59 AM   #41
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,651
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Quote:
Originally Posted by brobr View Post
Yes, but it can be restricted; at my end it's set to 6G in the /etc/fstab
Code:
tmpfs                   /tmp                             tmpfs       size=6G,mode=777 
                           0   0
Maybe I should increase it ;-)
No, mine uses only the default options.

Just as an experiment I tried rebuilding the package with the -j1 make option. LFS recommends this as a thing to try when a multi-core build crashes. But it still crashed in the same place.

Last edited by hazel; 02-25-2023 at 08:03 AM.
 
Old 02-25-2023, 08:02 AM   #42
lancsuk
Member
 
Registered: Jul 2019
Location: Burnley / UK
Distribution: Slackware current
Posts: 226

Rep: Reputation: 204Reputation: 204Reputation: 204
@Aeterna I just was wondering if it works with a Kaby Lake / HD Graphics 620 as well?
 
Old 02-25-2023, 09:28 AM   #43
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,011

Original Poster
Rep: Reputation: Disabled
@brobr
Quote:
Yes thanks; I had set "enable_guc=0" but left "enable_fbc=1", which seems to work with the 7th generation chip (I called it wrongly to be 9th generation; wishful thinking, haha ;-).
Sorry, I meant
Quote:
enable_guc=0
only.
Interesting link thank you. Unfortunately I am unable to edit my first post anymore otherwise I would include it for more reading for Slackware intel video users.

@lancsuk
Regarding Kaby Lake settings listed work. For some differences consult @brobr posts. I think that only GuC/HuC will not work so set enable_guc=0

Regarding HD Graphics 620, I am not sure to what extend will work. Maybe try and report back
which tests succeeded. Start with Kaby Lake as "positive control"

Last edited by Aeterna; 02-25-2023 at 02:01 PM.
 
Old 02-25-2023, 07:41 PM   #44
lancsuk
Member
 
Registered: Jul 2019
Location: Burnley / UK
Distribution: Slackware current
Posts: 226

Rep: Reputation: 204Reputation: 204Reputation: 204
Lenovo Thinkpad T470 , Kaby Lake (i7-7500U) / HD Graphics 620
Slackware 15.0 with DWL / Wayland

lspci

Code:
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02) (prog-if 00 [VGA controller])
Subsystem: Lenovo HD Graphics 620
Flags: bus master, fast devsel, latency 0, IRQ 135
Memory at eb000000 (64-bit, non-prefetchable) [size=16M]
Memory at a0000000 (64-bit, prefetchable) [size=256M]
I/O ports at e000 [size=64]
Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
Capabilities: [40] Vendor Specific Information: Len=0c <?>
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [100] Process Address Space ID (PASID)
Capabilities: [200] Address Translation Service (ATS)
Capabilities: [300] Page Request Interface (PRI)
Kernel driver in use: i915
Kernel modules: i915
Code:
libva:			2.17.0
libva-utils:		2.17.0
intel-gmmlib:		22.3.4
intel-media-driver:	22.6.6
/etc/modprobe.d/i915.conf

Code:
options i915 enable_guc=0
options i915 enable_fbc=1
changed os wide

Code:
export LIBVA_DRIVER_NAME=iHD
export VDPAU_DRIVER=va_gl
export VAAPI_MPEG4_ENABLED=true
glxinfo | grep "direct rendering"

Code:
direct rendering: Yes
glxinfo | grep "profile version"

Code:
Max core profile version: 4.6
Max compat profile version: 3.0
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.2

OpenGL core profile version string: 4.6 (Core Profile) Mesa 21.3.5
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.3.5
eglinfo | grep version

Code:
EGL API version: 1.4
EGL version string: 1.4
EGL API version: 1.4
EGL version string: 1.4
EGL API version: 1.4
EGL version string: 1.4
Chrome-Browser

Code:
Graphics Feature Status
Canvas: Hardware accelerated
Canvas out-of-process rasterization: Disabled
Direct Rendering Display Compositor: Disabled
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
OpenGL: Enabled
Rasterization: Hardware accelerated
Raw Draw: Disabled
Video Decode: Hardware accelerated
Video Encode: Software only. Hardware acceleration disabled
Vulkan: Disabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
WebGPU: Disabled
I have no clue about intel_gpu_top ouput, but Video shows activities.
Attached Thumbnails
Click image for larger version

Name:	230226_01-06-18.jpg
Views:	46
Size:	169.8 KB
ID:	40528  
 
Old 02-25-2023, 08:51 PM   #45
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,011

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by lancsuk View Post
Lenovo Thinkpad T470 , Kaby Lake (i7-7500U) / HD Graphics 620
Slackware 15.0 with DWL / Wayland

lspci

Code:
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02) (prog-if 00 [VGA controller])
Subsystem: Lenovo HD Graphics 620
Flags: bus master, fast devsel, latency 0, IRQ 135
Memory at eb000000 (64-bit, non-prefetchable) [size=16M]
Memory at a0000000 (64-bit, prefetchable) [size=256M]
I/O ports at e000 [size=64]
Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
Capabilities: [40] Vendor Specific Information: Len=0c <?>
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [100] Process Address Space ID (PASID)
Capabilities: [200] Address Translation Service (ATS)
Capabilities: [300] Page Request Interface (PRI)
Kernel driver in use: i915
Kernel modules: i915
Code:
libva:			2.17.0
libva-utils:		2.17.0
intel-gmmlib:		22.3.4
intel-media-driver:	22.6.6
/etc/modprobe.d/i915.conf

Code:
options i915 enable_guc=0
options i915 enable_fbc=1
changed os wide

Code:
export LIBVA_DRIVER_NAME=iHD
export VDPAU_DRIVER=va_gl
export VAAPI_MPEG4_ENABLED=true
glxinfo | grep "direct rendering"

Code:
direct rendering: Yes
glxinfo | grep "profile version"

Code:
Max core profile version: 4.6
Max compat profile version: 3.0
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.2

OpenGL core profile version string: 4.6 (Core Profile) Mesa 21.3.5
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.3.5
eglinfo | grep version

Code:
EGL API version: 1.4
EGL version string: 1.4
EGL API version: 1.4
EGL version string: 1.4
EGL API version: 1.4
EGL version string: 1.4
Chrome-Browser

Code:
Graphics Feature Status
Canvas: Hardware accelerated
Canvas out-of-process rasterization: Disabled
Direct Rendering Display Compositor: Disabled
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
OpenGL: Enabled
Rasterization: Hardware accelerated
Raw Draw: Disabled
Video Decode: Hardware accelerated
Video Encode: Software only. Hardware acceleration disabled
Vulkan: Disabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
WebGPU: Disabled
I have no clue about intel_gpu_top ouput, but Video shows activities.
Great. You can enable Raw Draw and (Chrome) video encoding hardware accelerated
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hardware Acceleration - your system is currently running without video hardware acceleration Dunnyman Linux - Software 3 11-18-2020 02:43 PM
Render Acceleration on integrated intel video nyshtyak Linux - Hardware 2 11-10-2008 05:21 PM
Xorg 2D hardware acceleration for Intel 865G video card michal017 Linux - Software 9 01-16-2006 01:51 AM
Enabling Hardware Acceleration Support for Intel 82865 Integrated VGA saqib Linux - Hardware 1 09-20-2004 05:15 AM
Audigy Sound card and enabling 3D acceleration for GeoForce3 ti 500 heavyarmor4ever Linux - Newbie 1 01-03-2003 09:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration