FreeBSD で Xorg を入れたが、USB マウスで起動しようとすると、No core pointer というエラーが出て起動出来ない。とほほ。PS/2 マウスにすれば起動するんだけどね。X を使う時だけ、いちいち PS/2 マウスに差し替えるなんて出来ないわな。
ということで、ディフォルトの設定では Xorg で USB マウスが使えないので、新たなコンフィグファイルを作成する。
kuri# Xorg -configure
X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: FreeBSD 6.0 i386 [ELF]
Current Operating System: FreeBSD kuri.netandfield.com 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Tue Dec 6
18:55:35 JST 2005 shinoda@kuri.netandfield.com:/usr/src/sys/i386/compile/SHINODA i386
Build Date: 12 October 2005
Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Dec 7 11:51:46 2005
List of video drivers:
atimisc
r128
radeon
mga
glint
nv
tga
s3
s3virge
sis
rendition
neomagic
i740
tdfx
savage
cirrus
vmware
tseng
trident
chips
apm
i128
nsc
i810
ati
ark
cyrix
siliconmotion
via
vesa
vga
dummy
(++) Using config file: "/root/xorg.conf.new"
Xorg detected your mouse at device /dev/sysmouse.
Please check your config if the mouse is still not
operational, as by default Xorg tries to autodetect
the protocol.
Your xorg.conf file is /root/xorg.conf.new
To test the server, run 'X -config /root/xorg.conf.new'
root で、X -config /root/xorg.conf.new を実行してみる。
おう。ちゃんと USB Mouse でマウスポインタが動いてるぞ。でも、どうやって終わればええの?この画面。
kuri# ps -aux|grep X
root 3272 0.0 9.8 78948 11828 v0 S+ 11:55AM 0:02.15 X -config /root/xorg.conf.new (Xorg
root 3276 0.0 0.2 348 208 p2 R+ 11:57AM 0:00.00 grep X
kuri# kill 3272
kill した。
OK のようなので、/etc/X11 の下に保存。
kuri# ls -la /root/xorg*
-rw-r--r-- 1 root wheel 2598 12 7 11:51 /root/xorg.conf.new
kuri# cp /root/xorg.conf.new /etc/X11/xorg.conf
で、root から shinoda に戻って startx してみる。
うむ。メモリが 128MB しかないせいか、細かいエラーは色々あるのだが、USB マウスは無事使えるようになった。
以下が自動作成された xorg.conf
kuri# cat /etc/X11/xorg.conf
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
Section "Module"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "record"
Load "xtrap"
Load "freetype"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
EndSection
Section "Monitor"
#DisplaySize 300 220 # mm
Identifier "Monitor0"
VendorName "NEC"
ModelName "NEC FPD15"
### Uncomment if you don't want to default to DDC:
# HorizSync 30.0 - 50.0
# VertRefresh 59.0 - 61.0
Option "DPMS"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "ColorKey" # <i>
#Option "CacheLines" # <i>
#Option "Dac6Bit" # [<bool>]
#Option "DRI" # [<bool>]
#Option "NoDDC" # [<bool>]
#Option "ShowCache" # [<bool>]
#Option "XvMCSurfaces" # <i>
#Option "PageFlip" # [<bool>]
Identifier "Card0"
Driver "i810"
VendorName "Intel Corp."
BoardName "82810 CGC [Chipset Graphics Controller]"
BusID "PCI:0:1: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
|
|