87 Commits

Author SHA1 Message Date
Adam Honse
c71cc4f18a Change SPDX license identifier from GPL 2.0 only to GPL 2.0 or later, as the original LICENSE file includes an or later clause at the end so the file headers were incorrect 2025-09-28 00:47:08 -05:00
Adam Honse
30f9b84d5f Use GetName instead of directly accessing the RGBController::name member outside of Controllers 2025-08-01 11:32:55 -05:00
Adam Honse
9fb71a30ec Use getter functions when accessing string fields in RGBControllers in ProfileManager and cli 2025-07-31 18:55:12 -05:00
Andre Toerien
3332835417 Use RegisterNetworkClient() with --client 2025-07-03 23:34:08 +02:00
Kyle Rose
4c6bf55c8a Provide more useful CLI error messages 2025-06-04 18:16:45 -05:00
totesNotRosalyn
a24a497759 Fix warnings in Qt6 builds 2025-04-18 18:20:15 -05:00
morg
59e303c882 Add missing tags in logs 2025-01-10 08:53:31 +01:00
Adam Honse
d0397bc23a Fix warning in cli.cpp 2024-11-26 00:34:56 -06:00
Dmitry K
2c952a54d2 Loading optimization (no GUI changes) 2024-09-26 22:20:48 +00:00
Adam Honse
1bbfded78a Update more file header comments to standardized new format, move some locally owned files out of the dependencies folder 2024-05-08 11:53:07 -05:00
Cyril Bosselut
5f538260a2 Add speed option to CLI 2024-01-31 17:06:29 +00:00
Chris M
b9f8243904 Fixed initial brightness for the CLI and fix initial brightness for Lian Li Hub SL V2 controller. 2023-11-29 14:17:16 +00:00
morg
64c7d858bf Ignore server-host pre-detection argument 2023-10-30 08:08:00 +01:00
morg
7d637a502d Add help entry for --server-port option missing 2023-10-27 17:59:41 +02:00
Michal Stawinski
a30323f22f Fix "--client" option not working
This fixes "Error: Invalid option: 172.17.0.1" error
that made it impossible to use openrgb with remote
servers.
2023-09-15 21:49:20 -05:00
Chris
5abc13e7df Amending CLI code for "All Devices" to resolve #2918
* Adding `current_devices->size() == 0` check to Mode / Color / Brightness argument parsers to catch "All Devices" case from CLI
2023-04-30 18:15:37 +00:00
morg
a0024b8f04 Make sure to correctly set random_colors (uninitialized bool) 2023-04-30 16:14:43 +00:00
Cooper Hall
45be4329c5 Fixed some warnings 2023-03-11 23:25:26 +00:00
Chris
4b29b56029 Fixes passing 0 to --brightness CLI parameter 2023-02-28 21:53:30 +11:00
Adam Honse
b25dacd0c0 Remove unnecessary header file OpenRGB.h 2023-02-01 00:33:23 -06:00
Dmitry K
b409b5f7cc Added support for unicode paths (filesystem::path approach) 2023-01-18 06:02:55 +00:00
Adam Honse
be90537d10 Fix warnings 2022-11-27 02:52:39 -06:00
Chris
04127cb201 Resolves clamp is not a member of std error reintroduced in f8745221.
* Original issue in Debian Buster build https://gitlab.com/CalcProgrammer1/OpenRGB/-/jobs/3359116111#L207
2022-11-26 11:17:17 +11:00
Chris
f8745221d4 Added string indexing to -d option to resolve #2854
+ Added zone to `options.device` in cli.cpp
+ replace current_device & current_zone references in parser with
temporary device vector
+ Changed code to accomodate
2022-11-24 18:20:35 +00:00
Chris
1ff192bda2 Resolves clamp is not a member of std error with Buster build.
* https://gitlab.com/CalcProgrammer1/OpenRGB/-/jobs/3359116111#L207
2022-11-23 21:38:33 +11:00
Chris M
32015f1bcb Added -b & --brightness parameters to resolve #2854
* Added the ability to set mode brightness from the command line
2022-11-21 10:28:01 +11:00
Adam Honse
19218f4513 Fix warnings in cli.cpp 2022-09-25 01:03:25 -05:00
Adam Honse
c0cb942ea7 Fix warning in cli.cpp 2022-09-14 22:34:30 -05:00
Adam Honse
ced081d168 Fix more warnings 2022-07-19 00:48:35 -05:00
B Horn
640eb7905c SDK Listening Options 2022-07-17 20:30:15 +00:00
jld3103
139a9c4010 cli: Validate hex color length 2022-04-04 17:56:34 +02:00
Chris
d8e7cd694d Small fix to --config parameter to allow for an argument
+ Added check to test for a valid directory
2022-02-27 13:07:04 +11:00
morg
01041a56b8 Add Electric Ultramarine color 2022-01-16 01:26:41 +00:00
morg
12ffcccdcd Externalize colors definitions to separate header file. 2021-11-04 13:50:01 +00:00
Alex
8f8f19c5c1 Fix very verbose cli param 2021-10-15 02:06:56 +00:00
Alex
4af8614fce Add formated loging for device detection
Commits merged and amended for code style by Adam Honse <calcprogrammer1@gmail.com>
2021-07-05 03:23:34 -05:00
Tom Greenwood
7624a70b67 Add Start at Login Option (Windows and Linux implemented, MacOS stubbed)
This merge request adds the following:

