xcalib 错误 - 不支持的斜坡大小

tom*_*nes 13 colors display xcalib contrast

我正在尝试xcalib使用命令更改对比度,xcalib -co 70但出现以下错误:

Error - unsupported ramp size 0
Run Code Online (Sandbox Code Playgroud)

Anw*_*war 11

这实际上是debian 上游报告的一个错误和其他各种地方。似乎较新版本的 X 导致了这种情况。一位用户报告了英特尔驱动程序的解决方法,它对我有用。

首先,请确保实际安装适当的驱动程序$ sudo apt install xorg xserver-xorg-video-intel

您需要创建一个 xorg.conf文件来强制使用英特尔驱动程序。创建一个文件/etc/X11/xorg.conf.d/20-intel.conf并将这些行放在那里。

Section "Device"
  Identifier "Intel Graphics"
  Driver "intel"
EndSection
Run Code Online (Sandbox Code Playgroud)

在 Ubuntu 18.04 及更新版本上,该文件/etc/X11/xorg.conf应包含Driver "intel"Section "Device". 这Identifier可不同调用。

现在重新启动重新启动 X ( sudo systemctl restart display-manager)。