Skip to content
Snippets Groups Projects
Commit f3a088c7 authored by Florent Thiery's avatar Florent Thiery
Browse files

only apply guc tweaks if needed

parent 3ef4bcb7
No related branches found
No related tags found
No related merge requests found
......@@ -41,9 +41,10 @@ def setup(interactive=True):
if subprocess.getstatusoutput("vainfo")[0] == 0:
# hw acceleration requires boot-time module options so a reboot will be needed
c['enable_hw_acceleration'] = True
cmds.append('echo "options i915 enable_guc_loading=1 enable_guc_submission=1" > /etc/modprobe.d/netcapture.conf')
cmds.append('update-initramfs -u')
print('A reboot is required')
if subprocess.getstatusoutput('dmesg | grep "Guc: Loaded"')[0] != 0:
cmds.append('echo "options i915 enable_guc_loading=1 enable_guc_submission=1" > /etc/modprobe.d/netcapture.conf')
cmds.append('update-initramfs -u')
print('A reboot is required')
with open('/etc/miris/netcapture.json', 'w') as f:
json.dump(c, f)
utils.run_commands(cmds)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment