Oracle® Solaris 11.2 Desktop 管理员指南

退出打印视图

更新时间: 2014 年 7 月
 
 

使用 Xorg 配置文件

xorg.conf 文件是 Xorg 服务器配置文件,位于 /etc/X11/ 目录中。


注 - 缺省情况下,在系统管理员创建 xorg.conf 配置文件以更改缺省配置之前,此配置文件不存在。

以下 xorg.conf 配置文件摘录显示了输入设备和显示器节:

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

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

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

需要 xorg.conf 文件时,您需要提及所更改的节。未指定的节将继续使用缺省值。其他内容会从 /etc/X11/xorg.conf.d 等目录中存在的所有文件中读取,并与基本配置文件合并。有关语法、搜索路径和可用选项的信息,请参见 xorg.conf(4) 手册页。

有关样例配置代码片段和示例,请参见 /etc/X11/xorg.conf.avail 文件。例如,要使用 Ctrl+Alt+Backspace 击键停止 X 服务器,请参见 /etc/X11/xorg.conf.avail/90-zap.conf 目录。要使用此选项,请复制或链接到 /etc/X11/xorg.conf.d 目录:

# ln -s ../xorg.conf.avail/90-zap.conf /etc/X11/xorg.conf.d/90-zap.conf

重新启动 X 服务器以查看更改。

# svcadm restart gdm