87 Commits (c71cc4f18a54f83d388165ef2ab4c4ad3e980b89)

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 7 months ago
Adam Honse 30f9b84d5f Use GetName instead of directly accessing the RGBController::name member outside of Controllers 9 months ago
Adam Honse 9fb71a30ec Use getter functions when accessing string fields in RGBControllers in ProfileManager and cli 9 months ago
Andre Toerien 3332835417
Use RegisterNetworkClient() with --client 10 months ago
Kyle Rose 4c6bf55c8a Provide more useful CLI error messages 11 months ago
totesNotRosalyn a24a497759 Fix warnings in Qt6 builds 1 year ago
morg 59e303c882 Add missing tags in logs 1 year ago
Adam Honse d0397bc23a Fix warning in cli.cpp 1 year ago
Dmitry K 2c952a54d2 Loading optimization (no GUI changes) 2 years ago
Adam Honse 1bbfded78a Update more file header comments to standardized new format, move some locally owned files out of the dependencies folder 2 years ago
Cyril Bosselut 5f538260a2 Add speed option to CLI 2 years ago
Chris M b9f8243904 Fixed initial brightness for the CLI and fix initial brightness for Lian Li Hub SL V2 controller. 2 years ago
morg 64c7d858bf Ignore server-host pre-detection argument 3 years ago
morg 7d637a502d Add help entry for --server-port option missing 3 years ago
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.
3 years ago
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
3 years ago
morg a0024b8f04 Make sure to correctly set random_colors (uninitialized bool) 3 years ago
Cooper Hall 45be4329c5 Fixed some warnings 3 years ago
Chris 4b29b56029 Fixes passing 0 to `--brightness` CLI parameter 3 years ago
Adam Honse b25dacd0c0 Remove unnecessary header file OpenRGB.h 3 years ago
Dmitry K b409b5f7cc Added support for unicode paths (filesystem::path approach) 3 years ago
Adam Honse be90537d10 Fix warnings 3 years ago
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
3 years ago
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
3 years ago
Chris 1ff192bda2 Resolves `clamp is not a member of std` error with Buster build.
* https://gitlab.com/CalcProgrammer1/OpenRGB/-/jobs/3359116111#L207
4 years ago
Chris M 32015f1bcb Added `-b` & `--brightness` parameters to resolve #2854
* Added the ability to set mode brightness from the command line
4 years ago
Adam Honse 19218f4513 Fix warnings in cli.cpp 4 years ago
Adam Honse c0cb942ea7 Fix warning in cli.cpp 4 years ago
Adam Honse ced081d168 Fix more warnings 4 years ago
B Horn 640eb7905c SDK Listening Options 4 years ago
jld3103 139a9c4010 cli: Validate hex color length 4 years ago
Chris d8e7cd694d Small fix to `--config` parameter to allow for an argument
+ Added check to test for a valid directory
4 years ago
morg 01041a56b8 Add Electric Ultramarine color 4 years ago
morg 12ffcccdcd Externalize colors definitions to separate header file. 5 years ago
Alex 8f8f19c5c1 Fix very verbose cli param 5 years ago
Alex 4af8614fce Add formated loging for device detection
Commits merged and amended for code style by Adam Honse <calcprogrammer1@gmail.com>
5 years ago
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>
5 years ago
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.
5 years ago
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>
5 years ago
Martin Hartl 94370c24a8
cli: Fix mode specific colors for range 5 years ago
Pol Rius 658eb3a1f7 Initialize profile_loaded properly 5 years ago
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>
5 years ago
morg b24f989dbc Ignore pre-detection argument (fixes #1300) 5 years ago
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()
5 years ago
Chris d926754745 Adding "--loglevel" to ignore list in cli::ProcessOptions 5 years ago
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
5 years ago
k1-801 f1d6c2953d Logger tweaks
Commit amended for code style and minor cleanup by Adam Honse <calcprogrammer1@gmail.com>
5 years ago
Chris 8492a8c76e Prevent profiles loaded on startup from being overwritten 5 years ago
morg e1faa783b6 Add new CLI option, separate auto-detect and auto-connect 5 years ago
Luca Lovisa ed48c9634c
Fix cli profile mode loading 5 years ago