Raspberry Pi 4 Setup Notes

To prevent idle SSH sessions from being disconnected

Turn off power save with wlan0. Following make the config permanent.

$ sudo crontab -e

# which opens the root crontab in your chosen editor...
# add the following line at the bottom of the root crontab:

@reboot /usr/sbin/iw wlan0 set power_save off

# be sure to substitute a valid folder name for '<user>' in the line above
Bash

Reference: https://raspberrypi.stackexchange.com/questions/96606/make-iw-wlan0-set-power-save-off-permanent

To change boot order

sudo raspi-config
Bash

If newly installed file under /usr/local/lib are not recognized

Try

sudo ldconfig
Bash

which would solve the problem if the culprit is `/etc/ld.so.cache` file.

To change keyboard layout

CAPS を ctrl に、L-ctrl を alt に

In /etc/default/keyboard

XKBOPTIONS="ctrl:lctrl_meta,ctrl:nocaps"

To use natural scroll

In /usr/share/X11/xorg.conf.d/40-libinput.conf

Section "InputClass"
        Identifier "libinput pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
        Option "NaturalScrolling" "true"
EndSection
Bash

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.