问题描述
覆盆子(破坏者 -10)
VS 代码版本:1.52.1
提交:ea3859d4ba2f3e577a159bc91e3074c5d85c0523
日期:2020-12-16T16:30:35.090Z
电子:9.3.5
铬:83.0.4103.122
Node.js:12.14.1
V8:8.3.110.13-electron.0
操作系统:Linux arm 5.4.79-v7+
在终端窗口中启动 ./code 后,系统显示:
update#setState idle
我应该在“initDisplay.sh”中编辑什么来纠正这个问题?
#!/usr/bin/env bash
sudo echo "start monitor detection" >! /boot/mon.txt
# HDMI connection?
rm -f hdmi.name
tvservice -n >& hdmi.name
HDMI_NAME=`cat hdmi.name`
sudo echo "monitor: $HDMI_NAME" >> /boot/mon.txt
if [ "$HDMI_NAME" == "[E] No device present" ] || [ "$HDMI_NAME" == "device_name=Unk-Composite dis" ] || [ "$HDMI_NAME" == "device_name=Ras-LCD Panel" ]; then
LCD_ON=`cat /boot/config.txt | grep "hdmi_drive=2"`
sudo echo "HDMI Config: $LCD_ON" >> /boot/mon.txt
if [ "$LCD_ON" == "hdmi_drive=2" ]; then
sudo echo "reboot with LCD configuration" >> /boot/mon.txt
sudo rm -f /boot/config.txt
sudo cp /boot/config_lcd.txt /boot/config.txt
sudo reboot -n
fi
else
HDMI_ON=`cat /boot/config.txt | grep "lcd_rotate=2"`
sudo echo "LCD Config: $HDMI_ON" >> /boot/mon.txt
if [ $HDMI_ON == "lcd_rotate=2" ]; then
sudo echo "reboot with HDMI configuration" >> /boot/mon.txt
sudo rm -f /boot/config.txt
sudo cp /boot/config_hdmi.txt /boot/config.txt
sudo reboot -n
fi
fi
因为系统会显示:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
/home/pi/scripts/initDisplay.sh: line 8: /boot/mon.txt: Permission denied
/home/pi/scripts/initDisplay.sh: line 20: /boot/mon.txt: Permission denied
/home/pi/scripts/initDisplay.sh: line 21: [: ==: unary operator expected
(node:4879) Electron: Loading non-context-aware native module in renderer: '/home/pi/Dev/VisualStudioCODE/resources/app/node_modules.asar.unpacked/vscode-sqlite3/build/Release/sqlite.node'. This is deprecated,see https://github.com/electron/electron/issues/18397.
(node:4879) Electron: Loading non-context-aware native module in renderer: '/home/pi/Dev/VisualStudioCODE/resources/app/node_modules.asar.unpacked/node-pty/build/Release/pty.node'. This is deprecated,see https://github.com/electron/electron/issues/18397.
(node:4879) Electron: Loading non-context-aware native module in renderer: '/home/pi/Dev/VisualStudioCODE/resources/app/node_modules.asar.unpacked/spdlog/build/Release/spdlog.node'. This is deprecated,see https://github.com/electron/electron/issues/18397.
下一行继续一遍又一遍地重复
Message: 15:52:26.263: Remote error from secret service: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.secrets was not provided by any .service files
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)