Skip to content

Commit ffe43a7

Browse files
feat: Add support for PC50DXX based CLEVO laptops.
1 parent 739b2cb commit ffe43a7

8 files changed

Lines changed: 17 additions & 10 deletions

File tree

Build/CLEVO_KeyboardColour.exe

-78 KB
Binary file not shown.

Build/GetProductID64.dll

-2.55 MB
Binary file not shown.

Build/InsydeDCHU.dll

-2.39 MB
Binary file not shown.
8 Bytes
Binary file not shown.

CppKeyboardColour/CppKeyboardColour.vcxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
<SubSystem>Console</SubSystem>
9797
<GenerateDebugInformation>true</GenerateDebugInformation>
9898
<AdditionalDependencies>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\lib\onecore\$(Platform)\msvcprtd.lib;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\lib\$(Platform)\comsuppwd.lib</AdditionalDependencies>
99+
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
99100
</Link>
100101
</ItemDefinitionGroup>
101102
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
@@ -113,6 +114,7 @@
113114
<SubSystem>Console</SubSystem>
114115
<GenerateDebugInformation>true</GenerateDebugInformation>
115116
<AdditionalDependencies>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\lib\onecore\$(Platform)\msvcprtd.lib;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\lib\$(Platform)\comsuppwd.lib</AdditionalDependencies>
117+
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
116118
</Link>
117119
</ItemDefinitionGroup>
118120
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
@@ -133,6 +135,7 @@
133135
<OptimizeReferences>true</OptimizeReferences>
134136
<GenerateDebugInformation>true</GenerateDebugInformation>
135137
<AdditionalDependencies>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\lib\onecore\$(Platform)\msvcprt.lib;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\lib\$(Platform)\comsuppw.lib;%(AdditionalDependencies)</AdditionalDependencies>
138+
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
136139
</Link>
137140
</ItemDefinitionGroup>
138141
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
@@ -155,6 +158,7 @@
155158
<OptimizeReferences>true</OptimizeReferences>
156159
<GenerateDebugInformation>true</GenerateDebugInformation>
157160
<AdditionalDependencies>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\lib\onecore\$(Platform)\msvcprt.lib;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\lib\$(Platform)\comsuppw.lib;%(AdditionalDependencies)</AdditionalDependencies>
161+
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
158162
</Link>
159163
</ItemDefinitionGroup>
160164
<ItemGroup>

CppKeyboardColour/DeviceIdTranslator.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ void DeviceIdTranslator::InitializeSingleZoneKBs()
3333
m_deviceIdToKBProps[DEVICE_ID_NKNP50XX].kbType = KeyboardType::SINGLE_ZONE;
3434
m_deviceIdToKBProps[DEVICE_ID_NKNP50XX].kbCommsType = KBCommunicatorType::Insyde;
3535

36+
m_deviceIdToKBProps[DEVICE_ID_PC50DXX].kbType = KeyboardType::SINGLE_ZONE;
37+
m_deviceIdToKBProps[DEVICE_ID_PC50DXX].kbCommsType = KBCommunicatorType::Insyde;
38+
3639
// m_deviceIdToKBProps[DEVICE_ID_NH77XX].kbType = KeyboardType::SINGLE_ZONE;
3740
// m_deviceIdToKBProps[DEVICE_ID_NH77XX].kbCommsType = KBCommunicatorType::Insyde;
3841
}

CppKeyboardColour/DeviceIds.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
#define DEVICE_ID_NH70XX 0x00005015
1010
// #define DEVICE_ID_NH77XX - User did not respond with appropriate information.
1111
#define DEVICE_ID_NKNP50XX 0x0000866D
12+
#define DEVICE_ID_PC50DXX 0x000025A1
1213
#define DEVICE_ID_FAKE 0x12345678

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**A C++ version of the original "keyboard-colour-program" developed in C#.**
44

5-
This is a cleaner, more organized, and efficient version of the initial program. It is designed to provide enhanced features for customizing CLEVO keyboards with **RGB** lighting, supporting both **3-zone** and **1-zone** keyboards. The program also includes a variety of animated effects to enhance your keyboard’s visual experience.
5+
This is a cleaner, more organized, and efficient version of the initial program. It is designed to provide enhanced features for customizing CLEVO keyboards with **RGB** lighting, supporting both **1-zone** and **3-zone** keyboards. The program also includes a variety of animated effects to enhance your keyboard’s visual experience.
66

77
---
88

@@ -15,11 +15,13 @@ This is a cleaner, more organized, and efficient version of the initial program.
1515
- 🌈 **Fading Colors:** Smooth color transitions (predefined themes).
1616
- 🎥 **Optimized Animations:** Enhanced visual effects using animation objects.
1717

18-
⚠️ **Important Note:** Ensure you run this program **as an administrator**, as Windows Management Instrumentation (WMI) requires administrative privileges to function properly.
18+
⚠️ **Important Note:** This application requests for **Administrator privileges**. Please ensure you accept the Windows UAC prompt, as Windows Management Instrumentation (WMI) requires this to function correctly.
1919

20-
⚠️ **Warning:** The predefined fading theme may utilize **15% to 20% of CPU** at certain times. This will be optimized in future updates.
20+
⚠️ **Warning:** Certain themes may utilize **~15% of CPU** at certain times.
2121

22-
⚠️ **Warning (2):** Ensure that the **InsydeDCHU.dll** file is in the same directory as `CLEVO_KeyboardColour.exe` if you're using a **Single-Zone** keyboard.
22+
⚠️ **Warning (2):** Please ensure that the **InsydeDCHU.dll** file is in the same directory as `CLEVO_KeyboardColour.exe` if you're using a **Single-Zone** keyboard.
23+
24+
⚠️ **Warning (3):** Some anti-virus products may incorrectly flag this application as a **virus** and quarantine the program. If this happens, **please add the application to the AV exclusion list**.
2325

2426
---
2527

@@ -28,7 +30,7 @@ This is a cleaner, more organized, and efficient version of the initial program.
2830
The following commands are supported and can be executed via the **Command Prompt**.
2931

3032
### 🖥️ General Syntax:
31-
Navigate to the folder containing the executable files (e.g., `CppKeyboardColour/Build/`) and run the commands in **administrator mode**. To execute the `.exe` files, prepend the `.\` before the command.
33+
Extract the program zip and run the commands **as an administrator**. To execute the `.exe` files, prepend the `.\` before the command.
3234

3335
```bash
3436
.\CLEVO_KeyboardColour.exe theme [themeName]
@@ -82,10 +84,7 @@ Navigate to the folder containing the executable files (e.g., `CppKeyboardColour
8284

8385
## 🛠️ How to Use
8486

85-
1. Navigate to the folder containing the executable files:
86-
```
87-
CppKeyboardColour/Build/
88-
```
87+
1. Download the release which contains the version of the program that supports your system.
8988

9089
2. Open a **Command Prompt** in Administrator mode:
9190
- Search for "Command Prompt" in the Windows search bar.
@@ -111,7 +110,7 @@ To activate the breathing effect, run:
111110
- **Compatible CLEVO keyboards:**
112111
- **RGB 1-zone** or **3-zone** lighting.
113112
- For **1-zone keyboards**, the **InsydeDHCU.dll** file must be in the same directory as `CLEVO_KeyboardColour.exe`.
114-
- **Administrator Permissions:** Ensure the program is run as administrator to avoid WMI failures.
113+
- **Administrator Permissions:** This program requests for administrator privileges. Please ensure you accept the Windows UAC prompt to avoid WMI failures.
115114

116115
---
117116

0 commit comments

Comments
 (0)