Jeremy Soller
aab45bfcc1
Add layer parameter for LED_GET_MODE and LED_SET_MODE commands
2021-03-04 13:52:25 -07:00
Ian Douglas Scott
301eef6f21
tool: Fix and CI test with redox_hwio
2021-03-04 13:51:19 -07:00
Ian Douglas Scott
59df32814b
tool: Don't depend on clap
when without default features
2021-03-04 13:51:19 -07:00
Ian Douglas Scott
aefad937bb
ci: Test --no-default-features
build of ectool
2021-03-04 13:51:19 -07:00
Ian Douglas Scott
325762d4d8
tool: Fix building without std
feature
2021-03-04 13:51:19 -07:00
Jeremy Soller
8825b906bd
ectool 0.3.3
2021-03-01 11:51:08 -07:00
Jeremy Soller
f30a9d84f7
Fix unused variable warning
2021-03-01 11:50:31 -07:00
Jeremy Soller
2ef4cd7bbd
Add matrix command
2021-03-01 11:50:31 -07:00
Jeremy Soller
c931eb4eef
Do not repeat K_FAN_TOGGLE
2021-02-26 15:51:47 -07:00
Jeremy Soller
67e143178d
Always notify OS of SCI when pmc_sci is called
2021-02-26 15:51:47 -07:00
Ian Douglas Scott
4cd4df03e8
ectool 0.3.2
2021-02-26 12:18:02 -07:00
Ian Douglas Scott
b11bc64bba
tool: API and CLI for LED matrix mode
2021-02-26 12:18:02 -07:00
Jeremy Soller
73a5d8b8a1
ectool 0.3.1: Implement read_debug for Box<dyn Access>
2021-02-23 09:45:55 -07:00
Tim Crawford
221da86e20
ci: Add job to build the tool
2021-02-23 09:29:16 -07:00
Tim Crawford
340ddd2e81
deps: Install libudev
2021-02-23 09:29:16 -07:00
Tim Crawford
ba99aec1b7
deps: Skip installing Rust if rustup is available
...
Saves time and prevents errors with trying to install rustup twice or
potentially overriding the user's default toolchain.
2021-02-22 16:26:14 -07:00
Tim Crawford
71534e736c
ci: Add job to check for SPDX identifiers
2021-02-22 14:02:18 -07:00
Tim Crawford
3e154d7f00
Add missing SPDX identifiers
2021-02-22 14:02:18 -07:00
Tim Crawford
3e742b0da7
Add script to check for SPDX identifiers
2021-02-22 14:02:18 -07:00
Tim Crawford
9ef191edff
tool: Update copyright year
2021-02-22 13:58:53 -07:00
Tim Crawford
44a0b887c4
tool: Replace ICU license text with MIT license
...
Cargo.toml declares MIT license, but the included LICENSE is the ICU
variant. Replace the text, as formatted on choosealicense [1].
[1]: https://choosealicense.com/licenses/mit/
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2021-02-22 13:58:53 -07:00
Jeremy Soller
4ba943e3df
oryp7
2021-02-22 10:05:52 -07:00
Tim Crawford
230d7f10b1
Add CI using GitHub Actions
2021-02-22 09:04:50 -07:00
Tim Crawford
55b6256ed6
Add script for installing dependencies
2021-02-22 09:04:50 -07:00
Tim Crawford
2ac214352b
Move scripts from top-level to scripts/
2021-02-22 09:04:50 -07:00
Ian Douglas Scott
71f0f1e181
ectool 0.3.0
...
Crates depending on both ectool and hidapi will have to disable hidapi's
default features (annoyingly) or it will fail to compile saying only one
backend should be enabled.
2021-02-22 08:08:49 -07:00
Ian Douglas Scott
e30779ab8d
tool: Accesor method for HidDevice
2021-02-22 08:08:49 -07:00
Ian Douglas Scott
2768925ec6
tool: Support downcasting generic Ec
...
Removes the `impl Access for &mut dyn Access` I added earlier. But that
hasn't proven too useful.
2021-02-22 08:08:49 -07:00
Ian Douglas Scott
171257916c
tool: CLI for color/brightness
2021-02-22 08:08:49 -07:00
Ian Douglas Scott
49b79f665b
tool: Add --access
argument to work with sim or hid
2021-02-22 08:08:49 -07:00
Ian Douglas Scott
7c5ba4e62c
tool: Use clap
for argument parsing
2021-02-22 08:08:49 -07:00
Ian Douglas Scott
504284bf72
tool: Move read_debug
to trait so generic code can use it
...
Returns error for backends that don't support it.
2021-02-22 08:08:49 -07:00
Ian Douglas Scott
0c1584385c
tool: Support for owned and unowned generic Ec
2021-02-22 08:08:49 -07:00
Ian Douglas Scott
f4458aebca
tool: Use hidraw backend of hidapi
...
The default libusb backend just returns the string "hid_error is not
implemented yet" for all errors, while the hidraw backend at least gives
something correct if vague.
I'm not aware of any disadvantage other that not being (properly)
supported with really ancient kernels. It seems to work fine.
2021-02-22 08:08:49 -07:00
Tim Crawford
791b3224f9
docs: Explicitly mention to use a USB cable
...
Replace the vague step about grounding with one that says to connect a
USB cable and explain its purpose.
2021-02-18 08:37:53 -07:00
Jeremy Soller
18ec0eb694
Increase keyboard scanning delay to eliminate darp7 scanning issues
2021-02-05 09:52:24 -07:00
Jeremy Soller
3a9665a753
lemp10: Set DPWROK low on EC reset to ensure PCH reset
2021-02-04 09:14:38 -07:00
Jeremy Soller
12a9ac8d84
ectool 0.2.3
2021-01-15 08:34:31 -07:00
Jeremy Soller
304e7534c9
Add led value and color commands
2021-01-15 08:34:31 -07:00
Jeremy Soller
5bab59a526
Do not duplicate kbled support. Add kbled_max and kbled_get_color functions
2021-01-15 08:34:31 -07:00
Jeremy Soller
9309efb3e0
Use BIT macros
2021-01-05 12:17:16 -07:00
Jeremy Soller
47c1062e08
Add SPDX headers
2021-01-05 12:17:16 -07:00
Jeremy Soller
7f4a837bcf
Add system76/darp7
2021-01-05 12:17:16 -07:00
Jeremy Soller
fbaea59b46
Add system76/galp5
2021-01-05 12:17:16 -07:00
Jeremy Soller
8f340d6164
Add system76/lemp10
2021-01-05 12:17:16 -07:00
Jeremy Soller
b156d18bc2
system76/common: Add OZ26786 charger
2021-01-05 12:17:16 -07:00
Jeremy Soller
fb6355f907
system76/common: Move touchpad handling to kbc_event
2021-01-05 12:17:16 -07:00
Jeremy Soller
31a908556b
system76/common/kbc: Refactor to remove delays and improve readability
2021-01-05 12:17:16 -07:00
Jeremy Soller
5559d4e2f6
system76/common: Switch to pmc_swi for wake events
2021-01-05 12:17:16 -07:00
Jeremy Soller
3f41cd6ab3
system76/common/pmc: Refactor to improve readability and support ESPI
2021-01-05 12:17:16 -07:00