Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mediaserver
envsetup
Commits
c505715a
Commit
c505715a
authored
6 years ago
by
Florent Thiery
Browse files
Options
Downloads
Patches
Plain Diff
start netcapture before enabling hw accel refs
#26945
parent
eb8bcdf5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
5.MediaServer/3.Deploy_demokit/0_setup.py
+11
-8
11 additions, 8 deletions
5.MediaServer/3.Deploy_demokit/0_setup.py
with
11 additions
and
8 deletions
5.MediaServer/3.Deploy_demokit/0_setup.py
+
11
−
8
View file @
c505715a
...
@@ -25,7 +25,16 @@ def setup(interactive=True):
...
@@ -25,7 +25,16 @@ def setup(interactive=True):
with
open
(
'
/etc/miris/netcapture.json
'
,
'
r
'
)
as
f
:
with
open
(
'
/etc/miris/netcapture.json
'
,
'
r
'
)
as
f
:
c
=
json
.
load
(
f
)
c
=
json
.
load
(
f
)
c
[
'
campusmanager_check_ssl
'
]
=
False
c
[
'
campusmanager_check_ssl
'
]
=
False
with
open
(
'
/etc/miris/netcapture.json
'
,
'
w
'
)
as
f
:
json
.
dump
(
c
,
f
)
cmds
.
append
(
'
rsync -r mirisconf/ /etc/miris/conf
'
)
# start netcapture without hw accel
if
subprocess
.
getstatusoutput
(
"
netcapturectl ls
"
)
!=
0
:
cmds
.
append
(
'
netcapturectl add
'
)
utils
.
run_commands
(
cmds
)
cmds
=
list
()
# try to enable hw accel if available
# try to enable hw accel if available
subprocess
.
getstatusoutput
(
"
apt install -y vainfo
"
)
subprocess
.
getstatusoutput
(
"
apt install -y vainfo
"
)
if
subprocess
.
getstatusoutput
(
"
vainfo
"
)[
0
]
==
0
:
if
subprocess
.
getstatusoutput
(
"
vainfo
"
)[
0
]
==
0
:
...
@@ -34,12 +43,6 @@ def setup(interactive=True):
...
@@ -34,12 +43,6 @@ def setup(interactive=True):
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
'
)
with
open
(
'
/etc/miris/netcapture.json
'
,
'
w
'
)
as
f
:
with
open
(
'
/etc/miris/netcapture.json
'
,
'
w
'
)
as
f
:
json
.
dump
(
c
,
f
)
json
.
dump
(
c
,
f
)
cmds
.
append
(
'
rsync -r mirisconf/ /etc/miris/conf
'
)
if
subprocess
.
getstatusoutput
(
"
netcapturectl ls
"
)
!=
0
:
cmds
.
append
(
'
netcapturectl add
'
)
utils
.
run_commands
(
cmds
)
utils
.
run_commands
(
cmds
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment