aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2021-02-14 09:59:13 +0100
committerRobert Alessi <alessi@robertalessi.net>2021-02-14 09:59:13 +0100
commit1d81f2d8f9a1f89c45b95615a1122ce59873c69c (patch)
tree34cabefb89afee3ce68279fea411a4cb24a8acc7
parentfaf5cd914d7e8f1dcf766410f571ea4fbbe46453 (diff)
downloadmy-x200-1d81f2d8f9a1f89c45b95615a1122ce59873c69c.tar.gz
Mapped ThinkVantage to the refresh function. Added new section on usagev0.7-3
-rw-r--r--README.md24
-rw-r--r--about.html12
-rw-r--r--debian/changelog5
-rw-r--r--makefile2
-rw-r--r--my-x200-thinkvantage.sh2
-rw-r--r--my-x200.sh11
-rw-r--r--my-x200_0.7-2.debian.tar.xzbin1508 -> 0 bytes
-rw-r--r--my-x200_0.7-2.dsc41
-rw-r--r--my-x200_0.7-2_amd64.debbin5056 -> 0 bytes
-rw-r--r--my-x200_0.7-3.debian.tar.xzbin0 -> 1540 bytes
-rw-r--r--my-x200_0.7-3.dsc41
-rw-r--r--my-x200_0.7-3_amd64.debbin0 -> 5152 bytes
-rw-r--r--my-x200_0.7.orig.tar.gzbin7992 -> 10459 bytes
13 files changed, 88 insertions, 50 deletions
diff --git a/README.md b/README.md
index f316497..cdc5be0 100644
--- a/README.md
+++ b/README.md
@@ -61,7 +61,7 @@ advisable to verify the signature like so:—
61For a good GPG cheat sheet, see [here](https://guides.library.illinois.edu/data_encryption/gpgcheatsheet). 61For a good GPG cheat sheet, see [here](https://guides.library.illinois.edu/data_encryption/gpgcheatsheet).
62 62
63Configuration 63Configuration
64------------- 64=============
65Once installed, `my-x200` is configured by editing 65Once installed, `my-x200` is configured by editing
66[`/etc/default/my-x200`](http://git.robertalessi.net/my-x200/tree/my-x200.confd). 66[`/etc/default/my-x200`](http://git.robertalessi.net/my-x200/tree/my-x200.confd).
67 67
@@ -102,8 +102,8 @@ course, the backup process is triggered on certain conditions only:
102Then, once these conditions are met, the backup process is triggered 102Then, once these conditions are met, the backup process is triggered
103whenever the service is stopped. 103whenever the service is stopped.
104 104
105Use and recommended configuration 105Recommended Settings
106--------------------------------- 106--------------------
107> The command `rc-update` that is used below refers to `openrc`. Other 107> The command `rc-update` that is used below refers to `openrc`. Other
108> init systems use other commands. Please adapt. 108> init systems use other commands. Please adapt.
109 109
@@ -171,7 +171,23 @@ rc-update del avahi-daemon
171chmod -x /etc/network/if-up.d/avahi-daemon 171chmod -x /etc/network/if-up.d/avahi-daemon
172```` 172````
173 173
174Usage
175=====
176In addition to the usual arguments, namely `start`, `stop`, `restart`
177and `force-reload`, `/etc/init.d/my-x200` accepts two further
178arguments, like so:—
179
1801. `/etc/init.d/my-x200 refresh` to reset the frequency rate of the
181 screen to the default value. This is to be used in the hopefully
182 rare cases when the noise becomes perceptible again. Unprivileged
183 users may perform this action by pressing the `ThinkVantage`
184 button.
1852. `/etc/init.d/my-x200 initbackup`. If backuping be set as described
186 above, `/etc/init.d/my-x200 initbackup` can be used to trigger a
187 backup round immediately, that is without having to shut down the
188 system for the first backup round to happen.
189
174Further Information 190Further Information
175------------------- 191===================
176More information in `my-x200` initd file: 192More information in `my-x200` initd file:
177<http://git.robertalessi.net/my-x200/tree/my-x200.confd> 193<http://git.robertalessi.net/my-x200/tree/my-x200.confd>
diff --git a/about.html b/about.html
index fc09fec..d181a0b 100644
--- a/about.html
+++ b/about.html
@@ -41,7 +41,7 @@
41<li>Verify the signature: <code>dscverify --keyring ~/.gnupg/pubring.gpg my-x200_&lt;ver&gt;.dsc</code> (Replace <code>&lt;ver&gt;</code> with the actual release number.)</li> 41<li>Verify the signature: <code>dscverify --keyring ~/.gnupg/pubring.gpg my-x200_&lt;ver&gt;.dsc</code> (Replace <code>&lt;ver&gt;</code> with the actual release number.)</li>
42</ol> 42</ol>
43<p>For a good GPG cheat sheet, see <a href="https://guides.library.illinois.edu/data_encryption/gpgcheatsheet">here</a>.</p> 43<p>For a good GPG cheat sheet, see <a href="https://guides.library.illinois.edu/data_encryption/gpgcheatsheet">here</a>.</p>
44<h2 id="configuration">Configuration</h2> 44<h1 id="configuration">Configuration</h1>
45<p>Once installed, <code>my-x200</code> is configured by editing <a href="http://git.robertalessi.net/my-x200/tree/my-x200.confd"><code>/etc/default/my-x200</code></a>.</p> 45<p>Once installed, <code>my-x200</code> is configured by editing <a href="http://git.robertalessi.net/my-x200/tree/my-x200.confd"><code>/etc/default/my-x200</code></a>.</p>
46<p>It is also possible to leave <code>/etc/default/my-200</code> untouched. In this case, <code>my-x200</code> can source its configuration from one or more <code>*.conf</code> files written in a specific directory <code>/etc/default/my-x200.d/</code> which is to be created. This is the recommended method for these files cannot be affected by subsequent updates.</p> 46<p>It is also possible to leave <code>/etc/default/my-200</code> untouched. In this case, <code>my-x200</code> can source its configuration from one or more <code>*.conf</code> files written in a specific directory <code>/etc/default/my-x200.d/</code> which is to be created. This is the recommended method for these files cannot be affected by subsequent updates.</p>
47<h2 id="noise-removal">Noise Removal</h2> 47<h2 id="noise-removal">Noise Removal</h2>
@@ -56,7 +56,7 @@
56<li>An (empty) <code>dobackup</code> file must be present in the backup directory.</li> 56<li>An (empty) <code>dobackup</code> file must be present in the backup directory.</li>
57</ol> 57</ol>
58<p>Then, once these conditions are met, the backup process is triggered whenever the service is stopped.</p> 58<p>Then, once these conditions are met, the backup process is triggered whenever the service is stopped.</p>
59<h2 id="use-and-recommended-configuration">Use and recommended configuration</h2> 59<h2 id="recommended-settings">Recommended Settings</h2>
60<blockquote> 60<blockquote>
61<p>The command <code>rc-update</code> that is used below refers to <code>openrc</code>. Other init systems use other commands. Please adapt.</p> 61<p>The command <code>rc-update</code> that is used below refers to <code>openrc</code>. Other init systems use other commands. Please adapt.</p>
62</blockquote> 62</blockquote>
@@ -100,7 +100,13 @@ wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf</code></pre>
100<p>To disable <code>avahi</code>, do (as root):</p> 100<p>To disable <code>avahi</code>, do (as root):</p>
101<pre><code>rc-update del avahi-daemon 101<pre><code>rc-update del avahi-daemon
102chmod -x /etc/network/if-up.d/avahi-daemon</code></pre> 102chmod -x /etc/network/if-up.d/avahi-daemon</code></pre>
103<h2 id="further-information">Further Information</h2> 103<h1 id="usage">Usage</h1>
104<p>In addition to the usual arguments, namely <code>start</code>, <code>stop</code>, <code>restart</code> and <code>force-reload</code>, <code>/etc/init.d/my-x200</code> accepts two further arguments, like so:—</p>
105<ol type="1">
106<li><code>/etc/init.d/my-x200 refresh</code> to reset the frequency rate of the screen to the default value. This is to be used in the hopefully rare cases when the noise becomes perceptible again. Unprivileged users may perform this action by pressing the <code>ThinkVantage</code> button.</li>
107<li><code>/etc/init.d/my-x200 initbackup</code>. If backuping be set as described above, <code>/etc/init.d/my-x200 initbackup</code> can be used to trigger a backup round immediately, that is without having to shut down the system for the first backup round to happen.</li>
108</ol>
109<h1 id="further-information">Further Information</h1>
104<p>More information in <code>my-x200</code> initd file: <a href="http://git.robertalessi.net/my-x200/tree/my-x200.confd" class="uri">http://git.robertalessi.net/my-x200/tree/my-x200.confd</a></p> 110<p>More information in <code>my-x200</code> initd file: <a href="http://git.robertalessi.net/my-x200/tree/my-x200.confd" class="uri">http://git.robertalessi.net/my-x200/tree/my-x200.confd</a></p>
105</body> 111</body>
106</html> 112</html>
diff --git a/debian/changelog b/debian/changelog
index 3873d92..9355a6d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,10 @@
1my-x200 (0.7-2) UNRELEASED; urgency=medium 1my-x200 (0.7-3) UNRELEASED; urgency=medium
2 2
3 * Initial release. 3 * Initial release.
4 * Removed remnant lines left of openrc-run in initd file 4 * Removed remnant lines left of openrc-run in initd file
5 * Added elogind as dependency 5 * Added elogind as dependency
6 * New acpi event: button/suspend 6 * New acpi event: button/suspend
7 * Added conflict with acpi-support 7 * Added conflict with acpi-support
8 * Map ThinkVantage to /etc/init.d/my-x200 refresh
8 9
9 -- Robert Alessi <alessi@robertalessi.net> Sat, 13 Feb 2021 17:01:19 +0100 10 -- Robert Alessi <alessi@robertalessi.net> Sun, 14 Feb 2021 09:17:40 +0100
diff --git a/makefile b/makefile
index e46d700..2157cfb 100644
--- a/makefile
+++ b/makefile
@@ -37,6 +37,7 @@ install:
37 install -Dm644 my-x200-lid.sh $(DESTDIR)etc/acpi/events/my-x200-lid 37 install -Dm644 my-x200-lid.sh $(DESTDIR)etc/acpi/events/my-x200-lid
38 install -Dm644 my-x200-sleep.sh $(DESTDIR)etc/acpi/events/my-x200-sleep 38 install -Dm644 my-x200-sleep.sh $(DESTDIR)etc/acpi/events/my-x200-sleep
39 install -Dm644 my-x200-suspend.sh $(DESTDIR)etc/acpi/events/my-x200-suspend 39 install -Dm644 my-x200-suspend.sh $(DESTDIR)etc/acpi/events/my-x200-suspend
40 install -Dm644 my-x200-thinkvantage.sh $(DESTDIR)etc/acpi/events/my-x200-thinkvantage
40 install -Dm755 my-x200.sh $(DESTDIR)etc/acpi/my-x200.sh 41 install -Dm755 my-x200.sh $(DESTDIR)etc/acpi/my-x200.sh
41 42
42uninstall: 43uninstall:
@@ -45,6 +46,7 @@ uninstall:
45 rm -rf $(DESTDIR)etc/acpi/events/my-x200-lid 46 rm -rf $(DESTDIR)etc/acpi/events/my-x200-lid
46 rm -rf $(DESTDIR)etc/acpi/events/my-x200-sleep 47 rm -rf $(DESTDIR)etc/acpi/events/my-x200-sleep
47 rm -rf $(DESTDIR)etc/acpi/events/my-x200-suspend 48 rm -rf $(DESTDIR)etc/acpi/events/my-x200-suspend
49 rm -rf $(DESTDIR)etc/acpi/events/my-x200-thinkvantage
48 rm -rf $(DESTDIR)etc/acpi/my-x200.sh 50 rm -rf $(DESTDIR)etc/acpi/my-x200.sh
49 51
50.PHONY: all clean install uninstall prepare debian debian_package 52.PHONY: all clean install uninstall prepare debian debian_package
diff --git a/my-x200-thinkvantage.sh b/my-x200-thinkvantage.sh
new file mode 100644
index 0000000..90b3cca
--- /dev/null
+++ b/my-x200-thinkvantage.sh
@@ -0,0 +1,2 @@
1event=button/vendor.*
2action=/etc/acpi/my-x200.sh %e
diff --git a/my-x200.sh b/my-x200.sh
index 1cd3b06..42dec59 100644
--- a/my-x200.sh
+++ b/my-x200.sh
@@ -41,4 +41,15 @@ case "$1" in
41 ;; 41 ;;
42 esac 42 esac
43 ;; 43 ;;
44 button/vendor)
45 case "$2" in
46 VNDR)
47 logger 'ThinkVantage pressed'
48 /etc/init.d/my-x200 refresh
49 ;;
50 *)
51 logger "ACPI action undefined: $2"
52 ;;
53 esac
54 ;;
44esac 55esac
diff --git a/my-x200_0.7-2.debian.tar.xz b/my-x200_0.7-2.debian.tar.xz
deleted file mode 100644
index 1aed498..0000000
--- a/my-x200_0.7-2.debian.tar.xz
+++ /dev/null
Binary files differ
diff --git a/my-x200_0.7-2.dsc b/my-x200_0.7-2.dsc
deleted file mode 100644
index 90dc184..0000000
--- a/my-x200_0.7-2.dsc
+++ /dev/null
@@ -1,41 +0,0 @@
1-----BEGIN PGP SIGNED MESSAGE-----
2Hash: SHA256
3
4Format: 3.0 (quilt)
5Source: my-x200
6Binary: my-x200
7Architecture: any
8Version: 0.7-2
9Maintainer: Robert Alessi <alessi@robertalessi.net>
10Homepage: http://git.robertalessi.net/my-x200
11Standards-Version: 4.3.0
12Build-Depends: debhelper (>= 10)
13Package-List:
14 my-x200 deb misc optional arch=any
15Checksums-Sha1:
16 82dc31efabd4a7493c9d4737cae2dc942ff5f31b 7992 my-x200_0.7.orig.tar.gz
17 90fa97683d4a58cbf85e92753addd90f7958de2a 1508 my-x200_0.7-2.debian.tar.xz
18Checksums-Sha256:
19 172e2379d070f2bd49609fb892e4ff0de5975efb654d97f68671fba51d3d2255 7992 my-x200_0.7.orig.tar.gz
20 f133ac6eb5511575ada8d3f72cec61360440f9ac6c3f9b6d4e346f977403a007 1508 my-x200_0.7-2.debian.tar.xz
21Files:
22 c23018e118c3b1f7bd1831b222603401 7992 my-x200_0.7.orig.tar.gz
23 f4d691f876cebc5edd571100045a4ef2 1508 my-x200_0.7-2.debian.tar.xz
24
25-----BEGIN PGP SIGNATURE-----
26
27iQJMBAEBCAA2FiEERaXhpjEUeDwRCTLxF3PpJICFyMcFAmAn+NgYHGFsZXNzaUBy
28b2JlcnRhbGVzc2kubmV0AAoJEBdz6SSAhcjHEygP/jTMM/0+NjhZ+eKDTiAvJMMI
29MfiWDjk7pyc0yP6Xs5kH7Dx05WpgQUQVntMGu+/6i6d5nbPfRmtNeAG3QpiN+isZ
30ivF2Z+yCj0qEKqaK41DSvh2E3PnWZv7/mOfvKsg6B3Qa3Z8BPe9j/f+7bLqrPGn1
314DrJBNg5AzDSzvJ7LMfT4zpL2NfBoYn4PfCFraUgCrNC99vRTI27VfcIOCtV6QaE
32xEG2BOISmh6e5lk2d8nq2UzzsSsKCuQZ4iHQGdWiCUM0VWfPehGoZB8AhxlXeLkb
33VMtgLqAYAGXI9xDP2dR62rDWHBxCbTUaWhfwNZOvlZ+F03pxRp+2J2LO3OdfHJpQ
34sxXTw5OHqTcMuTCCsEvmfs3Db+UfTFCIRn26eb9lzcfnUfE0gPOp6USScttd1+cx
35S3CP1jsVdcjn6GbJWnSZ3PNNu19Nz5kukd+rdu3IDkOoCMbVYA+OBzzCL8l3gQPG
36/+wzGgagyvpJV5FRSW32l4OwZ5L37LRk6Ke0CLS9tvahsMRHo4CJhGVkU1LPUXop
37zVwctkfVAtBmMYlFNmu27clVoStsHIxmK/ESHecW3q4PIWoaByj2LlPBg8wYyue8
38FLA/DbGUP64kV5T3wu36wbT9PpY9iWcPnFu8nmnI6M8MTu6TId7J2/AEsqOMviie
39bn4QfYBj4IYNNkLbKDe/
40=XpnR
41-----END PGP SIGNATURE-----
diff --git a/my-x200_0.7-2_amd64.deb b/my-x200_0.7-2_amd64.deb
deleted file mode 100644
index 579b65d..0000000
--- a/my-x200_0.7-2_amd64.deb
+++ /dev/null
Binary files differ
diff --git a/my-x200_0.7-3.debian.tar.xz b/my-x200_0.7-3.debian.tar.xz
new file mode 100644
index 0000000..c08b210
--- /dev/null
+++ b/my-x200_0.7-3.debian.tar.xz
Binary files differ
diff --git a/my-x200_0.7-3.dsc b/my-x200_0.7-3.dsc
new file mode 100644
index 0000000..583fc9c
--- /dev/null
+++ b/my-x200_0.7-3.dsc
@@ -0,0 +1,41 @@
1-----BEGIN PGP SIGNED MESSAGE-----
2Hash: SHA256
3
4Format: 3.0 (quilt)
5Source: my-x200
6Binary: my-x200
7Architecture: any
8Version: 0.7-3
9Maintainer: Robert Alessi <alessi@robertalessi.net>
10Homepage: http://git.robertalessi.net/my-x200
11Standards-Version: 4.3.0
12Build-Depends: debhelper (>= 10)
13Package-List:
14 my-x200 deb misc optional arch=any
15Checksums-Sha1:
16 77bcdc4b96b3c5a7c4881287e441d4f6d7d97502 10459 my-x200_0.7.orig.tar.gz
17 c477b3bf8ba5461d564a0e508034d73b27705475 1540 my-x200_0.7-3.debian.tar.xz
18Checksums-Sha256:
19 6f16d3a407664c4c52a3c84bf5a9c1730b9f78962153a2e5502b3fc5aa79eb52 10459 my-x200_0.7.orig.tar.gz
20 dab40535f216ccbda4c6ec68d7fd60abd9abda2f334eb5d34e88a154260cfe42 1540 my-x200_0.7-3.debian.tar.xz
21Files:
22 4b35e9a14c07861ec37c0e6fc9054fb2 10459 my-x200_0.7.orig.tar.gz
23 a368e67ebbb7b1787cefe0ca29cf80c5 1540 my-x200_0.7-3.debian.tar.xz
24
25-----BEGIN PGP SIGNATURE-----
26
27iQJMBAEBCAA2FiEERaXhpjEUeDwRCTLxF3PpJICFyMcFAmAo5SoYHGFsZXNzaUBy
28b2JlcnRhbGVzc2kubmV0AAoJEBdz6SSAhcjHSxgQAJiAf4dFa5PAWwGyVWiaseRY
29djUxI7wT1ybazwyTbD9RWC8qv9jYCBVBxIN5PAdxo5fE5enzsEKC5CR02kDz0p+j
30KaGV5VwnKorfFcQ8Ijyk9VhFmAlG9I4qV3E95UE3oAY6RDqvywhxESuAeRpy2Ycj
31Lm+D9juyb2w/0L2C+EcqRSxc+4Qs+TGX9zWaKDrPR1YWjnprqFR1HJVWOKj7Ln47
32Q8NRSo6PODlODy/j4Ax4SIhc13QpwiJ/ZTrwUqSzncpfSbIF1TCH9dgXAymGmpcK
33GJ12l2fybFBO3OyFAS9/jqzWk8yx3seue9dUWA84lfhjrPfClf3/LA6fCf0UhbbC
34QWfKg7CUzuxVfLrQtoAkorjAhzTn2Ir0ey5qUbPqY8zZ2vRe4W8ngRQR86VR9v8V
35SfOb0Mo6w8ys5ju7yem9RBoiN4LTi4BumhXi4eYIDh9bLDIpaLb4VPLTxh8NTOsz
36jXQT6Q84T8nbT+BT/6Upa6VEzYLBmBLYXI5AXy0FAO2C2SlRWwngP3A0kFoi4dYR
37aeAsqe+fu8GXCc/mdoj5cl+aipw6rYw3wgpNDulAJqyCCZIgzWYMnGGb68II1Hw2
3838T1yEgMLTUu/Nrk8bqZw5e8+rpqxy5smshyhtI3AjcUJTPKlN2FyVUxVxECWULt
39aKaXZD33OaFye3/4kUX3
40=8CcE
41-----END PGP SIGNATURE-----
diff --git a/my-x200_0.7-3_amd64.deb b/my-x200_0.7-3_amd64.deb
new file mode 100644
index 0000000..bb8b9a1
--- /dev/null
+++ b/my-x200_0.7-3_amd64.deb
Binary files differ
diff --git a/my-x200_0.7.orig.tar.gz b/my-x200_0.7.orig.tar.gz
index 085eacd..d0f9566 100644
--- a/my-x200_0.7.orig.tar.gz
+++ b/my-x200_0.7.orig.tar.gz
Binary files differ