Browse Source

Note about battery optimisation of riot app

Bob Mottram 7 years ago
parent
commit
89b7087c94
4 changed files with 64 additions and 46 deletions
  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 View File

53
 #+end_src
53
 #+end_src
54
 
54
 
55
 You may also want to make another entry with the same settings but replacing *tcp* with *udp*.
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 View File

82
 
82
 
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.
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
 * Blocking bad domains
87
 * Blocking bad domains
86
 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.
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 View File

3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5
 <head>
5
 <head>
6
-<!-- 2017-08-23 Wed 19:23 -->
6
+<!-- 2017-11-19 Sun 23:19 -->
7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9
-<title></title>
9
+<title>&lrm;</title>
10
 <meta name="generator" content="Org mode" />
10
 <meta name="generator" content="Org mode" />
11
 <meta name="author" content="Bob Mottram" />
11
 <meta name="author" content="Bob Mottram" />
12
 <meta name="description" content="How to use Matrix"
12
 <meta name="description" content="How to use Matrix"
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.
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
 </p>
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
 <p>
270
 <p>
271
 Log into your system with:
271
 Log into your system with:
272
 </p>
272
 </p>
273
 
273
 
274
 <div class="org-src-container">
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
 </div>
277
 </div>
278
 
278
 
279
 <p>
279
 <p>
286
 </div>
286
 </div>
287
 </div>
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
 <p>
292
 <p>
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.
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
 </p>
294
 </p>
303
 </div>
303
 </div>
304
 </div>
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
 <p>
309
 <p>
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:
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
 </p>
311
 </p>
312
 
312
 
313
 <div class="org-src-container">
313
 <div class="org-src-container">
314
-<pre><code class="src src-text">Type: SRV
314
+<pre class="src src-text">Type: SRV
315
 Subdomain: _matrix._tcp
315
 Subdomain: _matrix._tcp
316
 Domain: [youdomain]
316
 Domain: [youdomain]
317
 Destination: 10 0 8448 [yourmatrixsubdomain]
317
 Destination: 10 0 8448 [yourmatrixsubdomain]
318
-</code></pre>
318
+</pre>
319
 </div>
319
 </div>
320
 
320
 
321
 <p>
321
 <p>
323
 </p>
323
 </p>
324
 </div>
324
 </div>
325
 </div>
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
 </div>
335
 </div>
327
 <div id="postamble" class="status">
336
 <div id="postamble" class="status">
328
 
337
 

+ 35
- 31
website/EN/mobile.html View File

3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5
 <head>
5
 <head>
6
-<!-- 2017-09-22 Fri 13:18 -->
6
+<!-- 2017-11-19 Sun 23:19 -->
7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9
 <title>&lrm;</title>
9
 <title>&lrm;</title>
277
 </table>
277
 </table>
278
 </center>
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
 <p>
283
 <p>
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.
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
 </p>
285
 </p>
290
 </div>
290
 </div>
291
 </div>
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
 <p>
296
 <p>
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.
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
 </p>
298
 </p>
299
 </div>
299
 </div>
300
 </div>
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
 <p>
305
 <p>
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.
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
 </p>
307
 </p>
308
 </div>
308
 </div>
309
 </div>
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
 <p>
314
 <p>
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.
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
 </p>
316
 </p>
317
 </div>
317
 </div>
318
 </div>
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
 <p>
323
 <p>
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.
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
 </p>
325
 </p>
326
 </div>
326
 </div>
327
 </div>
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
 <p>
332
 <p>
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.
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
 </p>
334
 </p>
339
 </div>
339
 </div>
340
 </div>
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
 <p>
345
 <p>
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.
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
 </p>
347
 </p>
348
 </div>
348
 </div>
349
 </div>
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
 <p>
353
 <p>
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>.
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
 </p>
355
 </p>
356
 </div>
356
 </div>
357
 </div>
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
 <p>
362
 <p>
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.
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
 </p>
364
 </p>
366
 <p>
366
 <p>
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.
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
 </p>
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
 </div>
373
 </div>
370
 </div>
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
 <p>
379
 <p>
376
 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.
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
 </p>
381
 </p>