Skip to content

Commit bcb57cb

Browse files
committed
Release ASense v0.2.0 capability-driven Acer support
1 parent d4ed07f commit bcb57cb

40 files changed

Lines changed: 11271 additions & 1893 deletions

‎.github/FUNDING.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# GitHub has no native Bitcoin funding key. This HTTPS page contains the
2+
# project's public Bitcoin donation address and matching QR code.
3+
custom: "https://github.com/fladirm/asense/blob/main/DONATE.md"
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: Bug report
2+
description: Report a reproducible ASense problem
3+
title: "[Bug] "
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Please search existing issues first. Do not include serial numbers,
9+
UUIDs, hostnames, network addresses or private logs.
10+
11+
- type: input
12+
id: version
13+
attributes:
14+
label: ASense version
15+
placeholder: v0.2.0
16+
validations:
17+
required: true
18+
19+
- type: input
20+
id: model
21+
attributes:
22+
label: Exact Acer model
23+
placeholder: Predator PHN16-72
24+
validations:
25+
required: true
26+
27+
- type: input
28+
id: distribution
29+
attributes:
30+
label: Distribution and desktop
31+
placeholder: Ubuntu 26.04, GNOME
32+
validations:
33+
required: true
34+
35+
- type: input
36+
id: kernel
37+
attributes:
38+
label: Kernel
39+
placeholder: Output of uname -r
40+
validations:
41+
required: true
42+
43+
- type: input
44+
id: bios
45+
attributes:
46+
label: BIOS version
47+
placeholder: "1.18"
48+
validations:
49+
required: true
50+
51+
- type: textarea
52+
id: steps
53+
attributes:
54+
label: Steps to reproduce
55+
description: List the shortest sequence that reproduces the problem.
56+
validations:
57+
required: true
58+
59+
- type: textarea
60+
id: expected
61+
attributes:
62+
label: Expected behavior
63+
validations:
64+
required: true
65+
66+
- type: textarea
67+
id: actual
68+
attributes:
69+
label: Actual behavior
70+
validations:
71+
required: true
72+
73+
- type: textarea
74+
id: probe
75+
attributes:
76+
label: Compatibility report
77+
description: Drag asense-probe.json here after reviewing its contents.
78+
placeholder: Attach the JSON file generated by asense probe.
79+
80+
- type: checkboxes
81+
id: confirmation
82+
attributes:
83+
label: Confirmation
84+
options:
85+
- label: I reviewed the report and removed any information I do not want to share.
86+
required: true
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Compatibility report
2+
description: Tell us which ASense features work on an Acer model
3+
title: "[Compatibility] "
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Reports from real laptops expand the model matrix. ASense capabilities
9+
are independent, so partial results are useful too.
10+
11+
- type: input
12+
id: model
13+
attributes:
14+
label: Exact Acer model
15+
placeholder: Nitro AN16-43
16+
validations:
17+
required: true
18+
19+
- type: input
20+
id: distribution
21+
attributes:
22+
label: Distribution
23+
placeholder: Ubuntu 26.04
24+
validations:
25+
required: true
26+
27+
- type: input
28+
id: kernel
29+
attributes:
30+
label: Kernel
31+
placeholder: Output of uname -r
32+
validations:
33+
required: true
34+
35+
- type: input
36+
id: bios
37+
attributes:
38+
label: BIOS
39+
placeholder: BIOS version reported by ASense
40+
validations:
41+
required: true
42+
43+
- type: textarea
44+
id: works
45+
attributes:
46+
label: What works
47+
placeholder: Profiles, RPM, Manual fans, keyboard RGB, battery limit...
48+
validations:
49+
required: true
50+
51+
- type: textarea
52+
id: broken
53+
attributes:
54+
label: What does not work
55+
placeholder: Missing controls, rejected writes, wrong readback...
56+
validations:
57+
required: true
58+
59+
- type: textarea
60+
id: probe
61+
attributes:
62+
label: asense-probe.json
63+
description: Run asense probe, review the JSON, then drag the file here.
64+
placeholder: Attach asense-probe.json.
65+
validations:
66+
required: true
67+
68+
- type: checkboxes
69+
id: confirmation
70+
attributes:
71+
label: Confirmation
72+
options:
73+
- label: This report comes from the exact physical model named above.
74+
required: true
75+
- label: I reviewed the probe file before attaching it.
76+
required: true

