Hello Steffen,
[/usr/share/X11/xorg.conf.d/] looked like follows:
s390x@s390x:~$ ls -l /usr/share/X11/xorg.conf.d/
total 8
-rw-r--r-- 1 root root 1350 Dec 14 23:31 10-quirks.conf
-rw-r--r-- 1 root root 945 Apr 11 2018 40-libinput.conf
s390x@s390x:~$ cat /usr/share/X11/xorg.conf.d/*
# Collection of quirks and blacklist/whitelists for specific devices.
# Accelerometer device, posts data through ABS_X/ABS_Y, making X unusable
# http://bugs.freedesktop.org/show_bug.cgi?id=22442
Section "InputClass"
Identifier "ThinkPad HDAPS accelerometer blacklist"
MatchProduct "ThinkPad HDAPS accelerometer data"
Option "Ignore" "on"
EndSection
# https://bugzilla.redhat.com/show_bug.cgi?id=523914
# Mouse does not move in PV Xen guest
# Explicitly tell evdev to not ignore the absolute axes.
Section "InputClass"
Identifier "Xen Virtual Pointer axis blacklist"
MatchProduct "Xen Virtual Pointer"
Option "IgnoreAbsoluteAxes" "off"
Option "IgnoreRelativeAxes" "off"
EndSection
# https://bugs.freedesktop.org/show_bug.cgi?id=55867
# Bug 55867 - Doesn't know how to tag XI_TRACKBALL
Section "InputClass"
Identifier "Tag trackballs as XI_TRACKBALL"
MatchProduct "trackball"
MatchDriver "evdev"
Option "TypeName" "TRACKBALL"
EndSection
# https://bugs.freedesktop.org/show_bug.cgi?id=62831
# Bug 62831 - Mionix Naos 5000 mouse detected incorrectly
Section "InputClass"
Identifier "Tag Mionix Naos 5000 mouse XI_MOUSE"
MatchProduct "La-VIEW Technology Naos 5000 Mouse"
MatchDriver "evdev"
Option "TypeName" "MOUSE"
EndSection
# Match on all types of devices but joysticks
Section "InputClass"
Identifier "libinput pointer catchall"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection
Section "InputClass"
Identifier "libinput keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection
Section "InputClass"
Identifier "libinput touchscreen catchall"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection
Section "InputClass"
Identifier "libinput tablet catchall"
MatchIsTablet "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection
s390x@s390x:~$
I'm still investigating the issue.
There were some warnings in Xorg.0.log.
I did the following to clear them.
$ sudo apt-get install -y xserver-xorg-video-fbdev
$ sudo apt-get -y install xfonts-cyrillic
$ sudo apt-get -y install xfonts-100dpi
$ sudo apt-get -y install xfonts-75dpi
$ sudo apt-get -y install xfonts-scalable
$ sudo apt-get -y install xinit
/etc/X11/Xwrapper.config modified to following:
allowed_users=anybody
needs_root_rights=yes
The current Xorg.0.log looked like follows:
s390x@s390x:/var/log$ cat Xorg.0.log
[ 481.716]
X.Org X Server 1.19.6
Release Date: 2017-12-20
[ 481.733] X Protocol Version 11, Revision 0
[ 481.738] Build Operating System: Linux 4.15.0-163-generic s390x Ubuntu
[ 481.740] Current Operating System: Linux s390x 4.15.0-163-generic
#171-Ubuntu SMP Fri Nov 5 11:52:46 UTC 2021 s390x
[ 481.748] Kernel command line:
root=UUID=5da92ea3-6118-4388-8cde-ea4963b13fc6 crashkernel=196M BOOT_IMAGE=
[ 481.753] Build Date: 14 December 2021 04:11:57PM
[ 481.755] xorg-server 2:1.19.6-1ubuntu4.10 (For technical support please
see http://www.ubuntu.com/support)
[ 481.756] Current version of pixman: 0.34.0
[ 481.757] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 481.761] Markers: (--) probed, (**) from config file, (==) default
setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 481.886] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Jan 28 19:56:04
2022
[ 481.896] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 482.053] (==) No Layout section. Using the first Screen section.
[ 482.055] (==) No screen section available. Using defaults.
[ 482.057] (**) |-->Screen "Default Screen Section" (0)
[ 482.080] (**) | |-->Monitor "<default monitor>"
[ 482.171] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 482.190] (==) Automatically adding devices
[ 482.193] (==) Automatically enabling devices
[ 482.198] (==) Automatically adding GPU devices
[ 482.200] (==) Automatically binding GPU devices
[ 482.271] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 482.277] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/cyrillic,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
built-ins
[ 482.280] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 482.281] (II) The server relies on udev to provide the list of input
devices.
If no devices become available, reconfigure udev or disable
AutoAddDevices.
[ 482.281] (II) Loader magic: 0x2aa341f0010
[ 482.285] (II) Module ABI versions:
[ 482.286] X.Org ANSI C Emulation: 0.4
[ 482.287] X.Org Video Driver: 23.0
[ 482.288] X.Org XInput driver : 24.1
[ 482.289] X.Org Server Extension : 10.0
[ 482.531] (++) using VT number 7
[ 482.537] (II) systemd-logind: logind integration requires -keeptty
and -keeptty was not provided, disabling logind integration
[ 482.550] (II) no primary bus or device found
[ 482.552] (II) LoadModule: "glx"
[ 482.672] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 483.230] (II) Module glx: vendor="X.Org Foundation"
[ 483.231] compiled for 1.19.6, module version = 1.0.0
[ 483.233] ABI class: X.Org Server Extension, version 10.0
[ 483.239] (==) Matched modesetting as autoconfigured driver 0
[ 483.240] (==) Matched fbdev as autoconfigured driver 1
[ 483.241] (==) Assigned the driver to the xf86ConfigLayout
[ 483.242] (II) LoadModule: "modesetting"
[ 483.373] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 483.381] (II) Module modesetting: vendor="X.Org Foundation"
[ 483.382] compiled for 1.19.6, module version = 1.19.6
[ 483.383] Module class: X.Org Video Driver
[ 483.385] ABI class: X.Org Video Driver, version 23.0
[ 483.386] (II) LoadModule: "fbdev"
[ 483.421] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 483.510] (II) Module fbdev: vendor="X.Org Foundation"
[ 483.511] compiled for 1.19.3, module version = 0.4.4
[ 483.514] Module class: X.Org Video Driver
[ 483.515] ABI class: X.Org Video Driver, version 23.0
[ 483.526] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 483.532] (II) FBDEV: driver for framebuffer: fbdev
[ 483.536] (WW) xf86OpenConsole: setpgid failed: Operation not permitted
[ 483.538] (WW) xf86OpenConsole: setsid failed: Operation not permitted
[ 483.544] (EE)
Fatal server error:
[ 483.657] (EE) xf86OpenConsole: Cannot open virtual console 7 (No such
file or directory)
[ 483.661] (EE)
[ 483.668] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 483.680] (EE) Please also check the log file at "/var/log/Xorg.0.log"
for additional information.
[ 483.685] (EE)
[ 483.727] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[ 483.738] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[ 483.809] (EE) Server terminated with error (1). Closing log file.
s3
I'm investigating the following warnings and errors.
[ 483.536] (WW) xf86OpenConsole: setpgid failed: Operation not permitted
[ 483.538] (WW) xf86OpenConsole: setsid failed: Operation not permitted
[ 483.544] (EE)
Fatal server error:
[ 483.657] (EE) xf86OpenConsole: Cannot open virtual console 7 (No such
file or directory)
If that doesn't work, I'll try Xvnc instead of Xorg.
Thank you so much.
Best regards,
Toyokazu Kobayashi
----- Original Message -----
From: "Steffen Maier" <[email protected]>
To: <[email protected]>
Sent: Friday, January 28, 2022 5:57 AM
Subject: Re: X Windows System setup on Ubuntu Server 18.04.
On 1/27/22 10:06, (K.K.Paradox)T.Kobayashi wrote:
Thank you for your advice. I haven't solved the problem, but I will
continue
to investigate this problem.
You're welcome.
I suspect your setup [/usr/share/X11/xorg.conf.d/ ?] is some default for
systems with a physical frame buffer and with whatever procedure you start
xdm
(some system service?), it tries to start something automatically like on a
typical x86 desktop [VT7, fbdev]. If you want to go with this method of
starting up X, you probably need to teach it to use Xvnc instead of Xorg as
X
server. I haven't done such config since roughly 2 decades. Maybe:
https://manpages.ubuntu.com/manpages/bionic/en/man1/xdm.1.html#local%20server%20specification
I'm not very familiar with Ubuntu so I could not find any more detailed
documentation other than the Xvnc man page which briefly alludes to a few
different setup variants:
http://manpages.ubuntu.com/manpages/bionic/man1/Xvnc4.1.html
You might be able to translate docs of other distros to your Ubuntu
environment:
https://documentation.suse.com/sles/15-SP3/html/SLES-all/cha-vnc.html#sec-vnc-persistent
Vncpassword and vncserver is what I often use, but without a display
manager.
The other doc parts seem to depend on YaST as config frontend which is SUSE
specific.
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/using_the_desktop_environment_in_rhel_8/accessing-the-desktop-remotely_using-the-desktop-environment-in-rhel-8#remotely-accessing-the-desktop-as-multiple-users_accessing-the-desktop-remotely
This shows how to edit config files and parts of it might also apply to vnc
server on Ubuntu.
----- Original Message -----
From: "Steffen Maier" <[email protected]>
To: <[email protected]>
Sent: Wednesday, January 26, 2022 11:01 PM
Subject: Re: X Windows System setup on Ubuntu Server 18.04.
On 1/26/22 14:11, Robert J Brenneman wrote:
you don't run the X server process on the remote system, the X Server
runs
on the system with the video card in it - which is generally the
workstation/pc/laptop you are looking at. the programs running on the
remote server are the X Clients, and you tell them where the server is
by
setting the DISPLAY variable. Generally you also enable SSH X11
tunneling
on the remote server by setting it in the ssh_server.conf file and
restarting sshd, and when you ssh into the server you use the -X switch
on
the ssh command to tell the ssh client to create an X11 tunnel through
your
ssh session.
Workstation-local X server, optionally with ssh X11 forwarding, is one
option.
Running an X server on Z with the VNC backend, instead of a framebuffer,
is
another option. In that case the local workstation would run a VNC client
and
connect to the remote VNC server on the Z-side to show the virtual
framebuffer
of the remote X server. I prefer it when I need to access GUI over
anything
non-LAN, especially over long haul internet paths, because VNC over the
long
haul path behaves much better than the good old verbose X window
protocol.
Usually that would be a setup without any X display manager (such as XDM,
GDM,
KDM, ...) in my case, but I've seen distros setup a full display manager
setup
with Xvnc on Z.
Unfortunately, I cannot tell from the given information why the latter
did
not
work, despite having x11vnc installed.
On Wed, Jan 26, 2022 at 4:09 AM (K.K.Paradox)T.Kobayashi <
[email protected]> wrote:
Hello,
I'm setting up X Windows System on Ubuntu Server 18.04.
I installed the some packages with the following command:
$ sudo apt-get -y install xserver-xorg
$ sudo apt-get -y install x11-apps
$ sudo apt-get -y install xdm
$ sudo apt-get -y install x11vnc
And rebooted the system.
But, the xdm and Xorg issued following messges:
(EE) xf86OpenConsole: Cannot open virtual console 7 (No such file or
directory)
[ 530.421] (EE) Failed to load module "fbdev" (module does not exist,
0)
Is there a way to resolve this error?
The details of the xdm and Xorg logs are shown below.
$ cat xdm.log
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for
additional information.
$ cat /var/log/Xorg.0.log
[ 523.499] Markers: (--) probed, (**) from config file, (==) default
setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 526.423] (==) Using system config directory
"/usr/share/X11/xorg.conf.d"
[ 526.626] (==) No Layout section. Using the first Screen section.
[ 526.627] (==) No screen section available. Using defaults.
[ 526.628] (**) |-->Screen "Default Screen Section" (0)
[ 526.630] (**) | |-->Monitor "<default monitor>"
[ 526.926] (==) No monitor specified for screen "Default Screen
Section".
Using a default monitor configuration.
[ 527.011] (==) Automatically adding devices
[ 527.012] (==) Automatically enabling devices
[ 527.015] (==) Automatically adding GPU devices
[ 527.016] (==) Automatically binding GPU devices
[ 527.457] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 528.090] (++) using VT number 7
So xdm invoked the Xorg (instead of Xvnc) server with VT 7 as option on the
invocation command line. I'm not aware of an easy single config file to find
this.
https://manpages.ubuntu.com/manpages/bionic/en/man1/xdm.1.html#local%20server%20specification
(https://manpages.ubuntu.com/manpages/bionic/man1/Xorg.1.html#options)
[ 528.486] (II) no primary bus or device found
[ 529.971] (==) Matched modesetting as autoconfigured driver 0
[ 529.978] (==) Matched fbdev as autoconfigured driver 1
[ 530.263] (II) LoadModule: "fbdev"
[ 530.413] (WW) Warning, couldn't open module fbdev
Best regards,
Toyokazu Kobayashi
--
Jay Brenneman
--
Mit freundlichen Gruessen / Kind regards
Steffen Maier
Linux on IBM Z and LinuxONE
https://www.ibm.com/privacy/us/en/
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Gregor Pillen
Geschaeftsfuehrung: David Faller, Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or
visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390