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

only apply guc tweaks if needed (fix)

parent f3a088c7
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ def setup(interactive=True): ...@@ -41,7 +41,7 @@ def setup(interactive=True):
if subprocess.getstatusoutput("vainfo")[0] == 0: if subprocess.getstatusoutput("vainfo")[0] == 0:
# hw acceleration requires boot-time module options so a reboot will be needed # hw acceleration requires boot-time module options so a reboot will be needed
c['enable_hw_acceleration'] = True c['enable_hw_acceleration'] = True
if subprocess.getstatusoutput('dmesg | grep "Guc: Loaded"')[0] != 0: 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('echo "options i915 enable_guc_loading=1 enable_guc_submission=1" > /etc/modprobe.d/netcapture.conf')
cmds.append('update-initramfs -u') cmds.append('update-initramfs -u')
print('A reboot is required') print('A reboot is required')
......
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