1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

DXVK Guide

Discussion in 'PlayOnLinux' started by booman, Jul 12, 2018 at 5:05 PM.

  1. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    7,068
    Likes Received:
    475
    Trophy Points:
    83
    Location:
    Linux, Arizona
    Home page:
    This guide will walk you through setting up Nvidia drivers, Wine versions and DXVK version for Direct X 11 games in PlayOnLinux

    1. Install Nvidia 396.24.02

    Use the Driver Manager or Additional Drivers (Mint/Ubuntu) to install Nvidia 396.24.02 drivers
    Reboot

    If you don't see 396 then you may have to enter this PPA:

    Open Terminal
    Run command
    Code:
    sudo add-apt-repository ppa:graphics-drivers/ppa
    Refresh Driver Manager
    Check Nvidia 396
    Reboot

    2. Install Vulkan Linux Libraries

    Launch Terminal
    Run the following commands:
    Code:
    sudo apt-get install libvulkan1 libvulkan1:i386
    Press Enter
    Reboot

    3. Vulkan Install Check
    Verify that Linux Vulkan is installed with the following command:
    Code:
    vulkaninfo
    Press Enter

    Note: Will also show you Vulkan version

    4. Install Wine 3.12-staging or newer
    https://lutris.net/files/runners/

    Download: wine-staging-3.12-x86_64.tar.gz
    Extract to Wine 64-bit directory:
    /home/username/.PlayOnLinux/Wine/Linux-AMD64/

    6. 64-bit Virtual Drive
    Create a 64-bit Virtual Drive through Manual Installation in PlayOnLinux

    7. DXVK Installer (DLLs & Registry Entries)

    Go to: https://github.com/doitsujin/dxvk/releases
    Download dxvk 0.60
    Extract to your desktop

    Note: Newest versions are only compatible with beta versions of Nvidia drivers

    8. Copy/Paste DLLs

    Copy the 32-bit or 64-bit (d3d11.dll dxgi.dll) into the game directory where the game executable is run.
    • If the game is 64-bit, copy the 64-bit dlls
    • If the game is 32-bit copy the 32-bit dlls
    or Place 64-bit DLL in:
    /home/username/.PlayOnLinux/wineprefix/game/c_drive/Windows/System32

    or Place 32-bit DLL
    /home/username/.PlayOnLinux/wineprefix/game/c_drive/Windows/syswow64

    Note: d3d11 and dxgi already existing?
    Overwrite them!


    9. Wine 3.5 Overrides

    1. PlayOnLinux Configure
    2. Select your Virtual Drive
    3. Wine Tab
    4. Configure Wine
    5. Libraries Tab
    6. Add the following overrides
      d3d11
      dxgi
    7. Change them from (native,builtin) to (native)
      d3d11 (native)
      dxgi (native)

    10. Enable DXVK HUD

    PlayOnLinux Configure
    Miscellanous Tab
    Command to execute before running program
    Enter this Command: export DXVK_HUD=devinfo,fps

    Note: Turn off DXVK HUD by removing the command

    Close Configure

    11. Run Game

    If you see Vulkan info like FPS and Nvidia information
    Its working!

    Some games are still not 100% functional and still may not run properly. DXVK is releasing updates on a regular basis, but you may have to install the newest versions of Nvidia and Wine staging.
    Other games like Fallout 4 still have bugs and do not run without patched versions of Wine.
    Last edited: Jul 13, 2018 at 10:18 PM
    batmanm0b1e likes this.
  2. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    7,068
    Likes Received:
    475
    Trophy Points:
    83
    Location:
    Linux, Arizona
    Home page:
    One way to avoid all of these steps for multiple games is setting up everything in a generic Virtual Drive
    /home/username/.PlayOnLinux/wineprefix/

    Name a Virtual Drive: masterdrive

    Then when you want to test a game with DXVK you just copy the folder and rename it.
    This new Virtual Drive will show up in PlayOnLinux Configure

    This way Wine 3.12 Staging, DXVK is already installed and setup.
    You can now install the game from the Miscellaneous Tab and create shortcuts with the General Tab.
  3. batmanm0b1e

    batmanm0b1e Member

    Joined:
    Feb 12, 2018
    Messages:
    93
    Likes Received:
    8
    Trophy Points:
    8
    I'm lost on this part? what folders do you mean

    (Then when you want to test a game with DXVK you just copy the folder and rename it.)
  4. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    7,068
    Likes Received:
    475
    Trophy Points:
    83
    Location:
    Linux, Arizona
    Home page:
    Go your your .PlayOnLinux directory in your home.
    Open Wineprefix and you will see all of your Virtual Drives.

    What you can do is setup a "generic" Virtual Drive with no games installed, but have all the basic packages, DXVK and Wine setup. So all you do later on is copy the "generic" folder and rename it.
    Then install your game.
    This way you don't have to do it over and over and over again.
    batmanm0b1e likes this.
  5. batmanm0b1e

    batmanm0b1e Member

    Joined:
    Feb 12, 2018
    Messages:
    93
    Likes Received:
    8
    Trophy Points:
    8
    Aaah now i get it :)

    so i'm just making VD and installing the necessary DXVK stuff and then copying the folder somewhere. So then don't have to do these step millions of times. Great idea booman:)
  6. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    7,068
    Likes Received:
    475
    Trophy Points:
    83
    Location:
    Linux, Arizona
    Home page:
    Yup, you can leave it in /home/batman/.PlayOnLinux/wineprefix directory if you want.
    I have one called: masterprefix

Share This Page