On Thu, Jan 30, 2020 at 06:42:35AM -0600, David Savolainen wrote:
> Kurt,
> The question I have is, what is vt-1?  Is this the serial console?
> If so, why is X connecting to it and not one of the usual virtual
> consoles?  Why when I try to use a virtual console, I get an error
> message that is suggestive of a bad ioctl call?

Hi,

if you refer to the
[ 17502.881] Failed to switch from vt-1 to vt04: Inappropriate ioctl
for device
[ 17508.304] Failed to switch from vt-1 to vt04: Inappropriate ioctl
for device
[ 17509.895] Failed to switch from vt-1 to vt05: Inappropriate ioctl
for device

lines in your /var/log/Xorg.0.log, they are caused by the lack of
virtual consoles on OpenBSD/sparc64..

'vt' here stands for 'virtual terminal' or 'virtual console'. It's the
x86 feature that allows to switch between vitual consoles using
Ctrl+Alt+Fn.

OpenBSD/sparc64 doesn't support virtual terminals. So in X the
variable keeping track of the current VT is initialized to -1, and
should normally stay like that.

If you hit Ctrl+Alt+F4 X will try to switch to vt04 and fail because
there is no support for this.

But this doesn't explain why your screen stays black... I manage to
dig a PCI Epert3D-Lite card out of my attic and but it back in
a Blade 150. X works on this configuration, although quite slowly, and
in 2020 a 8 bit pseudo-color display really feels odd.

Unless you have some specific need for graphics on this machine, I
would unplug the keyboard/mouse and screen and go for serial console.

Below is the Xorg.0.log from my machine.

[  2040.776] (--) Using wscons driver on /dev/ttyC0
[  2040.811] 
X.Org X Server 1.20.6
X Protocol Version 11, Revision 0
[  2040.811] Build Operating System: OpenBSD 6.6 sparc64 
[  2040.812] Current Operating System: OpenBSD gilda.herrb.net 6.6 GENERIC#192 
sparc64
[  2040.814] Build Date: 24 January 2020  09:05:36AM
[  2040.814]  
[  2040.814] Current version of pixman: 0.38.4
[  2040.815]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[  2040.815] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  2040.816] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Jan  4 13:46:01 
2020
[  2040.818] (==) Using system config directory 
"/usr/X11R6/share/X11/xorg.conf.d"
[  2040.820] (==) No Layout section.  Using the first Screen section.
[  2040.820] (==) No screen section available. Using defaults.
[  2040.820] (**) |-->Screen "Default Screen Section" (0)
[  2040.820] (**) |   |-->Monitor "<default monitor>"
[  2040.828] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[  2040.829] (==) Automatically adding devices
[  2040.829] (==) Automatically enabling devices
[  2040.829] (==) Not automatically adding GPU devices
[  2040.830] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  2040.831] (==) FontPath set to:
        /usr/X11R6/lib/X11/fonts/misc/,
        /usr/X11R6/lib/X11/fonts/TTF/,
        /usr/X11R6/lib/X11/fonts/OTF/,
        /usr/X11R6/lib/X11/fonts/Type1/,
        /usr/X11R6/lib/X11/fonts/100dpi/,
        /usr/X11R6/lib/X11/fonts/75dpi/
[  2040.831] (==) ModulePath set to "/usr/X11R6/lib/modules"
[  2040.831] (II) The server relies on wscons to provide the list of input 
devices.
        If no devices become available, reconfigure wscons or disable 
AutoAddDevices.
[  2040.831] (II) Loader magic: 0x2c9da6010
[  2040.831] (II) Module ABI versions:
[  2040.831]    X.Org ANSI C Emulation: 0.4
[  2040.832]    X.Org Video Driver: 24.0
[  2040.832]    X.Org XInput driver : 24.1
[  2040.832]    X.Org Server Extension : 10.0
[  2040.866] (!!) More than one possible primary device found
[  2040.866] (--) PCI: (0@0:19:0) 1002:4752:0000:0000 rev 39, Mem @ 
0x06000000/16777216, 0x00426000/4096, I/O @ 0x00000b00/256, BIOS @ 
0x????????/131072
[  2040.866] (--) PCI: (1@0:2:0) 1091:07a0:1091:0140 rev 0, Mem @ 
0x04000000/33554432, 0x03100000/65536, 0x03800000/8388608, BIOS @ 
0x????????/262144
[  2040.867] (II) LoadModule: "glx"
[  2040.872] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
[  2040.904] (II) Module glx: vendor="X.Org Foundation"
[  2040.904]    compiled for 1.20.6, module version = 1.0.0
[  2040.904]    ABI class: X.Org Server Extension, version 10.0
[  2040.905] (==) Matched wildcatfb as autoconfigured driver 0
[  2040.905] (==) Assigned the driver to the xf86ConfigLayout
[  2040.905] (II) LoadModule: "wildcatfb"
[  2040.908] (II) Loading /usr/X11R6/lib/modules/drivers/wildcatfb_drv.so
[  2040.910] (II) Module wildcatfb: vendor="X.Org Foundation"
[  2040.910]    compiled for 1.20.6, module version = 0.0.2
[  2040.910]    ABI class: X.Org Video Driver, version 24.0
[  2040.910] (II) wildcatfb: driver for ``Wildcat'' wsdisplay framebuffer: 
wildcatfb
[  2040.911] (WW) Falling back to old probe method for wildcatfb
[  2040.913] (II) wildcatfb(0): using default device
[  2040.913] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[  2040.914] (II) wildcatfb(0): Creating default Display subsection in Screen 
section
        "Default Screen Section" for depth/fbbpp 7/8
[  2040.915] (==) wildcatfb(0): Depth 7, (--) framebuffer bpp 8
[  2040.915] (==) wildcatfb(0): Default visual is PseudoColor
[  2040.915] (==) wildcatfb(0): Using gamma correction (1.0, 1.0, 1.0)
[  2040.915] (II) wildcatfb(0): Vidmem: 2048k
[  2040.915] (==) wildcatfb(0): DPI set to (96, 96)
[  2040.915] (**) wildcatfb(0): Using "Shadow Framebuffer"
[  2040.916] (II) Loading sub module "shadow"
[  2040.916] (II) LoadModule: "shadow"
[  2040.923] (II) Loading /usr/X11R6/lib/modules/libshadow.so
[  2040.924] (II) Module shadow: vendor="X.Org Foundation"
[  2040.924]    compiled for 1.20.6, module version = 1.1.0
[  2040.924]    ABI class: X.Org ANSI C Emulation, version 0.4
[  2040.925] (II) Loading sub module "fb"
[  2040.925] (II) LoadModule: "fb"
[  2040.930] (II) Loading /usr/X11R6/lib/modules/libfb.so
[  2040.932] (II) Module fb: vendor="X.Org Foundation"
[  2040.932]    compiled for 1.20.6, module version = 1.0.0
[  2040.933]    ABI class: X.Org ANSI C Emulation, version 0.4
[  2040.939] (==) wildcatfb(0): Backing store enabled
[  2040.943] (II) Initializing extension Generic Event Extension
[  2040.947] (II) Initializing extension SHAPE
[  2040.951] (II) Initializing extension MIT-SHM
[  2040.955] (II) Initializing extension XInputExtension
[  2040.959] (II) Initializing extension XTEST
[  2040.963] (II) Initializing extension BIG-REQUESTS
[  2040.967] (II) Initializing extension SYNC
[  2040.971] (II) Initializing extension XKEYBOARD
[  2040.975] (II) Initializing extension XC-MISC
[  2040.979] (II) Initializing extension SECURITY
[  2040.983] (II) Initializing extension XFIXES
[  2040.987] (II) Initializing extension RENDER
[  2041.619] (II) Initializing extension RANDR
[  2041.627] (II) Initializing extension COMPOSITE
[  2041.627] (II) Initializing extension DAMAGE
[  2041.631] (II) Initializing extension MIT-SCREEN-SAVER
[  2041.635] (II) Initializing extension DOUBLE-BUFFER
[  2041.639] (II) Initializing extension RECORD
[  2041.643] (II) Initializing extension DPMS
[  2041.643] (II) Initializing extension Present
[  2041.647] (II) Initializing extension DRI3
[  2041.647] (II) Initializing extension X-Resource
[  2041.651] (II) Initializing extension XVideo
[  2041.655] (II) Initializing extension XVideo-MotionCompensation
[  2041.655] (II) Initializing extension GLX
[  2041.659] (II) Initializing extension XFree86-VidModeExtension
[  2041.663] (II) Initializing extension XFree86-DGA
[  2041.667] (II) Initializing extension XFree86-DRI
[  2041.667] (II) Initializing extension DRI2
[  2043.118] (II) config/wscons: checking input device /dev/wskbd
[  2043.118] (II) wskbd: using layout us
[  2043.119] (II) LoadModule: "kbd"
[  2043.123] (II) Loading /usr/X11R6/lib/modules/input/kbd_drv.so
[  2043.126] (II) Module kbd: vendor="X.Org Foundation"
[  2043.126]    compiled for 1.20.6, module version = 1.9.0
[  2043.126]    Module class: X.Org XInput Driver
[  2043.126]    ABI class: X.Org XInput driver, version 24.1
[  2043.126] (II) Using input driver 'kbd' for '/dev/wskbd'
[  2043.127] (**) /dev/wskbd: always reports core events
[  2043.127] (**) /dev/wskbd: always reports core events
[  2043.128] (**) Option "Protocol" "standard"
[  2043.128] (**) Option "XkbRules" "base"
[  2043.128] (**) Option "XkbModel" "pc105"
[  2043.128] (**) Option "XkbLayout" "us"
[  2043.129] (II) XINPUT: Adding extended input device "/dev/wskbd" (type: 
KEYBOARD, id 6)
[  2043.164] (II) config/wscons: checking input device /dev/wsmouse
[  2043.164] (II) LoadModule: "ws"
[  2043.169] (II) Loading /usr/X11R6/lib/modules/input/ws_drv.so
[  2043.170] (II) Module ws: vendor="X.Org Foundation"
[  2043.170]    compiled for 1.20.6, module version = 1.3.0
[  2043.171]    Module class: X.Org XInput Driver
[  2043.171]    ABI class: X.Org XInput driver, version 24.1
[  2043.171] (II) Using input driver 'ws' for '/dev/wsmouse'
[  2043.171] (**) /dev/wsmouse: always reports core events
[  2043.171] (II) ws: /dev/wsmouse: debuglevel 0
[  2043.172] (**) Option "Device" "/dev/wsmouse"
[  2043.172] (**) ws: /dev/wsmouse: ZAxisMapping: buttons 4 and 5
[  2043.172] (**) ws: /dev/wsmouse: WAxisMapping: buttons 6 and 7
[  2043.172] (**) ws: /dev/wsmouse: associated screen: 0
[  2043.173] (II) ws: /dev/wsmouse: minimum x position: 0
[  2043.173] (II) ws: /dev/wsmouse: maximum x position: 1279
[  2043.173] (II) ws: /dev/wsmouse: minimum y position: 0
[  2043.173] (II) ws: /dev/wsmouse: maximum y position: 1023
[  2043.173] (==) ws: /dev/wsmouse: Buttons: 7
[  2043.203] (**) ws: /dev/wsmouse: YAxisMapping: buttons 4 and 5
[  2043.204] (II) XINPUT: Adding extended input device "/dev/wsmouse" (type: 
MOUSE, id 7)
[  2043.207] (**) /dev/wsmouse: (accel) keeping acceleration scheme 1
[  2043.207] (**) /dev/wsmouse: (accel) acceleration profile 0
[  2043.208] (**) /dev/wsmouse: (accel) acceleration factor: 2.000
[  2043.208] (**) /dev/wsmouse: (accel) acceleration threshold: 4

-- 
Matthieu Herrb

Reply via email to