1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/env python
#
## System76, Inc.
## Copyright System76, Inc.
## Released under the GNU General Public License (See LICENSE)
## Install uvc camera driver
import os
DRIVERDIR = os.path.join(os.path.dirname(__file__), 'uvc')
def camera():
# Make and Install Driver
os.chdir(DRIVERDIR)
os.system("sudo make")
os.system("sudo make install")
def quirks():
# adds quirks=2 when uvcvideo module loads
os.system("sudo rm /etc/modprobe.d/uvc")
os.system("echo options uvcvideo quirks=2 | sudo tee -a /etc/modprobe.d/uvc")
|