我正在尝试Kubuntu 18.10,我有一个nvidia GTX 1060 (驱动器418),一个LG 27“4k监视器(27UD58-B )和一个较老的HP 22”1680x1050显示器(HPw2207)与一个VGA-> DP转换器。
我的问题如下: 1)我的vga屏幕不能使用1280*1024以上的分辨率。
2)我想使用屏幕缩放,因为4k显示器上的所有东西都太小了。如果可能的话,我希望只在高dpi显示器上进行缩放。
Current设置:
我用的是Nvidia司机418.56。
$ nvidia-smi
Mon Apr 15 15:07:47 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.56 Driver Version: 418.56 CUDA Version: 10.1 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 106... Off | 00000000:23:00.0 On | N/A |
| 10% 64C P0 25W / 120W | 739MiB / 6076MiB | 3% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 958 G /usr/lib/xorg/Xorg 386MiB |
| 0 1413 G /usr/bin/kwin_x11 192MiB |
| 0 1432 G /usr/bin/krunner 1MiB |
| 0 1434 G /usr/bin/plasmashell 111MiB |
| 0 1509 G /usr/bin/latte-dock 29MiB |
| 0 9387 G /usr/lib/firefox/firefox 1MiB |
+-----------------------------------------------------------------------------+而且无法获得正常的更高分辨率:
$ xrandr
Screen 0: minimum 8 x 8, current 4864 x 2160, maximum 32767 x 32767
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 600mm x 340mm
3840x2160 60.00*+ 30.00
2560x1440 59.95
1920x1080 60.00 59.94
1600x900 60.00
1280x1024 60.02
1280x800 59.81
1280x720 60.00 59.94
1152x864 59.96
1024x768 60.00
800x600 60.32
720x480 59.94
640x480 59.94 59.93
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 connected 1024x1280+3840+832 left (normal left inverted right x axis y axis) 376mm x 301mm
1280x1024 60.02*+
1280x960 60.00
1152x864 75.00
1024x768 85.00 75.03 70.07 60.00
800x600 85.06 75.00 72.19
640x480 85.01 59.94
DP-5 disconnected (normal left inverted right x axis y axis)First问题:修复分辨率我尝试过使用xrandr来“加载式”,但是我得到了一个BadMatch错误。这显然是正常的nvidia视频卡。
$ cvt 1680 1050 60
# 1680x1050 59.95 Hz (CVT 1.76MA) hsync: 65.29 kHz; pclk: 146.25 MHz
Modeline "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
$ xrandr --newmode "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
$ xrandr --addmode DP-4 1680x1050_60.00
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 45
Current serial number in output stream: 46我的/etc/X11/xorg.conf文件是由nvidia usind sudo nvidia-xconfig生成的:
$ sudo nvidia-xconfig
Using X configuration file: "/etc/X11/xorg.conf".
Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'
New X configuration file written to '/etc/X11/xorg.conf'xorg.conf只包含一个监视器,这是正常的。我尝试在Monitor0下添加一个"Modeline“行,但是它并没有改变任何东西。
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 418.56
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
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"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSectionSecond问题:缩放
我已经采取了两个步骤,允许HiDPI屏幕以更易读的大小显示文本和GUI:
1)系统设置-字体-强制字体DPI 144 (而不是96)系统设置-显示和显示器-比例显示1.5 (而不是1)。
我希望这些设置只适用于4k显示器,这可能吗?
发布于 2019-04-16 03:06:31
我找到了一个解决办法:我把显示器直接连接到一个有VGA的老塔上,然后用
sudo apt install read-edid
sudo get-edid -m 0 > edid.bin然后,我在机器上删除了旧的xorg.conf,并创建了一个新的,在这里,我强制显示器在显示端口4上使用edid:
sudo rm /etc/X11/xorg.conf
nvidia-xconfig --custom-edid="GPU-0.DP-4:/home/MYNAME/edid.bin"塔达,更高的分辨率现在起作用了。当我查看我的xorg.conf文件时,我看到下面的一行已经添加到“屏幕”部分:
Option "CustomEDID" "GPU-0.DP-4:/home/MYNAME/Downloads/edid.bin"下面是我在使用高dpi监视器和标准-dpi监视器进行缩放时所做的工作:
好的,L女士在22岁“.L faut que je rescale de 1.4 dans la反方向。A me fait unécran de 3840 + 1.4 * 1680 = 6192像素de frame,que je dois indiquer dans le frame缓冲区。公司名称:j‘’indique la position desécrans avec -pos,o gauche le 0x0 est le le haut-gauche de L‘écran。输出DP-0 -规模1x1 -pos 0x0 -fb 6192 x2160 xrandr输出DP-4 -比例1.4x1.4 -pos 3840x690
https://unix.stackexchange.com/questions/512646
复制相似问题