tiancheng91 / collection

笔记
https://github.com/tiancheng91/collection/issues
21 stars 1 forks source link

raspberry #15

Open tiancheng91 opened 5 years ago

tiancheng91 commented 5 years ago
auto lo
iface lo inet loopback
iface eth0 inet dhcp

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
        wpa-ssid "ssid"
        wpa-psk "password"

启动网卡超时限制

/etc/systemd/system/network-online.targets.wants/networking.service

wifi连接

sudo nmcli r wifi on
sudo nmcli dev wifi
sudo nmcli dev wifi connect "SSID" password "PASSWORD"
tiancheng91 commented 5 years ago

apt install --no-install-recommends xserver-xorg xserver-xorg-video-fbdev xserver-xorg-video-vesa xinit xserver-xorg-input-mouse xserver-xorg-input-kdb xserver-xorg-input-keyboard dbus mesa-utils libgles2-mesa libglu1-mesa apt install openbox lxterminal tint2 ibus-rime

/boot/config.txt

dtoverlay=vc4-kms-v3d
gpu_mem=128

echo """ tint2 & exec openbox-session """ >> ~/.xinitrc

sudo apt install chromium
/etc/chromium-browser/customizations/00-piws-vars
--no-default-browser-check
--disable-pings
--media-router=0
--enable-fast-unload
--disk-cache-size=0 
--use-gl=egl --gles --disable-quic 
--enable-fast-unload --enable-checker-imaging --enable-tcp-fast-open 
--enable-native-gpu-memory-buffers --enable-gpu-rasterization 
--enable-zero-copy --ignore-gpu-blacklist
tiancheng91 commented 5 years ago

预置环境安装

tasksel
tiancheng91 commented 5 years ago

PI3 上找不到,推荐尝试vesa

sudo add-apt-repository ppa:ubuntu-raspi2/ppa sudo apt-get update sudo apt install libraspberrypi-bin libraspberrypi-bin-nonfree xserver-xorg-video-fbturbo sudo apt install --no-install-recommends xserver-xorg xinit sudo apt install openbox lxterminal lxpanel fonts-noto

$ sudo apt-get install xserver-xorg-video-fbturbo
Then add this to /etc/X11/xorg.conf (create if it doesn't already exist):

Section "Device"
    Identifier "Raspberry Pi FBDEV"
    Driver "fbturbo"
    Option "fbdev" "/dev/fb0"
    Option "SwapbuffersWait" "true"
EndSection

64位 echo """ arm_control=0x200 ""“ > /boot/config.txt

搭配 vesa

dtoverlay=vc4-kms-v3d
gpu_mem=128
tiancheng91 commented 5 years ago

apt install pulseaudio pulseaudio-module-bluetooth
apt remove bluealsa   # 卸载默认的, 这个蓝牙后端不支持A2DP
pacmd list-cards
tiancheng91 commented 5 years ago

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 5126890CDCC7AFE0

tiancheng91 commented 5 years ago

蓝牙配置

sudo apt-get install pulseaudio pulseaudio-module-bluetooth

连接设备

sudo bluetoothctl power on discoverable on default-agent scan on pair addr connect addr exit


启动脚本

killall -9 pulseaudio pulseaudio --start

pacmd list-cards pacmd set-card-profile bluez_card.xx_xx_xx_xx_xx_xx a2dp_sink pacmd set-default-sink bluez_sink.xx_xx_xx_xx_xx_xx.a2dp_sink

tiancheng91 commented 5 years ago

sudo alsactl store

tiancheng91 commented 5 years ago

xf86-video-armsoc xf86-video-fbturbo

tiancheng91 commented 5 years ago
Section "Device"
        Identifier      "Mali FBDEV"
        Driver          "armsoc"
        Option          "fbdev"                 "/dev/fb0"
        Option          "Fimg2DExa"             "false"
        Option          "DRI2"                  "true"
        Option          "DRI2_PAGE_FLIP"        "false"
        Option          "DRI2_WAIT_VSYNC"       "true"
        Option          "SWcursorLCD"           "false"
        Option          "SWcursor"              "false"
EndSection