You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: configuration/config-txt/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
The Raspberry Pi uses a configuration file instead of the [BIOS](https://en.wikipedia.org/wiki/BIOS) you would expect to find on a conventional PC. The system configuration parameters, which would traditionally be edited and stored using a BIOS, are stored instead in an optional text file named `config.txt`. This is read by the GPU before the ARM CPU and Linux are initialised. It must therefore be located on the first (boot) partition of your SD card, alongside `bootcode.bin` and `start.elf`. This file is normally accessible as `/boot/config.txt` from Linux, and must be edited as [root](../../linux/usage/root.md). From Windows or OS X it is visible as a file in the only accessible part of the card. If you need to apply some of the config settings below, but you don't have a `config.txt` on your boot partition yet, simply create it as a new text file.
4
4
5
-
Any changes will only take effect after you've rebooted your Raspberry Pi. After Linux has booted, you can view the current active settings using the following commands:
5
+
Any changes will only take effect after you have rebooted your Raspberry Pi. After Linux has booted, you can view the current active settings using the following commands:
6
6
7
7
-`vcgencmd get_config <config>`: this displays a specific config value, e.g. `vcgencmd get_config arm_freq`.
Copy file name to clipboardExpand all lines: configuration/config-txt/conditional.md
+13-11Lines changed: 13 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,18 @@
1
1
## Conditional filters in config.txt
2
2
3
-
When a single SD card (or card image) is only being used with one Pi and one monitor, it's easy to simply set `config.txt` as required for that specific combination and keep it that way, amending only when something changes.
3
+
When a single SD card (or card image) is being used with one Pi and one monitor, it is easy to set `config.txt` as required for that specific combination and keep it that way, amending it only when something changes.
4
4
5
-
However, if one Pi is swapped between different monitors, or if the SD card (or card image) is being swapped between multiple Pis, a single set of settings may no longer be sufficient. Conditional filters allow you to that certain sections of the config file are used only in specific cases, allowing a single `config.txt` to create different configurations when read by different hardware.
5
+
6
+
However, if one Pi is swapped between different monitors, or if the SD card (or card image) is being swapped between multiple Pis, a single set of settings may no longer be sufficient. Conditional filters allow you to define certain sections of the config file to be used only in specific cases, allowing a single `config.txt` to create different configurations when read by different hardware.
6
7
7
8
### The `[all]` filter
8
9
9
-
The `[all]` filter is the most basic filter: it resets all previously set filters and allows any settings listed below it to be applied to all hardware.
10
+
This is the most basic filter. It resets all previously set filters and allows any settings listed below it to be applied to all hardware.
11
+
10
12
11
13
[all]
12
14
13
-
It's usually a good idea to add an `[all]` filter at the end of groups of filtered settings to avoid unintentionally combining filters (see below).
15
+
It is usually a good idea to add an `[all]` filter at the end of groups of filtered settings to avoid unintentionally combining filters (see below).
14
16
15
17
### The `[pi1]` and `[pi2]` (etc.) filters
16
18
@@ -22,7 +24,7 @@ Any settings below a `[pi2]` filter will only be applied to Pi 2 hardware. The `
22
24
[pi3]
23
25
[pi0]
24
26
25
-
These are particularly useful for defining different `kernel`, `initramfs`, and `cmdline` settings, as the Pi 1 and Pi 2 require different kernels. They can also be useful to define different overclocking settings for each, since they have different default speeds. For example, to define separate `initramfs` images for each:
27
+
These are particularly useful for defining different `kernel`, `initramfs`, and `cmdline` settings, as the Pi 1 and Pi 2 require different kernels. They can also be useful to define different overclocking settings, as the Pi 1 and Pi 2 have different default speeds. For example, to define separate `initramfs` images for each:
26
28
27
29
[pi1]
28
30
initramfs initrd.img-3.18.7+ followkernel
@@ -50,20 +52,20 @@ This will print something like this:
50
52
51
53
device_name=VSC-TD2220
52
54
53
-
You can then specify settings that apply only to this monitor like so:
55
+
You can then specify settings that apply only to this monitor:
54
56
55
57
[EDID=VSC-TD2220]
56
58
hdmi_group=2
57
59
hdmi_mode=82
58
60
[all]
59
61
60
-
This forces 1920x1080 DVT mode for this monitor, without affecting any other monitors.
62
+
This forces 1920x1080 DVT mode for the specified monitor, without affecting any other monitors.
61
63
62
-
Note that these settings apply only at boot, so the monitor must be connected at boot time and the Pi must be able to read its EDID information to get the correct name. Hotplugging a different monitor after boot will not reselect different settings.
64
+
Note that these settings apply only at boot, so the monitor must be connected at boot time and the Pi must be able to read its EDID information to find the correct name. Hotplugging a different monitor into the Pi after boot will not select different settings.
63
65
64
66
### The serial number filter
65
67
66
-
Sometimes settings should only be applied to a single specific Pi, even if you swap the SD card to a different one. Examples include licence keys and overclocking settings (although the licence keys already support SD card swapping in a different way). You can also use this to select different display settings even if the EDID identification above isn't possible for some reason, provided that you don't swap monitors between your Pis - for example, if your monitor doesn't supply a usable EDID name or if you're using composite output (for which EDID cannot be read).
68
+
Sometimes settings should only be applied to a single specific Pi, even if you swap the SD card to a different one. Examples include licence keys and overclocking settings (although the licence keys already support SD card swapping in a different way). You can also use this to select different display settings, even if the EDID identification above is not possible, provided that you don't swap monitors between your Pis. For example, if your monitor doesn't supply a usable EDID name, or if you are using composite output (for which EDID cannot be read).
67
69
68
70
To view the serial number of your Pi, run the following command:
69
71
@@ -73,7 +75,7 @@ The serial will be shown as a 16-digit hex value at the bottom. For example, if
73
75
74
76
Serial : 0000000012345678
75
77
76
-
Then you can define settings that will only be applied to this specific Pi like so:
78
+
then you can define settings that will only be applied to this specific Pi:
77
79
78
80
[0x12345678]
79
81
# settings here are applied only to the Pi with this serial
@@ -82,7 +84,7 @@ Then you can define settings that will only be applied to this specific Pi like
82
84
83
85
### Combining conditional filters
84
86
85
-
Filters of the same type replace each other, so `[pi2]` overrides `[pi1]`, as it's not possible for both to be true at once.
87
+
Filters of the same type replace each other, so `[pi2]` overrides `[pi1]`, because it is not possible for both to be true at once.
86
88
87
89
Filters of different types can be combined simply by listing them one after the other, for example:
Copy file name to clipboardExpand all lines: configuration/config-txt/memory.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
3
3
### gpu_mem
4
4
5
-
GPU memory in megabytes: `gpu_mem` sets the memory split between the CPU and GPU; the CPU gets the remaining memory. Theinimum value is `16`, and the maximum value is `192`, `448`, or `944`, depending on whether you're using a 256M, 512MB, or 1024MB Pi. The default value is `64`.
5
+
GPU memory in megabytes. This sets the memory split between the CPU and GPU: the CPU gets the remaining memory. Minimum value is `16`; maximum value is `192`, `448`, or `944`, depending on whether you are using a 256M, 512MB, or 1024MB Pi. The default value is `64`.
6
6
7
-
Setting `gpu_mem` to low values may automatically disable certain firmware features, as there are some things the GPU simply can't do with too little memory. So if a certain feature you're trying to use isn't working, try setting a larger GPU memory split.
7
+
Setting `gpu_mem` to low values may automatically disable certain firmware features, as there are some things the GPU cannot do if it has access to too little memory. So if a feature you are trying to use isn't working, try setting a larger GPU memory split.
8
8
9
9
Using `gpu_mem_256`, `gpu_mem_512`, and `gpu_mem_1024` allows you to swap the same SD card between 256MB, 512MB, and 1024MB Pis without having to edit `config.txt` each time:
10
10
@@ -22,6 +22,6 @@ The `gpu_mem_1024` command sets the GPU memory in megabytes for the 1024MB Raspb
22
22
23
23
### disable_l2cache
24
24
25
-
Setting `disable_12cache` to `1` disables the CPU's access to the GPU's L2 cache. It requires a corresponding L2 disabled kernel. The default value is `0`.
25
+
Setting this to `1` disables the CPU's access to the GPU's L2 cache, and requires a corresponding L2 disabled kernel. Default value is `0`.
26
26
27
27
*This article uses content from the eLinux wiki page [RPiconfig](http://elinux.org/RPiconfig), which is shared under the [Creative Commons Attribution-ShareAlike 3.0 Unported license](http://creativecommons.org/licenses/by-sa/3.0/)*
Copy file name to clipboardExpand all lines: hardware/display/README.md
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,17 @@
2
2
3
3
## Introduction
4
4
5
-
The Raspberry Pi display is an LCD display which connects to the Raspberry Pi through the DSI connector. It allows for the use of both the HDMI and LCD displays at the same time in some situations (this requires software support).
5
+
The Raspberry Pi display is an LCD display which connects to the Raspberry Pi through the DSI connector. In some situations, it allows for the use of both the HDMI and LCD displays at the same time (this requires software support).
6
6
7
7
## Board Support
8
8
9
-
The DSI display is designed to work with Raspberry Pi models that have mounting holes in a HAT footprint. Model A/B boards are supported, but require additional mounting hardware to fit the HAT-dimensioned standoffs on the display PCB.
9
+
The DSI display is designed to work with Raspberry Pi models that have mounting holes in a HAT footprint. Model A/B boards are supported, but require additional mounting hardware to fit the HAT-dimensioned stand-offs on the display PCB.
10
10
11
11
### Attaching to Model A/B boards
12
12
13
-
The DSI connector on the Model A/B boards does not have the I2C connections required to talk to the touchscreen controller and DSI controller. This can be worked around by using the additional set of jumper cables provided with the display kit to wire the I2C bus on the GPIO pins up to the display controller board.
13
+
The DSI connector on the Model A/B boards does not have the I2C connections required to talk to the touchscreen controller and DSI controller. You can work around this by using the additional set of jumper cables provided with the display kit to wire up the I2C bus on the GPIO pins to the display controller board.
14
14
15
-
Using the jumper cables, connect SCL/SDA on the GPIO header to the horizontal pins marked SCL/SDA on the display board. It is also recommended to power the Model A/B via the GPIO pins using the jumper cables.
15
+
Using the jumper cables, connect SCL/SDA on the GPIO header to the horizontal pins marked SCL/SDA on the display board. We also recommend that you power the Model A/B via the GPIO pins using the jumper cables.
16
16
17
17
For the GPIO header pinout, see [this diagram](http://pinout.xyz/).
18
18
@@ -22,7 +22,17 @@ DSI display autodetection is disabled by default on these boards. To enable dete
22
22
23
23
Power the setup via the `PWR IN` micro-USB connector on the display board. Do not power the setup via the Pi's micro-USB port: the input polyfuse's maximum current rating will be exceeded as the display consumes approximately 400mA.
24
24
25
-
NB: With the display connected to the GPIO I2C pins, the GPU will assume control of the respective I2C bus. The host operating system should not access this I2C bus as simultaneous use of the bus by both the GPU and Linux will result in sporadic crashes.
25
+
NB: With the display connected to the GPIO I2C pins, the GPU will assume control of the respective I2C bus. The host operating system should not access this I2C bus, as simultaneous use of the bus by both the GPU and Linux will result in sporadic crashes.
26
+
27
+
## Screen Orientation
28
+
29
+
LCD displays have an optimum viewing angle, and depending on how the screen is mounted it may be necessary to change the orientation of the display to give the best results. By default, the Raspbery Pi display and Raspberry Pi are set up to work best when viewed from slightly above, for example on a desktop. If viewing from below, you can physically rotate the display, and then tell the system software to compensate by running the screen upside down.
30
+
31
+
To flip the display, add, anywhere in the file `\boot\config.txt`, the following line:
32
+
33
+
`lcd_rotate=2`
34
+
35
+
This will vertically flip the LCD and the touch screen, compensating for the physical orientation of the display.
The following devices can boot through the special device boot mode:
4
+
5
+
* Pi CM
6
+
* Pi CM3
7
+
* Pi Zero
8
+
* Pi Zero W
9
+
10
+
When this boot mode is activated (usually after a failure to boot from the SD card), it switches to a USB device and awaits a USB reset from the host. Example code showing how the host needs to talk to the Pi can be found [here](https://github.com/raspberrypi/usbboot).
11
+
12
+
The host first sends a structure to the device down control endpoint 0. This contains the size and signature for the boot (security is not enabled so no signature is required). Secondly, code is transmitted down endpoint 1 (bootcode.bin). Finally, the device will reply with a success code of:
Copy file name to clipboardExpand all lines: linux/usage/bashrc.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,10 @@
1
1
# .bashrc and .bash_aliases
2
2
3
-
In your home folder, you will find a hidden file called `.bashrc` which contains some user configuration. You can edit this file to suit your needs.
3
+
In your home folder you will find a hidden file called `.bashrc` which contains some user configuration options. You can edit this file to suit your needs. Changes made in this file will be actioned the next time a terminal is opened, since that is when the `.bashrc` file is read.
4
4
5
-
Some useful adaptions are provided for you; some of these are commented out by default.
5
+
If you want your changes to take place in your current terminal, you can use either `source ~/.bashrc` or `exec bash`. These actually do slightly different things: the former simply re-executes the `.bashrc` file, which may result in undesirable changes to things like the path, the latter replaces the current shell with a new bash shell, which resets the shell back to the state at login, throwing away any shell variables you may have set. Choose whichever is most appropriate.
6
+
7
+
Some useful adaptions are provided for you; some of these are commented out with a `#` by default. To enable them, remove the `#` and they will be active next time you boot your Pi or start a new terminal.
6
8
7
9
For example, some `ls` aliases:
8
10
@@ -28,9 +30,7 @@ More variations of `ls` are also provided:
28
30
29
31
Ubuntu users may be familar with these as they are provided by default on that distribution. Uncomment these lines to have access to these aliases in future.
30
32
31
-
The lines starting with a `#` are commented out. To enable them, remove the `#` and they will be active next time you boot your Pi.
32
-
33
-
There is also reference to a `.bash_aliases` file which does not exist by default:
33
+
`.bashrc` also contains a reference to a `.bash_aliases` file, which does not exist by default. You can add it to provide a handy way of keeping all your aliases in a separate file.
34
34
35
35
```
36
36
if [ -f ~/.bash_aliases ]; then
@@ -46,4 +46,4 @@ Then you just create the file `.bash_aliases` and add more aliases like so:
46
46
alias gs='git status'
47
47
```
48
48
49
-
You can add other things directly to this file or to another, and include the file like the `.bash_aliases` example above.
49
+
You can add other things directly to this file, or to another and include that file like the `.bash_aliases` example above.
Copy file name to clipboardExpand all lines: remote-access/access-over-Internet/README.md
+6-55Lines changed: 6 additions & 55 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,60 +8,11 @@ One method is to set up port forwarding on your router. To do this, you must cha
8
8
9
9
## Alternatives
10
10
11
-
Alternative online services are available.
11
+
Rather than using port forwarding, there are a number of alternative online services available. These provide varying levels of functionality - see their websites for more details.
12
12
13
-
### remot3.it
13
+
-[remot3.it](https://www.remot3.it), by Weaved Inc
14
+
-[Dataplicity](https://dataplicity.com)
15
+
-[Yaler.net](https://yaler.net/)
16
+
-[Losant](https://losant.com)
17
+
-[Remote IoT](https://remote-iot.com)
14
18
15
-
One secure alternative to port forwarding is [remot3.it](https://www.remot3.it), by Weaved, Inc. remot3.it ("remote it") is software you install on your Raspberry Pi to access a single Pi, or manage a large number of Pis, from anywhere over the internet. Use remot3.it to access any TCP port on your Pi over the web including SSH, VNC, HTTP(S), RDP, and custom TCP services.
16
-
17
-
From the command line on your Pi, update your Raspbian package lists:
18
-
19
-
```bash
20
-
sudo apt-get update
21
-
```
22
-
23
-
Install the remot3.it package:
24
-
25
-
```bash
26
-
sudo apt-get install weavedconnectd
27
-
```
28
-
29
-
Next, run the remot3.it installer with this command:
30
-
31
-
```bash
32
-
sudo weavedinstaller
33
-
```
34
-
35
-
The remot3.it installer will first ask you to create a user account by entering an email address and a password. Follow the on-screen menus to give your Pi a device name and choose what TCP ports/services to enable.
36
-
37
-
Now access your Pi over the internet by signing in to www.remot3.it.
38
-
39
-
For more detailed instructions and examples, see [Getting Started with remot3.it for Pi](http://forum.weaved.com/t/how-to-get-started-with-remot3-it-for-pi/1029).
40
-
41
-
### Dataplicity
42
-
43
-
[Dataplicity](https://dataplicity.com) allows you to connect and control your Pi's shell remotely from a web browser and its mobile apps. You can use Dataplicity's Wormhole feature to host a website or API directly from your Pi, and automatically enable HTTPS/SSL with no configuration or certificates.
44
-
45
-
It uses WebSockets over HTTPS to provide a connection, and requires a single-line install.
46
-
47
-
Dataplicity provides free support by e-mail and in-app messenger.
48
-
49
-
For more information, consult the [documentation](https://docs.dataplicity.com/).
50
-
51
-
### Yaler.net
52
-
53
-
[Yaler.net](https://yaler.net/) enables secure web, SSH, and VNC access to your Pi from anywhere.
54
-
55
-
The open source (Simplified BSD) YalerTunnel daemon is written in portable C.
56
-
57
-
To access your Pi remotely via the Yaler relay infrastructure, [get started here](https://yaler.net/raspberrypi).
58
-
59
-
### Losant
60
-
61
-
Losant is an easy-to-use developer platform designed to help you quickly and securely build connected applications. Losant provides powerful data collection, aggregation, and visualization.
62
-
63
-
With [Losant](https://losant.com), you can easily control and listen to the Raspberry Pi's GPIO. Losant's drag-and-drop workflow editor allows you to trigger actions, notifications, and machine-to-machine communication without programming.
64
-
65
-
For detailed instructions, check out this [guide](https://www.losant.com/blog/how-to-access-your-raspberry-pis-gpio-over-the-internet).
66
-
67
-
Losant uses open communication standards like REST and MQTT to provide connectivity to devices.
0 commit comments