日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux 显示器分辨率设置太小了,显示器不显示 如何在设置回来,当“显示设置”中的分辨率不可用时,如何使用xrandr设置自定义分辨率...

發布時間:2024/1/23 linux 52 豆豆

您需要執行以下步驟來添加新的自定義分辨率并應用它。以下步驟用于添加1920x1080分辨率,但是您可以將其用于任何其他所需的分辨率。但是請確保您的顯示器和板載圖形支持該分辨率。

# First we need to get the modeline string for xrandr

# Luckily, the tool "gtf" will help you calculate it.

# All you have to do is to pass the resolution & the-

# refresh-rate as the command parameters:

gtf 1920 1080 60

# In this case, the horizontal resolution is 1920px the

# vertical resolution is 1080px & refresh-rate is 60Hz.

# IMPORTANT: BE SURE THE MONITOR SUPPORTS THE RESOLUTION

# Typically, it outputs a line starting with "Modeline"

# e.g. "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync

# Copy this entire string (except for the starting "Modeline")

# Now, use "xrandr" to make the system recognize a new

# display mode. Pass the copied string as the parameter

# to the --newmode option:

xrandr --newmode "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync

# Well, the string within the quotes is the nick/alias

# of the display mode - you can as well pass something

# as "MyAwesomeHDResolution". But, careful! :-|

# Then all you have to do is to add the new mode to the

# display you want to apply, like this:

xrandr --addmode VGA1 "1920x1080_60.00"

# VGA1 is the display name, it might differ for you.

# Run "xrandr" without any parameters to be sure.

# The last parameter is the mode-alias/name which

# you've set in the previous command (--newmode)

# It should add the new mode to the display & apply it.

# Usually unlikely, but if it doesn't apply automatically

# then force it with this command:

xrandr --output VGA1 --mode "1920x1080_60.00"

我還編寫了一個腳本,可以自動執行所有這些步驟。如果上述步驟對您來說太復雜了,您可以嘗試一下:https : //gist.github.com/chirag64/7853413

總結

以上是生活随笔為你收集整理的linux 显示器分辨率设置太小了,显示器不显示 如何在设置回来,当“显示设置”中的分辨率不可用时,如何使用xrandr设置自定义分辨率...的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。