Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use intel gpu for the client. #11478

Open
alexzk1 opened this issue Nov 17, 2024 · 4 comments
Open

How to use intel gpu for the client. #11478

alexzk1 opened this issue Nov 17, 2024 · 4 comments

Comments

@alexzk1
Copy link

alexzk1 commented Nov 17, 2024

Your system information

Steam Beta Branch: Steam Beta Update
Steam Version: 1731716808
Steam Client Build Date: Sat, Nov 16 00:15 UTC -08:00
Steam Web Build Date: Sat, Nov 16 02:11 UTC -08:00
Steam API Version: SteamClient021
Arch linux
GPU: Intel + NVIDIA

Not so long ago steam GUI client started to use NVIDIA gpu (which I see by hardware led ON). GPU intensive games start to lag 10-20 mins heavy.
Before that I had ALL GUI apps running on Intel and games only were using nvidia prime.
So question is how to revert this back and enforce this fancy store to use Intel GPU ?
I tried things like

PrefersNonDefaultGPU=false
X-KDE-RunOnDiscreteGpu=false

And it didn't work.
P.S. would be great if steam completely unloads it's GUI when game is started as I could do 2 years ago.

@alexzk1
Copy link
Author

alexzk1 commented Nov 17, 2024

This script releases nvidia GPU (led is immediately off):

NAME=steamwebhelper
HELPER=/home/alex/.local/share/Steam/ubuntu12_64/$NAME

chmod -x $HELPER
killall -9 $NAME

Reverse script turns it back on.
So it seems webhelper enumerates GPUs and keeps it ON. This is bad. Because it is extra electricity for nothing, if I forgot to turn off steam before sleep, it will be full game price during the 1 month.

@alexzk1
Copy link
Author

alexzk1 commented Nov 17, 2024

Probably we need more tests, but I just run "TESO" for a hour, usually it was stuttering in 20-30 mins last couple weeks. Once I killed steam by script above, all is perfect as it was before.
Please, revise how you use GPUs. It is critical on laptops and/or on GPUs with low memory like 4Gbs.

@alexzk1
Copy link
Author

alexzk1 commented Dec 9, 2024

So what I see here, GPU process
image
Opens files related to nvidia on sysfs:
image
And this powers ON dedicated card, which is bad for temperature, power consumption etc on laptop. Unacceptable to waste my resources in such way :/
Also I turned OFF ALL switches into "interface" settings.

@alexzk1
Copy link
Author

alexzk1 commented Dec 9, 2024

Update, fixed issue using chatGPT and apparmor, the rule is:

/home/alex/.local/share/Steam/ubuntu12_64/steamwebhelper {
    # Запрет на доступ ко всем устройствам NVIDIA
    deny /dev/nvidia0 rw,
    deny /dev/nvidiactl rw,
    deny /dev/nvidia-modeset rw,
    deny /dev/nvidia-uvm rw,
    deny /dev/nvidia-uvm-tools rw,
    deny /dev/nvidia-caps/* rw,

    # Разрешить всё остальное
    file,
    network,
    capability,
    signal peer=steam,
    signal peer=unconfined,
    signal peer=/home/alex/.local/share/Steam/ubuntu12_64/steamwebhelper,
}
  • Change path to what you have there in fact.
    ** Deny list in full you can get by doing ls -l /dev/nvid*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants