http://www.gentoo.org/doc/ja/xorg-config.xml
バージョン。
$ eix xorg -cI [I] x11-base/xorg-drivers (1.10@2011年06月26日): Meta package containing deps on all xorg drivers [I] x11-base/xorg-server (1.10.2@2011年06月26日): X.Org X servers [I] x11-base/xorg-x11 (7.4-r1@2011年03月28日): An X11 implementation maintained by the X.Org Foundation (meta package) Found 3 matches.
グラフィックのハードウェア。ディスプレイはRDG17X(古い)
$ lspci|grep -i gra 01:05.0 VGA compatible controller: ATI Technologies Inc Radeon HD 3200 Graphics
make.confの設定。
$ grep -P "^(INPUT_DEVICES|VIDEO_CARDS)" /etc/make.conf INPUT_DEVICES="evdev keyboard mouse" VIDEO_CARDS="radeon"
設定用コマンドで設定の雛形を作成する。
キーボードの設定を追加する。
解像度と色の設定を追加する。
### Ctrl + Alt + F1 などでCUIの画面を表示する。
$ /etc/init.d/xdm stop
$ Xorg -configure
$ cp -i xorg.conf.new /etc/X11/xorg.conf
$ emacs /etc/X11/xorg.conf
$ diff -u xorg.conf.new /etc/X11/xorg.conf
--- xorg.conf.new 2011-07-21 16:12:41.319315470 +0900
+++ /etc/X11/xorg.conf 2011-07-21 16:32:41.389584448 +0900
@@ -27,6 +27,8 @@
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
+ Option "XkbModel" "jp106"
+ Option "XkbLayout" "jp"
EndSection
Section "InputDevice"
@@ -122,6 +124,7 @@
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
+ DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 1
@@ -145,6 +148,7 @@
SubSection "Display"
Viewport 0 0
Depth 24
+ Modes "1280x1024"
EndSubSection
EndSection
$ /etc/init.d/xdm start
### Ctrl + Alt + F7 などで戻る。以下はメモです。
現在halを使っていない。たぶん更新時のメッセージに従って何かしたように思う。
$ eix -e hal -c [N] sys-apps/hal (0.5.14-r4): Hardware Abstraction Layer
$ grep -P "^(INPUT_DEVICES|VIDEO_CARDS)" /etc/make.conf INPUT_DEVICES="evdev keyboard mouse" VIDEO_CARDS="radeon"
http://www.gentoo.org/doc/ja/xorg-config.xml
$ grep jp /etc/X11/xorg.conf
Option "XkbModel" "jp106"
Option "XkbLayout" "jp"エラーが出ている。
$ grep -P "WW|EE" /var/log/Xorg.0.log
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 33.404] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[ 33.404] (WW) Disabling Mouse0
[ 33.404] (WW) Disabling Keyboard0
[ 33.406] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 33.637] (WW) Warning, couldn't open module xtrap
[ 33.637] (EE) Failed to load module "xtrap" (module does not exist, 0)
[ 33.648] (II) Loading extension MIT-SCREEN-SAVER
[ 33.901] (WW) Warning, couldn't open module vesa
[ 33.901] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 33.901] (WW) Warning, couldn't open module fbdev
[ 33.901] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 34.785] (EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM
[ 35.173] (WW) RADEON(0): Direct rendering disabled
[ 35.173] (EE) RADEON(0): Acceleration initialization failed
[ 35.334] (WW) RADEON(0): Option "XAANoOffscreenPixmaps" is not usedたぶん以前必要だった設定が残っているだけ。
$ grep -P "Section.*Module" -A6 /etc/X11/xorg.conf
Section "Module"
Load "dbe"
Load "record"
Load "xtrap"
Load "extmod"
Load "dri"
EndSection現在の状態でデフォルトの設定ファイルを作成した。
# /etc/init.d/xdm stop # Xorg -configure
キーボード関連以外そのまま使っても動きそうに見える。
# diff xorg.conf.new /etc/X11/xorg.conf 12c12 < FontPath "/usr/share/fonts/OTF/" --- > FontPath "/usr/share/fonts/OTF" 20a21 > Load "xtrap" 23,24d23 < Load "dri2" < Load "glx" 29a29,30 > Option "XkbModel" "jp106" > Option "XkbLayout" "jp" 53,54c54 < ### <string>: "String", <freq>: "<f> Hz/kHz/MHz", < ### <percent>: "<f>%" --- > ### <string>: "String", <freq>: "<f> Hz/kHz/MHz" 78d77 < #Option "CustomEDID" # [<str>] 94c93,94 < #Option "ClockGating" # [<bool>] --- > #Option "ShowCache" # [<bool>] > #Option "DynamicClocks" # [<bool>] 112,115d111 < #Option "ForceLowPowerMode" # [<bool>] < #Option "DynamicPM" # [<bool>] < #Option "NewPLL" # [<bool>] < #Option "ZaphodHeads" # <str> 117c113,115 < Driver "radeon" --- > #Driver "fglrx" > VendorName "ATI Technologies Inc" > BoardName "Radeon HD 3200 Graphics" 118a117 > Option "XAANoOffscreenPixmaps" "true" 124a124 > DefaultDepth 24 143a144 > Modes "1280x1024" 147a149 > Modes "1280x1024" 150a153,159 > Section "Extensions" > Option "Composite" "Enable" > EndSection > > #Section "ServerFlags" > # Option "AllowEmptyInput" "off" > #EndSection
コピーして再起動したところ、映らなくなった。
# cp -i xorg.conf.new /etc/X11/xorg.conf # /etc/init.d/xdm restart
http://www.gentoo.org/doc/ja/xorg-config.xml
追加した。半角/全角のキーも動作した。
# diff -u xorg.conf.new /etc/X11/xorg.conf
--- xorg.conf.new 2011-07-21 16:12:41.319315470 +0900
+++ /etc/X11/xorg.conf 2011-07-21 16:32:41.389584448 +0900
@@ -27,6 +27,8 @@
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
+ Option "XkbModel" "jp106"
+ Option "XkbLayout" "jp"
EndSection
Section "InputDevice"
@@ -122,6 +124,7 @@
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
+ DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 1
@@ -145,6 +148,7 @@
SubSection "Display"
Viewport 0 0
Depth 24
+ Modes "1280x1024"
EndSubSection
EndSection
0 件のコメント:
コメントを投稿