Created
September 25, 2017 04:47
-
-
Save mvduin/cb4b99e3dff3cfb3ed772eaa47134660 to your computer and use it in GitHub Desktop.
sgx init
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/sgx-init.service | |
[Unit] | |
Description=Initialize SGX | |
BindsTo=dev-dri-sgx.device | |
After=dev-dri-sgx.device | |
RefuseManualStop=true | |
DefaultDependencies=no | |
[Service] | |
ExecStart=/usr/sbin/pvrsrvctl --start --no-module | |
Type=oneshot | |
RemainAfterExit=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/udev/rules.d/sgx.rules | |
SUBSYSTEM=="drm", KERNEL=="render*", DRIVERS=="pvrsrvkm", ACTION=="add", \ | |
SYMLINK+="dri/sgx", TAG+="systemd", ENV{SYSTEMD_ALIAS}+="/dev/dri/sgx" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment