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
f68fead8
Commit
f68fead8
authored
Nov 05, 2021
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scripts version 2044
parent
a03a9bda
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
changelog
data_from_portwine/changelog
+3
-0
runlib
data_from_portwine/scripts/runlib
+12
-5
var
data_from_portwine/scripts/var
+1
-1
No files found.
data_from_portwine/changelog
View file @
f68fead8
...
...
@@ -7,6 +7,9 @@
* добавить проверку количества db файлов на один exe
* заниматься только развитием проекта за счет вашей подписки на https://boosty.to/portwine-linux.ru
-----------------------------------------
###Scripts version 2044###
* добавлена проверка для nvidia с нестандартными путями до nvidia_icd.json
###Scripts version 2043###
* улучшена работа функции использования гибридной графики intel + nvidia
...
...
data_from_portwine/scripts/runlib
View file @
f68fead8
...
...
@@ -204,22 +204,29 @@ start_portwine () {
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
check_vk_icd_file
()
{
if
[[
-f
"/usr/share/vulkan/icd.d/nvidia_icd.json"
]]
;
then
export
VK_ICD_FILENAMES
=
"/usr/share/vulkan/icd.d/nvidia_icd.json"
elif
[[
-f
"/etc/vulkan/icd.d/nvidia_icd.json"
]]
;
then
export
VK_ICD_FILENAMES
=
"/etc/vulkan/icd.d/nvidia_icd.json"
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
check_vk_icd_file
elif
[
-x
"
`
which primusrun 2>/dev/null
`
"
]
;
then
export
optirun_on
=
"primusrun"
export
VK_ICD_FILENAMES
=
/usr/share/vulkan/icd.d/nvidia_icd.json
check_vk_icd_file
elif
[
-x
"
`
which optirun 2>/dev/null
`
"
]
;
then
export
optirun_on
=
"optirun -b primus"
export
VK_ICD_FILENAMES
=
/usr/share/vulkan/icd.d/nvidia_icd.json
check_vk_icd_file
elif
[
-x
"
`
which prime-run 2>/dev/null
`
"
]
;
then
export
optirun_on
=
"prime-run"
export
VK_ICD_FILENAMES
=
/usr/share/vulkan/icd.d/nvidia_icd.json
check_vk_icd_file
elif
[[
-x
"
`
which nvidia-settings 2>/dev/null
`
"
]]
;
then
export
__NV_PRIME_RENDER_OFFLOAD
=
1
export
__GLX_VENDOR_LIBRARY_NAME
=
nvidia
export
VK_ICD_FILENAMES
=
/usr/share/vulkan/icd.d/nvidia_icd.json
check_vk_icd_file
fi
else
export
DRI_PRIME
=
1
...
...
data_from_portwine/scripts/var
View file @
f68fead8
#!/bin/bash
#Author: Castro-Fidel (PortWINE-Linux.ru)
#SCRIPTS_NEXT_VERSION=204
3
#SCRIPTS_NEXT_VERSION=204
4
#PORT_NEXT_VERSION=97
########################################################################
export
PW_MANGOHUD
=
0
...
...
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