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 / 问题

问题[xorg](unix)

Martin Hope
Dimithrandir
Asked: 2024-09-28 02:48:04 +0800 CST

系统暂停后,Xrandr 显示所有输出均已断开连接,尽管显示器仍在显示图像

  • 5

在一台配备 Intel 集成显卡和带有两个连接器(HDMI 和 VGA)的主板的 Arch Linux 机器上,我注意到系统唤醒后,xrandr 显示两个输出都已断开,即使显示器似乎以正确的分辨率按预期工作。我猜想,只有在使用从 xrandr 获取屏幕信息的软件(如lightdm或mpv)时,我才发现了这个问题。

启动后,xrandr -q给出预期的输出(在本例中,通过 VGA 连接的单个显示器):

Screen 0: minimum 320 x 200, current 1366 x 768, maximum 16384 x 16384
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 410mm x 230mm
   1366x768      59.79*+
   1280x1024     75.02    60.02
   ...
   ...
   ...

暂停和唤醒后,两个输出均断开:

Screen 0: minimum 320 x 200, current 1366 x 768, maximum 16384 x 16384
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected primary 1366x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
  1366x768 (0x44) 85.500MHz +HSync +VSync
        h: width  1366 start 1436 end 1579 total 1792 skew    0 clock  47.71KHz
        v: height  768 start  771 end  774 total  798           clock  59.79Hz

如果此时我尝试更改模式,屏幕会变黑。如果我盲目地将输出写入xrandr -q文件,它会给出:

Screen 0: minimum 320 x 200, current 320 x 200, maximum 16384 x 16384
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected primary (normal left inverted right x axis y axis)

问题的根源可能是什么?有人能解释一下上面第二个 xrandr 输出发生了什么吗?我已经尝试了不同的屏幕和电缆,但问题仍然存在。我在哪里继续进行故障排除?

xorg
  • 1 个回答
  • 37 Views
Martin Hope
Dongchen Yue 岳东辰
Asked: 2023-12-13 15:10:45 +0800 CST

XKB 规范规定每种类型最多 63 个级别。对我来说是8。我做错了什么?

  • 5

X.org 版本:1.21.1.7
发行版:Kubuntu 23.04

我复制了包含的EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK类型,插入了一个附加级别Level1,并将所有现有级别移动了 +1。最高等级就是那时Level9。运行setxkbmap(无论指定的布局如何,因为没有xkb_symbols使用此类型)会产生

加载新键盘描述时出错

然后,如果我注释掉Level9对该类型的所有引用,它就会起作用。

此处差异: https: //github.com/yue-dongchen/Neo2-QWERTY/commit/66097e14be4aa4012c8f54aaa4ff5739bd559327


回答我之前的问题——XKB可以容纳多少级别?— 引用了XKB 规范中的63 个级别。

编辑:虽然我认为这并不重要,因为我想要修改的布局实际上只使用了前 7 个级别。但如果知道我将来是否遇到需要,那还是很高兴的。

xorg
  • 1 个回答
  • 52 Views
Martin Hope
Dongchen Yue 岳东辰
Asked: 2023-12-11 16:48:36 +0800 CST

XKB可以容纳多少层?

  • 6

我打算在非常规的 8 级德国 Neo2 布局中添加一个额外的级别,以便在按下控制修饰符时将按键重定向到 QWERTY。

虽然我不认为 9 个级别不起作用,但知道最大级别数会让人放心。
我在某处读到,状态/级别/类型信息被位掩码为 32 位数据(这确实是 的十六进制输出xev)。

所有这些 32 位都用于传达电平信息吗?
编辑:我将这个 2 位十六进制数(应该是修饰键的最大数量)与最大级别数(修饰键组合)混为一谈。此信息不应与我的问题相关。

即类似以下内容。因为我昨天开始学习XKB,还没有遇到过超过8级的类型。

type "EIGHT_LEVEL_LEVEL_FIVE_LOCK" {
    // [...]
    // + map[Control]= Level0;

    level_name[Level0] = "QWERTY shortcuts"
    level_name[Level1] = "Base";
    level_name[Level2] = "Shift";
    level_name[Level3] = "Alt Base";
    level_name[Level4] = "Shift Alt";
    level_name[Level5] = "X";
    level_name[Level6] = "X Shift";
    level_name[Level7] = "X Alt Base";
    level_name[Level8] = "X Shift Alt";
};
xorg
  • 1 个回答
  • 54 Views
Martin Hope
ninjagecko
Asked: 2023-11-30 21:29:42 +0800 CST

重新连接/重新打开时,三星 QN700B 显示器失去 8k 分辨率(卡在 4k)

  • 5

我在使用三星电视作为显示器时遇到问题。感谢您的任何见解:

debian + xorg + RTX4090 + qn700b + (HDMI 2.1 电缆似乎不错)

问题:唤醒电视和电脑后,无法再次恢复到8k?它卡在 4k 处。


症状:

  • 最初,当电视/电脑重新打开时(无论顺序),都会出现黑屏。
  • Ctrl-alt-f1/f2/etc 将屏幕唤醒为 4k,然后我可以 ctrl-alt-f7 返回图形 tty,但我丢失了 8k,现在它卡在 4k(电视正确地仍处于三星游戏模式)。
  • sudo nvidia-settings不允许 8k(只有 4k 出现在下拉列表中)
  • 通过下载 EDIDnvidia-settings并强制输入 xorg 不起作用?不知道该怎么说。
  • cvt和xrandr --newmode etc/--addmode "HDMI-0" 7680x4320at60失败BadMatch (invalid parameter attributes),主要操作码 140 RANDR,次要操作码 18 RRAddOutputMode。

(我知道我可以在 xorg 中设置选项“DPMS”“false”和各种选项“fooTime”“off”,或者xset -dpms将监视器保持在 24/7,或者重新启动窗口管理器/X/等作为解决方法,但希望否则修复此问题而不丢失 WM 状态,如果可能的话,无需进行不可逆的固件更新。)

感谢您的任何见解!

Xorg.0.log:

Validated MetaModes: "7680x4320+0+0{AllowGSYNCCompatible=On}"
..
MetaMode "HDMI-0:7680x4320" could not be re-validated against the current hardware configuration; removing.
..
Setting mode "DPY-0:7680x4320+0+0{AllowGSYNCCompatible=On}"
..
Setting mode "DPY-0:nvidia-auto-select+0+0{AllowGSYNCCompatible=On}"

xorg.conf:

Section "Monitor"
..
    Option         "DPMS" "false"
    Option         "PreferredMode" "7680x4320"
EndSection

Section "Device"
..
    Option         "ModeValidation" "AllowNonEdidModes"
EndSection

Section "Screen"
..
    Option         "CustomEDID" "GPU-0.HDMI-0:/path/to/edid.txt"
    Option         "metamodes" "7680x4320 +0+0 {AllowGSYNCCompatible=On}"
    Option         "ConnectToAcpid" "False"  # https://bbs.archlinux.org/viewtopic.php?id=262207
    SubSection     "Display"
        Virtual     7680 4320
        Depth       24
    EndSubSection
EndSection
xorg
  • 1 个回答
  • 37 Views
Martin Hope
Tim
Asked: 2023-05-29 02:52:28 +0800 CST

双 GPU 设置:Xorg on Intel Integrated GPU,NVIDIA GPU for Gaming

  • 7
赏金将在 6 天后到期。此问题的答案有资格获得+100声望赏金。 Tim正在寻找可靠来源的答案:
让它工作!游戏需要 NVIDIA GPU,但在空闲模式下需要 6w。它处于空闲状态,因为 Xorg 正在其上运行。NVIDIA驱动版本为525

我最近购买了一台新笔记本电脑并在上面安装了 openSUSE Tumbleweed。笔记本电脑配备带集成显卡的 Intel Core i5 处理器和 NVIDIA 3050 Ti。我的目标是将 Xorg 配置为在集成 GPU 上运行,并在不需要时禁用 NVIDIA GPU(以节省电力,因为它消耗大约 6 瓦)。为此,我曾经prime-select通过运行命令来设置卸载模式sudo prime-select offload。

但是,我遇到了 Xorg 仍在 NVIDIA GPU 上运行的问题。当我检查 的输出时nvidia-smi,我收到以下信息:

Sun May 28 10:00:02 2023       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.116.04   Driver Version: 525.116.04   CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   42C    P8     6W /  30W |      5MiB /  4096MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      3246      G   /usr/bin/Xorg.bin                   4MiB |
+-----------------------------------------------------------------------------+

此外,当我检查任务管理器时,它表明 Xorg 不应在 NVIDIA GPU 上运行。我检查了xorg.conf位于的文件/etc/X11/xorg.conf,它包含以下配置:

Section "ServerLayout"
    Identifier "layout"
    Screen "intel"
    Option "AllowNVIDIAGPUScreens"
EndSection

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

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "ServerFlags"
    Option "AutoAddGPU" "false"
EndSection

# needed for NVIDIA PRIME Render Offload
Section "Device"
  Identifier "nvidia"
  Driver "nvidia"
  BusID "PCI:1:0:0"
EndSection

如果缺少任何必要的信息,我深表歉意。如果您需要任何其他详细信息,请告诉我。这是我第一次使用显卡,所以任何指导将不胜感激。

xorg
  • 1 个回答
  • 35 Views
Martin Hope
mad_mosel
Asked: 2023-04-30 21:11:52 +0800 CST

/etc/X11/xorg.conf [device] driver="nvidia" 时无法启动

  • 5

顺便说一句,我使用的是 Arch,有 NVIDIA GeForce GTX 1660 Ti Mobile、带 SDDM 的 KDE、带内部屏幕的笔记本电脑和 2 个通过 USB-C 连接的外部设备。

一切正常。昨天我做了全面升级。今天图形启动失败,无法终止 Playmouth Boot Screen。

我玩了一下,发现当我在/etc/X11/xorg.conf中评论这一行时,图形将会启动:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 530.41.03

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
.....
Section "Device"
    Identifier     "Device0"
#    Driver         "nvidia"             #when commented graphical boot works with 1 Monitor
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:1:0:0"
EndSection
.....
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

所以我猜它与NVIDIA驱动程序有关

pacman -Q nvidia
nvidia 530.41.03-6     #different from mod. normal?

当我检查加载的模组时:

modinfo $(modprobe --resolve-alias nvidia) 
filename:       /lib/modules/6.2.13-arch1-1/extramodules/nvidia.ko.xz
firmware:       nvidia/530.41.03/gsp_tu10x.bin
firmware:       nvidia/530.41.03/gsp_ga10x.bin   #different from above. normal?
alias:          char-major-195-*
version:        530.41.03
supported:      external
...

内核日志。我注意到某些签名无法加载,但不知道这是否是问题所在以及如何解决:dmesg | grep 英伟达

[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=2efc41cd-9bc2-430d-ad4c-9119cfc5c554 rw loglevel=3 quiet nvidia-drm.modeset=1
[    0.028531] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=2efc41cd-9bc2-430d-ad4c-9119cfc5c554 rw loglevel=3 quiet nvidia-drm.modeset=1
[    3.136458] nvidia-gpu 0000:01:00.3: enabling device (0000 -> 0002)
[    3.695298] nvidia: loading out-of-tree module taints kernel.
[    3.695323] nvidia: module license 'NVIDIA' taints kernel.
[    3.709474] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[    3.902894] nvidia-nvlink: Nvlink Core is being initialized, major device number 510
[    3.903724] nvidia 0000:01:00.0: enabling device (0006 -> 0007)
[    3.903860] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[    4.014272] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[    4.108731] nvidia-uvm: Loaded the UVM driver, major device number 508.
[    4.306861] nvidia-gpu 0000:01:00.3: i2c timeout error e0000000
[    4.360489] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  530.41.03  Thu Mar 16 19:23:04 UTC 2023
[    4.364399] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[    5.028945] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1

问题是我的外部 usbc 屏幕需要 Nvidia 驱动程序。由于某些未知原因,它们不再工作,我不知道如何进行调试。我是 Linux 的新手。任何想法如何继续?

更新 当我尝试从登录 shell 启动引导屏幕时出现此错误:

kstart plasma-desktop
qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

我试过: 重新安装:qt、nvidia 相关包、plasma

xorg
  • 1 个回答
  • 20 Views
Martin Hope
jameszp
Asked: 2023-04-25 03:05:54 +0800 CST

强制图形在特定 GPU 上运行

  • 5

我的电脑有一个集成显卡和 2 个 Nvidia RTX 3070 GPU。我正在使用 Ubuntu 20.04 和nvidia-driver-530.

lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation AlderLake-S GT1 (rev 0c)
01:00.0 VGA compatible controller: NVIDIA Corporation GA104 [GeForce RTX 3070 Lite Hash Rate] (rev a1)
05:00.0 VGA compatible controller: NVIDIA Corporation GA104 [GeForce RTX 3070 Lite Hash Rate] (rev a1)

我目前正在尝试使用 Phoronix 测试套件测试我的 3070 显卡。

我正在使用nvidia-prime并prime-select: on-demand在英特尔 iGPU 上运行终端,在 Nvidia 3070 上运行 phoronix 测试:prime-run phoronix-test-suite run unigine-heaven。

开始工作时遇到了一些问题nvidia-prime,所以我遵循了这篇文章中的建议:https ://askubuntu.com/questions/1364762/prime-run-command-not-found

cat /usr/bin/prime-run
#!/bin/bash
export __NV_PRIME_RENDER_OFFLOAD=1
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export __VK_LAYER_NV_optimus=NVIDIA_only
export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json
exec "$@"

通过使用,prime-run我成功地能够在具有总线 ID 01:00.0/的 GPU 0 上运行 phoronix 测试套件PCI:1:0:0。

但是,我似乎无法使用具有总线 ID 05:00.0/的 GPU 1 运行任何测试PCI:5:0:0。

通过更改/etc/X11/xorg.conf总线编号进行修改并按照以下链接的建议重新启动似乎没有做任何事情并且仍然在 GPU 0 上运行。

  • https://stackoverflow.com/questions/18382271/how-can-i-modify-xorg-conf-file-to-force-x-server-to-run-on-a-specific-gpu-ia
  • https://askubuntu.com/questions/787030/setting-the-default-gpu
cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 530.41.03

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
#    BusID          "PCI:1:0:0"
    BusID          "PCI:5:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

事实上,我删除etc/X11/xorg.conf并能够在 GPU 0 上运行 phoronix 测试,根本没有 conf 文件。我猜想我运行的其中一个驱动程序或程序会自动选择具有最低总线 ID 的 nvidia 卡。

我想知道我应该在哪里更改设置或任何配置文件,以便选择第二个具有总线 id 的 RTX 3070 gpu 05:00.0。我很乐意提供任何进一步的信息。

xorg
  • 1 个回答
  • 33 Views
Martin Hope
Thang Bui
Asked: 2022-06-12 19:27:01 +0800 CST

从内核模块启动图形应用程序?

  • 1

我目前的问题是:在我的 Acer Nitro 笔记本电脑键盘上,有一个 Nitro 键 - 这是其他笔记本电脑品牌没有的特殊键。您在下图中看到,退格键旁边有一个奇怪的 N 键 - 那是 Nitro 键。

硝基键

我想开发一个 GUI 应用程序,这样每当按下 Nitro 按钮时,我的应用程序就会出现。我正在使用 Ubuntu 22.04。

根据我的发现,我想我必须编写一个 LKM 来捕获 Nitro 按键事件并从那里启动应用程序。我在这里关注答案(https://stackoverflow.com/questions/33836541/linux-kernel-how-to-capture-a-key-press-and-replace-it-with-another-key)来捕获按键事件。

我想知道是否可以在 LKM 中启动 GTK 应用程序 - 换句话说,将示例代码放在这里(https://www.gtk.org/docs/getting-started/hello-world)在我的内核模块代码中. 另外,我想知道我是否走在实现目标的正确轨道上。

提前致谢!

[UPD]澄清我想要什么:Acer Nitro 笔记本电脑通常有一个名为 Nitrosense 的应用程序,它提供了一个 GUI 来更改键盘颜色和风扇速度。Nitro 键在按下时向用户显示 GUI。但是,Nitrosense 应用程序仅适用于 Windows - 我想为 Ubuntu 编写相同的东西。到目前为止,我发现了各种关于更改键盘颜色和风扇速度的存储库,但是当我按下 Nitro 键时打开的应用程序没有存储库,所以我想构建这样的东西。我在 Ubuntu 22.04 上使用 GNOME 42。我想要的是每当用户(已经登录)按下 Nitro 键时,一个 GUI 会自动显示让我做一些事情。

[UPD2]我还发现了这个 repo https://github.com/kphanipavan/PredatorNonSense,它似乎试图做与我对另一个 Acer 品牌的关注相同的事情。我认为这可能会有所帮助,将看到。

[UPD3]这是我使用时发现的事件evtest nitro key evtest 事件

但是,当我尝试时xev,没有打印任何内容,这让我认为 X Server 无法识别 Nitro 按键事件。我想我应该寻找文档来编写一个模块来将 Nitro 关键事件发送到 X 服务器?

我试图进入 GNOME 控制中心的键盘设置以尝试添加键盘快捷键,但它也无法识别 Nitro 键 - 可能是因为 GNOME 在 X Server 上运行而 X Server 无法识别 Nitro 键事件?

我还查看了我在 UPD2 中提到的 repo,所以作者所做的也是通过不断地grep从日志中轮询evtest以查看是否按下了键 - 查看这个 shell 命令https://github.com/kphanipavan/PredatorNonSense/blob /master/PNS.sh。

我想我还可以做的是编写一个简单的 systemd 服务来轮询键盘设备文件并检查 Nitro 是否被按下。但是,有人提到这可能会浪费大量资源。对此有何建议?

ubuntu xorg
  • 2 个回答
  • 92 Views
Martin Hope
igorkattar
Asked: 2022-05-13 09:49:18 +0800 CST

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

  • 0

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 个回答
  • 719 Views
Martin Hope
theboringkid
Asked: 2022-04-05 23:11:36 +0800 CST

xinitrc 似乎没有运行某些命令

  • 2

我是 Arch 新手,并进行了全新安装。我已将其配置为使用 dwm,并使用 startx 启动它。问题是 xinitrc 中的某些命令似乎没有运行。它显然在某种程度上有效,因为 dwm 正在启动,但我不能对其他命令说同样的话。我的 xintirc 位于:~/.xinitrc(或 /home/xor/.xinitrc),如下所示:

exec dwm
set xkbmap de
feh --bg-scale ~/background.png
xinput set-prop "UNIW0001:00 093A:0255 Touchpad" 349 1
xinput set-prop "UNIW0001:00 093A:0255 Touchpad" 326 1
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

它应该启动 dwm(确实如此),将键盘布局设置为德语 qwertz(可行),设置背景图像(不起作用)调整一些触摸板设置(不起作用),并使用 nvidia 驱动程序做一些事情(不完全确定它的作用,我猜它启用了卡/驱动程序,但我知道驱动程序可以工作并且我可以使用我的 GPU)。我可以将不工作的命令粘贴到终端中,它们可以工作。

文件 xinit 是否有错误日志,在我的情况下有什么问题?感谢帮助!

arch-linux xorg
  • 1 个回答
  • 508 Views

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