-
Notifications
You must be signed in to change notification settings - Fork 0
/
OpenRGB.sh
56 lines (45 loc) · 1.96 KB
/
OpenRGB.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
############################################################
# OpenRGB Configuration Script
# Version 1.0
# Date Modified: 19-July-2024
#
# --- CHANGELOG ---
#
# 1.1 (28-July-2024):
# * Move OpenRGB tools into OpenRGB.sh
#
# 1.0 (19-July-2024):
# * Improve comments
# * Segregated each step of installation
# * echo each stage of script
############################################################
echo "[ ATTENTION ] Installing: OpenRGB & Utilities"
# --- Install OpenRGB Tools --- #
sudo zypper install -y OpenRGB i2c-tools
# Just following the steps outlined in OpenRGB GitLab repository
# https://gitlab.com/CalcProgrammer1/OpenRGB
# --- Load the i2c-dev kernel module --- #
echo "[ INFORMATION ] Loading i2c-dev Kernel Module"
sudo modprobe i2c-dev
# --- Create a new system group called "i2c" ---"
echo "[ INFORMATION ] Creating new system group i2c"
sudo groupadd --system i2c
# --- Add user to group to access the i2c devices --- #
echo "[ INFORMATION ] Adding user to group \'i2c\'"
sudo usermod $USER -aG i2c
# --- Create config file to load the i2c module at boot --- #
echo "[ INFORMATION ] Configuring i2c-dev modules to load up at boot"
sudo touch /etc/modules-load.d/i2c.conf && sudo sh -c 'echo "i2c-dev" >> /etc/modules-load.d/i2c.conf'
# --- AMD CHIPSETS --- #
# WARNING! This will configure the system to load the i2c driver for AMD configurations only!
echo "[ ATTENTION ] Loading i2c-piix4 for SMBus Access (AMD SPECIFIC)"
sudo modprobe i2c-piix4
# --!ATTENTION!-- #
# In case RAM RGB or other LED controllers are not loading the profile on startup, you need to add the entries manually.
# This is out of scope due to the numerous configurations and boards that are out there.
# --- INTEL CHIPSETS --- #
# UNTESTED! Here is the configuration required for Intel motherboards/chipsets. Use at your own risk.
# echo "[ ATTENTION ] Loading i2c-i801 & i2c-nct6775 for SMBus Access (INTEL SPECIFIC)"
# sudo modprobe i2c-i801
# sudo modprobe i2c-nct6775