Commit Graph

51 Commits

Author SHA1 Message Date
Luke Jones
229fa93bc7 Dbus signals (#28)
* Small rename of dbus args
* Split out parts of main loop to tasks
* Send signals on boot
2020-07-07 13:33:32 +12:00
Luke
8da748bf7f Fix many small bugs in refactor of laptop LED mode handling
Closes issue #27
2020-07-05 21:24:07 +12:00
Luke
202fbe6800 Add support for GU502 2020-07-04 20:07:23 +12:00
Luke
cff0af76c8 Additional dbus methods 2020-07-01 11:00:11 +12:00
Luke
a731361278 Document dbus a bit better 2020-06-30 21:55:49 +12:00
Luke
898276494c Remove around 14 transitive dependencies 2020-06-30 20:49:44 +12:00
Luke
9fad94a834 Simplify and remove further code 2020-06-30 16:02:12 +12:00
Luke
20b82b1f24 Init device correctly for LED control 2020-06-30 10:08:48 +12:00
Luke
32e9e63809 Refactor dbus commands and internal data structures 2020-06-29 21:30:27 +12:00
Luke Jones
3ad15d61c9 Dbus expand (#24)
* Dbus changes
  - Changed "FanMode", "ChargeLimit" to "SetFanMode", "SetChargeLimit"
  - Added dbus signals "FanModeChanged", "ChargeLimitChanged"
  - Added dbus methods "GetFanMode", "GetChargeLimit"
* Refactor of internal loop and tokio tasks
* Add support for ROG Strix G712LV_G712LV
* Correctly read the config before writing changes
2020-06-29 10:03:27 +12:00
Luke
4922042432 Add dbus methods and CLI args for battery charge limit 2020-06-26 16:44:01 +12:00
Luke
baa5cef625 Add ability to set BAT0/charge_control_end_threshold 2020-06-26 16:23:14 +12:00
Luke
bf3588e516 Move led_writer to a main loop due to strange mpsc behaviour 2020-06-11 20:39:28 +12:00
Luke
93c6b28409 Need to revert tokio mpsc to sync 2020-06-11 17:29:44 +12:00
Luke
3eba038b16 Revise cherrypick of edits from meumeu 2020-06-11 16:25:46 +12:00
Guillaume Meunier
b3234e3d59 Put animatrix stuff in a separate loop to avoid waiting before displaying an image 2020-06-11 15:51:15 +12:00
Luke
0b51f61f7a rogcore: match interface with keyboard endpoint instead 2020-06-11 09:52:00 +12:00
Armas Spann
4d6fd32183 fixed build errors on rust - removed RGB support for GA502 2020-06-10 20:54:57 +02:00
Guillaume Meunier
5f37a319c5 Dbus cleanup
Use DBUS_NAME instead of DBUS_IFACE when requesting the name
Add missing method_return()s
Give different names for the bytearray arguments so that pydbus is not confused
2020-06-10 20:40:55 +12:00
Luke
964c24f8fa Final round of fixes for new version 2020-06-09 20:46:14 +12:00
Luke
cb8032c7c2 Create AniMe device only if physical device exists
The call to create the device handler will return with an error if
the physical device doesn't exist, the device (if exists) is stored
in an option already so just keep that as `None` if errored.

Addresses issue #14
2020-06-08 19:57:05 +12:00
Luke
8e98aafddd Finalise anime matrix stuff. Many fixes 2020-06-02 20:14:32 +12:00
Luke
d9fc7de5cb Initial groundwork of animatrix 2020-06-02 11:37:41 +12:00
Luke
46041c0343 Send fan-mode over dbus. Fix multizone dbus command
Closes issue #7
2020-05-23 14:21:16 +12:00
Luke
de10fe13e7 In-progress 2020-05-23 13:23:58 +12:00
Luke
0b3046b31f More verbose error log on startup 2020-05-23 09:41:28 +12:00
Luke
bd67afb104 Attempt to get multi-static working 2020-05-22 20:53:19 +12:00
Luke Jones
0e6f6f3289 Many small fixes
- Flip writing order of effect colour blocks every other block write to try
  and even out. Previously the bottom rows were always last to be written.
- Add more examples: ball, comet, pulser.
- Refine the keyboard layout grid for GX502.
- Use tokio to delay main loop, not thread::sleep
- Minor tweaks to error handling. Needs refactor of errors.
2020-05-22 15:17:52 +12:00
Luke
2381a64b71 Use tokio to delay main loop, not thread::sleep 2020-05-08 21:37:51 +12:00
Luke
e09dd345c0 Bouncy ball example 2020-05-06 23:58:38 +12:00
Luke
497ba61d22 Try to handle fan-mode fail better 2020-05-06 07:38:35 +12:00
Luke
4d7bc77dff Improve per-key LED. Add extra example
- Small fixes to use all keys on GX502
2020-05-05 22:15:18 +12:00
Luke
f11afdbc7d Fix reloading last keyboard brightness on boot 2020-05-05 14:21:19 +12:00
Luke
62a613a312 Small fixxes to functionality
- Fixed return of rog-core in client mode
- Fixed writing of customised builtin LED modes
2020-05-04 15:33:41 +12:00
Luke
89c868ce95 Refactor code to reduce LedWriter to single thread
- Fixes race conditions (mostly) between awaits
- Fixes possible deadlock of mode changes when effect is running
- Fixes sending kill signal to effect clients
2020-05-04 12:35:27 +12:00
Luke
f12bb1d4f6 Allow configuration of intel pstates paired with fan-modes 2020-05-02 19:31:40 +12:00
Luke
bf6bf2e2f1 Big refactor out of Aura LED data structs 2020-05-01 22:07:28 +12:00
Luke
a38541ba4b Total refactor of structure. Builds faster 2020-04-21 22:51:53 +12:00
Luke
e21a6e3fb3 Change module/method visibility 2020-04-21 21:07:30 +12:00
Luke
d6f88e56aa Much better handling of keys 2020-04-20 22:03:10 +12:00
Luke
21f89807d0 Better handling 2020-04-20 20:56:49 +12:00
Luke
a78b3ffd84 Test non-async. Shit doesn't need to be fancy 2020-04-20 17:36:06 +12:00
Luke
8187be0bec Virtual keyboard to repeat keys 2020-04-20 17:13:08 +12:00
Luke
586aa22475 small refactor 2020-04-19 14:25:29 +12:00
Luke
cfddb6077a claim and release keyboard to read or Vol/Usb fails 2020-04-19 09:20:12 +12:00
Luke
5b24d24659 Logging, better error handling 2020-04-18 21:39:24 +12:00
Luke
3788fbf095 Start bringing up laptop detection 2020-04-18 08:23:24 +12:00
Luke
a8a97bcece Better settings, save proper defaults, check supported modes 2020-04-17 21:57:49 +12:00
Luke
e1d2e913c5 Start mapping hotkeys. Aura cycling done 2020-04-17 17:42:01 +12:00
Luke
1616633abf Bright go up. Bright go down. 2020-04-17 15:21:26 +12:00