私はKubuntu 18.10を使用しており、nvidia GTX 1060(ドライバ418)、LG 27" 4kモニター(27UD58-B)、VGAケーブルとVGA-> DPコンバーター付きの古いHP 22" 1680x1050モニター(HPw2207)を使用しています。 。
私の質問は次のとおりです。
1)コンバータを使用してVGA画面で1280 * 1024を超える解像度を使用することはできません。
2)4kディスプレイのすべてが非常に小さいので、画面のサイズ変更を使用したいと思います。可能であれば、high-dpiモニタでのみスケーリングしたいと思います。
現在の設定:
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)
最初の問題:解像度を修正 xrandr "addmode"を試してみましたが、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ファイルは、sudo nvidia-xconfigを使用してnvidiaで作成されました。
$ 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には1つのモニタしか含まれていません。これは正常ですか? 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
EndSection
2番目の質問:スケーリング
HiDPI画面にテキストとGUIがより読みやすいサイズで表示されるように、2つの手順を実行しました。
1)システム設定 - フォント - 強制フォントDPI 144(96の代わりに)2)システム設定 - ディスプレイとモニタ - スケールディスプレイ1.5(1の代わりに)。
この設定が4kモニターでのみ機能するようにしたいと思います。これは可能ですか?
ベストアンサー1
解決策が見つかりました。 VGAを使用してモニターを既存のタワーに直接接続し、次のようにEDIDをエクスポートしました。
sudo apt install read-edid
sudo get-edid -m 0 > edid.bin
その後、コンピュータから古いxorg.confを削除し、ポート4にあるモニタのedidが表示されるようにする新しいxorg.confを作成しました。
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モニターでサイズ変更するために行った操作です。
まあ、これは22"です。逆方向には1.4ピクセルです。 l'écran。 https://askubuntu.com/questions/393400/is-it-possible-to-have- Different-dpi-configurations-for-two- Different-screens xrandr --output DP-0 --scale 1x1 --pos 0x0 --fb 6192x2160 xrandr --output DP-4 --scale 1.4x1.4 --pos 3840x690