Discussion:
Switch NetBSD/hpc* ports to Xorg
Izumi Tsutsui
2010-07-19 13:59:05 UTC
Permalink
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 ***@b7.netbsd.org:/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

---
(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
Emanuele Santoro
2010-07-19 14:16:18 UTC
Permalink
Post by Izumi Tsutsui
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.
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.
In my opinion, you should call for some testing.

I've given my Jornada away, otherwise I would have loaded some binary
release on it to see how it works.

I mean, things like HP Jornada, Workpads z50, Nec Mobilepro, and
things like that...

Best wishes,
--
Emanuele Santoro
Izumi Tsutsui
2010-07-19 16:36:04 UTC
Permalink
Post by Emanuele Santoro
In my opinion, you should call for some testing.
I've given my Jornada away, otherwise I would have loaded some binary
release on it to see how it works.
I mean, things like HP Jornada, Workpads z50, Nec Mobilepro, and
things like that...
Well, how many such active users do we have nowadays?

It's a bit pain to build and upload three sets of
full release binaries for such unlikely users.
Once we switch it in bsd.own.mk all necessary binaries
will appear on daily build: http://releng.NetBSD.org/

AFAIK, XFree86 based servers have been broken for long years
(PR port-hpcmips/32403 filed in 3.0 days, for example)
so there is no reason to stick X11FLAVOUR=XFree86
unless there is known serious issue on Xorg flavour.

If you really want to test Xorg binaries, you can always build them by
% env X11FLAVOUR=Xorg sh build.sh -m hpcmips -U -x release
etc. using -current sources and xorg.conf example attached in
my previous post.
---
Izumi Tsutsui
Andy Ruhl
2010-07-19 16:52:25 UTC
Permalink
Post by Izumi Tsutsui
Well, how many such active users do we have nowadays?
It's a bit pain to build and upload three sets of
full release binaries for such unlikely users.
Once we switch it in bsd.own.mk all necessary binaries
will appear on daily build: http://releng.NetBSD.org/
I'm not sure what I'm using on my MobilePro 880, but I'm willing to
test something.

I just upgraded it to 5.1 RC3 last night (after not using it for
months) and this worked, but I did not start X. Which X is used at
this level?

Thanks,

Andy
Izumi Tsutsui
2010-07-20 14:50:12 UTC
Permalink
Post by Andy Ruhl
I just upgraded it to 5.1 RC3 last night (after not using it for
months) and this worked, but I did not start X. Which X is used at
this level?
NetBSD/hpcmps 5.x uses XFree86 based Xhpc server,
and I'm afraid it doesn't quit even after xinit(1) exits.
(I saw it on NetBSD/dreamcast)

---
Izumi Tsutsui
Jun Ebihara
2010-07-20 02:46:52 UTC
Permalink
From: Izumi Tsutsui <***@ceres.dti.ne.jp>
Subject: Re: Switch NetBSD/hpc* ports to Xorg
Date: Tue, 20 Jul 2010 01:36:04 +0900
Post by Izumi Tsutsui
Post by Emanuele Santoro
I mean, things like HP Jornada, Workpads z50, Nec Mobilepro, and
things like that...
Well, how many such active users do we have nowadays?
I can test and report:
HP Jornada 720,680
IBM Z50
Sharp HC*
NEC Mobilepro *
Hitachi Persona
WZero3 WS011SH (---- tested,works well)
Post by Izumi Tsutsui
If you really want to test Xorg binaries, you can always build them by
% env X11FLAVOUR=Xorg sh build.sh -m hpcmips -U -x release
etc. using -current sources and xorg.conf example attached in
my previous post.
thanx.
---
jun ebihara
Izumi Tsutsui
2010-07-31 13:09:18 UTC
Permalink
Post by Izumi Tsutsui
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.
I've committed bsd.own.mk for this so that snapshot binaries
with Xorg binaries will appear in a few days:
http://releng.NetBSD.org/cgi-bin/builds.cgi

Note:
- hpcmips (and other mips port) userland seems still broken,
regardless of Xorg but due to generic MIPS3 issue.
(even getty(8) fails on gxemul)
- You might also have to calibrate touchpad by tpctl(8) utility
before starting Xserver.


I've also put sample xorg.conf files here:
ftp://ftp.NetBSD.org/pub/NetBSD/misc/tsutsui/xorg/

For hpcfb machines (per resolution and keymap):
xorg.conf-640x240-jp
xorg.conf-640x240-us
xorg.conf-640x480-jp
xorg.conf-640x480-us
xorg.conf-800x600-jp
xorg.conf-800x600-us

For hpcarm W-ZERO3 (with lcd0 at pxaip using CCW screens) machines:
xorg.conf-ws003sh
xorg.conf-ws007sh
xorg.conf-ws011sh

If you see any Xorg specific problems, please report it via send-pr(1).

Thanks,
---
Izumi Tsutsui

Loading...