generate the xorg.conf file

本文探讨了深度学习在图像处理领域的应用,包括AR特效、图像处理、音视频直播等场景,展示了深度学习如何提升图像处理的效率与效果。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

# 备选方案启动Xorg startx Failed to restart gdm.service: Unit gdm.service not found. xauth: file /root/.Xauthority does not exist X.Org X Server 1.21.1.11 X Protocol Version 11, Revision 0 Current Operating System: Linux srv771551 6.8.0-60-generic #63-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 19:04:15 UTC 2025 x86_64 Kernel command line: BOOT_IMAGE=/vmlinuz-6.8.0-60-generic root=UUID=30964bc7-c7b0-4ada-9642-1f49d6e6c210 ro console=tty0 console=ttyS0,115200 earlyprintk=ttyS0,115200 consoleblank=0 memhp_default_state=online console=tty1 console=ttyS0 xorg-server 2:21.1.12-1ubuntu1.3 (For technical support please see http://www.ubuntu.com/support) Current version of pixman: 0.42.2 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.1.log", Time: Tue May 27 22:07:28 2025 (==) Using system config directory "/usr/share/X11/xorg.conf.d" (EE) Fatal server error: (EE) no screens found(EE) (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. (EE) Please also check the log file at "/var/log/Xorg.1.log" for additional information. (EE) (EE) Server terminated with error (1). Closing log file. ^Cxinit: giving up xinit: unable to connect to X server: Connection refused xinit: unexpected signal 2 root@srv771551:~# ^C root@srv771551:~# ^C root@srv771551:~#
05-29
No VM guests are running outdated hypervisor (qemu) binaries on this host. [1] 14461 Error: unable to open display :1 root@srv771551:~# The XKEYBOARD keymap compiler (xkbcomp) reports: > Warning: Could not resolve keysym XF86CameraAccessEnable > Warning: Could not resolve keysym XF86CameraAccessDisable > Warning: Could not resolve keysym XF86CameraAccessToggle > Warning: Could not resolve keysym XF86NextElement > Warning: Could not resolve keysym XF86PreviousElement > Warning: Could not resolve keysym XF86AutopilotEngageToggle > Warning: Could not resolve keysym XF86MarkWaypoint > Warning: Could not resolve keysym XF86Sos > Warning: Could not resolve keysym XF86NavChart > Warning: Could not resolve keysym XF86FishingChart > Warning: Could not resolve keysym XF86SingleRangeRadar > Warning: Could not resolve keysym XF86DualRangeRadar > Warning: Could not resolve keysym XF86RadarOverlay > Warning: Could not resolve keysym XF86TraditionalSonar > Warning: Could not resolve keysym XF86ClearvuSonar > Warning: Could not resolve keysym XF86SidevuSonar > Warning: Could not resolve keysym XF86NavInfo Errors from xkbcomp are not fatal to the X server # 查看详细的DRM初始 查看详细的DRM初始化日志 sudo dmesg | grep -iE 'drm|i915|amdgpu|nouveau' # 强制重新加载图形模块(以Intel为例) sudo rmmod i915 sudo modprobe i915 debug=1 [ 8.488129] ACPI: bus type drm_connector registered [ 11.694958] systemd[1]: Starting modprobe@drm.service - Load Kernel Module drm... rmmod: ERROR: Module i915 is not currently loaded modprobe: FATAL: Module i915 not found in directory /lib/modules/6.8.0-60-generic root@srv771551:~# # 检查物理显示接口状态 sudo apt install edid-decode -y sudo cat /sys/class/drm/card0-DP-1/edid | edid-decode # 检测显示端口热插拔状态 grep -H . /sys/class/drm/*/status Reading package lists... Done Building dependency tree... Done Reading state information... Done The following NEW packages will be installed: edid-decode 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 134 kB of archives. After this operation, 350 kB of additional disk space will be used. Get:1 http://in.archive.ubuntu.com/ubuntu noble/universe amd64 edid-decode amd64 0.1~git20220315.cb74358c2896-1.1 [134 kB] Fetched 134 kB in 1s (126 kB/s) Selecting previously unselected package edid-decode. (Reading database ... 104591 files and directories currently installed.) Preparing to unpack .../edid-decode_0.1~git20220315.cb74358c2896-1.1_amd64.deb ... Unpacking edid-decode (0.1~git20220315.cb74358c2896-1.1) ... Setting up edid-decode (0.1~git20220315.cb74358c2896-1.1) ... Processing triggers for man-db (2.12.0-4build2) ... Scanning processes... Scanning linux images... Running kernel seems to be up-to-date. No services need to be restarted. No containers need to be restarted. No user sessions are running outdated binaries. No VM guests are running outdated hypervisor (qemu) binaries on this host. cat: /sys/class/drm/card0-DP-1/edid: No such file or directory EDID of 'stdin' was empty. grep: /sys/class/drm/*/status: No such file or directory root@srv771551:~# # 使用LLVMpipe软件渲染 sudo apt install mesa-utils -y LIBGL_ALWAYS_SOFTWARE=1 glxinfo | grep "OpenGL renderer" # 验证CPU渲染能力 MESA_GL_VERSION_OVERRIDE=4.5 glxgears Reading package lists... Done Building dependency tree... Done Reading state information... Done mesa-utils is already the newest version (9.0.0-2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. OpenGL renderer string: llvmpipe (LLVM 19.1.1, 256 bits) The XKEYBOARD keymap compiler (xkbcomp) reports: > Warning: Could not resolve keysym XF86CameraAccessEnable > Warning: Could not resolve keysym XF86CameraAccessDisable > Warning: Could not resolve keysym XF86CameraAccessToggle > Warning: Could not resolve keysym XF86NextElement > Warning: Could not resolve keysym XF86PreviousElement > Warning: Could not resolve keysym XF86AutopilotEngageToggle > Warning: Could not resolve keysym XF86MarkWaypoint > Warning: Could not resolve keysym XF86Sos > Warning: Could not resolve keysym XF86NavChart > Warning: Could not resolve keysym XF86FishingChart > Warning: Could not resolve keysym XF86SingleRangeRadar > Warning: Could not resolve keysym XF86DualRangeRadar > Warning: Could not resolve keysym XF86RadarOverlay > Warning: Could not resolve keysym XF86TraditionalSonar > Warning: Could not resolve keysym XF86ClearvuSonar > Warning: Could not resolve keysym XF86SidevuSonar > Warning: Could not resolve keysym XF86NavInfo Errors from xkbcomp are not fatal to the X server 6622 frames in 5.0 seconds = 1324.350 FPS 5306 frames in 5.0 seconds = 1061.041 FPS 6476 frames in 5.0 seconds = 1295.068 FPS 7356 frames in 5.0 seconds = 1471.104 FPS 7530 frames in 5.0 seconds = 1505.943 FPS 7202 frames in 5.0 seconds = 1440.160 FPS 6918 frames in 5.0 seconds = 1383.580 FPS 6448 frames in 5.0 seconds = 1289.433 FPS 6896 frames in 5.0 seconds = 1379.091 FPS 7166 frames in 5.0 seconds = 1433.100 FPS 6667 frames in 5.0 seconds = 1333.343 FPS 6502 frames in 5.0 seconds = 1300.314 FPS 6236 frames in 5.0 seconds = 1246.892 FPS 4949 frames in 5.0 seconds = 989.683 FPS 6312 frames in 5.0 seconds = 1262.288 FPS 7286 frames in 5.0 seconds = 1456.947 FPS # 检查内核模块存储路径 sudo find /lib/modules/$(uname -r) -name '*i915*' # 查看模块依赖关系 modinfo i915 | grep -E 'depends|vermagic' # 强制重建模块依赖 sudo depmod -a # 检查黑名单配置 grep -ri 'blacklist i915' /etc/modprobe.d/6583 frames in 5.0 seconds = 1316.576 FPS 6704 frames in 5.0 seconds = 1340.529 FPS 6171 frames in 5.0 seconds = 1234.088 FPS 7279 frames in 5.0 seconds = 1455.553 FPS # 创建自定义键位符号文件 echo 'xkb_symbols "extras" { key <I240> { [ XF86CameraAccessEnable ] }; key <I241> { [ XF86CameraAccessDisable ] }; key <I242> { [ XF86CameraAccessToggle ] }; };' | sudo tee /usr/share/X11/xkb/symbols/custom # 更新XKB配置 sudo sed -i '/xkb_symbols/a include "custom(extras)"' /usr/share/X11/xkb/symbols/inet 7404 frames in 5.0 seconds = 1480.630 FPS 7454 frames in 5.0 seconds = 1490.683 FPS # 生成基础EDID二进制 echo -n -e '\x00\xFF\xFF\xFF\xFF\xFF\xFF\x00\x04\x72\x00\x00\x01\x00\x00\x00\x01\x1B\x01\x03\x80\x00\x00\x78\x0A\xEE\x91\xA3\x54\x4C\x99\x26\x0F\x50\x54\x00\x00\x00\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x02\x3A\x80\x18\x71\x38\x2D\x40\x58\x2C\x45\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xFE\x00\x41\x55\x4F\x0A\x20\x20\x20\x20\x20\x20\x00\x00\x00\xFE\x00\x42\x31\x35\x36\x48\x41\x4E\x30\x31\x2E\x30\x00\xBC' | sudo tee /sys/kernel/debug/dri/0/edid_override >/dev/null # 验证EDID注入 sudo cat /sys/kernel/debug/dri/0/edid_override | edid-decode 7467 frames in 5.0 seconds = 1493.334 FPS 7557 frames in 5.0 seconds = 1511.268 FPS # 创建最小化Xorg配置 echo 'Section "ServerFlags" Option "AutoAddGPU" "off" Option "IgnoreABI" "true" EndSection Section "Device" Identifier "DummyCard" Driver "dummy" VideoRam 32768 EndSection Section "Screen" Identifier "DummyScreen" Device "DummyCard" Monitor "DummyMonitor" DefaultDepth 24 SubSection "Display" Depth 24 Modes "1024x768" EndSubSection EndSection Section "Monitor" Identifier "DummyMonitor" HorizSync 28.0-80.0 VertRefresh 48.0-75.0 EndSection' | sudo tee /etc/X11/xorg.conf.d/99-fallback.conf 7125 frames in 5.0 seconds = 1424.958 FPS 5526 frames in 5.0 seconds = 1104.287 FPS #!/bin/bash # render_benchmark.sh export MESA_LOADER_DRIVER_OVERRIDE=llvmpipe export LIBGL_ALWAYS_SOFTWARE=1 echo "===== CPU Rendering Benchmark =====" for i in {1..4}; do taskset -c $i glxgears >/dev/null & pid=$! sleep 5 kill $pid echo "Core $i: $(grep -E 'frames in 5.0' /tmp/bench.log | tail -n1)" done echo -e "\n===== Memory Bandwidth Test =====" sudo apt install mbw -y mbw -n 5 256 | grep AVG 6637 frames in 5.0 seconds = 1327.285 FPS 7355 frames in 5.0 seconds = 1470.954 FPS # 创建systemd调试服务 echo '[Unit] Description=DRM Debugging Service [Service] Type=oneshot ExecStart=/usr/sbin/rmmod i915 ExecStart=/usr/sbin/modprobe i915 debug=1 ExecStart=/usr/bin/tee /sys/kernel/debug/dri/0/i915_engine_info < /dev/null [Install] WantedBy=multi-user.target' | sudo tee /etc/systemd/system/drm-debug.service sudo systemctl daemon-reload sudo systemctl enable drm-debug 7212 frames in 5.0 seconds = 1442.261 FPS 6695 frames in 5.0 seconds = 1338.973 FPS 6488 frames in 5.0 seconds = 1297.479 FPS
最新发布
05-29
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值