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
    • 最新
    • 标签
主页 / ubuntu / 问题 / 4662
Accepted
Ivan
Ivan
Asked: 2010-09-24 16:59:24 +0800 CST2010-09-24 16:59:24 +0800 CST 2010-09-24 16:59:24 +0800 CST

X.org 配置文件在哪里?我如何在那里配置 X?

  • 772

由于 Ubuntu 10.10 似乎既没有自动检测到我的显卡(英特尔 82852/855GM),也没有使用相应的英特尔驱动程序,即使在手动安装之后,我正在考虑手动配置 X(我不应该吗?)。在哪里可以找到我需要编辑的配置文件?

xorg intel-graphics
  • 8 8 个回答
  • 654921 Views

8 个回答

  • Voted
  1. Best Answer
    NightwishFan
    2010-09-24T17:17:57+08:002010-09-24T17:17:57+08:00

    默认情况下 xorg.conf 不再存在。你可以创建一个。

    启动进入恢复模式并选择 Root Shell。然后运行:

    X -configure
    

    然后:

    cp /root/xorg.conf.new /etc/X11/xorg.conf
    

    重新启动,您可以编辑新的 Xorg.conf。

    • 94
  2. desgua
    2011-04-29T18:14:02+08:002011-04-29T18:14:02+08:00

    配置文件位于/usr/share/X11/xorg.conf.d

    他们是:

    10-evdev.conf

    11-evdev-quirks.conf

    50-vmmouse.conf

    50-wacom.conf

    51-突触-quirks.conf

    检查当前手册。

    如果您创建xorg.conf文件,则以该文件的配置为准。
    还要检查这个答案。

    • 70
  3. Wolfgang Silbermayr
    2011-04-29T00:40:31+08:002011-04-29T00:40:31+08:00

    通常,你不再需要了xorg.conf。

    如果您仍然需要配置某些设备,您可以通过在/usr/lib/X11/xorg.conf.d/(Ubuntu 10.04) 或/usr/share/X11/xorg.conf.d/(自 Ubuntu 10.10) 中放置一个文件来实现。此目录中已经有一些文件。

    您可以在xorg.conf.d上找到更多信息(德文,但配置文件当然是英文)。重要的是文件名应该以大于 10 的两位数开头。

    另一个英文指南在x org 存档上。它仍在使用 /usr/lib 但它很好。

    • 23
  4. Laysan_A
    2012-06-16T16:22:28+08:002012-06-16T16:22:28+08:00

    cookiecaper 的使用建议

    sudo X :1 -configure
    

    为我工作 - 就在桌面上!它终于出错了,但在我的主目录中提供了一个不错的新 xorg.conf.new 之前。谢谢cc!我尝试过的所有其他建议都未能生成文件。

    哦,顺便说一句,

    man xorg.conf
    

    在终端中将提供一堆关于编辑 xorg.conf 文件的有用且最新的信息(可能有点简洁)。

    • 13
  5. ngonkalves
    2013-05-07T14:18:17+08:002013-05-07T14:18:17+08:00

    这对我来说很好用 Nvidia Optimus (Bumblebee) 没有任何特殊配置,只是默认值:

    #!/bin/bash
    #
    # Source: https://bbs.archlinux.org/viewtopic.php?id=140315
    #
    
    r=`zenity --width 400 --height 250 --title "Display setup" --text "Choose display mode:" --list --column "Modes" "Internal" "External" "Clone" "Extended"`
    
    case "$r" in
    Internal)
        xrandr --output LVDS1  --auto \
               --output VGA1 --off ;;
    External)
        xrandr --output LVDS1  --off \
               --output VGA1 --auto ;;
    Clone)
        xrandr --output LVDS1  --auto \
               --output VGA1 --auto --same-as LVDS1 ;;
    Extended)
        xrandr --output LVDS1  --auto --primary \
               --output VGA1 --auto --left-of LVDS1 ;;
    esac
    

    监视器 LVDS1 和 VGA1 在 ~/.config/monitors.xml 中定义。有关 monitor.xml 的更多信息,请查看http://www.sudo-juice.com/dual-monitor-settings-in-ubuntu/。

    例子:

    <monitors version="1">
      <configuration>
      <clone>no</clone>
      <output name="LVDS1">
          <vendor>AUO</vendor>
          <product>0x213c</product>
          <serial>0x00000000</serial>
          <width>1366</width>
          <height>768</height>
          <rate>60</rate>
          <x>1280</x>
          <y>256</y>
          <rotation>normal</rotation>
          <reflect_x>no</reflect_x>
          <reflect_y>no</reflect_y>
          <primary>yes</primary>
      </output>
      <output name="VGA1">
          <vendor>GSM</vendor>
          <product>0x43ff</product>
          <serial>0x00035928</serial>
          <width>1280</width>
          <height>1024</height>
          <rate>60</rate>
          <x>0</x>
          <y>0</y>
          <rotation>normal</rotation>
          <reflect_x>no</reflect_x>
          <reflect_y>no</reflect_y>
          <primary>no</primary>
      </output>
      <output name="HDMI1">
      </output>
      <output name="DP1">
      </output>
      </configuration>
    </monitors>
    
    • 1
  6. Oli
    2011-04-29T15:53:36+08:002011-04-29T15:53:36+08:00

    是的,对于大多数免费图形驱动程序来说,最新版本的 Ubuntu 不需要 xorg.conf 文件。你可以很容易地生成一个:

    sudo Xorg -configure
    
    • 0
  7. Adrian Lopez
    2015-07-28T12:10:52+08:002015-07-28T12:10:52+08:00

    对于丢失的amd用户:请注意,amd驱动程序提供了一个生成xorg.conf的工具

    aticonfig --initial
    
    • 0
  8. Bendersr
    2020-02-05T18:23:28+08:002020-02-05T18:23:28+08:00

    对于运行 Ubuntu 19.10 的用户,我可以通过引导进入恢复,选择 root shell,然后运行来确认添加配置文件:

    X -configure
    

    然后输入:

    cp /root/xorg.conf.new /etc/X11/xorg.conf
    

    将允许您编辑配置文件,并修复常见的双显示器鼠标闪烁问题。

    • 0

相关问题

  • 如何从命令行重新启动 X Window Server?

  • xorg 中是否有用于更改视频驱动程序的 GUI?

  • 类似于 Eyefinity 的东西?

  • 如何重置我的键盘布局?

  • 帮助让 Flash 播放器在第二个屏幕上工作?

Sidebar

Stats

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

    如何安装 .run 文件?

    • 7 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    如何获得 CPU 温度?

    • 21 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Marko Smith

    如何使用命令行将用户添加为新的 sudoer?

    • 7 个回答
  • Marko Smith

    更改文件夹权限和所有权

    • 9 个回答
  • Marko Smith

    你如何重新启动Apache?

    • 13 个回答
  • Marko Smith

    如何卸载软件?

    • 11 个回答
  • Marko Smith

    如何删除 PPA?

    • 26 个回答
  • Martin Hope
    NES 如何启用或禁用服务? 2010-12-30 13:03:32 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    Olivier Lalonde 如何在结束 ssh 会话后保持进程运行? 2010-10-22 04:09:13 +0800 CST
  • Martin Hope
    David B 如何使用命令行将用户添加为新的 sudoer? 2010-10-16 04:02:45 +0800 CST
  • Martin Hope
    Hans 如何删除旧内核版本以清理启动菜单? 2010-08-21 19:37:01 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve