内蒙营销型网站建设,小程序开发兼职的小知识,网站好坏,网站页面引导怎么做问题#xff1a;
在升级pkg包后#xff0c;系统无法进入xfce等xwindows#xff0c;表现为黑屏和看见鼠标#xff0c;左上角有一个白字符块#xff0c;键盘鼠标没有反应#xff0c;整个系统卡住。但是可以ssh登录#xff0c;内部的服务一切正常。 表现 处理过程#xf…
问题
在升级pkg包后系统无法进入xfce等xwindows表现为黑屏和看见鼠标左上角有一个白字符块键盘鼠标没有反应整个系统卡住。但是可以ssh登录内部的服务一切正常。 表现 处理过程
输入xrandr
报错cant open display 现在的问题就是解决么有display的问题大约是在某个时间段FreeBSD修改了xwindows的某个部件。。。。
用ssh登进去测试
startx
xauth: file /home/skywalk/.serverauth.7188 does not exist /usr/local/libexec/Xorg.wrap: Only console users are allowed to run the X server
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
安装wayfile试试 # pkg install wayfire wf-shell alacritty swaylock-effects swayidle wlogout kanshi mako wlsunset
照旧 咨询bing
You could do this (if your DISPLAY is :0):
$ export DISPLAY:0
$ xrandr --listmonitors
$ xrandr your_command 输入set DISPLAY:0
xrandr --listmonitors
还是Cant open display
重新学习FreeBSD手册
pciconf -lv|grep -B4 VGA
vgapci0pci0:0:2:0: class0x030000 rev0x09 hdr0x00 vendor0x8086 device0x1616 subvendor0x17aa subdevice0x2226vendor Intel Corporationdevice HD Graphics 5500class displaysubclass VGA
查看是否biso还是uefi
sysctl machdep.bootmethod
machdep.bootmethod: UEFI
intel
pkg install drm-kmod
sysrc kld_listi915kms
降低intel显卡的cpu占用
pkg install libva-intel-driver mesa-libs mesa-dri
Xorg配置
Xorg Configuration
Xorg supports most common video cards, keyboards, and pointing devices. Video cards, monitors, and input devices are automatically detected and do not require any manual configuration. Do not create xorg.conf or run a Xorg -configure step unless automatic configuration fails.
sudo Xorg -configure
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE)
Fatal server error:
(EE) Cannot establish any listening sockets - Make sure an X server isnt already running(EE)
(EE)
Please consult the The X.Org Foundation support at http://wiki.x.orgfor help.
(EE) Please also check the log file at /var/log/Xorg.0.log for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file. intel显卡配置
Example 1. Select Intel® Video Driver in a File
/usr/local/etc/X11/xorg.conf.d/20-intel.conf
Section DeviceIdentifier Card0Driver intel
EndSection pciconf -lv | grep -B3 display
vgapci0pci0:0:2:0: class0x030000 rev0x09 hdr0x00 vendor0x8086 device0x1616 subvendor0x17aa subdevice0x2226vendor Intel Corporationdevice HD Graphics 5500class displayX -config
执行测试
sudo X -config /root/xorg.conf.new
密码
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE)
Fatal server error:
(EE) Cannot establish any listening sockets - Make sure an X server isnt already running(EE)
(EE)
Please consult the The X.Org Foundation support at http://wiki.x.orgfor help.
(EE) Please also check the log file at /var/log/Xorg.0.log for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
执行startx
重新删除Xorg和xfce包重新安装执行startx
报错no screens
生成的X配置文件
cat /root/xorg.conf.new
Section ServerLayoutIdentifier X.org ConfiguredScreen 0 Screen0 0 0InputDevice Mouse0 CorePointerInputDevice Keyboard0 CoreKeyboard
EndSectionSection FilesModulePath /usr/local/lib/xorg/modulesFontPath /usr/local/share/fonts/misc/FontPath /usr/local/share/fonts/TTF/FontPath /usr/local/share/fonts/OTF/FontPath /usr/local/share/fonts/Type1/FontPath /usr/local/share/fonts/100dpi/FontPath /usr/local/share/fonts/75dpi/FontPath catalogue:/usr/local/etc/X11/fontpath.d
EndSectionSection ModuleLoad glx
EndSectionSection InputDeviceIdentifier Keyboard0Driver kbd
EndSectionSection InputDeviceIdentifier Mouse0Driver mouseOption Protocol autoOption Device /dev/sysmouseOption ZAxisMapping 4 5 6 7
EndSectionSection MonitorIdentifier Monitor0VendorName Monitor VendorModelName Monitor Model
EndSectionSection Device### Available Driver options are:-### Values: i: integer, f: float, bool: True/False,### string: String, freq: f Hz/kHz/MHz,### percent: f%### [arg]: arg optional#Option Accel # [bool]#Option AccelMethod # str#Option Backlight # str#Option CustomEDID # str#Option DRI # str#Option Present # [bool]#Option ColorKey # i#Option VideoKey # i#Option Tiling # [bool]#Option LinearFramebuffer # [bool]#Option HWRotation # [bool]#Option VSync # [bool]#Option PageFlip # [bool]#Option SwapbuffersWait # [bool]#Option TripleBuffer # [bool]#Option XvPreferOverlay # [bool]#Option HotPlug # [bool]#Option ReprobeOutputs # [bool]#Option XvMC # [bool]#Option ZaphodHeads # str#Option VirtualHeads # i#Option TearFree # [bool]#Option PerCrtcPixmaps # [bool]#Option FallbackDebug # [bool]#Option DebugFlushBatches # [bool]#Option DebugFlushCaches # [bool]#Option DebugWait # [bool]#Option BufferCache # [bool]Identifier Card0Driver intelBusID PCI:0:2:0
EndSectionSection ScreenIdentifier Screen0Device Card0Monitor Monitor0SubSection DisplayViewport 0 0Depth 1EndSubSectionSubSection DisplayViewport 0 0Depth 4EndSubSectionSubSection DisplayViewport 0 0Depth 8EndSubSectionSubSection DisplayViewport 0 0Depth 15EndSubSectionSubSection DisplayViewport 0 0Depth 16EndSubSectionSubSection DisplayViewport 0 0Depth 24EndSubSection
EndSection这样一通启动后报错no screens found
至少不会卡死了现在解决这个报错
解决no screens found 报错问题
装驱动试试
sudo pkg install libva-intel-media-driverstartx后同样报错
试试
intel-compute-runtime-llvm13
问题照旧 总结
一顿操作猛如虎现在至少每次startx的时候系统不会卡住了。
no screens found的问题单开一篇记录以后解决的步骤。