Gaming on Endeavour OS

hello all,
first, I want to say that I think this is question that I am not sure which category to put it so I added it here
more than a year ago, I switched to Endeavour from manjaro (it was not a pleasant experience there…)
during that time I migrated to another Laptop for several reasons
about a month or more ago my M.2 NVMe SSD died without a warning, a warning would be nice because I would have back-upped my files, it was a patriot-branded one so I discorage everyone from even thinking of buying it
anyway, during that year with the old SSD, I made a perfect OS for gaming, and was in the process of building an efficient solution for backup, thing is that I remember 60% of the things I did
I bought a new SSD and installed Endeavour but I never got it to work like previously
I followed most of the guides here for gaming but I always had issues
I used ChatGPT during all this time but it obviously is taking me for a ride in wheels
fastfetch:

                     ./o.                   bargo@mohamed-aorus15xe5
                   ./sssso-                 ------------------------
                 `:osssssss+-               OS: EndeavourOS x86_64
               `:+sssssssssso/.             Host: AORUS 15 XE5
             `-/ossssssssssssso/.           Kernel: Linux 6.12.1-zen1-1-zen
           `-/+sssssssssssssssso+:`         Uptime: 2 days, 19 hours, 3 mins
         `-:/+sssssssssssssssssso+/.        Packages: 1485 (pacman)
       `.://osssssssssssssssssssso++-       Shell: bash 5.2.37
      .://+ssssssssssssssssssssssso++:      Display (CMN152A): 2560x1440 @ 165 Hz in 16" [Built-in]
    .:///ossssssssssssssssssssssssso++:     DE: KDE Plasma 6.2.4
  `:////ssssssssssssssssssssssssssso+++.    WM: KWin (Wayland)
`-////+ssssssssssssssssssssssssssso++++-    WM Theme: Breeze
 `..-+oosssssssssssssssssssssssso+++++/`    Theme: Breeze (Dark) [Qt], Breeze-Dark [GTK2], Breeze [GTK3]
   ./++++++++++++++++++++++++++++++/:.      Icons: breeze-dark [Qt], breeze-dark [GTK2/3/4]
  `:::::::::::::::::::::::::------``        Font: Noto Sans (10pt) [Qt], Noto Sans (10pt) [GTK2/3/4]
                                            Cursor: breeze (24px)
                                            Terminal: konsole 24.8.3
                                            CPU: 12th Gen Intel(R) Core(TM) i7-12700H (20) @ 4.70 GHz
                                            GPU 1: NVIDIA Geforce RTX 3070 Ti Laptop GPU
                                            GPU 2: Intel Iris Xe Graphics @ 1.40 GHz [Integrated]
                                            Memory: 6.48 GiB / 31.01 GiB (21%)
                                            Swap: 2.81 GiB / 194.07 GiB (1%)
                                            Disk (/): 675.80 GiB / 1.83 TiB (36%) - btrfs
                                            Disk (/mnt/C): 642.36 GiB / 862.26 GiB (74%) - ext4
                                            Disk (/mnt/E): 403.75 GiB / 747.66 GiB (54%) - ext4
                                            Disk (/mnt/F): 3.06 TiB / 3.58 TiB (86%) - ext4
                                            Disk (/mnt/G): 3.11 TiB / 3.58 TiB (87%) - ext4
                                            Disk (/mnt/H): 3.25 TiB / 3.58 TiB (91%) - ext4
                                            Local IP (wlan0): 192.168.1.166/24
                                            Battery (Aorus 15): 95% [AC Connected]
                                            Locale: en_US.UTF-8

inxi -b:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = (unset),
        LC_CTYPE = (unset),
        LC_NUMERIC = "en_GB.UTF-8",
        LC_COLLATE = (unset),
        LC_TIME = "en_US.UTF-8",
        LC_MESSAGES = (unset),
        LC_MONETARY = "fr_TN.UTF-8",
        LC_ADDRESS = "en_GB.UTF-8",
        LC_IDENTIFICATION = "en_GB.UTF-8",
        LC_MEASUREMENT = "fr_FR.UTF-8",
        LC_PAPER = "en_GB.UTF-8",
        LC_TELEPHONE = "en_GB.UTF-8",
        LC_NAME = "en_GB.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
