1、生成xorg.conf文件

#如果有必要,停止gdm3

service gdm3 stop

#生成空白文件

Xorg -configure

#移动文件

mv ~/xorg.conf.new /etc/X11/xorg.conf

#修改文件,增加需要的分辨率

#如果有必要,开启gdm3

service gdm3 start

2、xorg.conf.new文件

Section "ServerLayout"

Identifier "X.org Configured"

Screen 0 "Screen0" 0 0

InputDevice "Mouse0" "CorePointer"

InputDevice "Keyboard0" "CoreKeyboard"

EndSection

Section "Files"

ModulePath "/usr/lib/xorg/modules"

FontPath "/usr/share/fonts/X11/misc"

FontPath "/usr/share/fonts/X11/cyrillic"

FontPath "/usr/share/fonts/X11/100dpi/:unscaled"

FontPath "/usr/share/fonts/X11/75dpi/:unscaled"

FontPath "/usr/share/fonts/X11/Type1"

FontPath "/usr/share/fonts/X11/100dpi"

FontPath "/usr/share/fonts/X11/75dpi"

FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"

FontPath "built-ins"

EndSection

Section "Module"

Load "record"

Load "glx"

Load "extmod"

Load "dbe"

Load "dri"

Load "dri2"

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"

EndSection

Section "Device"

### Available Driver options are:-

### Values: : integer, : float, : "True"/"False",

### : "String", : " Hz/kHz/MHz"

### [arg]: arg optional

Identifier "Card0"

Driver "vboxvideo"

VendorName "InnoTek Systemberatung GmbH"

BoardName "VirtualBox Graphics Adapter"

BusID "PCI:0:2:0"

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

3、新版xorg.conf文件

Section "ServerLayout"

Identifier "X.org Configured"

Screen 0 "Screen0" 0 0

InputDevice "Mouse0" "CorePointer"

InputDevice "Keyboard0" "CoreKeyboard"

EndSection

Section "Files"

ModulePath "/usr/lib/xorg/modules"

FontPath "/usr/share/fonts/X11/misc"

FontPath "/usr/share/fonts/X11/cyrillic"

FontPath "/usr/share/fonts/X11/100dpi/:unscaled"

FontPath "/usr/share/fonts/X11/75dpi/:unscaled"

FontPath "/usr/share/fonts/X11/Type1"

FontPath "/usr/share/fonts/X11/100dpi"

FontPath "/usr/share/fonts/X11/75dpi"

FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"

FontPath "built-ins"

EndSection

Section "Module"

Load "record"

Load "glx"

Load "extmod"

Load "dbe"

Load "dri"

Load "dri2"

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"

EndSection

Section "Device"

### Available Driver options are:-

### Values: : integer, : float, : "True"/"False",

### : "String", : " Hz/kHz/MHz"

### [arg]: arg optional

Identifier "Card0"

Driver "vboxvideo"

VendorName "InnoTek Systemberatung GmbH"

BoardName "VirtualBox Graphics Adapter"

BusID "PCI:0:2:0"

EndSection

Section "Screen"

Identifier "Screen0"

Device "Card0"

Monitor "Monitor0"

SubSection "Display"

Viewport 0 0

Depth 1

Modes"1280x800" "1024x768" "800x600"

EndSubSection

SubSection "Display"

Viewport 0 0

Depth 4

Modes"1280x800" "1024x768" "800x600"

EndSubSection

SubSection "Display"

Viewport 0 0

Depth 8

Modes"1280x800" "1024x768" "800x600"

EndSubSection

SubSection "Display"

Viewport 0 0

Depth 15

Modes"1280x800" "1024x768" "800x600"

EndSubSection

SubSection "Display"

Viewport 0 0

Depth 16

Modes"1280x800" "1024x768" "800x600"

EndSubSection

SubSection "Display"

Viewport 0 0

Depth 24

Modes"1280x800" "1024x768" "800x600"

EndSubSection

EndSection

Share the post "生成xorg.conf文件"

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