Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

Commit b2f44f6

Browse files
Merge pull request #12 from OpenTabletDriver/linux-wiki-update
Update udev rule instructions in FAQ
2 parents f9ad65a + 5d71dda commit b2f44f6

1 file changed

Lines changed: 15 additions & 16 deletions

File tree

OpenTabletDriver.Web/Views/Wiki/FAQ/Linux.cshtml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<hr/>
3131

3232
<h3 class="wiki-nav-item pb-2" id="fail-device-streams">
33-
Failed to open device streams
33+
Failed to open device streams / ArgumentOutOfRangeException
3434
</h3>
3535
<div class="ms-3">
3636
<p>
@@ -44,22 +44,21 @@
4444
</codeblock>
4545
</p>
4646
<p>
47-
Otherwise, perform the following
47+
If this does not work, run the following commands
4848
</p>
49-
<ol>
50-
<li>
51-
Download the latest udev rules from the GitHub CI<br/>
52-
<small class="ms-3 text-muted">
53-
Note: You must be logged into GitHub to see these builds, otherwise you will get a 404.
54-
</small>
55-
</li>
56-
<li>
57-
Run the following commands, replacing <code class="bg-">&lt;file&gt;</code> with the extracted file
58-
<codeblock class="mt-2">
59-
sudo mv &lt;file&gt; /etc/udev/rules.d/99-opentabletdriver.rules
60-
</codeblock>
61-
</li>
62-
</ol>
49+
<codeblock class="mt-2" language="sh">
50+
# Clone the repository, change current directory to the repository
51+
git clone https://github.com/OpenTabletDriver/OpenTabletDriver.git
52+
cd ./OpenTabletDriver
53+
# Generate rules, moves them to the udev rules directory
54+
./generate-rules.sh
55+
sudo mv ./build/99-opentabletdriver.rules /etc/udev/rules.d/99-opentabletdriver.rules
56+
# Reload udev rules
57+
sudo udevadm control --reload-rules
58+
# Clean up leftovers
59+
cd ..
60+
rm -rf OpenTabletDriver
61+
</codeblock>
6362
</div>
6463

6564
<hr/>

0 commit comments

Comments
 (0)