NVidia KWin EGLStream Patching - Overclock.net - An Overclocking Community

Forum Jump: 

NVidia KWin EGLStream Patching

 
Thread Tools
post #1 of 8 (permalink) Old 02-15-2019, 05:39 AM - Thread Starter
New to Overclock.net
 
mouacyk's Avatar
 
Join Date: Jan 2013
Posts: 3,700
Rep: 162 (Unique: 122)
NVidia KWin EGLStream Patching

Anyone playing with this yet and got it to work with Plasma Wayland desktop?

https://www.reddit.com/r/kde/comment...tream_patches/

Gentoo64 in Water
(14 items)
LGA775 X5470
(6 items)
CPU
9900K 5GHz 1.224v
Motherboard
EVGA Z370 Micro
GPU
MSI 1080TI GXEK 2100.5/12627
RAM
16GB Trident Z 4000C16
Hard Drive
970 EVO 500GB
Power Supply
Seasonic X850 Gold
Cooling
480mm Radiator Custom
Case
Silverstone FT03
Operating System
Windows 7 Ultimate 64-bit
Operating System
Gentoo Linux 64 Multi-Lib
Monitor
Acer Predator XB271UH 165Hz
Keyboard
Logitech G710+
Mouse
Logitech G502
Audio
Sound Blaster Z
CPU
X5470 4GHz (stock v)
Motherboard
GA-EP45-UD3P
GPU
EVGA 9800 GTX+ 512MB
RAM
8GB 4x2GB GSkill 1066MHz DDR2
Cooling
XSPC Rasa, D5 + Res, 240mm Rad
Case
Lian-Li PC7-HX
▲ hide details ▲

Last edited by mouacyk; 02-15-2019 at 05:51 AM.
mouacyk is offline  
Sponsored Links
Advertisement
 
post #2 of 8 (permalink) Old 02-18-2019, 09:26 PM - Thread Starter
New to Overclock.net
 
mouacyk's Avatar
 
Join Date: Jan 2013
Posts: 3,700
Rep: 162 (Unique: 122)
Finally got it working. Had to install everything in /usr instead of /usr/local, otherwise the renderer was falling back to software and it was super slow.

I'm impressed by how snappy it is over OpenGL 3.1 compositing. X11 damage isn't perfect, input controls are a little slow to update. KWin window decorations are also missing.

CPU: Q6600 X5470 2100T 1680V2 9900K 5950HQ
GPU: 8800GT 9800GTX+ 750Ti 1080Ti
RAM: 2x8GBTZ
Gentoo64 in Water
(14 items)
LGA775 X5470
(6 items)
CPU
9900K 5GHz 1.224v
Motherboard
EVGA Z370 Micro
GPU
MSI 1080TI GXEK 2100.5/12627
RAM
16GB Trident Z 4000C16
Hard Drive
970 EVO 500GB
Power Supply
Seasonic X850 Gold
Cooling
480mm Radiator Custom
Case
Silverstone FT03
Operating System
Windows 7 Ultimate 64-bit
Operating System
Gentoo Linux 64 Multi-Lib
Monitor
Acer Predator XB271UH 165Hz
Keyboard
Logitech G710+
Mouse
Logitech G502
Audio
Sound Blaster Z
CPU
X5470 4GHz (stock v)
Motherboard
GA-EP45-UD3P
GPU
EVGA 9800 GTX+ 512MB
RAM
8GB 4x2GB GSkill 1066MHz DDR2
Cooling
XSPC Rasa, D5 + Res, 240mm Rad
Case
Lian-Li PC7-HX
▲ hide details ▲
mouacyk is offline  
post #3 of 8 (permalink) Old 02-18-2019, 10:49 PM
New to Overclock.net
 
fatalhalt's Avatar
 
Join Date: Jun 2015
Location: IL
Posts: 10
Rep: 1 (Unique: 1)
Quote: Originally Posted by mouacyk View Post
Finally got it working. Had to install everything in /usr instead of /usr/local, otherwise the renderer was falling back to software and it was super slow.

