Update others.md
This commit is contained in:
parent
b1508170ce
commit
feff627055
|
|
@ -9,36 +9,45 @@
|
||||||
|
|
||||||
#### Disable cgroup
|
#### Disable cgroup
|
||||||
|
|
||||||
- In cmdline.txt remove defined cgoup args and add:
|
In cmdline.txt remove defined cgoup args and add:
|
||||||
|
|
||||||
cgroup_disable=cpuset,cpuacct,blkio,memory,devices,freezer,net_cls,perf_event,net_prio,pids
|
```shell
|
||||||
|
cgroup_disable=cpuset,cpuacct,blkio,memory,devices,freezer,net_cls,perf_event,net_prio,pids
|
||||||
|
```
|
||||||
|
|
||||||
#### ssh glxinfo
|
#### ssh glxinfo
|
||||||
|
|
||||||
export DISPLAY=:0
|
```shell
|
||||||
export XAUTHORITY=/var/lib/lightdm/.Xauthority
|
export DISPLAY=:0
|
||||||
glxinfo -B
|
export XAUTHORITY=/var/lib/lightdm/.Xauthority
|
||||||
|
glxinfo -B
|
||||||
|
```
|
||||||
|
|
||||||
#### initrd
|
#### initrd
|
||||||
|
|
||||||
apt update ; apt install initramfs-tools -y
|
```shell
|
||||||
mkinitramfs -o /boot/initrd.img-$(uname -r)
|
apt update ; apt install initramfs-tools -y
|
||||||
|
mkinitramfs -o /boot/initrd.img-$(uname -r)
|
||||||
|
|
||||||
#### /var/log/Xorg.0.log
|
#### /var/log/Xorg.0.log
|
||||||
|
|
||||||
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
|
```shell
|
||||||
sudo apt install xfonts-cyrillic
|
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
|
||||||
|
sudo apt install xfonts-cyrillic
|
||||||
|
```
|
||||||
|
|
||||||
#### chromium
|
#### chromium
|
||||||
|
|
||||||
rm -rf /usr/sbin/chromium_mod-xface.sh 2>/dev/null;\
|
```shell
|
||||||
cat <<EOF >/usr/sbin/chromium_mod-xface.sh
|
rm -rf /usr/sbin/chromium_mod-xface.sh 2>/dev/null;\
|
||||||
#!/bin/bash
|
cat <<EOF >/usr/sbin/chromium_mod-xface.sh
|
||||||
export PICHROMIUMMODS='/etc/chromium.d/pi-mods'
|
#!/bin/bash
|
||||||
touch \$PICHROMIUMMODS 2>/dev/null
|
export PICHROMIUMMODS='/etc/chromium.d/pi-mods'
|
||||||
echo 'CHROMIUM_FLAGS=' > \$PICHROMIUMMODS
|
touch \$PICHROMIUMMODS 2>/dev/null
|
||||||
sed -i 's/CHROMIUM_FLAGS=/CHROMIUM_FLAGS="\$CHROMIUM_FLAGS --disable-gpu-compositing --enable-gpu-rasterization --enable-native-gpu-memory-buffers --disable-quic --enable-checker-imaging --enable-tcp-fast-open--enable-fast-unload --enable-experimental-canvas-features --enable-scroll-prediction --enable-simple-cache-backend --answers-in-suggest --max-tiles-for-interest-area=512 --num-raster-threads=4 --default-tile-height=512 --disk-cache-size=0 --use-gl=egl --gles --enable-zero-copy"/g' \$PICHROMIUMMODS
|
echo 'CHROMIUM_FLAGS=' > \$PICHROMIUMMODS
|
||||||
EOF
|
sed -i 's/CHROMIUM_FLAGS=/CHROMIUM_FLAGS="\$CHROMIUM_FLAGS --disable-gpu-compositing --enable-gpu-rasterization --enable-native-gpu-memory-buffers --disable-quic --enable-checker-imaging --enable-tcp-fast-open--enable-fast-unload --enable-experimental-canvas-features --enable-scroll-prediction --enable-simple-cache-backend --answers-in-suggest --max-tiles-for-interest-area=512 --num-raster-threads=4 --default-tile-height=512 --disk-cache-size=0 --use-gl=egl --gles --enable-zero-copy"/g' \$PICHROMIUMMODS
|
||||||
sudo chmod +x /usr/sbin/chromium_mod-xface.sh
|
EOF
|
||||||
|
sudo chmod +x /usr/sbin/chromium_mod-xface.sh
|
||||||
## --disable-gpu-compositing to use vc4 ??
|
|
||||||
|
## --disable-gpu-compositing to use vc4 ??
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue