Switch NetBSD/hpc* ports to Xorg

Izumi Tsutsui <[email protected]> Mon, 19 Jul 2010 22:59:05 +0900
Newsgroups gmane.os.netbsd.devel.x11,gmane.os.netbsd.ports.hpcarm,gmane.os.netbsd.ports.hpcmips,gmane.os.netbsd.ports.hpcsh
Message-ID <[email protected]>
Hi,

If no one have particular objections, I'll switch all hpcarm, hpcmips, and
hpcsh ports to X11FLAVOUR=Xorg (i.e. Xorg servers and X11R7) by default
in a few days.

All related Makefiles and set files already have necessary entries,
so the only thing we need is just making X11FLAVOUR=Xorg default in
src/share/mk/bsd.own.mk.

I've tested Xorg wsfb server only on hpcsh Hitachi PERSONA HPW-50PA
and hpcarm WS003SH, but all other hpcfb based framebuffer and
wsmouse based touchpad should work with similar settings.

Here is my xorg.conf for HPW-50PA and Xorg.0.log:
---
Section "ServerLayout"
	Identifier	"wsfb"
	Screen	0	"Screen0" 0 0
	InputDevice	"TouchScreen0" "CorePointer"
#	InputDevice	"Mouse0" "CorePointer"
	InputDevice	"Keyboard0" "CoreKeyboard"
EndSection
	
Section "Files"
	FontPath	"/usr/X11R7/lib/X11/fonts/misc/"
	FontPath	"/usr/X11R7/lib/X11/fonts/TTF/"
	FontPath	"/usr/X11R7/lib/X11/fonts/Type1/"
	FontPath	"/usr/X11R7/lib/X11/fonts/75dpi/"
EndSection

Section "InputDevice"
	Identifier	"Keyboard0"
	Driver		"kbd"
	Option		"XkbLayout"       "jp"
#	Option		"XkbModel" 	  "foo"
EndSection

Section "InputDevice"
	Identifier	"TouchScreen0"
#	Identifier	"Mouse0"
	Driver		"ws"
#	Driver		"mouse"

	Option		"Device"	"/dev/wsmouse0"
#	Option		"ZAxisMapping"	"4 5"

	Option		"MinX"		"0"
	Option		"MaxX"		"639"
	Option		"MinY"		"0"
	Option		"MaxY"		"239"	#
#	Option		"MaxY"		"479"	#

#	Option		"Rotate"	"CCW"
EndSection

Section "Device"
	Identifier	"Wsdisplay0"
	Driver		"wsfb"

#	Option		"Rotate"	"CCW"
EndSection

Section "Monitor"
	Identifier	"Monitor"
#	VendorName	"Hitachi"
#	ModelName	"PERSONA"
EndSection

Section "Screen"
	Identifier	"Screen0"
	Device		"Wsdisplay0"
	Monitor		"Monitor"
#	DefaultDepth	16
	DefaultDepth	8

	SubSection "Display"
#		Depth	16
		Depth	8
	EndSubSection
EndSection
---

---
X.Org X Server 1.6.5
Release Date: 2009-10-12
X Protocol Version 11, Revision 0
Build Operating System: NetBSD/hpcsh  - 
Current Operating System: NetBSD  5.99.31 NetBSD 5.99.31 (GENERIC) #0: Sun Jun 20 01:03:43 UTC 2010  [email protected]:/home/builds/ab/HEAD/hpcsh/201006200000Z-obj/home/builds/ab/HEAD/src/sys/arch/hpcsh/compile/GENERIC hpcsh
Build Date: 12 October 2009  12:14:03AM
 
	Before reporting problems, check http://wiki.X.Org
	to make sure that you have the latest version.
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: Mon Jul 19 21:10:46 2010
(==) Using config file: "/etc/xorg.conf"
(==) ServerLayout "wsfb"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor"
(**) |   |-->Device "Wsdisplay0"
(**) |-->Input Device "TouchScreen0"
(**) |-->Input Device "Keyboard0"
(==) Not automatically adding devices
(==) Not automatically enabling devices
(**) FontPath set to:
	/usr/X11R7/lib/X11/fonts/misc/,
	/usr/X11R7/lib/X11/fonts/TTF/,
	/usr/X11R7/lib/X11/fonts/Type1/,
	/usr/X11R7/lib/X11/fonts/75dpi/,
	/usr/X11R7/lib/X11/fonts/misc/,
	/usr/X11R7/lib/X11/fonts/TTF/,
	/usr/X11R7/lib/X11/fonts/Type1/,
	/usr/X11R7/lib/X11/fonts/75dpi/,
	/usr/X11R7/lib/X11/fonts/100dpi/
(==) ModulePath set to "/usr/X11R7/lib/modules"
(II) No default mouse found, adding one
(**) |-->Input Device "<default pointer>"
(II) Loader magic: 0x95c
(II) Module ABI versions:
	X.Org ANSI C Emulation: 0.4
	X.Org Video Driver: 5.0
	X.Org XInput driver : 4.0
	X.Org Server Extension : 2.0
(II) Loader running on netbsd
(--) Using wscons driver
(II) System resource ranges:
	[0] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[B]
	[1] -1	0	0x000c0000 - 0x000effff (0x30000) MX[B]
	[2] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[B]
	[3] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[4] -1	0	0x00000000 - 0x000000ff (0x100) IX[B]
(II) LoadModule: "extmod"
(II) Loading /usr/X11R7/lib/modules/extensions//libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.0.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "dbe"
(II) Loading /usr/X11R7/lib/modules/extensions//libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.0.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "glx"
(II) Loading /usr/X11R7/lib/modules/extensions//libglx.so
(II) Module glx: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.0.0
	ABI class: X.Org Server Extension, version 2.0
(==) AIGLX enabled
(II) Loading extension GLX
(II) LoadModule: "record"
(II) Loading /usr/X11R7/lib/modules/extensions//librecord.so
(II) Module record: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.13.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 2.0
(II) Loading extension RECORD
(II) LoadModule: "dri"
(II) Loading /usr/X11R7/lib/modules/extensions//libdri.so
(II) Module dri: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.0.0
	ABI class: X.Org Server Extension, version 2.0
(II) Loading extension XFree86-DRI
(II) LoadModule: "dri2"
(II) Loading /usr/X11R7/lib/modules/extensions//libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.1.0
	ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DRI2
(II) LoadModule: "wsfb"
(II) Loading /usr/X11R7/lib/modules/drivers//wsfb_drv.so
(II) Module wsfb: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 0.3.0
	ABI class: X.Org Video Driver, version 5.0
(II) LoadModule: "ws"
(II) Loading /usr/X11R7/lib/modules/drivers//ws_drv.so
(II) Module ws: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.2.9
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 4.0
(II) LoadModule: "kbd"
(II) Loading /usr/X11R7/lib/modules/drivers//kbd_drv.so
(II) Module kbd: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.4.0
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 4.0
(II) LoadModule: "mouse"
(II) Loading /usr/X11R7/lib/modules/drivers//mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.5.0
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 4.0
(II) wsfb: driver for wsdisplay framebuffer: wsfb
(WW) Falling back to old probe method for wsfb
(II) wsfb(0): using default device
(II) Running in FRAMEBUFFER Mode
(**) wsfb(0): Depth 8, (--) framebuffer bpp 8
(==) wsfb(0): Default visual is PseudoColor
(==) wsfb(0): Using gamma correction (1.0, 1.0, 1.0)
(II) wsfb(0): Vidmem: 150k
(==) wsfb(0): DPI set to (96, 96)
(==) wsfb(0): Using HW cursor
(**) wsfb(0): Using "Shadow Framebuffer"
(II) Loading sub module "shadow"
(II) LoadModule: "shadow"
(II) Loading /usr/X11R7/lib/modules/extensions//libshadow.so
(II) Module shadow: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.1.0
	ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/X11R7/lib/modules//libfb.so
(II) Module fb: vendor="X.Org Foundation"
	compiled for 1.6.5, module version = 1.0.0
	ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Module "ramdac" already built-in
(==) wsfb(0): Backing store disabled
(WW) No HW cursor support found
(==) RandR enabled
(II) Initializing built-in extension Generic Event Extension
(II) Initializing built-in extension SHAPE
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension BIG-REQUESTS
(II) Initializing built-in extension SYNC
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension XC-MISC
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension XFree86-Bigfont
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel
(II) AIGLX: Screen 0 is not DRI capable
(II) AIGLX: Loaded and initialized /usr/X11R7/lib/modules/dri/swrast_dri.so
(II) GLX: Initialized DRISWRAST GL provider for screen 0
(**) Option "CorePointer"
(**) ws: always reports core events
(II) TouchScreen0: debuglevel 0
(**) TouchScreen0 associated screen: 0
(**) Option "Device" "/dev/wsmouse0"
(**) TouchScreen0 device will work in raw mode
(**) Option "MinX" "0"
(II) TouchScreen0 minimum x position: 0
(**) Option "MaxX" "639"
(II) TouchScreen0 maximum x position: 639
(**) Option "MinY" "0"
(II) TouchScreen0 minimum y position: 0
(**) Option "MaxY" "239"
(II) TouchScreen0 maximum y position: 239
(==) TouchScreen0: Buttons: 3
(II) XINPUT: Adding extended input device "TouchScreen0" (type: TOUCHSCREEN)
(**) TouchScreen0: (accel) keeping acceleration scheme 1
(**) TouchScreen0: (accel) filter chain progression: 2.00
(**) TouchScreen0: (accel) filter stage 0: 20.00 ms
(**) TouchScreen0: (accel) set acceleration profile 0
(**) Option "CoreKeyboard"
(**) Keyboard0: always reports core events
(**) Option "Protocol" "standard"
(**) Keyboard0: Protocol: standard
(**) Option "XkbRules" "base"
(**) Keyboard0: XkbRules: "base"
(**) Option "XkbModel" "pc105"
(**) Keyboard0: XkbModel: "pc105"
(**) Option "XkbLayout" "jp"
(**) Keyboard0: XkbLayout: "jp"
(**) Option "CustomKeycodes" "off"
(**) Keyboard0: CustomKeycodes disabled
(II) XINPUT: Adding extended input device "Keyboard0" (type: KEYBOARD)
(WW) <default pointer>: No Device specified, looking for one...
(II) <default pointer>: found Device "/dev/wsmouse"
(**) <default pointer>: Protocol: WSMouse
(**) Option "AlwaysCore"
(**) <default pointer>: always reports core events
(**) Option "Device" "/dev/wsmouse"
(==) <default pointer>: Emulate3Buttons, Emulate3Timeout: 50
(**) <default pointer>: ZAxisMapping: buttons 4 and 5
(**) <default pointer>: Buttons: 9
(II) XINPUT: Adding extended input device "<default pointer>" (type: MOUSE)
(**) <default pointer>: (accel) keeping acceleration scheme 1
(**) <default pointer>: (accel) filter chain progression: 2.00
(**) <default pointer>: (accel) filter stage 0: 20.00 ms
(**) <default pointer>: (accel) set acceleration profile 0

---

By the way, Xorg log file says:

>> (II) No default mouse found, adding one
>> (**) |-->Input Device "<default pointer>"

Is a mouse device is mandatory even if we have a touchpad?
Is there any proper options for this?

---
Izumi Tsutsui