AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题 / 702304
Accepted
igorkattar
igorkattar
Asked: 2022-05-13 09:49:18 +0800 CST2022-05-13 09:49:18 +0800 CST 2022-05-13 09:49:18 +0800 CST

更改默认 xorg.conf 视频驱动程序

  • 772

Debian 11 与 LXDE (Xorg + lightdm)

如何更改 X 使用的驱动程序?

我的 X 使用默认选项,我没有/etc/X11/xorg.conf文件,所以我使用命令生成一个,然后将/root/xorg.conf.newsudo X -configure :1的内容复制到/etc/X11/xorg .conf

重新启动后,我在 :0 上运行 X 像以前一样(ps auxww | grep Xorg返回... /usr/lib/xorg/Xorg -s 0 :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch),但有一个空白屏幕(/var/log/Xorg.0.log文件中没有 EE)。如果我删除该/etc/X11/xorg.conf文件并重新启动,我将再次看到正常屏幕。

生成的/root/xorg.conf.new是这样的(为简洁起见,删除了注释选项,一些 FontPaths 和 SubSections 显示)

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/X11/misc"

    FontPath     "built-ins"
EndSection

Section "Module"
    Load  "glx"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol" "auto"
    Option      "Device" "/dev/input/mice"
    Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection

Section "Device"
    Identifier  "Card0"
    Driver      "intel"
    BusID       "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

请注意,如果没有/etc/X11/xorg.conf文件,则返回的输出名称xrandr带有破折号,例如 DP-1、DP-2 等,并且使用该文件xrandr返回的名称不带破折号:DP1、DP2...

我想做的唯一改变是替换:

驱动程序“英特尔”

和

驱动程序“fbdev”

已经尝试删除 xserver-xorg-video-intel 软件包,但它会破坏我的系统,删除 WM、DE 和许多其他应用程序。

debian xorg
  • 1 1 个回答
  • 719 Views

1 个回答

  • Voted
  1. Best Answer
    igorkattar
    2022-05-14T05:29:02+08:002022-05-14T05:29:02+08:00

    我身边有点困惑,所以我必须做出适当的更正才能进入,我认为这是一个很好的解释。

    我正在尝试更改驱动程序的几台机器,我将结果与带有radeon驱动程序的机器和带有intel驱动程序的机器混合在一起,我的错。

    问题是英特尔驱动程序(xserver-xorg-video-intel ,不是 radeon,已修复)在使用/etc/X11/xorg.conf文件时不会生成带有破折号(DP1)的输出名称,但没有文件这些名称是用破折号(DP-1)生成的,因为我的屏幕是使用一组 xrandr 脚本配置的,当我使用没有/etc/X11/xorg.conf 文件的 Xorg 时生成,该脚本无法设置我的屏幕。

    • 0

相关问题

  • GRUB 配置以识别同一 Linux 发行版的不同桌面环境(安装)

  • astyle 不会更改源文件格式

  • 接收有关全新 Debian 的电子邮件

  • Debian Stretch:libgs_plugin_systemd-updates.so 中的 gnome-software 段错误

  • 如何在拼音输入法中输入ü?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve