Gaming on Linux - With WENDELL from Level1Techs!

Linus Tech Tips ·Linus Tech Tips ·2019-05-06 · 2,968 words · ~14 min read
Floatplane YouTube

Transcript

JSON SRT VTT 216
0:00 you're just putting the finishing touches on your brand new gaming rig
0:04 cables organized graphics card in
0:07 side panel on and you're about to get going fast
0:12 but then wait wha what is this
0:15 i'm sorry you need what no we'll just turn all this stuff off
0:20 here we go wait a minute
0:23 some of this stuff isn't even optional
0:27 and making matters worse this is just the
0:31 stuff that microsoft is telling us about
0:35 i mean all i wanted to do was get some frags
0:40 not join the freaking botnet
0:44 hey
0:48 i think i know something that might help with that oh my god wendell from level
0:51 one text how's it going what are you doing in my closet
0:56 it's a long story uh you know what no never mind since you're here can you help me with my sponsor spot no but i
1:01 can't help you fix your gaming problem okay well hey let's give it a shot
1:07 and while we're at it you know what else is worth a shot origin pc origin pc
1:12 offers beautiful custom desktops and laptops such as their evo 15s that
1:16 weighs only 4.3 pounds and is under an inch thick featuring smooth 144hz 1080p
1:22 or 4k displays and an NVIDIA GeForce gtx 1070 max q be sure to check them out at
1:27 the link below i don't know if i messed it up because i wasn't sure what i was
1:30 supposed to do so i went back in the closet no no that's fine
1:42 the last time i checked the graphics
1:45 driver in particular situation on Linux was abominable and when it comes to wine
1:51 i mean any newer titles pretty much anything requiring directx 10 or directx
1:56 11 was a total mess like has any of that changed actually uh
2:01 the everything you said was wrong what you're referring to is Linux is
2:05 actually gnu slash Linux or as i've recently taken to calling it gnu plus
2:09 Linux and the driver situation has improved dramatically
2:18 you know both AMD and NVIDIA have put a lot of work into their drivers AMD has
2:22 got a really amazing open source driver in the very latest Linux kernels and on
2:25 the wine side of things we've got dxvk which is a real-time directx translation
2:29 layer to vulkan so you can play games like the witcher 3.
2:33 in terms of performance vega 64 and a 1080 ti were competitive with one
2:38 another in some titles especially Linux titles Linux optimized titles natively
2:42 at the beginning of the year but NVIDIA driver updates and things like that have
2:46 led to other optimizations so it's leapfrog again and freesync is not quite
2:50 ready yet in the newer Linux kernels from AMD so that's still a little bit of
2:54 a problem with the very very bleeding edge kernels but the situation's really
2:58 changed and improved okay so
3:01 i have at it i'm i'm gonna let you drive because you're running an AMD graphics
3:05 card we're gonna update the Linux kernel to something a little newer than what
3:09 ubuntu supports by default now if you're running an NVIDIA graphics card you wouldn't need to do this but you would
3:13 definitely need to get the binary driver from NVIDIA in order to you know take
3:18 advantage of the latest and greatest uh running your 1080 or 1080 ti or whatever
3:22 recent graphics are so we get the ubuntu kernel upgrade utility
3:26 basically all we have to do is paste some stuff into the command line so with
3:30 the ubuntu kernel update utility installed yeah we can just do uku
3:35 and at the time of this video i think 4.7.5
3:39 4.17.5 is going to be the most recent version running 17.4 because we were
3:43 messing around with the system a little bit before but you just hit install
3:48 and you'll have to put in the password and this is going to go and get a newer
3:51 version of the kernel booting previous kernels blah blah blah
3:55 blah blah okay now at this point all we're going to do is reboot and it'll use the newer kernel by default
4:00 so by default we've got ubuntu but if we do advanced options we can see that
4:04 we've got all of our kernels so we started out on 4.15 and then we got 4.17
4:09 yep and now that we're on the newest kernel we need to update the other
4:13 the other sort of side of things the kernel gives us the driver but we also need mesa updates and that sort of thing
4:18 so there's another ppa for that which is an extension to ubuntu so we're gonna do
4:23 the same thing and add a repository which will give us mesa mesa and opengl
4:27 or sort of the other side of the graphics driver so like you need the bottom half for the hardware and the top
4:32 half for the software side of it for games with the ppa installed you can see that
4:36 there's a ton of stuff that's going to get updated so this is all stuff that
4:39 doesn't really matter for you Intel intelxserver.org
4:43 now you wouldn't need to do this if you were just going to run steam games
4:46 native steam games sure this is just for wine and dxvk and getting the bleeding
4:51 edge out of that so what's this we've got gallium 9 which
4:55 i'm not going to install because we we don't really need it per se but i'll
4:59 mention it because it will let you run directx 9 titles it's older it's not as
5:03 supported there are other options but this is the options that you have for
5:08 plugging stuff into wine so that you can get more functionality out of wine so we
5:11 should probably explain what wine is for the uninitiated wine is not an emulator
5:17 it's like an emulator but it's not an emulator and see wine stands for wine is
5:21 not an emulator see that's the joke and it's terrible
5:24 wine is a re-implementation of certain Windows apis to make
5:29 applications available on Linux and so
5:32 you can run a Windows application under Linux and the Windows application thinks
5:36 Windows is there but not all of Windows is there you know sometimes even Windows
5:39 owned utilities don't know that it's not Windows and so you can use that to run
5:43 some Windows games but not a lot and we've got lutress which will give us
5:47 runners a script for scripts for running games like the witcher 3. okay so
5:52 hopefully y'all have been keeping up if not don't worry we're going to have
5:57 links to all of these sources and also to wendell's forum
6:01 down in the video description so the worst is over it actually gets a lot
6:05 easier from here so easy that i could do it
6:09 definitely really really okay fine
6:13 okay let's just do this so we've got lutress all ready can you kind
6:18 of explain what lutetris does so
6:22 it's a lot to ask a user to manage all the different versions of wine and the
6:25 command line bs and i would agree that's not really the best user experience
6:29 right people have written scripts to make it easier because when you think
6:33 about the witcher 3 you can't just run the witcher 3 because
6:37 you probably also need steam and so but it's not the Linux version of steam you
6:40 need the Windows version of steam so that has to run underwine or some kind
6:44 of emulation layer as well so lutrus gives you a script you just hit an
6:48 install button on the webpage and some person has gone through the hell of
6:52 developing that before you hit install
6:56 was that a lewd scene oh never mind i thought that was a
7:01 raised rump okay you know what let's just
7:05 okay so continue install
7:10 this is so easy i can do it here we go so
7:13 our steam account is logging in and there it is and this is the Windows
7:16 version of steam Windows steam the only thing that doesn't work under wine is
7:20 the copy protection now witcher 3 works fine with copy protection right but
7:23 that's not true of every title like far cry 5 interesting
7:27 there it is okay witcher 3 wild hunt so i just click play let's hope
7:31 can i get a can i get a finger cross
7:37 hey there are a couple of bugs here and
7:40 there in the game but it's it's pretty much okay
7:43 it's rendering you know if i would have told you a year
7:47 ago that we could have real-time directx translation to vulcan you'd probably call me a crazy person hey why can't i
7:52 just go into the menu in the middle of a cutscene new modern game developers like holy
7:57 what's happened with games is that they've made far more
8:01 assumptions about the amount of [ __ ] time that i have like if my baby starts
8:04 crying i don't want to miss the cutscene i need to be able to pause
8:09 maybe gaming hasn't changed maybe it's me maybe i have a life so
8:13 this is really cool so it's a dp vk or
8:18 dxv dxvk just think directx to vulcan total game
8:22 changer Linux gaming is better than ever but like come on
8:26 how many times have we heard no no really really Linux gaming is better
8:30 than ever that's a fair point i mean if you need something right now and you
8:34 just don't want to think about it and you don't want to mess with the libraries you can run a full virtual
8:38 machine you can run a full Windows virtual machine and do all your gaming
8:42 that way can i ulta 4 out of a game
8:46 cool it actually closes a lot faster yeah
8:49 that's one thing that i've always loved about anything that's not Windows so why
8:53 don't you tell us about using a vm if you want to use a vm
8:57 you will need to pass through a second graphics card okay so do we have one we
9:01 do somewhere
9:05 so we'll need to shut this down because that's hot plug graphics cards it's not
9:08 a thing yet are you sure are you sure i'm not did you watch my
9:12 video no i didn't total madness there it is
9:15 there it is it's a thing if you've got it's a thing
9:19 no it's a thing it's finally becoming a thing because
9:23 laptop users need it not the enterprise which is funny oh we should probably get
9:26 the other monitor AMD and NVIDIA in the same system this is heresy
9:31 sorry you want the other one i'll grab it so then this is not that dissimilar to
9:36 what i've set up before with unraid so this is just red hat kvm yep running in
9:41 ubuntu yep and then we've got an extra SSD for Windows an extra graphics card
9:45 to pass through yup and an extra keyboard and mouse because
9:49 why not because why not okay so
9:52 what do we do we just boot up the virtual machine damn
9:56 the configuration we just set it up we do the i o mmu groups for pass through
10:00 and we tell it the graphics card we go into usb devices and find a keyboard and
10:04 mouse and map them and then we just let the machine boot up so this is it this
10:07 is just the full fat Windows experience
10:12 now overhead wise from what i've seen in the past we're looking
10:16 at anywhere from as little as two or three percent to as much as you know 10
10:21 or more in terms of a performance hit but
10:25 any is there anything else i should be aware of about running it this way it
10:28 shows up as an AMD epic processor just because
10:33 there is a performance in some scenarios but mostly it's okay some things are faster like super position
10:38 interesting now you got the NVIDIA drivers installed
10:42 uh in spite of the infamous code 43 error code 43 is a thing that shows up
10:47 when NVIDIA and video drivers detect they're running as a virtual machine so
10:50 you have to set a configuration option in the in the virtual machine on the
10:54 Linux side of things to hide the fact that the machine's virtualized and then code 43 goes away
10:59 right which is kind of annoying and silly right because they just want you to buy
11:03 a quadro or better right now it's also kind of annoying and silly
11:07 that this monitor that you could use for things other than gaming not on Windows
11:11 on Linux but you know it's not super convenient
11:14 so there's also looking glass one of our
11:17 forum members jeff at host vision he's put a lot of work into it i've put a lot
11:21 of work into it i think you may need to go run it
11:24 okay okay oh cool look at that how's the
11:27 latency oh not bad yeah this is a direct memory to memory
11:31 copy uh using the directx capture API so the same capture that you get so even
11:36 just then it was actually faster than your native monitor to handle the mode
11:39 switch interesting
11:42 and so this way you could run your Windows
11:46 vm with full hardware acceleration but as fast as we can copy the frames from
11:51 the guest to the host you can run it
11:54 and how do i make it full screen um
11:57 i think you didn't think of that yet no there's a guy there's a command line option for that
12:02 but first
12:05 damn it you guys
12:08 this is a bad guy oh look at that it is
12:11 and honestly like we don't know what we're doing as far as opengl programming
12:15 goes so if there's if there's any opengl programmers that want to contribute to
12:18 the project out there you are more than welcome it's open source it's on github
12:22 what more could you ask for uh full screen
12:25 uh that's a command line yeah i think i saw a hiccup there that
12:29 i'm not sure if i saw over on the other side either yeah there will be some it's
12:32 not perfect but we're getting there it's not bad for alpha software it's not bad
12:36 at all so there you have it i hope this was a fun and enlightening look at just
12:41 how far the humble penguin has come in the last couple of years guys we're
12:45 gonna have links to wendell's channel it's level one text we'll have that down below as well as their amazing looking
12:51 glass software and more information on how to get something like this running
12:55 for yourself but in the meantime just let us know in
12:58 the comments below if you're running something like this what
13:02 kind of challenges you've run into and if there's any other great educational
13:06 resources that you can provide for people who are into gaming on Linux
13:11 disclaimer though
13:14 the experience off-camera was not as
13:18 perfect and smooth as we you know made it out to be i mean fair
13:22 point you've been working on this for how long now quite a while to help us do
13:26 this video which by the way thank you so much happy to do it and uh the step by
13:31 step gotta have the guides that's pretty much it guys thanks for
13:34 watching unless unless you're a small business
13:38 owner or a freelancer in which case stick around because freshbooks has got
13:42 an offer for you their small business accounting software is custom built for
13:46 how you want to work it's a simple way to be more productive more organized and
13:50 to get paid faster you can create and
13:53 send professional looking invoices in less than 30 seconds you can set up
13:57 online payments with just a couple of clicks and get paid up to four days faster you can see when your client has
14:03 opened your invoice for the first time to put an end to the guessing games and
14:07 they've got the full experience available on the go for both iOS and
14:12 Android so for your unrestricted 30-day free trial go to freshbooks.com
14:16 tech tips and enter Linus tech tips in the how did you hear about us section
14:20 not tech tips like i said just now so thanks for watching guys if this video
14:24 sucked well you know where that button is but if it was awesome get subscribed hit that like button or check out the
14:28 link to where to buy the stuff it's all free free
14:33 at the link in the video description also down there is our merch store which has cool shirts like this one in our
14:37 community forum which you should totally join
14:42 and also level one texas forum you can join that too
14:45 it's all good we love you