Skip to content

Commit bc10e3f

Browse files
committed
Automatic generation of udev rules for supported devices
+ Added build-udev-rules.sh script + Added new custom target in Linux section of .pro to accommodate new rules location
1 parent fb7e388 commit bc10e3f

File tree

163 files changed

+1700
-957
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+1700
-957
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ before_script:
127127
exclude:
128128
- openrgb-dbgsym*.deb
129129
expire_in: 30 days
130-
130+
131131
#-----------------------------------------------------------------------#
132132
# Linux (.deb) Debian Bullseye 64-bit Build Target #
133133
#-----------------------------------------------------------------------#

60-openrgb.rules

Lines changed: 0 additions & 938 deletions
This file was deleted.

Controllers/AMDWraithPrismController/RGBController_AMDWraithPrism.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@
99

1010
#include "RGBController_AMDWraithPrism.h"
1111

12+
/**------------------------------------------------------------------*\
13+
@name AMD Wraith Prism
14+
@type USB
15+
@save :x:
16+
@direct :white_check_mark:
17+
@effects :warning:
18+
@detectors DetectAMDWraithPrismControllers
19+
@comment The Wraith Prism comes with 2 cables but is only detectable
20+
and controlable when using the USB cable. `Morse Code` and `Mirage`
21+
modes have not been implemented. Saving to flash is supported by
22+
the device but not yet implemented.
23+
\*-------------------------------------------------------------------*/
24+
1225
RGBController_AMDWraithPrism::RGBController_AMDWraithPrism(AMDWraithPrismController* controller_ptr)
1326
{
1427
controller = controller_ptr;

Controllers/ASRockPolychromeSMBusController/RGBController_ASRockPolychromeSMBus.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@ static const char* polychrome_v2_zone_names[] =
3232
"Addressable Header"
3333
};
3434

35+
/**------------------------------------------------------------------*\
36+
@name ASRock Polychrome SMBus
37+
@type SMBus
38+
@save :warning:
39+
@direct :x:
40+
@effects :white_check_mark:
41+
@detectors DetectPolychromeSMBusControllers
42+
@comment ASRock Polychrome controllers will save with each update.
43+
Per ARGB LED support is not possible with these devices.
44+
\*-------------------------------------------------------------------*/
45+
3546
RGBController_Polychrome::RGBController_Polychrome(PolychromeController* controller_ptr)
3647
{
3748
controller = controller_ptr;

Controllers/ASRockPolychromeUSBController/RGBController_ASRockPolychromeUSB.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@
1313
#define ASROCK_USB_MAX_ZONES 8
1414
#define ASROCK_ADDRESSABLE_MAX_LEDS 100
1515

16+
/**------------------------------------------------------------------*\
17+
@name ASrock Polychrome USB
18+
@type USB
19+
@save :warning:
20+
@direct :x:
21+
@effects :white_check_mark:
22+
@detectors DetectPolychromeUSBControllers
23+
@comment ASRock Polychrome controllers will save with each update.
24+
Per ARGB LED support is not possible with these devices.
25+
\*-------------------------------------------------------------------*/
26+
1627
RGBController_PolychromeUSB::RGBController_PolychromeUSB(PolychromeUSBController* controller_ptr)
1728
{
1829
controller = controller_ptr;

Controllers/AlienwareController/RGBController_Alienware.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@
1212
#include <thread>
1313
#include <chrono>
1414

15+
/**------------------------------------------------------------------*\
16+
@name Alienware
17+
@type USB
18+
@save :x:
19+
@direct :x:
20+
@effects :white_check_mark:
21+
@detectors DetectAlienwareControllers
22+
@comment
23+
\*-------------------------------------------------------------------*/
24+
1525
RGBController_Alienware::RGBController_Alienware(AlienwareController* controller_ptr)
1626
{
1727
controller = controller_ptr;

Controllers/AlienwareKeyboardController/RGBController_AlienwareAW510K.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,16 @@ static const led_type led_names[] =
158158
{ "Logo", ALIENWARE_AW510K_ZONE_DIRECT_LOGO, 0x07 }
159159
};
160160

161+
/**------------------------------------------------------------------*\
162+
@name Alienware AW510 Keyboard
163+
@type USB
164+
@save :x:
165+
@direct :white_check_mark:
166+
@effects :white_check_mark:
167+
@detectors DetectAlienwareAW510KControllers
168+
@comment
169+
\*-------------------------------------------------------------------*/
170+
161171
RGBController_AlienwareAW510K::RGBController_AlienwareAW510K(AlienwareAW510KController* controller_ptr)
162172
{
163173
controller = controller_ptr;

Controllers/AnnePro2Controller/RGBController_AnnePro2.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,16 @@ static const led_type led_names[] =
108108
{ KEY_EN_RIGHT_CONTROL, 60 },
109109
};
110110

111+
/**------------------------------------------------------------------*\
112+
@name Anne Pro 2
113+
@type USB
114+
@save :x:
115+
@direct :white_check_mark:
116+
@effects :x:
117+
@detectors DetectAnnePro2Controllers
118+
@comment
119+
\*-------------------------------------------------------------------*/
120+
111121
RGBController_AnnePro2::RGBController_AnnePro2(AnnePro2Controller* controller_ptr)
112122
{
113123
controller = controller_ptr;

Controllers/AsusAuraCoreController/RGBController_AsusAuraCore.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@
88

99
#include "RGBController_AsusAuraCore.h"
1010

11+
/**------------------------------------------------------------------*\
12+
@name Asus AURA Core
13+
@type USB
14+
@save :x:
15+
@direct :warning:
16+
@effects :white_check_mark:
17+
@detectors DetectAsusAuraCoreControllers
18+
@comment
19+
\*-------------------------------------------------------------------*/
20+
1121
RGBController_AuraCore::RGBController_AuraCore(AuraCoreController* controller_ptr)
1222
{
1323
controller = controller_ptr;

Controllers/AsusAuraGPUController/RGBController_AsusAuraGPU.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ int RGBController_AuraGPU::GetDeviceMode()
4141
return(active_mode);
4242
}
4343

44+
/**------------------------------------------------------------------*\
45+
@name Asus Aura GPU
46+
@type SMBus
47+
@save :x:
48+
@direct :white_check_mark:
49+
@effects :white_check_mark::
50+
@detectors DetectAsusAuraGPUControllers
51+
@comment
52+
\*-------------------------------------------------------------------*/
53+
4454
RGBController_AuraGPU::RGBController_AuraGPU(AuraGPUController * controller_ptr)
4555
{
4656
controller = controller_ptr;

0 commit comments

Comments
 (0)