‎.github/workflows/ci.yml‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
sudo apt-get install -y --no-install-recommends \
2727
build-essential pkg-config libgtk-3-dev libwebkit2gtk-4.1-dev \
2828
libxdo-dev libssl-dev libelf-dev linux-headers-generic \
29-
desktop-file-utils
29+
desktop-file-utils udev
3030
3131
- name: Install Rust
3232
run: |
@@ -57,6 +57,7 @@ jobs:
5757
scripts/package-release.sh \
5858
scripts/verify-release.sh
5959
sh -n packaging/asense-system-sleep
60+
udevadm verify packaging/71-asense-hid.rules
6061
temporary="$(mktemp -d)"
6162
install -D -m 0644 packaging/90-asense-predator-key.hwdb \
6263
"$temporary/etc/udev/hwdb.d/90-asense-predator-key.hwdb"
@@ -89,5 +90,16 @@ jobs:
8990
} | sort -V | tail -n 1)"
9091
test -n "$headers"
9192
test -f "$headers/Makefile"
93+
header_release="${headers##*/linux-headers-}"
94+
printf 'Compiling DKMS transport against %s on %s\n' \
95+
"$header_release" '${{ matrix.os }}'
96+
if [[ '${{ matrix.os }}' == 'ubuntu-24.04' ]]; then
97+
[[ "$header_release" == 6.8.* ]]
98+
else
99+
major="${header_release%%.*}"
100+
minor="${header_release#*.}"
101+
minor="${minor%%.*}"
102+
((major > 6 || (major == 6 && minor >= 9)))
103+
fi
92104
make -C "$headers" M="$GITHUB_WORKSPACE/kernel" modules
93105
make -C "$headers" M="$GITHUB_WORKSPACE/kernel" clean

‎.github/workflows/release.yml‎

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ on:
44
push:
55
tags:
66
- "v*"
7+
workflow_dispatch:
78

89
permissions:
910
contents: write
1011

1112
jobs:
1213
release:
1314
name: Build Ubuntu 26.04 release
15+
if: github.event_name == 'push' || github.ref == 'refs/heads/main'
1416
runs-on: ubuntu-26.04
1517
steps:
1618
- uses: actions/checkout@v4
@@ -36,17 +38,30 @@ jobs:
3638

3739
- name: Build release assets
3840
env:
39-
ASENSE_RELEASE_TAG: ${{ github.ref_name }}
41+
ASENSE_RELEASE_TAG: ${{ github.event_name == 'push' && github.ref_type == 'tag' && github.ref_name || '' }}
4042
run: scripts/package-release.sh
4143

44+
- name: Upload release-candidate assets
45+
if: github.event_name == 'workflow_dispatch'
46+
uses: actions/upload-artifact@v4
47+
with:
48+
name: asense-v0.2.0-rc-${{ github.sha }}
49+
retention-days: 7
50+
if-no-files-found: error
51+
path: |
52+
asense-v*.zip
53+
asense-v*.zip.sha256
54+
SHA256SUMS
55+
4256
- name: Publish GitHub Release assets
57+
if: github.event_name == 'push' && github.ref_type == 'tag'
4358
env:
4459
GH_TOKEN: ${{ github.token }}
4560
run: |
4661
gh release create "$GITHUB_REF_NAME" \
4762
--verify-tag \
48-
--title "ASense $GITHUB_REF_NAME" \
49-
--generate-notes \
63+
--title "ASense v0.2.0 — Multi-model Acer Linux support" \
64+
--notes-file docs/RELEASE_NOTES_v0.2.0.md \
5065
asense-v*.zip \
5166
asense-v*.zip.sha256 \
52-
asense-v*-SHA256SUMS.txt
67+
SHA256SUMS

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*.zip
44
*.zip.sha256
55
*-SHA256SUMS.txt
6+
/SHA256SUMS
67
/kernel/.*.cmd
78
/kernel/*.ko
89
/kernel/*.mod

‎Cargo.lock‎

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[package]
22
name = "asense"
3-
version = "0.1.1"
3+
version = "0.2.0"
44
edition = "2024"
55
license = "GPL-2.0-only"
6-
description = "Native Acer Predator PHN16-72 control panel"
6+
description = "Native Linux control panel for Acer laptops"
77
authors = ["Fladirmacht <fladirmacht@gmail.com>"]
88
repository = "https://github.com/fladirm/asense"
99
publish = false
@@ -37,6 +37,8 @@ futures-util = { version = "0.3", optional = true }
3737
glib = { version = "0.18", optional = true }
3838
libc = "0.2"
3939
libloading = "0.8.9"
40+
serde = { version = "1", features = ["derive"] }
41+
serde_json = "1"
4042

4143
[profile.release]
4244
lto = "thin"

‎DONATE.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Support ASense
2+
3+
ASense is free software. Donations are optional and do not unlock features,
4+
guarantee support or change the project's license and warranty terms.
5+
6+
## Bitcoin
7+
8+
| Field | Value |
9+
| --- | --- |
10+
| Network | Bitcoin mainnet |
11+
| Address | `bc1qqdumr0umlaak7tyrrh0jx729z272fv2jr4t5zp` |
12+
13+
[![Bitcoin donation QR code](docs/asense-bitcoin-qr.png)](bitcoin:bc1qqdumr0umlaak7tyrrh0jx729z272fv2jr4t5zp)
14+
15+
The address, payment link and QR code all represent the same native Bitcoin
16+
mainnet destination. Send only BTC over the Bitcoin mainnet to this address.
17+
Always compare the complete address shown by your wallet before confirming a
18+
transaction.
19+
20+
The wallet recovery phrase, private keys and extended private keys are never
21+
stored in this repository or included in a release asset.

0 commit comments

Comments
 (0)