1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.37 Bug Reporting thread
    Solutions and more information may already be available.

Linux Port – Feedback, Known Issues, and FAQ

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by Car_Killer, Jun 13, 2022.

  1. zachariah.74

    zachariah.74
    Expand Collapse

    Joined:
    Apr 10, 2022
    Messages:
    836
    It sounds really raw, digitised and like un-mixed compared to how I hear it
     
  2. wilkoklak

    wilkoklak
    Expand Collapse

    Joined:
    Sep 29, 2025
    Messages:
    3
    Yeah, sorry for mistake

    Exactly, I can even hear the pitch change going in "steps" rather than being smooth.

    It's better when using the orbit camera behind the car, but the closer to the engine, the worse it gets.
     
  3. nipsy

    nipsy
    Expand Collapse

    Joined:
    Sep 30, 2025
    Messages:
    1
    I figured as a new owner and NixOS user, I'd include a sort of minimal working configuration since I haven't seen anything else definitive in this thread in that regard. Apologies if this is a bad place to post this, but I figured it might be one of the first places people end up looking.

    I chose to use the nix-ld approach to get this running, and ended up with:

    Code:
      programs.nix-ld = {
        enable = true;
        libraries = [
          pkgs.alsa-lib
          pkgs.at-spi2-core
          pkgs.cairo
          pkgs.cups
          pkgs.dbus
          pkgs.fontconfig
          pkgs.freetype
          pkgs.glib
          pkgs.libgbm
          pkgs.libx11
          pkgs.libxcb
          pkgs.libxext
          pkgs.libxfixes
          pkgs.libxkbcommon
          pkgs.libxrandr
          pkgs.nspr
          pkgs.nss
          pkgs.pango
          pkgs.vulkan-loader
          pkgs.xorg.libXcomposite
          pkgs.xorg.libXdamage
        ];
      };
    
    And then it runs from the command line with:

    Code:
    SDL_VIDEODRIVER=x11 ~/.local/share/Steam/steamapps/common/BeamNG.drive/BinLinux/BeamNG.drive.x64
    I'm definitely open to suggestions though if there is a better way of doing this under NixOS. Already crashed my limo a few times!
     
    #1023 nipsy, Sep 30, 2025
    Last edited: Sep 30, 2025
  4. hhr2020

    hhr2020
    Expand Collapse

    Joined:
    Oct 2, 2025
    Messages:
    1
    I use nixos and nix-ld, too. But I can't get it running on kde plasma wayland with `SDL_VIDEODRIVER=wayland`. And it gives the output below.

    ```
    Shutdown handler: initialize.
    >>>> [CURRENT_CONFIGURATION=SHIPPING=BNG_SHIPPING] <<<<
    [2025-10-02 16:54:31.180] [error] [:-1] wayland not available
    Failed to init bngenv: Failed to init app instance framework
    Shutdown handler: cleanup.
    ```

    May I ask have you tried wayland and do you get the same error?
     
  5. justsam

    justsam
    Expand Collapse

    Joined:
    Oct 4, 2025
    Messages:
    1
    I've run into a rather dangerous (for both humans and FFB motors) situation when pausing the game during a challenge: The active constant force FFB effect will not be cancelled and so the last commanded motor torque will be sustained until either the player resumes, or exits the scenario, or if restarting the scenario effects are reinitialised. In the meantime the user will potentially have to resist the motor applying a lot of torque (especially a problem on high power wheelbases) otherwise the wheel will immediately and rapidly accelerate. High motor output sustained like this can be (nearly) impossible to hold with one hand for an extended duration (the other hand reached over to the keyboard to hit the escape key) and for extremely powerful wheelbases can cause injury to the hand/arm still on the wheel. If the user lets go in this situation the wheelbase will accelerate and now you have a wheel spinning at max RPM, another potentially injurious situation. This is also dangerous for wheelbase motors which may be producing output near their peak and way above their rated output which may cause overheating and damage to the coils or permanent magnets.

    This feels like a bug as pretty much every other game will cancel all FFB effects when in a pause menu state like this.

    Steps to reproduce
    1. Start any challenge scenario
    2. Start driving
    3. Hit the Escape key
    4. Feel the force



    Ideally this would be a separate post but the forum just merges consecutive posts together:

    @hhr2020 @nipsy

    On NixOS I have the following derivation which produces a wrapper script that I can use to start Beamng via my Steam library. Ensure the resulting script is on your PATH and then set the launch options line to:
    Code:
    launch-beamng %command
    
    It's also compatible with using other wrapper programs such as gamemoderun and mangohud:
    Code:
    launch-beamng gamemoderun mangohud %command%
    
    Code:
    { pkgs, ... }:
    let
      libraryPath = pkgs.lib.makeLibraryPath [
        pkgs.fontconfig
        pkgs.freetype
        pkgs.glib
        pkgs.nss
        pkgs.nspr
        pkgs.dbus
        pkgs.atk
        pkgs.cups
        pkgs.libdrm
        pkgs.xorg.libX11
        pkgs.xorg.libXcomposite
        pkgs.xorg.libXdamage
        pkgs.xorg.libXext
        pkgs.xorg.libXfixes
        pkgs.xorg.libXrandr
        pkgs.libgbm
        pkgs.xorg.libxcb
        pkgs.libxkbcommon
        pkgs.pango
        pkgs.cairo
        pkgs.alsa-lib
    
        pkgs.vulkan-loader
        pkgs.libglvnd
      ];
    in
    pkgs.writeScriptBin "launch-beamng" ''
      #!/usr/bin/env ${pkgs.lib.getExe pkgs.bash}
    
      set -euo pipefail
    
      export LD_LIBRARY_PATH="${libraryPath}:$LD_LIBRARY_PATH"
    
      cmd=$(printf '%s ' "$@")
      cmd=$(sed -E 's#/[^ ]*/steam-launch-wrapper -- .* ([^ ]*/proton waitforexitandrun)##' <<< "$cmd")
      cmd=$(sed -E 's#BeamNG\.drive\.exe#BinLinux/BeamNG.drive.x64#' <<< "$cmd")
    
      $cmd
    ''
    
     
    #1025 justsam, Oct 4, 2025
    Last edited: Oct 4, 2025
  6. Bad Caxeira

    Bad Caxeira
    Expand Collapse

    Joined:
    Feb 1, 2024
    Messages:
    83
    I'm having an issue that manifested out of nowhere, after smooth playing for days. Here's the log, I hope it helps. Attached is a screenshot depicting what happens.

    Error is triggered by me making any change to a vehicle. Any. Even license plates design triggers it. Car keeps floating above the ground and locks up completely, no ignition, no horn, no lights, no nothing. I can spawn another car and drive it fine, until I try to modify it also, then the same thing happens, but there's a 50/50 change the second car's meshes get absolutely messed up. Can't remove any car, and more inputs crash the game, complete with the crash report window.

    Specs attached in my fastfetch screencap. Running the binary via Steam with these launch properties: mangohud SDL_VIDEODRIVER=wayland ./BinLinux/BeamNG.drive.x64 %command%

    What I tried:
    • Clearing cache (by deleting "temp" folder): Error persists.
    • Renaming mod folder so no mod loads: No error.
    • Launching the binary in safe mode: No error.
    Haven't tried the Proton version though.

    UPDATE & SOLVED (?): I deleted the latest mods I've downloaded: Isola Rocciosa and Tyres Thermal and Wear. Error stopped.
     

    Attached Files:

    #1026 Bad Caxeira, Oct 4, 2025
    Last edited: Oct 4, 2025
  7. stenyak

    stenyak
    Expand Collapse
    Programmer
    BeamNG Team

    Joined:
    Aug 6, 2012
    Messages:
    2,068
    This seems to be a linux-specific bug of our SDL input backend, we're looking into it. Thanks for reporting!
     
    • Like Like x 1
    • Agree Agree x 1
  8. pawelek von sttetin

    pawelek von sttetin
    Expand Collapse

    Joined:
    Sep 14, 2025
    Messages:
    11
    in case u experience random performance lags liek 1-2 second slowdowns once per while do a
    Code:
    taskset 0xfff0
    before game executable
    it will make game not use core 1-4 that is shared between ui and background apps by default on linux
     
  9. Technological

    Technological
    Expand Collapse

    Joined:
    Dec 28, 2022
    Messages:
    537
    Thanks for fixing the dpad on Logitech wheels!
     
    • Like Like x 1
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice