Parcourir la source

Note about battery optimisation of riot app

Bob Mottram il y a 7 ans
Parent
révision
89b7087c94
4 fichiers modifiés avec 64 ajouts et 46 suppressions
  1. 3
    0
      doc/EN/app_matrix.org
  2. 2
    0
      doc/EN/mobile.org
  3. 24
    15
      website/EN/app_matrix.html
  4. 35
    31
      website/EN/mobile.html

+ 3
- 0
doc/EN/app_matrix.org Voir le fichier

@@ -53,3 +53,6 @@ Destination: 10 0 8448 [yourmatrixsubdomain]
53 53
 #+end_src
54 54
 
55 55
 You may also want to make another entry with the same settings but replacing *tcp* with *udp*.
56
+
57
+* Mobile app
58
+If you're using the Riot mobile app to access your Matrix homeserver then you can significantly improve battery performance by going to the settings and changing *Sync request timeout* to 30 seconds and *Delay between two sync requests* to 600 seconds.

+ 2
- 0
doc/EN/mobile.org Voir le fichier

@@ -82,6 +82,8 @@ Even with free software apps it's not difficult to get into a situation where yo
82 82
 
83 83
 If you have Syncthing installed then change the settings so that it only syncs when charging and when on wifi. Avoid any apps which might be continuously polling and preventing the device from going into sleep mode when it's not used.
84 84
 
85
+If you're using the Riot mobile app to access a Matrix homeserver then you can significantly improve battery performance by going to the settings and changing *Sync request timeout* to 30 seconds and *Delay between two sync requests* to 600 seconds.
86
+
85 87
 * Blocking bad domains
86 88
 You can block known bad domains by editing the */system/etc/hosts* file on your device. It is possible to use extensive ad-blocking hosts files used by other ad-blocking systems such as pi-hole, but merely blocking Facebook and Google Analytics will protect you against much of the corporate surveillance which goes on. Even if you don't have a Facebook account this may still be useful since they will still try to create a "ghost profile" of you, so the less data they have the better.
87 89
 

+ 24
- 15
website/EN/app_matrix.html Voir le fichier

@@ -3,10 +3,10 @@
3 3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5 5
 <head>
6
-<!-- 2017-08-23 Wed 19:23 -->
6
+<!-- 2017-11-19 Sun 23:19 -->
7 7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8 8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9
-<title></title>
9
+<title>&lrm;</title>
10 10
 <meta name="generator" content="Org mode" />
11 11
 <meta name="author" content="Bob Mottram" />
12 12
 <meta name="description" content="How to use Matrix"
@@ -264,16 +264,16 @@ Matrix is a federated communications system, typically for multi-user chat, with
264 264
 Another consideration is that since matrix operates on the usual HTTPS port number (443) this may make it difficult for ISPs or governments to censor this type of communications via port blocking without significant blowback.
265 265
 </p>
266 266
 
267
-<div id="outline-container-orgc78770d" class="outline-2">
268
-<h2 id="orgc78770d">Installation</h2>
269
-<div class="outline-text-2" id="text-orgc78770d">
267
+<div id="outline-container-orgd6cc689" class="outline-2">
268
+<h2 id="orgd6cc689">Installation</h2>
269
+<div class="outline-text-2" id="text-orgd6cc689">
270 270
 <p>
271 271
 Log into your system with:
272 272
 </p>
273 273
 
274 274
 <div class="org-src-container">
275
-<pre><code class="src src-bash">ssh myusername@mydomain -p 2222
276
-</code></pre>
275
+<pre class="src src-bash">ssh myusername@mydomain -p 2222
276
+</pre>
277 277
 </div>
278 278
 
279 279
 <p>
@@ -286,9 +286,9 @@ Select <b>Add/Remove Apps</b> then <b>matrix</b>. You will then be asked for a d
286 286
 </div>
287 287
 </div>
288 288
 
289
-<div id="outline-container-org5262b52" class="outline-2">
290
-<h2 id="org5262b52">Initial setup</h2>
291
-<div class="outline-text-2" id="text-org5262b52">
289
+<div id="outline-container-org3292734" class="outline-2">
290
+<h2 id="org3292734">Initial setup</h2>
291
+<div class="outline-text-2" id="text-org3292734">
292 292
 <p>
293 293
 Go to the <b>Administrator control panel</b> and select <b>Passwords</b> then <b>matrix</b>. This will give you the password to initially log in to the system and you can change it later from a client app if needed.
294 294
 </p>
@@ -303,19 +303,19 @@ Other client apps are available but are currently mostly only at the alpha stage
303 303
 </div>
304 304
 </div>
305 305
 
306
-<div id="outline-container-orgd8eede9" class="outline-2">
307
-<h2 id="orgd8eede9">DNS setup</h2>
308
-<div class="outline-text-2" id="text-orgd8eede9">
306
+<div id="outline-container-org82239c4" class="outline-2">
307
+<h2 id="org82239c4">DNS setup</h2>
308
+<div class="outline-text-2" id="text-org82239c4">
309 309
 <p>
310 310
 It's recommended that you add an SRV record for Matrix to your DNS setup. How you do this will depend upon your dynamic DNS provider and their web interface. On FreeDNS on the subdomains settings in addition to the subdomain which you are using for the matrix server create an extra entry as follows:
311 311
 </p>
312 312
 
313 313
 <div class="org-src-container">
314
-<pre><code class="src src-text">Type: SRV
314
+<pre class="src src-text">Type: SRV
315 315
 Subdomain: _matrix._tcp
316 316
 Domain: [youdomain]
317 317
 Destination: 10 0 8448 [yourmatrixsubdomain]
318
-</code></pre>
318
+</pre>
319 319
 </div>
320 320
 
321 321
 <p>
@@ -323,6 +323,15 @@ You may also want to make another entry with the same settings but replacing <b>
323 323
 </p>
324 324
 </div>
325 325
 </div>
326
+
327
+<div id="outline-container-org9568212" class="outline-2">
328
+<h2 id="org9568212">Mobile app</h2>
329
+<div class="outline-text-2" id="text-org9568212">
330
+<p>
331
+If you're using the Riot mobile app to access your Matrix homeserver then you can significantly improve battery performance by going to the settings and changing <b>Sync request timeout</b> to 30 seconds and <b>Delay between two sync requests</b> to 600 seconds.
332
+</p>
333
+</div>
334
+</div>
326 335
 </div>
327 336
 <div id="postamble" class="status">
328 337
 

+ 35
- 31
website/EN/mobile.html Voir le fichier

@@ -3,7 +3,7 @@
3 3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5 5
 <head>
6
-<!-- 2017-09-22 Fri 13:18 -->
6
+<!-- 2017-11-19 Sun 23:19 -->
7 7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8 8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9 9
 <title>&lrm;</title>
@@ -277,9 +277,9 @@ Mobile phones are insecure devices, but they're regarded as being so essential t
277 277
 </table>
278 278
 </center>
279 279
 
280
-<div id="outline-container-org066f7fb" class="outline-2">
281
-<h2 id="org066f7fb">Open</h2>
282
-<div class="outline-text-2" id="text-org066f7fb">
280
+<div id="outline-container-org028bfb1" class="outline-2">
281
+<h2 id="org028bfb1">Open</h2>
282
+<div class="outline-text-2" id="text-org028bfb1">
283 283
 <p>
284 284
 Use a Linux based phone operating system. Typically this will mean Android, but could also mean LineageOS or Replicant. LineageOS is the most preferable, because you can usually get an up to date image with a recent kernel which will give you better security against exploits. If you're buying a phone then look for a model which is supported by LineageOS. Replicant is the most free (as in freedom) but only runs on a small number of phone models. If you have a phone which runs a full GNU/Linux system then that's fantastic, and you can probably use it in much the same way as a desktop system and the rest of the advice on this page won't apply. If you don't have a phone capable of running a Linux based operating system then consider selling, giving away or bartering your existing one.
285 285
 </p>
@@ -290,45 +290,45 @@ Why is it so important to run Linux on a phone? Aren't <i>iThings</i> supposed t
290 290
 </div>
291 291
 </div>
292 292
 
293
-<div id="outline-container-org1a24680" class="outline-2">
294
-<h2 id="org1a24680">Remove</h2>
295
-<div class="outline-text-2" id="text-org1a24680">
293
+<div id="outline-container-orgf5a1356" class="outline-2">
294
+<h2 id="orgf5a1356">Remove</h2>
295
+<div class="outline-text-2" id="text-orgf5a1356">
296 296
 <p>
297 297
 So maybe you're running Android and the phone came with some apps already installed. Almost certainly they'll be proprietary. Go to Settings/Apps and then uninstall or deactivate any apps which you really don't need. Mostly preinstalled apps are intended to send your data to companies who will then sell it to advertisers or governments under the business model of <i>surveillance capital</i>. It's not a good idea to get caught up in that, and to avoid becoming addicted to apps which are surveilling you without consent or installing spyware in the background without your knowledge.
298 298
 </p>
299 299
 </div>
300 300
 </div>
301 301
 
302
-<div id="outline-container-org390d2d0" class="outline-2">
303
-<h2 id="org390d2d0">Encrypt</h2>
304
-<div class="outline-text-2" id="text-org390d2d0">
302
+<div id="outline-container-org8f0466d" class="outline-2">
303
+<h2 id="org8f0466d">Encrypt</h2>
304
+<div class="outline-text-2" id="text-org8f0466d">
305 305
 <p>
306 306
 Encrypt your phone. This can usually be done via <b>Settings/Security</b> and you may need to fully charge the phone first. Encryption means that if you lose your phone or it gets stolen then there is less chance that anyone who picks it up will get access to your data, photos and so on.
307 307
 </p>
308 308
 </div>
309 309
 </div>
310 310
 
311
-<div id="outline-container-org3d6081e" class="outline-2">
312
-<h2 id="org3d6081e">Apps</h2>
313
-<div class="outline-text-2" id="text-org3d6081e">
311
+<div id="outline-container-orgfec183a" class="outline-2">
312
+<h2 id="orgfec183a">Apps</h2>
313
+<div class="outline-text-2" id="text-orgfec183a">
314 314
 <p>
315 315
 Installing <b>F-droid</b> and only adding any new apps via F-droid will ensure that you are always using free and open source software. Open source is not a panacea, since bugs can and do still occur, but it will help you to avoid the worst security and privacy pitfalls.
316 316
 </p>
317 317
 </div>
318 318
 </div>
319 319
 
320
-<div id="outline-container-org5a55ec6" class="outline-2">
321
-<h2 id="org5a55ec6">Lock</h2>
322
-<div class="outline-text-2" id="text-org5a55ec6">
320
+<div id="outline-container-org77de138" class="outline-2">
321
+<h2 id="org77de138">Lock</h2>
322
+<div class="outline-text-2" id="text-org77de138">
323 323
 <p>
324 324
 Add a lock screen, preferably with a password which is not easy for other people to guess or for quicker access with a PIN number. Install an app called <b>Locker</b>, activate it and set the maximum number of password guesses to ten (or whatever you feel comfortable with). If bad people get hold of your phone then they may try to brute force your lock screen password or PIN (i.e. automatically trying millions of common word and number combinations) and the locker app will prevent them from succeeding by resetting the phone back to its factory default condition and wiping the data.
325 325
 </p>
326 326
 </div>
327 327
 </div>
328 328
 
329
-<div id="outline-container-orgaf7fb89" class="outline-2">
330
-<h2 id="orgaf7fb89">Onion</h2>
331
-<div class="outline-text-2" id="text-orgaf7fb89">
329
+<div id="outline-container-org4dc0e5b" class="outline-2">
330
+<h2 id="org4dc0e5b">Onion</h2>
331
+<div class="outline-text-2" id="text-org4dc0e5b">
332 332
 <p>
333 333
 Both governments and corporations want to compile matadata dossiers about you. Who you communicated with, when and how often. They want this so that they can data mine, simulate, predict and then ultimately influence (sometimes also called "nudge") your actions and preferences in the directions they prefer. By routing your connections through a number of proxy servers (Tor routers) you can make it perhaps not <i>theoretically</i> impossible but at least <i>very hard</i> for them to have a complete and accurate list of who your friends are, your religion, politics, likely health issues, sexual orientation and what news sites or books you read.
334 334
 </p>
@@ -339,26 +339,26 @@ In F-droid under the <b>repositories</b> menu you can enable the <b>guardian pro
339 339
 </div>
340 340
 </div>
341 341
 
342
-<div id="outline-container-orgc7a0b9e" class="outline-2">
343
-<h2 id="orgc7a0b9e">Email</h2>
344
-<div class="outline-text-2" id="text-orgc7a0b9e">
342
+<div id="outline-container-org466eb29" class="outline-2">
343
+<h2 id="org466eb29">Email</h2>
344
+<div class="outline-text-2" id="text-org466eb29">
345 345
 <p>
346 346
 The easiest way to access email is by installing the <a href="./app_mailpile.html">Mailpile</a> app. This keeps your GPG keys off of possibly insecure mobile devices but still enables encrypted email communications in an easy way. You can use K9 mail if you prefer, but that will require installing OpenKeychain and having your GPG keys on the device, which is a lot more risky.
347 347
 </p>
348 348
 </div>
349 349
 </div>
350
-<div id="outline-container-orgfcecdf8" class="outline-2">
351
-<h2 id="orgfcecdf8">Services</h2>
352
-<div class="outline-text-2" id="text-orgfcecdf8">
350
+<div id="outline-container-org978ea8b" class="outline-2">
351
+<h2 id="org978ea8b">Services</h2>
352
+<div class="outline-text-2" id="text-org978ea8b">
353 353
 <p>
354 354
 For information on configuring various apps to work with Freedombone see the <a href="./usage.html">usage section</a>. Also see advice on chat apps in the <a href="./faq.html">FAQ</a>.
355 355
 </p>
356 356
 </div>
357 357
 </div>
358 358
 
359
-<div id="outline-container-org469e667" class="outline-2">
360
-<h2 id="org469e667">Battery preservation</h2>
361
-<div class="outline-text-2" id="text-org469e667">
359
+<div id="outline-container-org3546225" class="outline-2">
360
+<h2 id="org3546225">Battery preservation</h2>
361
+<div class="outline-text-2" id="text-org3546225">
362 362
 <p>
363 363
 Even with free software apps it's not difficult to get into a situation where your battery doesn't last for long. To maximize battery life access RSS feeds via the onion-based mobile reader within a Tor-compatible browser and not from a locally installed RSS app.
364 364
 </p>
@@ -366,12 +366,16 @@ Even with free software apps it's not difficult to get into a situation where yo
366 366
 <p>
367 367
 If you have Syncthing installed then change the settings so that it only syncs when charging and when on wifi. Avoid any apps which might be continuously polling and preventing the device from going into sleep mode when it's not used.
368 368
 </p>
369
+
370
+<p>
371
+If you're using the Riot mobile app to access a Matrix homeserver then you can significantly improve battery performance by going to the settings and changing <b>Sync request timeout</b> to 30 seconds and <b>Delay between two sync requests</b> to 600 seconds.
372
+</p>
369 373
 </div>
370 374
 </div>
371 375
 
372
-<div id="outline-container-orgcaf0530" class="outline-2">
373
-<h2 id="orgcaf0530">Blocking bad domains</h2>
374
-<div class="outline-text-2" id="text-orgcaf0530">
376
+<div id="outline-container-org6ebc6c4" class="outline-2">
377
+<h2 id="org6ebc6c4">Blocking bad domains</h2>
378
+<div class="outline-text-2" id="text-org6ebc6c4">
375 379
 <p>
376 380
 You can block known bad domains by editing the <b>/system/etc/hosts</b> file on your device. It is possible to use extensive ad-blocking hosts files used by other ad-blocking systems such as pi-hole, but merely blocking Facebook and Google Analytics will protect you against much of the corporate surveillance which goes on. Even if you don't have a Facebook account this may still be useful since they will still try to create a "ghost profile" of you, so the less data they have the better.
377 381
 </p>