System:
  Host: mohamed-aorus15xe5 Kernel: 6.12.1-zen1-1-zen arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.2.4 Distro: EndeavourOS
Machine:
  Type: Laptop System: GIGABYTE product: AORUS 15 XE5 v: N/A
    serial: <superuser required>
  Mobo: GIGABYTE model: AORUS 15 XE5 v: WIN11 serial: <superuser required>
    UEFI: American Megatrends LLC. v: FB09 date: 12/27/2022
Battery:
  ID-1: BAT1 charge: 94.1 Wh (95.1%) condition: 99.0/99.0 Wh (100.0%)
CPU:
  Info: 14-core (6-mt/8-st) 12th Gen Intel Core i7-12700H [MST AMCP]
    speed (MHz): avg: 400 min/max: 400/4600:4700:3500
Graphics:
  Device-1: Intel Alder Lake-P GT2 [Iris Xe Graphics] driver: i915 v: kernel
  Device-2: NVIDIA GA104 [Geforce RTX 3070 Ti Laptop GPU] driver: nvidia
    v: 565.57.01
  Device-3: Goodong USB Camera driver: uvcvideo type: USB
  Display: wayland server: X.org v: 1.21.1.14 with: Xwayland v: 24.1.4
    compositor: kwin_wayland driver: X: loaded: modesetting,nvidia dri: iris
    gpu: i915,nvidia resolution: 2560x1440
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 24.2.7-arch1.1
    renderer: Mesa Intel Graphics (ADL GT2)
Network:
  Device-1: Intel Wi-Fi 6E AX210/AX1675 2x2 [Typhoon Peak] driver: iwlwifi
  Device-2: Realtek RTL8125 2.5GbE driver: r8169
Drives:
  Local Storage: total: 15.49 TiB used: 11.11 TiB (71.7%)
Info:
  Memory: total: 32 GiB note: est. available: 31.01 GiB used: 6.54 GiB (21.1%)
  Processes: 459 Uptime: 2d 19h 4m Shell: Bash inxi: 3.3.36

my initial analysis is that I have an Nvidia driver problem, it is odd because I used nvidia-inst
what drove me to that conclusion is that I have dxvk & vulkan problems, I tried to install Project Celeste but ran into many problems related to WINE, DXVK and VULKAN, I finally got it to work but after disabling VK3D3 and DXVK
please can you assist me? thank you in advance

need any help with something else? you did fix the issue ig

hello,
I literally just posted this issue so no, I did not fix it

Currently your system is rendering using the Intel GPU. How are you switching to use the Nvidia?

I can’t help with the locale issue. I hope someone else here can help out, since it goes over my head a bit.

I can help out with setting up your Nvidia drivers, however, which should help with your issues with Project Celeste without disabling things. It will be nice to know what is going on. Since you have a gaming laptop, first call of action will be to see if you have any drivers installed. Can you send over the output of pacman -Qs nvidia?

I don’t, previously it made the change automatically

Of course
here’s the output

sudo pacman -Qs nvidia
[sudo] password for bargo: 
local/cuda 12.6.3-1
    NVIDIA's GPU programming toolkit
local/egl-gbm 1.1.2-1
    The GBM EGL external platform library
local/egl-wayland 4:1.1.16-1
    EGLStream-based Wayland external platform
local/gamescope-nvidia 3.15.14-1
    SteamOS session compositing window manager (NVIDIA patch)
local/lib32-libvdpau 1.5-3
    Nvidia VDPAU library
local/lib32-nvidia-utils 565.57.01-1
    NVIDIA drivers utilities (32-bit)
local/libvdpau 1.5-3
    Nvidia VDPAU library
local/libxnvctrl 565.57.01-1
    NVIDIA NV-CONTROL X extension
local/nvidia-dkms 565.57.01-2
    NVIDIA kernel modules - module sources
local/nvidia-hook 1.5.1-1
    pacman hook for nvidia
local/nvidia-inst 24.10.2-2
    Script to install/uninstall nvidia driver packages in EndeavourOS
local/nvidia-settings 565.57.01-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 565.57.01-2
    NVIDIA drivers utilities
local/opencl-nvidia 565.57.01-2
    OpenCL implemention for NVIDIA

Hmm… it seems that the driver is installed. Not sure why it acts this way with Project Celeste.

1 Like

hello,
I tried https://github.com/dglt1/optimus-switch-sddm
https://discovery.endeavouros.com/nvidia/optimus-switch-another-solution-for-optimus-laptops/2021/04/
do you recommend it?

Not sure i understand but what i think you are saying is you never used nvidia by switching? If optimus-manager doesn’t work for you then you could try envycontrol. Gaming isn’t going to work very well using the Intel Gpu.

Edit: Or as @winnyace has said use Prime Render Offload

1 Like

I personally use PRIME Render Offload, which is the official way you are meant to switch between GPUs.

3 Likes

EnvyControlQT said that I am at hybrid mode, I guess I need to switch to Nvidia
Prime Offload Render is mostly a CLI manipulation, that requires that I have free time for a good concentration, I just rarely find the time to watch movies & series, that’s why I have a heap of them stored since 2021

hello
after days of trying to make it work, EnvyControl-QT is showing Nvidia and SUPERGFX shows Hybrid but the inxi -b always show Mesa (Intel):

System:
  Host: mohamed-aorus15xe5 Kernel: 6.12.1-zen1-1-zen arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.2.4 Distro: EndeavourOS
Machine:
  Type: Laptop System: GIGABYTE product: AORUS 15 XE5 v: N/A
    serial: <superuser required>
  Mobo: GIGABYTE model: AORUS 15 XE5 v: WIN11 serial: <superuser required>
    UEFI: American Megatrends LLC. v: FB09 date: 12/27/2022
Battery:
  ID-1: BAT1 charge: 95.3 Wh (96.3%) condition: 99.0/99.0 Wh (100.0%)
CPU:
  Info: 14-core (6-mt/8-st) 12th Gen Intel Core i7-12700H [MST AMCP]
    speed (MHz): avg: 400 min/max: 400/4600:4700:3500
Graphics:
  Device-1: Intel Alder Lake-P GT2 [Iris Xe Graphics] driver: i915 v: kernel
  Device-2: NVIDIA GA104 [Geforce RTX 3070 Ti Laptop GPU] driver: nvidia
    v: 565.57.01
  Device-3: Goodong USB Camera driver: uvcvideo type: USB
  Display: wayland server: X.org v: 1.21.1.14 with: Xwayland v: 24.1.4
    compositor: kwin_wayland driver: X: loaded: modesetting,nvidia dri: iris
    gpu: i915,nvidia resolution: 2560x1440
  API: OpenGL v: 4.6.0 compat-v: 4.6 vendor: intel mesa v: 24.3.1-arch1.1
    renderer: Mesa Intel Iris Xe Graphics (ADL GT2)
Network:
  Device-1: Intel Wi-Fi 6E AX210/AX1675 2x2 [Typhoon Peak] driver: iwlwifi
  Device-2: Realtek RTL8125 2.5GbE driver: r8169
Drives:
  Local Storage: total: 18.26 TiB used: 10.62 TiB (58.2%)
Info:
  Memory: total: 32 GiB note: est. available: 31.01 GiB used: 7.07 GiB (22.8%)
  Processes: 451 Uptime: 1d 4h 43m Shell: Bash inxi: 3.3.36

a help please?

I know this may be the last option, but have you considered setting Nvidia as the only GPU in use from BIOS-settings?

I had some weird issues with my hybrid gaming laptop considering integrated AMD-graphics and had to resort to this. Downside of course is, that battery-life is shorter, but it would not be long anyways.

Manjaro used to be more pleasant, I switched too, also about a year ago from Manjaro.

I still think Manjaro is fine, but ultimately suboptimal, especially for people who use mesa in any way.

You can in fact get warnings about imminent drive failures with SMART, look it up, linux has some utilities to check it.

I used ChatGPT during all this time but it obviously is taking me for a ride in wheels

There’s your mistake, the deep learning ai chatbots like chatgpt cannot be trusted to consistently provide accurate information, they’re extremely unreliable.

Use the arch wiki instead, it’s got all the answers you could opssibly want.

Edit:
Your problems sound like they’re with the nvidia gpu indeed btw, you’re on the right track with that, disabling vkd3d and dxvk probably used wined3d or whatever instead, which uses opengl.

Now you’re on a laptop, and by default for nvidia hybrid laptops, the nvidia gpu gets used for any vulkan applications, and your igpu gets used for everything else. It’s a bit of a mess, you can use prime-run to run opengl applications on the nvidia gpu as well on a per application basis.

So if you were having problems until you disabled dxvk and wined3d, then you have a problem related to either vulkan or nvidia.

A combination of mangohud, vkcube and glxgears would be a good start to dig a bit deeper to find when exactly the problem occurs.

followed by glxinfo and/or vulkaninfo to get even more information about that.

1 Like

At least it shows the driver for the RTX 3070 Ti being recognized by the system.
And it’s good that you’re using the proprietary drivers in this case, as at least for the Aorus 17 XE4 there are issues with the open drivers, wake-from-suspend is affected. But no further hints beside than that.

Could you provide the output of inxi -Ga ? The entries for EGL as well as the Vulkan API aren’t listed in output you’ve provided earlier. But according to the output of pacman -Qs nvidia one week ago, at least egl-wayland is installed on your system. I can’t tell if you even have the vulkan-icd-loader package (and [lib32-vulkan-icd-loader](https://archlinux.org/packages/?name=lib32-vulkan-icd-loader for 32 bit applications) currently installed on your system.

The vulkan icd loader is for mesa, e.g. his igpu.

ls /usr/share/vulkan/icd.d/ should contain nvidia_icd.json to point towards the nvidia vulkan driver.

He never said if he tried to install it via steam. Or if he went the alternative route without using steam, but the lutris installer. In short, without steam, it’s dependencies won’t be installed (and the vulkan-icd-loader as well as the lib32) might be missing.

1 Like

yes, I used Lutris

Graphics:
  Device-1: Intel Alder Lake-P GT2 [Iris Xe Graphics] vendor: Gigabyte
    driver: i915 v: kernel alternate: xe arch: Gen-12.2 process: Intel 10nm
    built: 2021-22+ ports: active: eDP-2 empty: DP-2, DP-3, DP-4, DP-5
    bus-ID: 00:02.0 chip-ID: 8086:46a6 class-ID: 0300
  Device-2: NVIDIA GA104 [Geforce RTX 3070 Ti Laptop GPU] vendor: Gigabyte
    driver: nvidia v: 565.77 alternate: nouveau,nvidia_drm non-free: 550.xx+
    status: current (as of 2024-09; EOL~2026-12-xx) arch: Ampere code: GAxxx
    process: TSMC n7 (7nm) built: 2020-2023 pcie: gen: 1 speed: 2.5 GT/s
    lanes: 8 link-max: gen: 4 speed: 16 GT/s lanes: 16 ports: active: none
    empty: DP-1,HDMI-A-1,eDP-1 bus-ID: 01:00.0 chip-ID: 10de:24a0
    class-ID: 0300
  Device-3: Goodong USB Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-9:8 chip-ID: 3252:0004
    class-ID: fe01 serial: 200901010001
  Display: wayland server: X.org v: 1.21.1.14 with: Xwayland v: 24.1.4
    compositor: kwin_wayland driver: X: loaded: modesetting,nvidia dri: iris
    gpu: i915,nvidia display-ID: 0
  Monitor-1: eDP-2 res: 2560x1440 size: N/A modes: N/A
  API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
    drv: nvidia gbm: drv: nvidia surfaceless: drv: nvidia wayland: drv: iris
    x11: drv: iris
  API: OpenGL v: 4.6.0 compat-v: 4.6 vendor: intel mesa v: 24.3.1-arch1.2
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel Iris Xe Graphics (ADL
    GT2) device-ID: 8086:46a6 memory: 15.14 GiB unified: yes display-ID: :1.0
  API: Vulkan v: 1.4.303 layers: 11 device: 0 type: discrete-gpu name: NVIDIA
    GeForce RTX 3070 Ti Laptop GPU driver: N/A device-ID: 10de:24a0
    surfaces: xcb,xlib,wayland device: 1 type: discrete-gpu name: NVIDIA
    GeForce RTX 3070 Ti Laptop GPU driver: N/A device-ID: 10de:24a0
    surfaces: xcb,xlib,wayland