Activation of PCIe 3 ā 1000MB
Now I have adapted the config.txt file (Enter at the end after ALL):
dtparam=pciex1_gen=3
Just clicking anywhere on the Homeassistant website has become much faster.
Or the SSH Terminal AddOn is also started much faster. The dashboard now loads without delay.
For a new test you should delete the temp file, otherwise you will get a worse result.
ā /mnt rm /mnt/temp.img
ā /mnt dd if=/dev/zero of=/mnt/temp.img bs=8k count=256k
262144+0 records in
262144+0 records out
47483648 bytes (2.0GB) copied, 1.958974 seconds, 1.0GB/s
To be able to change the Config.txt file you have to connect via SSH not via 22 but via 22222.
This is the SSH access to the HomeAssisten operating system level. Attention, you can also break a lot here. It is not the HomeAssistant SSH configuration level that can otherwise be reached via port 22. You should therefore have a backup.
To activate SSH with port 22222, you need a USB stick on the PI. The stick must be FAT32 formatted. This USB stick must be named āCONFIGā. An āauthorised_keysā file must be created on the USB stick. This file must contain a line with an RSA key. You can create this RSA key via Mac in the Terminal Console. Alternatively via Windows with Putty. The RSA key contains a password assigned by you, which you can use to log in with the root user. A key pair is created by generating it. The counterpart is located on your computer. This means that you can only connect to the device on which you have generated the key. You can store several lines / keys in the file.
Here is a German guide including a video on how this works with SSH. You can see everything important. You just have to do it for Windows or Mac. You donāt have to do both.
The Pi Boot configuration file can be found via SSH port 22222 under mnt/boot/config.txt
nano is not installed by default.
However, you can edit the file via vi editor.
vi mnt/boot/config.txt
vi editor takes some getting used to if you are not familiar with it.
Scroll down to the bottom using the down arrow.
Press āpā to edit.
Write the command under [ALL].
dtparam=pciex1_gen=3
Press ESC to finish editing
Write the three characters :wq for the Save and Close command. Press Enter to execute the command. VI is closed and the change is saved.
Restart the PI as shown in the video and check the speed.
The test can be carried out in the normal SSH port 22.