I'm impressed by how snappy it is over OpenGL 3.1 compositing. X11 damage isn't perfect, input controls are a little slow to update. KWin window decorations are also missing.
Hey man that's me on reddit who started the thread, I'm still stuck with software renderer. How and what did you exactly install to /usr?

AMD Opteron 146 | DFI LanParty UT nF4 SLI-DR | 2x512MB G.SKILL BH-5 2-0-0-0 3.3v | GeForce GTX 260 | OCZ PowerStream 520W | 2x320GB Seagate 7200.10 RAID0 | Linux 4.1
fatalhalt is offline  
Sponsored Links
Advertisement
 
post #4 of 8 (permalink) Old 02-19-2019, 06:29 AM - Thread Starter
New to Overclock.net
 
mouacyk's Avatar
 
Join Date: Jan 2013
Posts: 3,700
Rep: 162 (Unique: 122)
I installed the following into /usr prefix:

egl-wayland: run autogen.sh with --prefix=/usr
kwayland: during cmake, use -DCMAKE_INSTALL_PREFIX=/usr
kwin: during cmake, use -DCMAKE_INSTALL_PREFIX=/usr
eglexternalplatform: copy header files to /usr/include/EGL, pc file to /usr/share/pkgconfig

Additional issues observed:
copy-pase from/to terminals must be done explicitly -- middle-click doesn't work

CPU: Q6600 X5470 2100T 1680V2 9900K 5950HQ
GPU: 8800GT 9800GTX+ 750Ti 1080Ti
RAM: 2x8GBTZ
Gentoo64 in Water
(14 items)
LGA775 X5470
(6 items)
CPU
9900K 5GHz 1.224v
Motherboard
EVGA Z370 Micro
GPU
MSI 1080TI GXEK 2100.5/12627
RAM
16GB Trident Z 4000C16
Hard Drive
970 EVO 500GB
Power Supply
Seasonic X850 Gold
Cooling
480mm Radiator Custom
Case
Silverstone FT03
Operating System
Windows 7 Ultimate 64-bit
Operating System
Gentoo Linux 64 Multi-Lib
Monitor
Acer Predator XB271UH 165Hz
Keyboard
Logitech G710+
Mouse
Logitech G502
Audio
Sound Blaster Z
CPU
X5470 4GHz (stock v)
Motherboard
GA-EP45-UD3P
GPU
EVGA 9800 GTX+ 512MB
RAM
8GB 4x2GB GSkill 1066MHz DDR2
Cooling
XSPC Rasa, D5 + Res, 240mm Rad
Case
Lian-Li PC7-HX
▲ hide details ▲
mouacyk is offline  
post #5 of 8 (permalink) Old 02-21-2019, 05:56 PM - Thread Starter
New to Overclock.net
 
mouacyk's Avatar
 
Join Date: Jan 2013
Posts: 3,700
Rep: 162 (Unique: 122)
Needed to set additional cmake variables in order for kwin to compile:

v5.55.0 kwayland: during cmake, use -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_PREFIX_PATH=/usr
v5.15.0 kwin: during cmake, use -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_PREFIX_PATH=/usr

Also had to symlink /usr/bin/kwin_wayland to /usr/local/bin/kwin_wayland

I'm now on kwin-5.15.0 and kwayland-5.55.0 with window decorations working. I can now simply just select Plasma (Wayland) session and log in. Cursor motion occassionaly is a little janky. Unfortunately, any attempt to do a screen capture will crash plasma -- so no screenshot

Code:
         -/oyddmdhs+:.                [email protected]
     -odNMMMMMMMMNNmhy+-`             OS: Gentoo testing
   -yNMMMMMMMMMMMNNNmmdhy+-           Kernel: x86_64 Linux 4.20.1-gentoo
 `omMMMMMMMMMMMMNmdmmmmddhhy/`        Uptime: 20h 56m
 omMMMMMMMMMMMNhhyyyohmdddhhhdo`      Packages: 1431
.ydMMMMMMMMMMdhs++so/smdddhhhhdm+`    Shell: bash 5.0.2
 oyhdmNMMMMMMMNdyooydmddddhhhhyhNd.   Resolution: 2560x1440
  :oyhhdNNMMMMMMMNNNmmdddhhhhhyymMh   DE: KDE 5.55.0 / Plasma 5.15.0
    .:+sydNMMMMMNNNmmmdddhhhhhhmMmy   WM: KWin
       /mMMMMMMNNNmmmdddhhhhhmMNhs:   GTK Theme: oxygen-gtk [GTK2], Breeze-Dark [GTK3]
    `oNMMMMMMMNNNmmmddddhhdmMNhs+`    Icon Theme: breeze-dark
  `sNMMMMMMMMNNNmmmdddddmNMmhs/.      Font: Agency FB Regular
 /NMMMMMMMMNNNNmmmdddmNMNdso:`        CPU: Intel Core i9-9900K @ 16x 5GHz [27.8°C]
+MMMMMMMNNNNNmmmmdmNMNdso/-           GPU: GeForce GTX 1080 Ti
yMMNNNNNNNmmmmmNNMmhs+/-`             RAM: 1997MiB / 16090MiB
/hMMNNNNNNNNMNdhs++/-`               
`/ohdmmddhys+++/:.`                  
  `-//////:--.
Attached Thumbnails
Click image for larger version

Name:	20190221_200823.jpg
Views:	16
Size:	3.79 MB
ID:	254860  


CPU: Q6600 X5470 2100T 1680V2 9900K 5950HQ
GPU: 8800GT 9800GTX+ 750Ti 1080Ti
RAM: 2x8GBTZ
Gentoo64 in Water
(14 items)
LGA775 X5470
(6 items)
CPU
9900K 5GHz 1.224v
Motherboard
EVGA Z370 Micro
GPU
MSI 1080TI GXEK 2100.5/12627
RAM
16GB Trident Z 4000C16
Hard Drive
970 EVO 500GB
Power Supply
Seasonic X850 Gold
Cooling
480mm Radiator Custom
Case
Silverstone FT03
Operating System
Windows 7 Ultimate 64-bit
Operating System
Gentoo Linux 64 Multi-Lib
Monitor
Acer Predator XB271UH 165Hz
Keyboard
Logitech G710+
Mouse
Logitech G502
Audio
Sound Blaster Z
CPU
X5470 4GHz (stock v)
Motherboard
GA-EP45-UD3P
GPU
EVGA 9800 GTX+ 512MB
RAM
8GB 4x2GB GSkill 1066MHz DDR2
Cooling
XSPC Rasa, D5 + Res, 240mm Rad
Case
Lian-Li PC7-HX
▲ hide details ▲

Last edited by mouacyk; 02-21-2019 at 06:11 PM.
mouacyk is offline  
post #6 of 8 (permalink) Old 02-23-2019, 10:27 PM
New to Overclock.net
 
fatalhalt's Avatar
 
Join Date: Jun 2015
Location: IL
Posts: 10
Rep: 1 (Unique: 1)
@mou acy that's awesome you got it working on Gentoo, I got EGLStreams working too after reinstalling kwayland and kwin to /usr just like you! However on Kubuntu 18.10 I'm having issues starting using just startplasmacompositor helper script, basically anything that prompts XWayland or X to start along results in just me having blank screen with cursor (that I can move around, and it is smooth now). I can start standalone Kate, this is good news, EGLStreams confirmed working on GTX 980 here after nuking /usr/bin/kwin_x11 and starting without XWayland:
Code:
$ XDG_SESSION_TYPE=wayland dbus-run-session kwin_wayland --drm --libinput  --exit-with-session=/usr/bin/kate
Expierience is very good, I know it is just Kate running fullscreen, but it is butter smooth.
Attached Thumbnails
Click image for larger version

Name:	DSC_1056-RESIZED.JPG
Views:	8
Size:	44.9 KB
ID:	255400  


AMD Opteron 146 | DFI LanParty UT nF4 SLI-DR | 2x512MB G.SKILL BH-5 2-0-0-0 3.3v | GeForce GTX 260 | OCZ PowerStream 520W | 2x320GB Seagate 7200.10 RAID0 | Linux 4.1
fatalhalt is offline  
post #7 of 8 (permalink) Old 03-15-2019, 11:34 AM - Thread Starter
New to Overclock.net
 
