sudo /zxedu/bin/libexec/install-x11.py
aplay -l 得到设备信息(0是声卡编号,7是设备编号);aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav 测试是否正常运行(耳机音响也可以)
alsamixer
注意:MM代表关闭 00是代表开启 M切换状态 上下键更改声音大小
alsactl store && cp /var/lib/alsa/asound.state /zxedu/data/config/x11/backup/ #保存配置
[xapp] enable = true # enable启用或者禁用gui env = "ALSAPCM=plughw:0,7"# 设置使用的声音输出(得到的声卡和设备编号) xinit = "/usr/bin/chromium" "--no-sandbox" "--user-data-dir=/zxedu/data/chromium" "--start-fullscreen" "--window-size=1600,900" "--app=http://127.0.0.1/webui/#/gate-tunnel" # xinit实际启动的程序;--window-size这项注意分辨率大小
vim /etc/xorg.cong
Section "Monitor"
Identifier "HDMI-1"
Option "PreferredMode" "1600x900"
EndSection
Section "Screen"
Identifier "HDMI-1"
Monitor "Monitor"
DefaultDepth 24
Option "TwinView Orientation" "RightOf"
SubSection "Display"
Depth 24
EndSubSection
EndSection
xrandr --output HDMI-1 --mode 1920x1080#HDMI输出分辨率大小 xrandr --output HDMI-1 --off --output HDMI-2 --auto#关闭hdmi并用hdmi2输出 xrandr --output HDMI-1 --auto --output HDMI-2 --auto#两个都打开 xrandr --output HDMI-2 --same-as HDMI-1 --auto #复制屏幕