Commit Graph

985 Commits

Author SHA1 Message Date
51d6319f5b readme: Update note about PATH
Use hard line breaks to keep the line under 80 columns. Break it into 2
sentences: one explaining the issue, and the other explaining the fix.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2021-06-04 07:04:21 -06:00
b3b2a312b7 Define GPCRn values in EC header 2021-06-03 09:48:55 -06:00
3fe0e2f4e4 Add hidapi deps
ectool uses hidapi, which requires cc and pkg-config to be available.

This fixes building ectool on a minimal install system.
2021-05-25 09:15:02 -06:00
1b539e1206 Make touchpad access non-blocking 2021-05-24 19:02:47 -06:00
532219c3f8 Allow battery thresholds to be set in config.mk
The start/end thresholds are user-configurable values. This will allow
us to override these with profile values if desired.
2021-05-14 15:55:26 -06:00
76e02c9514 Set battery charging thresholds in common.mk
Battery threshold control is entirely software-defined and does not
depend on any board-specific behavior.
2021-05-14 15:55:26 -06:00
285d622fbc kbc: Reduce timeout from 10ms to 1ms
Fix ACPI timeout and delay on S3 resume when holding a key.

A timeout greater than 1ms results in the excessive delay (~10s) still
occurring on an oryp5 (IT8587).
2021-05-14 15:06:50 -06:00
aa880033e3 Add missing xxd dep 2021-05-14 12:48:34 -06:00
316376c271 Add deps for Arch Linux 2021-05-14 12:48:34 -06:00
8bdcf243ec Add lint to ensure spaces are used for indentation 2021-05-07 12:44:48 -06:00
4963e04a83 Reindent files using spaces 2021-05-07 12:44:48 -06:00
720af4b2b0 Use BIT macro
Mostly done with the cocci script. macro.h was then added manually.
2021-05-07 11:24:25 -06:00
9a3ecba010 scripts: Add coccinelle file to use BIT macro 2021-05-07 11:24:25 -06:00
7888f214bb Update dependency and keyboard config instructions
People who are just reading the keyboard customization instructions might overread the dependencies installations sections.
Additionally, installing rustup for the first time requires sourcing cargo's env vars in case the firmware is flashed in the same shell session after installing rustup.
2021-05-03 16:25:19 -06:00
606ba01b48 default to fan syncing but support disabling fan syncing with SYNC_FANS=0 build flag 2021-05-01 06:33:40 -06:00
f0c42f5839 Sync dGPU and PECI fans (at highest requested duty) 2021-05-01 06:33:40 -06:00
73b4e42726 Update ecspy
Attempting to use ecspy results in it failing to build redox_hwio.
Update the submodule to a version that uses a newer version of the dep.
2021-04-14 15:43:34 -06:00
1ea21aedbe deps.sh: Run apt-get update
Hopefully this will fix the CI tests. This is a common enough issue on
CI that Travis mentions it in their documentation:
https://docs.travis-ci.com/user/common-build-problems/#linux-apt-fails-to-install-package-with-404-error
2021-04-13 11:04:51 -06:00
55523d4083 ectool 0.3.6 2021-04-13 11:04:51 -06:00
84d5c6b79d tool: Make Access require Send and 'static
This allows the Configurator to send a `Ec<Box<dyn Access>>` through a
channel to a background thread. This could be done differently, but
presumably there's no reason to have an `Access` implementation this
doesn't apply to.
2021-04-13 11:04:51 -06:00
16778e4a41 Report all keys as released when lid is closed 2021-04-02 13:38:28 -06:00
a04d353096 Fix fan_max keeping fan on when in S0iX 2021-04-02 13:38:28 -06:00
2401fcc50d oryp6, oryp7: Fix buzzing at lowest fan speed 2021-03-16 18:51:55 -06:00
61428bd198 ectool 0.3.5 2021-03-16 10:33:46 -06:00
0017450cbb Add LED_SAVE command 2021-03-16 10:33:46 -06:00
17f8e37ed5 Convert toolchain file to TOML syntax
rustup 1.23.0 (2020-11-27) introduced support for TOML syntax for the
toolchain file. Use this and specify required compoenents.

To ensure you are using a new enough rustup, run:

    rustup self update
2021-03-15 10:09:42 -06:00
66a970fa51 oryp6, oryp7: Improved fan curve for video chat 2021-03-08 15:54:19 -07:00
9ad6b54aed Fix requiring sudo to run power.sh 2021-03-08 15:54:19 -07:00
91d128f0a0 ectool 0.3.4 2021-03-04 13:52:25 -07:00
aab45bfcc1 Add layer parameter for LED_GET_MODE and LED_SET_MODE commands 2021-03-04 13:52:25 -07:00
301eef6f21 tool: Fix and CI test with redox_hwio 2021-03-04 13:51:19 -07:00
59df32814b tool: Don't depend on clap when without default features 2021-03-04 13:51:19 -07:00
aefad937bb ci: Test --no-default-features build of ectool 2021-03-04 13:51:19 -07:00
325762d4d8 tool: Fix building without std feature 2021-03-04 13:51:19 -07:00
8825b906bd ectool 0.3.3 2021-03-01 11:51:08 -07:00
f30a9d84f7 Fix unused variable warning 2021-03-01 11:50:31 -07:00
2ef4cd7bbd Add matrix command 2021-03-01 11:50:31 -07:00
c931eb4eef Do not repeat K_FAN_TOGGLE 2021-02-26 15:51:47 -07:00
67e143178d Always notify OS of SCI when pmc_sci is called 2021-02-26 15:51:47 -07:00
4cd4df03e8 ectool 0.3.2 2021-02-26 12:18:02 -07:00
b11bc64bba tool: API and CLI for LED matrix mode 2021-02-26 12:18:02 -07:00
73a5d8b8a1 ectool 0.3.1: Implement read_debug for Box<dyn Access> 2021-02-23 09:45:55 -07:00
221da86e20 ci: Add job to build the tool 2021-02-23 09:29:16 -07:00
340ddd2e81 deps: Install libudev 2021-02-23 09:29:16 -07:00
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
71534e736c ci: Add job to check for SPDX identifiers 2021-02-22 14:02:18 -07:00
3e154d7f00 Add missing SPDX identifiers 2021-02-22 14:02:18 -07:00
3e742b0da7 Add script to check for SPDX identifiers 2021-02-22 14:02:18 -07:00
9ef191edff tool: Update copyright year 2021-02-22 13:58:53 -07:00
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