xorg.conf 一直沒有作用 - Linux

Thomas avatar
By Thomas
at 2017-04-18T18:26

Table of Contents

OS: Antergos
GPU: AMD RX460

最近因為影音需求想增加幾個畫面更新率,直接使用 xrandr

可以使用像是 47.95、71.93hz 等更新率,但是重開機這些設

定就會消失,所以打算創個 xorg.conf 來解決這問題。

我先是 sudo Xorg :1 -configure 創造 xorg.conf.new
(:0 不能用,就算停止 lightdm 回到文字界面也不行)

然後移動到 /etc/X11/xorg.conf.d/ 並更名為 xorg.conf

接下來就是像鳥哥教的那樣增加 modeline

想請教各位我設定是哪邊有問題:

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/OTF/"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
Load "glx"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
Modeline "1920x1080_47.95" 135.41 1920 2032 2232 2544 1080 1081 1084 1110 -HSync +Vsync
Modeline "1920x1080_71.93" 211.22 1920 2056 2264 2608 1080 1081 1084 1126 -HSync +Vsync
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "Accel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "EnablePageFlip" # [<bool>]
#Option "SubPixelOrder" # [<str>]
#Option "ZaphodHeads" # <str>
#Option "AccelMethod" # <str>
#Option "DRI3" # [<bool>]
#Option "DRI" # <i>
#Option "ShadowPrimary" # [<bool>]
#Option "TearFree" # [<bool>]
#Option "DeleteUnusedDP12Displays" # [<bool>]
Identifier "Card0"
Driver "amdgpu"
BusID "PCI:1:0:0"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "Accel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "EnablePageFlip" # [<bool>]
#Option "SubPixelOrder" # [<str>]
#Option "ZaphodHeads" # <str>
#Option "AccelMethod" # <str>
#Option "DRI3" # [<bool>]
#Option "DRI" # <i>
#Option "ShadowPrimary" # [<bool>]
#Option "TearFree" # [<bool>]
#Option "DeleteUnusedDP12Displays" # [<bool>]
Identifier "Card1"
Driver "amdgpu"
BusID "PCI:1:0:1"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

--
Tags: Linux

All Comments

Wallis avatar
By Wallis
at 2017-04-20T02:25
找到問題點啦!要把Identifier那個改 HDMI-A-0

losetup指令的問題

Anonymous avatar
By Anonymous
at 2017-04-18T09:58
請問 losetup -e 在使用上與 losetup cryptsetup 有何差異嗎? 有請擅長Linux的朋友替我解惑 謝 ...

Apple推出APFS那linux有其他FS可以比較嗎

Yedda avatar
By Yedda
at 2017-04-17T20:23
看了這篇文章 講了許多APFS的好處 https://rocket.cafe/talks/83281 有人可以講看看Linux的file system未來及現在 的現狀嗎 對不起我是入門者看到這篇文章好奇 鞭小力一點~ ※ 編輯: newwords (49.215.67.62), 04/ ...

怎麼確認升級kernel4.10 改善網路速度

William avatar
By William
at 2017-04-17T18:04
我是linux mint 18.1 mate 64bit 目前開放了kernel 4.10的下載 有個專有名詞我忘了是什麼開了可改善網路速度 怎麼確認呢 - ...

snmpd會一直開啟 /proc/net/tcp

Kyle avatar
By Kyle
at 2017-04-17T17:00
請問一下各位大大們 我手上有台機器有使用到snmpd服務, 但是我使用lsof -p $snmpd_pid查看開啟檔案的情況, 發現它會一直重複開啟 /proc/net/tcp 這個檔案, 一直開啟的結果就是它開啟超過了系統設定的nofile數量, 然後snmpd服務就當掉了(因為監控是用cacti, snm ...

Ubuntu上使用中文

Liam avatar
By Liam
at 2017-04-17T02:41
小弟不才 這問題困擾我很久了,但是我無法解決所以上來請教大家 事情是這樣的 目的 我想使用 vim 直接寫一個檔案,這個檔案是中文檔名且有中文內容 目前狀態 我這裡用 and#34;vim 這是中文檔案and#34; 新開一個檔案 並且在這個檔案裏面寫入 and#34;這是中文內容and#34; 但是當我 ...