Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav
PortWINE
Commits
a28df74d
Unverified
Commit
a28df74d
authored
Aug 19, 2020
by
Castro-Fidel
Committed by
GitHub
Aug 19, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3 from andrey4korop/master
Add check optimus-manager
parents
23e8a179
04dcd480
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
runlib
data_from_portwine/scripts/runlib
+8
-2
No files found.
data_from_portwine/scripts/runlib
View file @
a28df74d
...
...
@@ -133,9 +133,15 @@ else
fi
########################################################################
export
optirun_on
=
export
check_optimus_manager
=
export
PW_NVIDIA
=
"
$(
lspci |
grep
NVIDIA
)
"
if
[
!
-z
"
${
PW_NVIDIA
}
"
]
;
then
if
[
-x
"
`
which primusrun 2>/dev/null
`
"
]
;
then
if
[
-x
"
`
which optimus-manager 2>/dev/null
`
"
]
;
then
export
check_optimus_manager
=
`
optimus-manager
--status
|
grep
Current |
cut
-f
2
-d
':'
|
sed
-e
's/^[[:space:]]*//'
`
fi
if
[
!
-z
"
${
PW_NVIDIA
}
"
]
&&
[
"
${
check_optimus_manager
}
"
!=
"intel"
]
;
then
if
[
"
${
check_optimus_manager
}
"
=
"nvidia"
]
;
then
export
VK_ICD_FILENAMES
=
/usr/share/vulkan/icd.d/nvidia_icd.json
elif
[
-x
"
`
which primusrun 2>/dev/null
`
"
]
;
then
export
optirun_on
=
"primusrun"
export
VK_ICD_FILENAMES
=
/usr/share/vulkan/icd.d/nvidia_icd.json
elif
[
-x
"
`
which optirun 2>/dev/null
`
"
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment