Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nvidia-patch
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
nvidia-patch
Commits
7b2e145e
Commit
7b2e145e
authored
Jan 05, 2019
by
Vladislav Yarmak
Committed by
GitHub
Jan 05, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #24 from Snawoot/readme_revamp
revamp docs and help
parents
4805641d
ee66288b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
10 deletions
+38
-10
README.md
README.md
+35
-8
patch.sh
patch.sh
+3
-2
No files found.
README.md
View file @
7b2e145e
...
...
@@ -23,12 +23,33 @@ Requirements:
Tested on Ubuntu 18.04 LTS (GNU/Linux 4.15.0-23-generic x86
\_
64)
## step-by-step :
## Synopsis
```
# bash ./patch.sh -h
SYNOPSIS
patch.sh [OPTION]...
DESCRIPTION
The patch for Nvidia drivers to increase encoder sessions
-s Silent mode (No output)
-r Rollback to original (Restore lib from backup)
-h Print this help message
```
## Step-by-Step guide
Examples are provided for driver version 410.78. All commands are runned as root.
### Download driver
[
https://download.nvidia.com/XFree86/Linux-x86\_64/410.78/NVIDIA-Linux-x86\_64-410.78.run
](
https://download.nvidia.com/XFree86/Linux-x86_64/410.78/NVIDIA-Linux-x86_64-410.78.run
)
### Install driver (410.78)
### Install driver
```
bash
mkdir
/opt/nvidia
&&
cd
/opt/nvidia
wget https://download.nvidia.com/XFree86/Linux-x86_64/410.78/NVIDIA-Linux-x86_64-410.78.run
...
...
@@ -37,21 +58,27 @@ chmod +x ./NVIDIA-Linux-x86_64-410.78.run
```
### Check driver
```
bash
nvidia-smi
```
### Patch libnvidia-encode.so (with backup)
Output should show no errors and details about your driver and GPU.
### Patch driver
This patch performs backup of original file prior to making changes.
```
bash
bash ./patch.sh
```
### Silent patch libnvidia-encode.so
```
bash
bash ./patch.sh
-s
```
You're all set!
## Rollback
If something got broken you may restore patched driver from backup:
### Rollback libnvidia-encode.so (restore from backup)
```
bash
bash ./patch.sh
-r
```
...
...
patch.sh
View file @
7b2e145e
...
...
@@ -12,15 +12,16 @@ SYNOPSIS
patch.sh [OPTION]...
DESCRIPTION
The patch for
libnvidia-encode
to increase encoder sessions
The patch for
Nvidia drivers
to increase encoder sessions
-s Silent mode (No output)
-r Rollback to original (Restore lib from backup)
-h Print this help message
'
}
while
getopts
'rs'
flag
;
do
while
getopts
'rs
h
'
flag
;
do
case
"
${
flag
}
"
in
r
)
rollback_flag
=
'true'
;;
s
)
silent_flag
=
'true'
;;
...
...
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