Artix Linux Forum

Artix Linux => System => Topic started by: cat herders of linux on 22 June 2022, 19:52:24

Title: After installing steam i ran it from a terminal and noticed this error
Post by: cat herders of linux on 22 June 2022, 19:52:24
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0

and so upon researching it i found two revelant web pages

https://wiki.archlinux.org/title/intel_graphics#Enable_performance_support

https://www.reddit.com/r/Fedora/comments/v315xn/why_do_i_see_mesaintel_warning_performance/

i'm using mate with dinit and of course there is no such file as /etc/sysctl.conf.  i couldn't find a sysctl.conf anywhere on my system

how might i employ the above solution from the two web pages to my init system?

can i merely create the /etc/sysctl.conf file? OR do i create it in the /etc/sysctl.d directory?

Is
Code: [Select]
dev.i915.perf_stream_paranoid=0
  the only thing i need in sysctl.conf file?

after creating /etc/sysctl.d/sysctl.conf file do i just reboot?

Quote
i7-7700:[catherdersoflinux]:~/Desktop$ sudo sysctl -p /etc/sysctl.d/sysctl.conf
[sudo] password for catherdersoflinux:
dev.i915.perf_stream_paranoid = 0
i7-7700:[catherdersoflinux]:~/Desktop$

and after doing all that the error persists

but running
Code: [Select]
sudo sysctl dev.i915.perf_stream_paranoid=0
[sudo] password for catherdersoflinux:
dev.i915.perf_stream_paranoid = 0

before running steam seems to correct the problem.  how to run that at boot with sudo seems like a possible solution...
Title: Re: After installing steam i ran it from a terminal and noticed this error
Post by: Lancia on 22 June 2022, 20:31:42
I had the same problem on Arch.

I specifically tried setting it through sysctl.conf, didn't work, had to manually use sysctl command.

I think you can fix the issue by telling your init to run a script containing the sysctl command late in boot.
Title: Re: After installing steam i ran it from a terminal and noticed this error
Post by: cat herders of linux on 22 June 2022, 20:53:31
I had the same problem on Arch.

I specifically tried setting it through sysctl.conf, didn't work, had to manually use sysctl command.

I think you can fix the issue by telling your init to run a script containing the sysctl command late in boot.
something like this?

Create a file: /etc/rc.local

File contents:
Code: [Select]
#!/bin/sh -e
sysctl dev.i915.perf_stream_paranoid=0
exit 0
Save the file and make it executable with this command:
Code: [Select]
sudo chmod +x /etc/rc.local
The commands in the file before exit 0 will be run as root at startup.

from this web page found on search

https://askubuntu.com/questions/956237/run-terminal-sudo-command-at-startup
Title: Re: After installing steam i ran it from a terminal and noticed this error
Post by: cat herders of linux on 22 June 2022, 22:04:54
/etc/rc.local existsin my system.  edited it, added the 2 lines, and rebooted.  voila!  problem solved