mouacyk's Avatar
 
Join Date: Jan 2013
Posts: 3,700
Rep: 162 (Unique: 122)
The patches work great against qt overlay now, if you're on Gentoo (should work against main tree as well). Just install eglexternalplatform and egl-wayland manually to /usr. Create two user-patch directories for the appropriate versions of kwin and kwayland under /etc/portage/patches/ and download the patches into their respective folders. As of right now, kwayland-5.56.0 and kwin-5.15.3 will apply the latest patches cleanly and emerge successfully. It saves a few steps to have to patch, configure correctly, and install manually.

Once installed, just pick Plasma (Wayland) from the display manager greeter and the desktop will load using EGL on the binary blob. It'll be interesting to see how this is maintained at all levels -- on Gentoo, kwin might get a new eglstreams use flag.

CPU: Q6600 X5470 2100T 1680V2 9900K 5950HQ
GPU: 8800GT 9800GTX+ 750Ti 1080Ti
RAM: 2x8GBTZ
Gentoo64 in Water
(14 items)
LGA775 X5470
(6 items)
CPU
9900K 5GHz 1.224v
Motherboard
EVGA Z370 Micro
GPU
MSI 1080TI GXEK 2100.5/12627
RAM
16GB Trident Z 4000C16
Hard Drive
970 EVO 500GB
Power Supply
Seasonic X850 Gold
Cooling
480mm Radiator Custom
Case
Silverstone FT03
Operating System
Windows 7 Ultimate 64-bit
Operating System
Gentoo Linux 64 Multi-Lib
Monitor
Acer Predator XB271UH 165Hz
Keyboard
Logitech G710+
Mouse
Logitech G502
Audio
Sound Blaster Z
CPU
X5470 4GHz (stock v)
Motherboard
GA-EP45-UD3P
GPU
EVGA 9800 GTX+ 512MB
RAM
8GB 4x2GB GSkill 1066MHz DDR2
Cooling
XSPC Rasa, D5 + Res, 240mm Rad
Case
Lian-Li PC7-HX
▲ hide details ▲
mouacyk is offline  
post #8 of 8 (permalink) Old 03-19-2019, 08:45 PM - Thread Starter
New to Overclock.net
 
mouacyk's Avatar
 
Join Date: Jan 2013
Posts: 3,700
Rep: 162 (Unique: 122)
It looks like there is color banding in the screen locker screen.

CPU: Q6600 X5470 2100T 1680V2 9900K 5950HQ
GPU: 8800GT 9800GTX+ 750Ti 1080Ti
RAM: 2x8GBTZ
Gentoo64 in Water
(14 items)
LGA775 X5470
(6 items)
CPU
9900K 5GHz 1.224v
Motherboard
EVGA Z370 Micro
GPU
MSI 1080TI GXEK 2100.5/12627
RAM
16GB Trident Z 4000C16
Hard Drive
970 EVO 500GB
Power Supply
Seasonic X850 Gold
Cooling
480mm Radiator Custom
Case
Silverstone FT03
Operating System
Windows 7 Ultimate 64-bit
Operating System
Gentoo Linux 64 Multi-Lib
Monitor
Acer Predator XB271UH 165Hz
Keyboard
Logitech G710+
Mouse
Logitech G502
Audio
Sound Blaster Z
CPU
X5470 4GHz (stock v)
Motherboard
GA-EP45-UD3P
GPU
EVGA 9800 GTX+ 512MB
RAM
8GB 4x2GB GSkill 1066MHz DDR2
Cooling
XSPC Rasa, D5 + Res, 240mm Rad
Case
Lian-Li PC7-HX
▲ hide details ▲
mouacyk is offline  
Reply

Quick Reply
Message:
Options

Register Now

In order to be able to post messages on the Overclock.net - An Overclocking Community forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.
User Name:
If you do not want to register, fill this field only and the name will be used as user name for your post.
Password
Please enter a password for your user account. Note that passwords are case-sensitive.
Password:
Confirm Password:
Email Address
Please enter a valid email address for yourself.
Email Address:

Log-in



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page


Forum Jump: 

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off