1. A new class AutoStart, designed to add login startup entries for Linux (FreeDesktop autostart) and Windows (Shortcut File).
1. CLI options to enable, disable and check for autostart. (--autostart-enable, --autostart-disable and --autostart-check). e.g. OpenRGB.exe --autostart-enable "--startminimized --server --profile Blue" --nodetect --noautoconnect
1. UI options to enable "Start At Login" with several other options (see screenshots in Comments)

Tested on KDE Neon and Windows 10 x64 (x64 build).

Commits squashed and amended for code style by Adam Honse <calcprogrammer1@gmail.com>
2021-06-26 02:45:48 -05:00
Chris
920542e8b6 Adding "random" to the acceptable inputs for the --color switch to align with GUI
* Allows for the selection of color_mode = MODE_COLORS_RANDOM from the CLI for devices that support it
* For all other implementations will return a random colour from the `human_colors` struct

* To avoid filtering in the profile manager and to ensure that color_mode is set to MODE_COLORS_RANDOM correctly
for HW that has the mode flags

MODE_FLAG_HAS_RANDOM_COLOR | MODE_FLAG_HAS_PER_LED_COLOR

The values for speed_min, speed_max, colors_min and colors_max NEED to be initialised to allow for a saved
profile to load correctly in `ProfileManager::LoadDeviceFromListWithOptions`

Commit amended by Adam Honse <calcprogrammer1@gmail.com> to remove Aura SMBus change, will add as its own
commit.
2021-06-20 23:35:37 -05:00
Chris
259ba898b0 Enumerate Wireless connected Logitech Lightspeed (Unifying) devices
+ Added common library for Logitech Protocol
    + Moved wireless detection to the LogitechProtocolCommon.cpp
    + Adding Direct Mode to the wireless control
    + Copying the mutex from Lightsync controller to avoid interference
    + Adding LED count info to controller constructor

+ Created a new Logitech class
    + Added Feature list enumeration
    + Added DeviceName detection from device

* Changed LogitechGProWirelessController to accomodate generic devices
    * LED count from device is now used in RGBController setup

+ Adding Windows specific detection as Linux Kernel handles this already.
+ Adding virtual PIDS for wireless detection
    * LOGITECH G403
    * LOGITECH G502
    * LOGITECH G703
    * LOGITECH G900
    * LOGITECH G903
    * LOGITECH GPRO
+ Adding Logitech G900 Wired Gaming Mouse PID
+ Adding other all lightspeed mice to wired detector for testing
    * Genericised and optimised code paths
    * Speed up wireless detection

Commit amended for code style by Adam Honse <calcprogrammer1@gmail.com>
2021-05-31 10:59:04 -07:00
Martin Hartl
94370c24a8 cli: Fix mode specific colors for range 2021-05-14 15:14:11 +02:00
Pol Rius
658eb3a1f7 Initialize profile_loaded properly 2021-05-12 18:27:22 +02:00
Chris
4ae8ea94ea Logging info and adding zeroed speed initialisation to fix #1241
* Adding zeroed speed initialisation to modes that do not support speed to avoid bad save values in profile
* Bad values in saved profile will corrupt brightness calculation on load.
* Aligning profile version and header string
* Adding profile validation logging
* Adding success / failure logging for each controller when attempting to load profile

Commit amended by Adam Honse <calcprogrammer1@gmail.com>
2021-04-11 11:59:25 -05:00
morg
b24f989dbc Ignore pre-detection argument (fixes #1300) 2021-04-09 16:48:56 +02:00
Chris
501a1ff489 Updated parsers to allow GUI to run implicitly for -v, -vv and --print-
source options

* Added cfg_args counter for each in cli_pre_detection()
* Added each to the ignore options in ProcessOptions()
* Includes slight update to OptionHelp()
2021-03-28 22:27:27 +11:00
Chris
d926754745 Adding "--loglevel" to ignore list in cli::ProcessOptions 2021-03-28 00:55:40 -05:00
Chris
d65def0179 Fixing --help string for -p option
* Tweaked the profile mananger to allow to load profiles either with or
without the file extension
* Changed the --help string to reflect the change
2021-03-24 08:18:07 -05:00
k1-801
f1d6c2953d Logger tweaks
Commit amended for code style and minor cleanup by Adam Honse <calcprogrammer1@gmail.com>
2021-03-23 20:20:52 -05:00
Chris
8492a8c76e Prevent profiles loaded on startup from being overwritten 2021-03-23 12:47:27 -05:00
morg
e1faa783b6 Add new CLI option, separate auto-detect and auto-connect 2021-03-08 22:25:37 -06:00
Luca Lovisa
ed48c9634c Fix cli profile mode loading 2021-03-01 23:14:36 +01:00