Playing Guild Wars 2 on Linux - Performance optimizations and more. - Page 19 — Guild Wars 2 Forums
Home

Playing Guild Wars 2 on Linux - Performance optimizations and more.

1131415161719>

Comments

  • if you need the last fps, dont use a wm, just start an X session with GW2 as the only process.

  • Isnt it just better to run a VM for development and keep it clean on the Windows, and have GW2 there?

  • DStorm.1964DStorm.1964 Member
    edited July 22, 2020

    Good day everyone!
    @ZenAge.4863, At the moment, I have the game installed via Lutris, the latest stable wine is also installed, but when I try to run run_taco.sh, I face the following problem:

    What could be the problem, I could not find an unambiguous answer and solution on the wine forums, I would be grateful for any hint. In this case, all the necessary wine files are on the path / usr / bin / ...

  • Be warned that the latest stable Wine release doesn't have Esync or Fsync support, due to changes to ntoskrnl. They'll be reimplemented later.

  • @Hell Nirvana.9045 said:
    Be warned that the latest stable Wine release doesn't have Esync or Fsync support, due to changes to ntoskrnl. They'll be reimplemented later.

    I've been monitoring the situation on this, fortunately enough this game doesn't really benefit from bleeding edge Wine releases so it's ok to be a little behind with the version.

  • kanemi.4903kanemi.4903 Member ✭✭

    I'm playing with Lutris but my only issue for now is, if trying to change settings the game crash.
    But aside from that the game runs almost perfect ;)

  • ZenAge.4863ZenAge.4863 Member ✭✭

    @DStorm.1964 said:
    @ZenAge.4863, At the moment, I have the game installed via Lutris, the latest stable wine is also installed, but when I try to run run_taco.sh, I face the following problem:

    From the error, it cant find the wine binary. From your message, I assume you are not using the portable package and using Lutris's wine? If so then I guess that's where the Issue is, as I built that taco module for the portable package. Strange though that everything starts o.o

    Try the manual approach. Compton should already be installed, so Disable xfwm compositor -> run gw2, run taco, run compton, gw2 ontop. The instructions are in the video.

  • ysng.5890ysng.5890 Member
    edited July 29, 2020

    Is there any key differences between this post's script and Lutris's script?

  • kanemi.4903kanemi.4903 Member ✭✭

    @ysng.5890 said:
    Is there any key differences between this post's script and Lutris's script?

    Are they not the same script?

  • kanemi.4903kanemi.4903 Member ✭✭
    edited July 30, 2020

    Backup your /boot just in case
    sudo cp -r /boot ~/boot-backup

    Fsync on ArchLinux:
    git clone https://github.com/Frogging-Family/linux-tkg.git

    cd linux-tkg/linux58-rc-tkg

    makepkg -si

    You will be asked few things during the installation. If in doubt, just press enter, which will pick the default option. Just make sure to press y[enter] when asked about fsync. Kernel compilation time!

    After everything is done your new kernel is installed in /boot, however, grub is not updated, which means after reboot you will still boot into the old kernel.
    To fix that, run sudo:
    grub-mkconfig -o /boot/grub/grub.cfg

    If for some reason boot fails, go back to grub and select your old kernel.
    now reboot, after login confirm that you are running your custom kernel by typing uname -r for me it's 5.6.10-arch1-1-fsync notice fsync in the name.

  • ysng.5890ysng.5890 Member
    edited July 29, 2020

    @kanemi.4903 said:

    @ysng.5890 said:
    Is there any key differences between this post's script and Lutris's script?

    Are they not the same script?

    Oh ok, nvm just curious.

    I'm currently facing a problem where sometimes the game will freeze and I need to reboot the OS. It happened twice first on a medium size meta boss and second while I'm on roller beetle. Any clue of why this is happening? ulimit is already set to 1048576. Using arch, xfce4 with amd gpu.

  • kanemi.4903kanemi.4903 Member ✭✭

    @ysng.5890 said:

    @kanemi.4903 said:

    @ysng.5890 said:
    Is there any key differences between this post's script and Lutris's script?

    Are they not the same script?

    Oh ok, nvm just curious.

    I'm currently facing a problem where sometimes the game will freeze and I need to reboot the OS. It happened twice first on a medium size meta boss and second while I'm on roller beetle. Any clue of why this is happening? ulimit is already set to 1048576. Using arch, xfce4 with amd gpu.

    glxinfo | grep version
    pacman -Qs mesa
    pacman -Qs llvm

  • ysng.5890ysng.5890 Member
    edited July 30, 2020

    @kanemi.4903 said:

    @ysng.5890 said:

    @kanemi.4903 said:

    @ysng.5890 said:
    Is there any key differences between this post's script and Lutris's script?

    Are they not the same script?

    Oh ok, nvm just curious.

    I'm currently facing a problem where sometimes the game will freeze and I need to reboot the OS. It happened twice first on a medium size meta boss and second while I'm on roller beetle. Any clue of why this is happening? ulimit is already set to 1048576. Using arch, xfce4 with amd gpu.

    glxinfo | grep version
    pacman -Qs mesa
    pacman -Qs llvm

    https://pastebin.com/duvK3eEy

    Edit: Doing some searching and found that dynamic power management on amd hardware may cause freezes, will give it a try when I'm free. Any insights also welcomed!

  • kanemi.4903kanemi.4903 Member ✭✭
    edited July 30, 2020

    @ysng.5890 said:
    https://pastebin.com/duvK3eEy

    Edit: Doing some searching and found that dynamic power management on amd hardware may cause freezes, will give it a try when I'm free. Any insights also welcomed!

    Why you have installed?
    local/libva-mesa-driver 20.1.4-1
    VA-API implementation for gallium

    local/mesa-vdpau 20.1.4-1
    Mesa VDPAU drivers

    local/vulkan-mesa-layers 20.1.4-1
    Mesa's Vulkan layers

  • @kanemi.4903 said:

    @ysng.5890 said:
    https://pastebin.com/duvK3eEy

    Edit: Doing some searching and found that dynamic power management on amd hardware may cause freezes, will give it a try when I'm free. Any insights also welcomed!

    Why you have installed?
    local/libva-mesa-driver 20.1.4-1
    VA-API implementation for gallium

    local/mesa-vdpau 20.1.4-1
    Mesa VDPAU drivers

    local/vulkan-mesa-layers 20.1.4-1
    Mesa's Vulkan layers

    Hmm, I think past me just blindly followed the wiki and just install everything related to driver lol. I believe libva and vdpau is for amd video acceleration and tbh I don't remember why I have mesa layers...

  • ysng.5890ysng.5890 Member
    edited July 31, 2020

    Spot the error log with journalctl:
    Jul 31 22:28:22 kernel: [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] *ERROR* Waiting for fences timed out!
    Jul 31 22:28:22 kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout, but soft recovered

    Edit: Doing some searching and found that amdgpu.noretry=0 may fix it, will be trying it out.

  • Did everyone who tried to start TACO succeed?

  • Madara.7435Madara.7435 Member ✭✭

    hey guys maybe you can help me
    Playing on linux with the custom wine provided here works very well for me so far.
    my problem is as follows: I want to buy gems through the gemstore. so i select 800 gems for 10€ and set the payment method paysafecard (which i used to do in the past when i was playing on windows). for the transaction you get redirected to a paysafecard website, where you enter your code. for that usually your standard browser starts up, which in my case is not happening. obviously because im not on real windows... is there any way to fix this/make this work?
    I'm relatively new to the linux world, so I have to ask instead of fixing it myself

  • ZenAge.4863ZenAge.4863 Member ✭✭

    @DStorm.1964 said:
    Did everyone who tried to start TACO succeed?

    Did you read/respond to my response?

    @Madara.7435 said:
    my problem is as follows: I want to buy gems through the gemstore. so i select 800 gems for 10€ and set the payment method paysafecard (which i used to do in the past when i was playing on windows). for the transaction you get redirected to a paysafecard website, where you enter your code. for that usually your standard browser starts up, which in my case is not happening. obviously because im not on real windows... is there any way to fix this/make this work?

    By default some form of browser is set to open webpages/URLs, and almost all distros come with a basic browser. Have you tried installing firefox/setting it as default? Do you still not get redirected? Either your PC does not have a default browsers set (which is strange/unlikely) OR somehow running game through wine isnt responding to calls to open a webbrowser (then a wine issue), or it is actually a GW2 issue where you are simply not been given the option for opening a web browser to enter the code.

  • Skotlex.7580Skotlex.7580 Member ✭✭✭✭

    @Madara.7435 said:
    hey guys maybe you can help me
    Playing on linux with the custom wine provided here works very well for me so far.
    my problem is as follows: I want to buy gems through the gemstore. so i select 800 gems for 10€ and set the payment method paysafecard (which i used to do in the past when i was playing on windows). for the transaction you get redirected to a paysafecard website, where you enter your code. for that usually your standard browser starts up, which in my case is not happening. obviously because im not on real windows... is there any way to fix this/make this work?
    I'm relatively new to the linux world, so I have to ask instead of fixing it myself

    It's probably trying to open a browser from within wine, meaning it tries to open a browser made for windows, running under wine. Chances are you don't have a browser installed within your wine install. Can't gems be bought directly from ANet's website? That way you can avoid having to install a browser in wine.

    It's what I think is happening.

  • ArmoredVehicle.2849ArmoredVehicle.2849 Member ✭✭✭
    edited August 1, 2020

    @Madara.7435 said:
    hey guys maybe you can help me
    Playing on linux with the custom wine provided here works very well for me so far.
    my problem is as follows: I want to buy gems through the gemstore. so i select 800 gems for 10€ and set the payment method paysafecard (which i used to do in the past when i was playing on windows). for the transaction you get redirected to a paysafecard website, where you enter your code. for that usually your standard browser starts up, which in my case is not happening. obviously because im not on real windows... is there any way to fix this/make this work?
    I'm relatively new to the linux world, so I have to ask instead of fixing it myself

    I tried to replicate the issue on my end but it opens firefox just fine.

    Can anyone please test this too? Replicating it is easy (no actual credit card required):
    Press O > "buy gems" > choose amount and paysafe card and click next > another next > confirm > proceed to paysafe.

  • if your standard browser is chrome or chromium - there is an issue with the sandbox. You have to turn it off or it will just silently crash on start when called out of GW2.

    This started a couple of weeks ago. Don't know the reason.

  • @ArmoredVehicle.2849 said:
    Can anyone please test this too?

    I just tried it, it worked just fine. (I use firefox, and it is my default browser).
    CC: @Madara.7435

  • ArmoredVehicle.2849ArmoredVehicle.2849 Member ✭✭✭
    edited August 2, 2020

    @VAHNeunzehnsechundsiebzig.3618 said:
    if your standard browser is chrome or chromium - there is an issue with the sandbox. You have to turn it off or it will just silently crash on start when called out of GW2.

    This started a couple of weeks ago. Don't know the reason.

    I think I might be able to work around this issue by integrating a windows version of firefox into the package and set Wine to run that instead of attempting to run whatever browser the OS has installed. It's not pretty but may be a blanket solution.

    EDIT:
    Actually there might be a simpler and cleaner way. If you open a terminal and type in "xdg-open https://guildwars2.com", does it open the website in your native browser?

  • Astyrah.4015Astyrah.4015 Member ✭✭✭

    @ArmoredVehicle.2849 said:

    @Madara.7435 said:
    hey guys maybe you can help me
    Playing on linux with the custom wine provided here works very well for me so far.
    my problem is as follows: I want to buy gems through the gemstore. so i select 800 gems for 10€ and set the payment method paysafecard (which i used to do in the past when i was playing on windows). for the transaction you get redirected to a paysafecard website, where you enter your code. for that usually your standard browser starts up, which in my case is not happening. obviously because im not on real windows... is there any way to fix this/make this work?
    I'm relatively new to the linux world, so I have to ask instead of fixing it myself

    I tried to replicate the issue on my end but it opens firefox just fine.

    Can anyone please test this too? Replicating it is easy (no actual credit card required):

    Actually there might be a simpler and cleaner way. If you open a terminal and type in "xdg-open https://guildwars2.com", does it open the website in your native browser?

    works fine on my setup too. Falkon (my default browser, opens up properly using the gemstore paysafe or paypal option or via xdg-open url) -> playing GW2 on Lutris' wine 5.7 runner on Ubuntu 20.04 - 5.7.0-12.1-liquorix-amd64 kernel

  • Ooops.8694Ooops.8694 Member ✭✭

    @kanemi.4903 said:
    Backup your /boot just in case
    sudo cp -r /boot ~/boot-backup

    Fsync on ArchLinux:
    git clone https://github.com/Frogging-Family/linux-tkg.git

    cd linux-tkg/linux58-rc-tkg

    makepkg -si

    You will be asked few things during the installation. If in doubt, just press enter, which will pick the default option. Just make sure to press y[enter] when asked about fsync. Kernel compilation time!

    After everything is done your new kernel is installed in /boot, however, grub is not updated, which means after reboot you will still boot into the old kernel.
    To fix that, run sudo:
    grub-mkconfig -o /boot/grub/grub.cfg

    If for some reason boot fails, go back to grub and select your old kernel.
    now reboot, after login confirm that you are running your custom kernel by typing uname -r for me it's 5.6.10-arch1-1-fsync notice fsync in the name.

    for arch you can alternatively just install and use the linux-zen kernel.

  • Madara.7435Madara.7435 Member ✭✭

    hey guys! thanks for the quick answers. i tried some stuff.
    first of all, I am running the custom wine package provided in this thread, with the exact install method, on ubuntu 20.04. I use firefox as default browser and, even though i have some crazy addons, it usually does its job or notifies me if something went wrong. The issue is, as mentioned above, when i press on "proceed to paysafe" firefox does not open at all. if its already open, it does not create a new tab or anything...

    using xdg-open in terminal works just fine.
    I made myself a shortcut so i dont have to run the play.sh from terminal all the time, but right now i tried it because usually the terminal logs the complains. when i start the game it tells me it cant find some library (libncurses.so.5) but that has been the case ever since i installed the game, and it works just fine so thats not the issue. BUT when i try to "proceed to paysafe" or any other link of the gemstore (for example the privacy policy terms of sale you name it) it gives me an error message
    "XPCOMGlueLoad error for file /usr/lib/firefox/libmozgtk.so:
    libpng16.so.16: failed to map segment from shared object
    Couldn't load XPCOM."
    which sounds like he knows firefox is my standard browser and wants to open it, but somehow cant.
    any thoughts?

    first thing that comes to my mind, that could cause the issue here, is the standard apparmor profile for firefox (which i am using). tomorrow i will try again with apparmor turned off.

    thanks again for the help

  • @Madara.7435 said:
    hey guys! thanks for the quick answers. i tried some stuff.
    first of all, I am running the custom wine package provided in this thread, with the exact install method, on ubuntu 20.04. I use firefox as default browser and, even though i have some crazy addons, it usually does its job or notifies me if something went wrong. The issue is, as mentioned above, when i press on "proceed to paysafe" firefox does not open at all. if its already open, it does not create a new tab or anything...

    using xdg-open in terminal works just fine.
    I made myself a shortcut so i dont have to run the play.sh from terminal all the time, but right now i tried it because usually the terminal logs the complains. when i start the game it tells me it cant find some library (libncurses.so.5) but that has been the case ever since i installed the game, and it works just fine so thats not the issue. BUT when i try to "proceed to paysafe" or any other link of the gemstore (for example the privacy policy terms of sale you name it) it gives me an error message
    "XPCOMGlueLoad error for file /usr/lib/firefox/libmozgtk.so:
    libpng16.so.16: failed to map segment from shared object
    Couldn't load XPCOM."
    which sounds like he knows firefox is my standard browser and wants to open it, but somehow cant.
    any thoughts?

    first thing that comes to my mind, that could cause the issue here, is the standard apparmor profile for firefox (which i am using). tomorrow i will try again with apparmor turned off.

    thanks again for the help

    You can also check if libpng16 is installed in your system (I haven't installed Ubuntu in years so no idea if this comes out of the box or not).

  • Ooops.8694Ooops.8694 Member ✭✭
    edited August 2, 2020

    @Madara.7435 said:
    hey guys! thanks for the quick answers. i tried some stuff.
    first of all, I am running the custom wine package provided in this thread, with the exact install method, on ubuntu 20.04. I use firefox as default browser and, even though i have some crazy addons, it usually does its job or notifies me if something went wrong. The issue is, as mentioned above, when i press on "proceed to paysafe" firefox does not open at all. if its already open, it does not create a new tab or anything...

    using xdg-open in terminal works just fine.
    I made myself a shortcut so i dont have to run the play.sh from terminal all the time, but right now i tried it because usually the terminal logs the complains. when i start the game it tells me it cant find some library (libncurses.so.5) but that has been the case ever since i installed the game, and it works just fine so thats not the issue. BUT when i try to "proceed to paysafe" or any other link of the gemstore (for example the privacy policy terms of sale you name it) it gives me an error message
    "XPCOMGlueLoad error for file /usr/lib/firefox/libmozgtk.so:
    libpng16.so.16: failed to map segment from shared object
    Couldn't load XPCOM."
    which sounds like he knows firefox is my standard browser and wants to open it, but somehow cant.
    any thoughts?

    first thing that comes to my mind, that could cause the issue here, is the standard apparmor profile for firefox (which i am using). tomorrow i will try again with apparmor turned off.

    thanks again for the help

    Is firefox only failing to work in the store or is it a general problem?
    Does /wiki: inside the chat open up your browser window successfully?

    PS: I haven't run ubuntu/debian for years but i would expect them to use ncurses6 nowadays, so it could be a simple problem of a missing symlink to version 6.

  • Madara.7435Madara.7435 Member ✭✭

    so guys, problem solved!
    to answer your questions: I do have libpng16 installed, and yes ubuntu20.04 has ncurses6 as default. /wiki did not work either.
    I installed a neat little package called aa-notify. it interacts with apparmor and gives you a notification whenever apparmor is blocking something. and indeed, it was apparmor preventing firefox to be opened by the game. Which means yes, apparmor does its job - works as intended. So I temporarily set the firefox profile to complain and voila it worked. after that just put it back to enforce and gg.
    one could also add one or two rules to the apparmor profile so you dont have to turn it on and off every time you wanna buy gems, but as far as my experience with apparmor goes even if you add the proper rules it still doesnt work as you want it to most of the time lol.

    Long story short: anyone who uses apparmor and has a profile for firefox active should watch out for this.