Integrated GPU in Steam Game

Hello, im completely new into CachyOS from using Windows 11. Previously on windows when i play War Thunder at low setting i managed to get stable 60fps. But at CachyOS using GPU Benchmark it recommend minimal setting and in matches i got 30-50fps. So i think the laptop is using integrated so i follow the guide about dual gpu laptop and using prime. But nothing changed. I looked for more infos and try using nvidia-smi in terminal but it says “NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.” I already try reinstall the driver, asking AI for help and it still not worked. Anyone help is appreciated

What’s your NVIDIA Gpu model? What’s the output of:
pacman -Q | grep -E "nvidia|^linux"

Its Nvidia MX230 and as the output:
❯ pacman -Q | grep -E “nvidia|^linux”
lib32-nvidia-580xx-utils 580.159.03-1
lib32-opencl-nvidia-580xx 580.159.03-1
libva-nvidia-driver 0.0.17-1.1
linux-api-headers 1:7.0-1
linux-cachyos 7.0.10-2
linux-cachyos-headers 7.0.10-2
linux-cachyos-lts 6.18.33-2
linux-cachyos-lts-headers 6.18.33-2
linux-firmware 1:20260519-1
linux-firmware-amdgpu 1:20260519-1
linux-firmware-atheros 1:20260519-1
linux-firmware-broadcom 1:20260519-1
linux-firmware-cirrus 1:20260519-1
linux-firmware-intel 1:20260519-1
linux-firmware-mediatek 1:20260519-1
linux-firmware-nvidia 1:20260519-1
linux-firmware-other 1:20260519-1
linux-firmware-radeon 1:20260519-1
linux-firmware-realtek 1:20260519-1
linux-firmware-whence 1:20260519-1
nvidia-580xx-dkms 580.159.03-2
nvidia-580xx-settings 580.159.03-1
nvidia-580xx-utils 580.159.03-2
nvidia-prime 1.0-6
opencl-nvidia-580xx 580.159.03-2

If Secure Boot is enabled on your system, you need to disable it. After that reinstall the nvidia-580xx-dkms package: sudo pacman -S nvidia-580xx-dkms

If that does not help, post sudo cachyos-bugreport.sh

Im pretty sure never reenable secure boot when installing CachyOS, so Secure Boot is disabled. But after reinstalling dkms package is still not working.
For the bug report, heres the link 7808ece

try with this Cachy GNOME Tweaks - A Modular Performance

Why would that be helpful?

In what particular way?

Even assuming it is desirable at all - is it not for GNOME when this user is on KDE PLasma?

It actually works now. I just added KDE Plasma support a moment ago, precisely to make the performance tweaks environment-agnostic.

Regarding the user’s issue: the tool includes configurations that help force the dedicated Nvidia GPU on hybrid setups

Give it a try, and if you run into any errors, let me know and I’ll fix them right away.

I see that it claims to bundle some supergfxctrl and asusctrl things.
(supergfxctrl is discontinued by the way)

But those kinds of utilities are already available without that extra utility.

And we still do not know what OPs real issue actually is.

( For example we do not know how they have attempted any switching .. if at all. Its entirely possible they are already trying to use something like supergfxctrl but its failing. Or conversely they simply havent tried at all and need only use prime-run, etc. )

I do not know that its necessary to immediately go searching for some excess tool.

And doing so may further muddle the as-yet-still unclear situation.


PS.

So I guess “cachy-gnome-tweaks” is no longer Gnome?

In general the ‘tweaks’ line might be avoided because other things already use it .. especially in the context of gnome (gnome-tweaks). But if its actually not gnome-specific then it probably should not include that in its naming either.

Yeah, I originally built this to optimize my own setup which runs on GNOME, but the installer underneath is completely modular. You don’t have to install the whole thing, just what you actually need, and I just added some specific checks for KDE. The idea is just to share my configuration in case it helps someone else. :smiley:

My own laptop is a bit older, and I honestly didn’t know supergfxctrl was discontinued since I’m still using it. If you have any suggestions for a more modern alternative I might have missed, I’d be happy to look into it and add it. Cheers!

Semi recent semi related ..

envycontrol was one of the ones recommended for a bit but it is abandoned now.

All of that seems to leave us with switcheroo-control but it does not seem to have any available taskbat widgets/plugins that I could find.

nvidia 0000:02:00.0: Unable to change power state from D3cold to D0, device inaccessible
NVRM: fallen off the bus and is not responding to commands.

It seems like some poor Acer BIOS/firmware ACPI bs so i would suggest trying:

  1. In your kernel cmdline i see: pcie_port_pm=offmight be worth trying to remove that.
  2. If that doens’t help, maybe add pcie_aspm=offinstead.
  3. Maybe try to boot with acpi_osi=! acpi_osi='Windows 2009'Instead of Windows 2009 it could be something else like 2015 etc (you can extract this values from your BIOS ACPI table:
    sudo strings '/sys/firmware/acpi/tables/DSDT' | grep -i 'windows ' | sort
  4. Maybe unplug the laptop battery and CMOS battery to force full BIOS reset.

Oh, got it. Thanks for the heads-up on envycontrol and switcheroo-control. I’ll definitely look into how to implement a cleaner, more updated solution for GPU switching based on that, especially now that I’m expanding support for other environments. Appreciate the feedback!

Regarding the script, the section that handles the Nvidia setup is designed to be completely hassle-free. It should technically work on any Arch-based system since it relies on pacman and standard logic, though I’ve tailored it for CachyOS to take advantage of its specific kernels and repos.

I’ve been using it on my own machine and it’s been working flawlessly for me. :D. Cheers!

check this GitHub - esfingex/envytweaks · GitHub XD

Well, after trying number 1 to 3, nvidia-smi still cant communicate with nvidia driver, so to say nothing worked. For number 4, kinda need technician to dissamble my laptop i guess, but anyway thanks for the help

send me error log

❯ nvidia-smi
NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

❯ prime-run glxinfo | grep “OpenGL renderer”
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 150 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 67
Current serial number in output stream: 68

im pretty sure already installed the drivers and yet this happened

Regenerate the initramfs to ensure the Nvidia modules are included in the boot image: sudo mkinitcpio -P
Force DKMS to rebuild the Nvidia modules for your current kernel: sudo dkms autoinstall
Reboot your system.

If nvidia-smi still fails after the reboot, check lsmod | grep nvidia to see if the modules are being blocked by something, or share the output of dbus-run-session cachyos-bugreport.sh so we can look at the Xorg/Wayland logs.

After reboot, nvidia-smi still fails, lsmod | grep nvidia is empty.
Here’s the link for the output 271be41

ok, I see

Create a configuration file for the Nvidia driver: sudo nano /etc/modprobe.d/nvidia-power.conf

paste in file NVreg_DynamicPowerManagement=0x01

save

sudo mkinitcpio -P

Reboot your system.