外部モニタDPI設定を永久に設定

外部モニタDPI設定を永久に設定

システム: Linuxミント19.1シナモン。

ハードウェア:ノートパソコンの画面:3840x2160 + HDMI画面1920x1080;

グラフィックプロセッサ:NvidiaNvidia GeForce GTX 1060最大Q値設計、6GBビデオメモリ


一般設定でデュアルDPIを有効にしました。ノートパソコンのモニターではうまくいきましたが、外部フルHDモニターが接続されているので、2倍のコンテンツを見ることができます。

現在のスケーリングを変更するには、次のコマンドを使用します。

xrandr --output HDMI-0 --scale 2x2

私の意図は、再起動などを通じて永久的で耐久性を持つようにすることです。

これをどのように、どのファイルで実行できますか?


一つを探してみましたxorg.confが、得たのはこれがすべてです。

$ locate -i xorg.conf

/usr/share/X11/xorg.conf.d
/usr/share/X11/xorg.conf.d/10-amdgpu.conf
/usr/share/X11/xorg.conf.d/10-nvidia.conf
/usr/share/X11/xorg.conf.d/10-quirks.conf
/usr/share/X11/xorg.conf.d/10-radeon.conf
/usr/share/X11/xorg.conf.d/11-nvidia-prime.conf
/usr/share/X11/xorg.conf.d/40-libinput.conf
/usr/share/X11/xorg.conf.d/70-wacom.conf
/usr/share/doc/xserver-xorg-video-intel/xorg.conf
/usr/share/man/man5/xorg.conf.5.gz
/usr/share/man/man5/xorg.conf.d.5.gz

私はNvidiaを使用しているので、これら2つが関連する可能性があります。

$ cat /usr/share/X11/xorg.conf.d/10-nvidia.conf

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    ModulePath "/usr/lib/x86_64-linux-gnu/nvidia/xorg"
EndSection

これ:

$ cat /usr/share/X11/xorg.conf.d/11-nvidia-prime.conf

# DO NOT EDIT. AUTOMATICALLY GENERATED BY gpu-manager

Section "OutputClass"
    Identifier "Nvidia Prime"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "IgnoreDisplayDevices" "CRT"
    Option "PrimaryGPU" "Yes"
    ModulePath "/x86_64-linux-gnu/nvidia/xorg"
EndSection

ベストアンサー1

解決策を試してみましたか? https://enochtsang.com/articles/scaling-two-monitors- Differently-on-linux-mint

あなたの場合は、ホームディレクトリに名前を付けてファイルを作成し、.xsession端末で使用できますtouch ~/.xsession

次に、テキストエディタで開き、次を貼り付けます。

#!/usr/bin/env bash

xrandr --output HDMI-0 --scale 2x2

ファイルを実行可能にするchmod +x ~/.xsession

起動アプリケーションとして追加申請開始>>(+)>>カスタムコマンド.

Name: Displays
Command: /home/your_user_name/.xsession
Comment: 
Startup delay: 0

また、MintフォーラムやGithubにコメントを投稿するのも悪くないので、Linux Mintチームはこの機能を完全に実装しました。

おすすめ記事