Try a Esync Lutris Wine build in place of your current Wine Staging installation in /opt
Download one of the esync tar.gz files from Lutris, (https://lutris.net/files/runners ) then rename the folder inside it to “wine-staging” after extracting it. Rename your current installation to “wine-staging-old” and copy the esync build you downloaded to /opt
Then use the recommended Esync file limits as per the instructions here:
Then, make sure your CPU governor is set to performance
So before, in Ubuntu 16.04 and below, /etc/init.d/ondemand was responsible for changing the CPU frequency to “ondemand” which caused issues while gaming with the processor downclocking. This is why Feral Interactive created Linux “GameMode” which sets the frequency governor to “performance”
Trouble is, the fix is extremely simple… Just change echo -n ondemand > $CPUFREQ to echo -n performance > $CPUFREQ
Ubuntu 18.04 relocated this script to instead of being in /etc/init.d/ondemand to instead be a script that is called upon by a ondemand.service in /lib/systemd/set-cpufreq
A glance at /lib/systemd/set-cpufreq makes it look practically identical to the previous /etc/init.d/ondemand!
How do we set the CPU Governor to “performance?”
Starting from Line 37:
echo "Setting $GOVERNOR scheduler for all CPUs"
for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
do
[ -f $CPUFREQ ] || continue
echo -n $GOVERNOR > $CPUFREQ
done
...
Change to
echo "Setting performance scheduler for all CPUs"
for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
do
[ -f $CPUFREQ ] || continue
echo -n performance > $CPUFREQ
done
...
Save the file and reboot. That’s literally it. Don’t change anything before line 37 and past done. The file you have might have different indentation than the example I gave so this is only for reference. DON’T COPY AND PASTE THE EXAMPLE.
Once again, modify /lib/systemd/set-cpufreq to change the governor in 18.04.
(Those that saw this early, Tab spaces don’t work on this forum…)
1 Like