Skip to content

Commit 8c58212

Browse files
authored
Merge pull request DisplayLink#2 from mikethebos/patch-1
DKMS
2 parents f300143 + f08a8b9 commit 8c58212

2 files changed

Lines changed: 51 additions & 5 deletions

File tree

‎README.md‎

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,35 @@ Slow screen update rate is related to the slow texture copy in EVDI. The importe
1717

1818
How to use it.
1919
(make sure you know how to revert it in case it does not work)
20+
21+
### With DKMS version >= 2.8.2
22+
(Note: a distribution's dkms binary can be upgraded: https://github.com/dell/dkms/)
23+
24+
This will allow the EVDI module to be automatically built, signed (if using Secure Boot), and installed during kernel upgrades.
25+
2026
1. Install latest DisplayLink driver, get your DisplayLink screen to work (although with slow update rate)
2127
2. Clone this repo and checkout this branch: amd_vmap_texture
2228
3. copy files from module dir into /usr/src/evdi* (highest version) dir
2329
4. Run:
24-
sudo dkms uninstall evdi/version
25-
sudo dkms unbuild evdi/version
26-
sudo dkms build evdi/version
27-
sudo dkms install evdi/version
28-
30+
sudo dkms uninstall evdi/version
31+
sudo dkms unbuild evdi/version
32+
sudo dkms build evdi/version
33+
sudo dkms install evdi/version
2934
5. append "vmap_texture=1" to /etc/modprobe/evdi.conf (the content of the file should look like this "options evdi initial_device_count=4 vmap_texture=1")
3035
6. reboot.
3136

37+
A shell script to automate this process was contributed by dkebler and can be found as evdi-install.sh.
3238

39+
## With DKMS version < 2.8.2
40+
(Note: The EVDI module will need to be replaced after each kernel upgrade. If secure boot is enabled, the .ko file will need to be signed.)
41+
42+
1. Install latest DisplayLink driver, get your DisplayLink screen to work (although with slow update rate)
43+
2. Clone this repo and checkout this branch: amd_vmap_texture
44+
3. Build the kernel module (cd evdi/module, then make) If secure boot is enabled, sign evdi.ko now.
45+
4. sudo modinfo evdi (to get the location of the running kernel module)
46+
5. sudo cp ./evdi.ko (location from #4)
47+
6. append "vmap_texture=1" to /etc/modprobe/evdi.conf (the content of the file should look like this "options evdi initial_device_count=4 vmap_texture=1")
48+
7. reboot.
3349

3450
[![Build Status](https://travis-ci.org/DisplayLink/evdi.svg?branch=devel)](https://travis-ci.org/DisplayLink/evdi)
3551

‎evdi-install.sh‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
# remove default evdi module and build and install this fork
3+
# clone this https://github.com/pioto1225/evdi/tree/amd_vmap_texture
4+
# put this script in the parent directory of evdi
5+
echo "**** this script must be run from the parent of the the evdi repo ****"
6+
ls -la /usr/src | grep evdi
7+
echo enter the latest evdi driver version
8+
read version
9+
echo "***** moving /usr/src/evdi-$version to evdi-$version.original ****"
10+
sudo mv /usr/src/evdi-$version evdi-$version.original
11+
sudo chmod -R 0444 evdi-$version.original
12+
echo "***** copying sudo evdi/module to /usr/src/evdi-$version ****"
13+
sudo cp -R evdi/module /usr/src/evdi-$version
14+
echo "**** uninstalling module evdi version $version ****"
15+
sudo dkms uninstall evdi/$version
16+
echo "**** unbuilding module evdi version $version ****"
17+
sudo dkms unbuild evdi/$version
18+
echo "**** building module evdi version $version *****"
19+
sudo dkms build evdi/$version
20+
echo "**** installing module evdi version $version ****"
21+
sudo dkms install evdi/$version --force
22+
23+
LINE="vmap_texture=1"
24+
FILE="/etc/modprobe.d/evdi.conf"
25+
[[ $(cat $FILE | grep $LINE) ]] && exit 0
26+
sudo sed -i "s/$/$LINE/" "$FILE"
27+
echo "**** appended $LINE to $FILE ****"
28+
cat $FILE
29+
echo "**************"
30+
dkms status

0 commit comments

Comments
 (0)