[RPI3] Black and blank screen upon X start

This forum is for discussion about general software issues.

Re: Unable to startx Cannot open /dev/tty0 (Permission denie

Postby solskogen » Wed Mar 16, 2022 2:44 pm

Try commenting out
$this->bbcode_second_pass_code('', 'dtoverlay=vc4-kms-v3d,cma-512')
solskogen
 
Posts: 161
Joined: Mon Nov 18, 2013 10:41 am

Re: Unable to startx Cannot open /dev/tty0 (Permission denie

Postby jyno » Wed Mar 16, 2022 3:05 pm

Commenting out first line in /boot/kodi.config.txt

$this->bbcode_second_pass_code('', '
# cat /home/alarm/.local/share/xorg/Xorg.1.log
[ 3289.230] _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
[ 3289.242]
X.Org X Server 1.21.1.3
X Protocol Version 11, Revision 0
[ 3289.242] Current Operating System: Linux alarmpi 5.10.27-3-ARCH #1 SMP Mon Apr 12 18:48:03 UTC 2021 armv7l
[ 3289.242] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 root=/dev/mmcblk0p2 rw rootwait console=ttyS0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyS0,115200
[ 3289.243]
[ 3289.243] Current version of pixman: 0.40.0
[ 3289.243] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 3289.243] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 3289.244] (==) Log file: "/home/alarm/.local/share/xorg/Xorg.1.log", Time: Wed Mar 16 15:02:13 2022
[ 3289.254] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 3289.258] (==) No Layout section. Using the first Screen section.
[ 3289.258] (==) No screen section available. Using defaults.
[ 3289.258] (**) |-->Screen "Default Screen Section" (0)
[ 3289.258] (**) | |-->Monitor "<default monitor>"
[ 3289.259] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 3289.259] (==) Automatically adding devices
[ 3289.259] (==) Automatically enabling devices
[ 3289.259] (==) Automatically adding GPU devices
[ 3289.259] (==) Automatically binding GPU devices
[ 3289.259] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 3289.267] (WW) The directory "/usr/share/fonts/misc" does not exist.
[ 3289.267] Entry deleted from font path.
[ 3289.267] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[ 3289.267] Entry deleted from font path.
[ 3289.267] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 3289.267] Entry deleted from font path.
[ 3289.267] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 3289.267] Entry deleted from font path.
[ 3289.282] (==) FontPath set to:
/usr/share/fonts/100dpi,
/usr/share/fonts/75dpi
[ 3289.282] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 3289.282] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 3289.282] (II) Module ABI versions:
[ 3289.282] X.Org ANSI C Emulation: 0.4
[ 3289.282] X.Org Video Driver: 25.2
[ 3289.282] X.Org XInput driver : 24.4
[ 3289.282] X.Org Server Extension : 10.0
[ 3289.293] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_33
[ 3289.297] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 3289.298] (II) Platform probe for /sys/devices/platform/soc/soc:gpu/drm/card0
[ 3289.301] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
[ 3289.302] (II) no primary bus or device found
[ 3289.303] falling back to /sys/devices/platform/soc/soc:gpu/drm/card0
[ 3289.303] (II) LoadModule: "glx"
[ 3289.305] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 3289.369] (II) Module glx: vendor="X.Org Foundation"
[ 3289.369] compiled for 1.21.1.3, module version = 1.0.0
[ 3289.369] ABI class: X.Org Server Extension, version 10.0
[ 3289.369] (==) Matched modesetting as autoconfigured driver 0
[ 3289.369] (==) Matched fbdev as autoconfigured driver 1
[ 3289.369] (==) Assigned the driver to the xf86ConfigLayout
[ 3289.369] (II) LoadModule: "modesetting"
[ 3289.369] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 3289.447] (II) Module modesetting: vendor="X.Org Foundation"
[ 3289.447] compiled for 1.21.1.3, module version = 1.21.1
[ 3289.447] Module class: X.Org Video Driver
[ 3289.447] ABI class: X.Org Video Driver, version 25.2
[ 3289.447] (II) LoadModule: "fbdev"
[ 3289.448] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 3289.450] (II) Module fbdev: vendor="X.Org Foundation"
[ 3289.451] compiled for 1.21.1.1, module version = 0.5.0
[ 3289.451] Module class: X.Org Video Driver
[ 3289.451] ABI class: X.Org Video Driver, version 25.2
[ 3289.451] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 3289.451] (II) FBDEV: driver for framebuffer: fbdev
[ 3289.451] (EE)
Fatal server error:
[ 3289.451] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
[ 3289.451] (EE)
[ 3289.451] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 3289.451] (EE) Please also check the log file at "/home/alarm/.local/share/xorg/Xorg.1.log" for additional information.
[ 3289.452] (EE)
[ 3289.452] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[ 3289.452] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[ 3289.513] (EE) Server terminated with error (1). Closing log file.
')

After reboot:
$this->bbcode_second_pass_code('', '
$ cat .local/share/xorg/Xorg.1.log
[ 112.155]
X.Org X Server 1.21.1.3
X Protocol Version 11, Revision 0
[ 112.155] Current Operating System: Linux alarmpi 5.10.27-3-ARCH #1 SMP Mon Apr 12 18:48:03 UTC 2021 armv7l
[ 112.155] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 root=/dev/mmcblk0p2 rw rootwait console=ttyS0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyS0,115200
[ 112.156]
[ 112.156] Current version of pixman: 0.40.0
[ 112.157] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 112.157] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 112.158] (==) Log file: "/home/alarm/.local/share/xorg/Xorg.1.log", Time: Wed Mar 16 15:07:46 2022
[ 112.168] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 112.171] (==) No Layout section. Using the first Screen section.
[ 112.171] (==) No screen section available. Using defaults.
[ 112.171] (**) |-->Screen "Default Screen Section" (0)
[ 112.172] (**) | |-->Monitor "<default monitor>"
[ 112.173] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 112.173] (==) Automatically adding devices
[ 112.173] (==) Automatically enabling devices
[ 112.173] (==) Automatically adding GPU devices
[ 112.173] (==) Automatically binding GPU devices
[ 112.173] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 112.180] (WW) The directory "/usr/share/fonts/misc" does not exist.
[ 112.181] Entry deleted from font path.
[ 112.181] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[ 112.181] Entry deleted from font path.
[ 112.181] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 112.181] Entry deleted from font path.
[ 112.181] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 112.181] Entry deleted from font path.
[ 112.197] (==) FontPath set to:
/usr/share/fonts/100dpi,
/usr/share/fonts/75dpi
[ 112.197] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 112.197] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 112.197] (II) Module ABI versions:
[ 112.197] X.Org ANSI C Emulation: 0.4
[ 112.197] X.Org Video Driver: 25.2
[ 112.197] X.Org XInput driver : 24.4
[ 112.197] X.Org Server Extension : 10.0
[ 112.208] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_33
[ 112.213] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 112.213] (II) Platform probe for /sys/devices/platform/soc/soc:gpu/drm/card0
[ 112.216] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
[ 112.218] (II) no primary bus or device found
[ 112.218] falling back to /sys/devices/platform/soc/soc:gpu/drm/card0
[ 112.218] (II) LoadModule: "glx"
[ 112.221] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 112.287] (II) Module glx: vendor="X.Org Foundation"
[ 112.288] compiled for 1.21.1.3, module version = 1.0.0
[ 112.288] ABI class: X.Org Server Extension, version 10.0
[ 112.288] (==) Matched modesetting as autoconfigured driver 0
[ 112.288] (==) Matched fbdev as autoconfigured driver 1
[ 112.288] (==) Assigned the driver to the xf86ConfigLayout
[ 112.288] (II) LoadModule: "modesetting"
[ 112.289] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 112.371] (II) Module modesetting: vendor="X.Org Foundation"
[ 112.371] compiled for 1.21.1.3, module version = 1.21.1
[ 112.371] Module class: X.Org Video Driver
[ 112.371] ABI class: X.Org Video Driver, version 25.2
[ 112.371] (II) LoadModule: "fbdev"
[ 112.372] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 112.374] (II) Module fbdev: vendor="X.Org Foundation"
[ 112.374] compiled for 1.21.1.1, module version = 0.5.0
[ 112.374] Module class: X.Org Video Driver
[ 112.375] ABI class: X.Org Video Driver, version 25.2
[ 112.375] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 112.375] (II) FBDEV: driver for framebuffer: fbdev
[ 112.375] (EE)
Fatal server error:
[ 112.375] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
[ 112.375] (EE)
[ 112.375] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 112.375] (EE) Please also check the log file at "/home/alarm/.local/share/xorg/Xorg.1.log" for additional information.
[ 112.375] (EE)
[ 112.375] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[ 112.375] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[ 112.445] (EE) Server terminated with error (1). Closing log file.
')
Last edited by jyno on Wed Mar 16, 2022 3:14 pm, edited 1 time in total.
jyno
 
Posts: 67
Joined: Wed May 05, 2021 4:37 pm

Re: Unable to startx Cannot open /dev/tty0 (Permission denie

Postby jyno » Wed Mar 16, 2022 3:13 pm

It appears that I didn't mention. Kodi is the only display that works. I sould've mention that on the begining of this thread.
jyno
 
Posts: 67
Joined: Wed May 05, 2021 4:37 pm

Re: Unable to startx Cannot open /dev/tty0 (Permission denie

Postby solskogen » Thu Mar 17, 2022 10:39 pm

I'm not sure what that means.
You aren't running this in a container or anything?
solskogen
 
Posts: 161
Joined: Mon Nov 18, 2013 10:41 am

Re: Unable to startx Cannot open /dev/tty0 (Permission denie

Postby jyno » Thu Mar 17, 2022 11:13 pm

No.
I'm running it directly from a microSD card.
I think I'll install ArchLinuxARM again and report back.
It's a fresh install anyway...

CHANGING TOPIC
Old: Unable to startx Cannot open /dev/tty0 (Permission denie
New: Black and blank screen upon X start
Last edited by jyno on Tue Mar 22, 2022 12:06 pm, edited 1 time in total.
jyno
 
Posts: 67
Joined: Wed May 05, 2021 4:37 pm

Re: Unable to startx Cannot open /dev/tty0 (Permission denie

Postby jyno » Mon Mar 21, 2022 6:55 pm

New installation which runs from USB viewtopic.php?f=57&t=15913 on RPI3

1. Installing sudo
2. Adding alarm to sudoers
3. Installing LXQt (failed 404)
4. Updating pacman
5. Installing LXQt
$this->bbcode_second_pass_code('', '
[sudo] password for alarm:
[root@alarmpi ~]# pacman -S lxqt
:: There are 22 members in group lxqt:
:: Repository community
1) lximage-qt 2) lxqt-about 3) lxqt-admin 4) lxqt-archiver 5) lxqt-config 6) lxqt-globalkeys
7) lxqt-notificationd 8) lxqt-openssh-askpass 9) lxqt-panel 10) lxqt-policykit 11) lxqt-powermanagement
12) lxqt-qtplugin 13) lxqt-runner 14) lxqt-session 15) lxqt-sudo 16) lxqt-themes 17) obconf-qt
18) openbox 19) pavucontrol-qt 20) pcmanfm-qt 21) qterminal 22) screengrab

Enter a selection (default=all):
resolving dependencies...
:: There are 5 providers available for libgl:
:: Repository extra
1) libglvnd
:: Repository alarm
2) imx-gpu-viv-dfb 3) imx-gpu-viv-fb 4) imx-gpu-viv-wl 5) imx-gpu-viv-x11

Enter a number (default=1):
looking for conflicting packages...
warning: dependency cycle detected:
warning: mesa will be installed before its libglvnd dependency
warning: dependency cycle detected:
warning: harfbuzz will be installed before its freetype2 dependency
warning: dependency cycle detected:
warning: usbmuxd will be installed before its libimobiledevice dependency

Packages (180) aom-3.3.0-1 avahi-0.8+22+gfd482a7-3 btrfs-progs-5.16.2-1 cairo-1.17.4-5
desktop-file-utils-0.26-2 dmraid-1.0.0.rc16.3-13 dosfstools-4.2-2 double-conversion-3.2.0-1
flac-1.3.4-2 fontconfig-2:2.13.96-1 freetype2-2.11.1-1 fribidi-1.0.11-1 gdbm-1.23-1
gdk-pixbuf2-2.42.8-1 giflib-5.2.1-2 gptfdisk-1.0.8-1 graphite-1:1.3.14-1 harfbuzz-4.0.1-1
hicolor-icon-theme-0.17-2 imlib2-1.8.1-1 iniparser-4.1-4 js78-78.15.0-3 json-glib-1.6.6-1
kidletime-5.92.0-1 kwayland-5.92.0-1 kwindowsystem-5.92.0-1 libaio-0.3.112-2
libasyncns-0.8+3+g68cd5af-3 libatasmart-0.19-5 libblockdev-2.26-3 libbytesize-2.6-3
libcups-1:2.4.1-1 libdaemon-0.14-5 libdatrie-0.2.13-1 libdbusmenu-qt5-0.9.3+16.04.20160218-6
libde265-1.0.8-2 libdrm-2.4.110-1 libevdev-1.12.0-1 libexif-0.6.24-1 libfm-extra-1.3.2-1
libfm-qt-1.0.0-2 libglvnd-1.4.0-1 libgudev-237-1 libheif-1.12.0-3 libice-1.0.10-3
libid3tag-0.15.1b-11 libimobiledevice-1.3.0-5 libinih-53-2 libinput-1.20.0-1
libjpeg-turbo-2.1.3-1 libkscreen-5.24.3-1 liblxqt-1.0.0-1 libogg-1.3.5-1
libomxil-bellagio-0.9.3-3 libpciaccess-0.16-2 libplist-2.2.0-5 libpng-1.6.37-3.1
libproxy-0.4.17-6 libpulse-15.0-4 libqtxdg-3.8.0-2 librsvg-2:2.54.0-1 libsm-1.2.3-2
libsndfile-1.0.31-1 libsoxr-0.1.3-2 libthai-0.1.29-1 libtiff-4.3.0-1
libtool-2.4.6+59+gb55b1cc8-2 libunwind-1.6.2-1 liburcu-0.13.1-1 libusb-1.0.25-3
libusbmuxd-2.0.2-1 libvorbis-1.3.7-3 libwacom-2.1.0-1 libwebp-1.2.2-1.1 libx11-1.7.3.1-1
libxau-1.0.9-3 libxcb-1.14-1 libxcomposite-0.4.5-3 libxcursor-1.2.0-2 libxdamage-1.1.5-3
libxdmcp-1.1.3-3 libxext-1.3.4-3 libxfixes-6.0.0-1 libxft-2.3.4-1 libxi-1.8-1
libxinerama-1.1.4-3 libxkbcommon-1.4.0-1 libxkbcommon-x11-1.4.0-1 libxmu-1.1.3-2
libxrandr-1.5.2-3 libxrender-0.9.10-4 libxshmfence-1.3-2 libxss-1.2.3-3 libxt-1.2.1-1
libxtst-1.2.3-4 libxxf86vm-1.1.4-4 libyaml-0.2.5-1 llvm-libs-13.0.1-2
lm_sensors-1:3.6.0.r41.g31d1f125-1 lvm2-2.03.15-1 lxmenu-data-0.1.5-3 lzo-2.10-3 md4c-0.4.8-1
mdadm-4.2-1 media-player-info-24-2 menu-cache-1.1.0-2 mesa-21.3.7-2 mtdev-1.1.6-1
muparser-2.3.3-1 ndctl-72.1-1 nspr-4.33-1 nss-3.76-1 opus-1.3.1-3.1 orc-0.4.32-1
pango-1:1.50.5-1 parted-3.4-2 pixman-0.40.0-1 polkit-0.120-5 polkit-qt5-0.114.0-1
pulseaudio-15.0-4 qt5-base-5.15.3+kde+r137-1 qt5-declarative-5.15.3+kde+r20-1
qt5-svg-5.15.3+kde+r12-1 qt5-translations-5.15.3+kde+r2-1 qt5-wayland-5.15.3+kde+r40-1
qt5-x11extras-5.15.3+kde+r0-1 qtermwidget-1.0.0-1 rtkit-0.13-1
shared-mime-info-2.0+115+gd74a913-1 solid-5.92.0-1 speex-1.2.0-3 speexdsp-1.2.0-2.1
startup-notification-0.12-7 tdb-1.4.6-1 thin-provisioning-tools-0.9.0-1 tslib-1.22-1
udisks2-2.9.4-1 upower-0.99.17-1 usbmuxd-1.1.1-1 volume_key-0.3.12-7
vulkan-icd-loader-1.3.208-1 wayland-1.20.0-1 webrtc-audio-processing-0.3.1-3.1 x265-3.5-3
xcb-proto-1.14.1-5 xcb-util-0.4.0-3 xcb-util-image-0.4.0-3 xcb-util-keysyms-0.4.0-3
xcb-util-renderutil-0.3.9-3 xcb-util-wm-0.4.1-3 xdg-user-dirs-0.17-3
xdg-utils-1.1.3+19+g9816ebb-1 xf86-input-libinput-1.2.1-1 xfsprogs-5.14.2-1
xkeyboard-config-2.35.1-1 xorg-xprop-1.2.5-1 xorg-xset-1.2.4-2 xorgproto-2021.5-1
lximage-qt-1.0.0-1 lxqt-about-1.0.0-1 lxqt-admin-1.0.0-1 lxqt-archiver-0.5.0-1
lxqt-config-1.0.0-1 lxqt-globalkeys-1.0.1-1 lxqt-notificationd-1.0.0-1
lxqt-openssh-askpass-1.0.0-1 lxqt-panel-1.0.0-1 lxqt-policykit-1.0.0-1
lxqt-powermanagement-1.0.0-1 lxqt-qtplugin-1.0.0-2 lxqt-runner-1.0.0-1 lxqt-session-1.0.1-1
lxqt-sudo-1.0.0-1 lxqt-themes-1.0.0-1 obconf-qt-0.16.2-1 openbox-3.6.1-8
pavucontrol-qt-1.0.0-2 pcmanfm-qt-1.0.0-1 qterminal-1.0.0-1 screengrab-2.3.0-1

Total Download Size: 68.10 MiB
Total Installed Size: 515.49 MiB
')

6. Installing xorg-xinit
$this->bbcode_second_pass_code('', '
[root@alarmpi ~]# pacman -S xorg-xinit
resolving dependencies...
looking for conflicting packages...

Packages (4) xorg-xauth-1.1.1-1 xorg-xmodmap-1.0.10-2 xorg-xrdb-1.2.1-1 xorg-xinit-1.4.1-3

Total Download Size: 0.07 MiB
Total Installed Size: 0.14 MiB
')

7. Installing xorg
$this->bbcode_second_pass_code('', '
[root@alarmpi ~]# pacman -S xorg
:: There are 49 members in group xorg:
:: Repository extra
1) xf86-video-vesa 2) xorg-bdftopcf 3) xorg-docs 4) xorg-font-util 5) xorg-fonts-100dpi
6) xorg-fonts-75dpi 7) xorg-fonts-encodings 8) xorg-iceauth 9) xorg-mkfontdir 10) xorg-mkfontscale
11) xorg-server 12) xorg-server-common 13) xorg-server-devel 14) xorg-server-xephyr 15) xorg-server-xnest
16) xorg-server-xvfb 17) xorg-sessreg 18) xorg-setxkbmap 19) xorg-smproxy 20) xorg-x11perf 21) xorg-xauth
22) xorg-xbacklight 23) xorg-xcmsdb 24) xorg-xcursorgen 25) xorg-xdpyinfo 26) xorg-xdriinfo 27) xorg-xev
28) xorg-xgamma 29) xorg-xhost 30) xorg-xinput 31) xorg-xkbcomp 32) xorg-xkbevd 33) xorg-xkbutils
34) xorg-xkill 35) xorg-xlsatoms 36) xorg-xlsclients 37) xorg-xmodmap 38) xorg-xpr 39) xorg-xprop
40) xorg-xrandr 41) xorg-xrdb 42) xorg-xrefresh 43) xorg-xset 44) xorg-xsetroot 45) xorg-xvinfo
46) xorg-xwayland 47) xorg-xwd 48) xorg-xwininfo 49) xorg-xwud

Enter a selection (default=all):
warning: xorg-xauth-1.1.1-1 is up to date -- reinstalling
warning: xorg-xmodmap-1.0.10-2 is up to date -- reinstalling
warning: xorg-xprop-1.2.5-1 is up to date -- reinstalling
warning: xorg-xrdb-1.2.1-1 is up to date -- reinstalling
warning: xorg-xset-1.2.4-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
warning: removing 'xorg-mkfontdir' from target list because it conflicts with 'xorg-mkfontscale'

Packages (64) db-5.3.28-5 groff-1.22.4-6 libepoxy-1.5.9-1 libfontenc-1.1.4-3 libpipeline-1.5.5-1
libxaw-1.0.14-1 libxcvt-0.1.1-1 libxfont2-2.0.5-1 libxkbfile-1.1.0-2 libxpm-3.5.13-2
libxv-1.0.11-4 man-db-2.10.2-1 perl-5.34.0-3 xorg-fonts-alias-100dpi-1.0.4-1
xorg-fonts-alias-75dpi-1.0.4-1 xorg-util-macros-1.19.3-1 xf86-video-vesa-2.5.0-2
xorg-bdftopcf-1.1-2 xorg-docs-1.7.1-3 xorg-font-util-1.3.2-2 xorg-fonts-100dpi-1.0.3-7
xorg-fonts-75dpi-1.0.3-7 xorg-fonts-encodings-1.0.5-2 xorg-iceauth-1.0.8-2
xorg-mkfontscale-1.2.1-2 xorg-server-21.1.3-6 xorg-server-common-21.1.3-6
xorg-server-devel-21.1.3-6 xorg-server-xephyr-21.1.3-6 xorg-server-xnest-21.1.3-6
xorg-server-xvfb-21.1.3-6 xorg-sessreg-1.1.2-2 xorg-setxkbmap-1.3.2-2 xorg-smproxy-1.0.6-3
xorg-x11perf-1.6.1-2 xorg-xauth-1.1.1-1 xorg-xbacklight-1.2.3-2 xorg-xcmsdb-1.0.5-3
xorg-xcursorgen-1.0.7-2 xorg-xdpyinfo-1.3.2-4 xorg-xdriinfo-1.0.6-2 xorg-xev-1.2.4-1
xorg-xgamma-1.0.6-3 xorg-xhost-1.0.8-2 xorg-xinput-1.6.3-2 xorg-xkbcomp-1.4.5-1
xorg-xkbevd-1.1.4-3 xorg-xkbutils-1.0.4-4 xorg-xkill-1.0.5-2 xorg-xlsatoms-1.1.3-2
xorg-xlsclients-1.1.4-2 xorg-xmodmap-1.0.10-2 xorg-xpr-1.0.5-2 xorg-xprop-1.2.5-1
xorg-xrandr-1.5.1-2 xorg-xrdb-1.2.1-1 xorg-xrefresh-1.0.6-2 xorg-xset-1.2.4-2
xorg-xsetroot-1.1.2-2 xorg-xvinfo-1.1.4-2 xorg-xwayland-22.1.0-1 xorg-xwd-1.0.8-1
xorg-xwininfo-1.1.5-2 xorg-xwud-1.0.5-2

Total Download Size: 45.86 MiB
Total Installed Size: 110.28 MiB
Net Upgrade Size: 110.10 MiB
')

8. ~/.xinitrc
$this->bbcode_second_pass_code('', '
#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi

#twm &
#xclock -geometry 50x50-1+1 &
#xterm -geometry 80x50+494+51 &
#xterm -geometry 80x20+494-0 &
#exec xterm -geometry 80x66+0+0 -name login

xrandr --output HDMI-1 --mode 1920x1080 --rate 60

exec startlxqt
')

9. .xserverrc
$this->bbcode_second_pass_code('', '
#!/bin/sh

exec /usr/bin/Xorg -nolisten tcp "$@" vt$XDG_VTNR
')

According to Htop, LXQt runs, but monitor shows a blank screen.

10. Xorg.1.log
$this->bbcode_second_pass_code('', '
[ 72.726]
X.Org X Server 1.21.1.3
X Protocol Version 11, Revision 0
[ 72.726] Current Operating System: Linux alarmpi 5.15.28-2-rpi-ARCH #1 SMP Wed Mar 16 20:30:18 UTC 2022 armv7l
[ 72.727] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=HDMI-A-1:1920x1080M@60,margin_left=48,margin_right=48,margin_top=48,margin_bottom=48 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 root=/dev/sda2 rw rootwait console=ttyS0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyS0,115200
[ 72.727]
[ 72.728] Current version of pixman: 0.40.0
[ 72.728] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 72.728] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 72.729] (==) Log file: "/home/alarm/.local/share/xorg/Xorg.1.log", Time: Mon Mar 21 19:36:42 2022
[ 72.752] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 72.755] (==) No Layout section. Using the first Screen section.
[ 72.755] (==) No screen section available. Using defaults.
[ 72.755] (**) |-->Screen "Default Screen Section" (0)
[ 72.755] (**) | |-->Monitor "<default monitor>"
[ 72.756] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 72.756] (==) Automatically adding devices
[ 72.756] (==) Automatically enabling devices
[ 72.756] (==) Automatically adding GPU devices
[ 72.756] (==) Automatically binding GPU devices
[ 72.756] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 72.761] (WW) The directory "/usr/share/fonts/misc" does not exist.
[ 72.761] Entry deleted from font path.
[ 72.761] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[ 72.761] Entry deleted from font path.
[ 72.761] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 72.761] Entry deleted from font path.
[ 72.762] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 72.762] Entry deleted from font path.
[ 72.768] (==) FontPath set to:
/usr/share/fonts/100dpi,
/usr/share/fonts/75dpi
[ 72.768] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 72.769] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 72.769] (II) Module ABI versions:
[ 72.769] X.Org ANSI C Emulation: 0.4
[ 72.769] X.Org Video Driver: 25.2
[ 72.769] X.Org XInput driver : 24.4
[ 72.769] X.Org Server Extension : 10.0
[ 72.772] (++) using VT number 1

[ 72.772] (--) controlling tty is VT number 1, auto-enabling KeepTty
[ 72.777] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_33
[ 72.779] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 72.779] (II) Platform probe for /sys/devices/platform/soc/soc:gpu/drm/card0
[ 72.781] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
[ 72.782] (II) no primary bus or device found
[ 72.782] falling back to /sys/devices/platform/soc/soc:gpu/drm/card0
[ 72.782] (II) LoadModule: "glx"
[ 72.785] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 72.828] (II) Module glx: vendor="X.Org Foundation"
[ 72.828] compiled for 1.21.1.3, module version = 1.0.0
[ 72.828] ABI class: X.Org Server Extension, version 10.0
[ 72.828] (==) Matched modesetting as autoconfigured driver 0
[ 72.829] (==) Matched fbdev as autoconfigured driver 1
[ 72.829] (==) Assigned the driver to the xf86ConfigLayout
[ 72.829] (II) LoadModule: "modesetting"
[ 72.832] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 72.916] (II) Module modesetting: vendor="X.Org Foundation"
[ 72.916] compiled for 1.21.1.3, module version = 1.21.1
[ 72.916] Module class: X.Org Video Driver
[ 72.916] ABI class: X.Org Video Driver, version 25.2
[ 72.916] (II) LoadModule: "fbdev"
[ 72.919] (WW) Warning, couldn't open module fbdev
[ 72.919] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 72.919] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 72.919] (II) modeset(0): using drv /dev/dri/card0
[ 72.919] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 72.920] (II) modeset(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 72.920] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[ 72.920] (==) modeset(0): RGB weight 888
[ 72.920] (==) modeset(0): Default visual is TrueColor
[ 72.920] (II) Loading sub module "glamoregl"
[ 72.920] (II) LoadModule: "glamoregl"
[ 72.921] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[ 72.988] (II) Module glamoregl: vendor="X.Org Foundation"
[ 72.988] compiled for 1.21.1.3, module version = 1.0.1
[ 72.988] ABI class: X.Org ANSI C Emulation, version 0.4
[ 74.763] (II) modeset(0): glamor X acceleration enabled on VC4 V3D 2.1
[ 74.763] (II) modeset(0): glamor initialized
[ 74.763] (==) modeset(0): VariableRefresh: disabled
[ 74.763] (==) modeset(0): AsyncFlipSecondaries: disabled
[ 74.806] (II) modeset(0): Output HDMI-1 has no monitor section
[ 74.859] (II) modeset(0): EDID for output HDMI-1
[ 74.860] (II) modeset(0): Manufacturer: SAM Model: d20 Serial#: 1515867478
[ 74.860] (II) modeset(0): Year: 2016 Week: 41
[ 74.860] (II) modeset(0): EDID Version: 1.3
[ 74.860] (II) modeset(0): Digital Display Input
[ 74.860] (II) modeset(0): Max Image Size [cm]: horiz.: 52 vert.: 29
[ 74.860] (II) modeset(0): Gamma: 2.20
[ 74.860] (II) modeset(0): DPMS capabilities: Off
[ 74.860] (II) modeset(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
[ 74.860] (II) modeset(0): First detailed timing is preferred mode
[ 74.860] (II) modeset(0): redX: 0.650 redY: 0.333 greenX: 0.316 greenY: 0.612
[ 74.860] (II) modeset(0): blueX: 0.152 blueY: 0.067 whiteX: 0.313 whiteY: 0.329
[ 74.860] (II) modeset(0): Supported established timings:
[ 74.860] (II) modeset(0): 720x400@70Hz
[ 74.861] (II) modeset(0): 640x480@60Hz
[ 74.861] (II) modeset(0): 640x480@67Hz
[ 74.861] (II) modeset(0): 640x480@72Hz
[ 74.861] (II) modeset(0): 640x480@75Hz
[ 74.861] (II) modeset(0): 800x600@56Hz
[ 74.861] (II) modeset(0): 800x600@60Hz
[ 74.861] (II) modeset(0): 800x600@72Hz
[ 74.861] (II) modeset(0): 800x600@75Hz
[ 74.861] (II) modeset(0): 832x624@75Hz
[ 74.861] (II) modeset(0): 1024x768@60Hz
[ 74.861] (II) modeset(0): 1024x768@70Hz
[ 74.861] (II) modeset(0): 1024x768@75Hz
[ 74.861] (II) modeset(0): 1280x1024@75Hz
[ 74.861] (II) modeset(0): 1152x864@75Hz
[ 74.861] (II) modeset(0): Manufacturer's mask: 0
[ 74.861] (II) modeset(0): Supported standard timings:
[ 74.861] (II) modeset(0): #0: hsize: 1152 vsize 864 refresh: 75 vid: 20337
[ 74.861] (II) modeset(0): #1: hsize: 1280 vsize 720 refresh: 60 vid: 49281
[ 74.862] (II) modeset(0): #2: hsize: 1280 vsize 800 refresh: 60 vid: 129
[ 74.862] (II) modeset(0): #3: hsize: 1280 vsize 1024 refresh: 60 vid: 32897
[ 74.862] (II) modeset(0): #4: hsize: 1440 vsize 900 refresh: 60 vid: 149
[ 74.862] (II) modeset(0): #5: hsize: 1600 vsize 900 refresh: 60 vid: 49321
[ 74.862] (II) modeset(0): #6: hsize: 1680 vsize 1050 refresh: 60 vid: 179
[ 74.862] (II) modeset(0): Supported detailed timing:
[ 74.862] (II) modeset(0): clock: 148.5 MHz Image Size: 521 x 293 mm
[ 74.862] (II) modeset(0): h_active: 1920 h_sync: 2008 h_sync_end 2052 h_blank_end 2200 h_border: 0
[ 74.862] (II) modeset(0): v_active: 1080 v_sync: 1084 v_sync_end 1089 v_blanking: 1125 v_border: 0
[ 74.862] (II) modeset(0): Ranges: V min: 50 V max: 75 Hz, H min: 30 H max: 81 kHz, PixClock max 175 MHz
[ 74.862] (II) modeset(0): Monitor name: S24F350
[ 74.862] (II) modeset(0): Serial No: H4ZHA00297
[ 74.862] (II) modeset(0): Supported detailed timing:
[ 74.862] (II) modeset(0): clock: 74.2 MHz Image Size: 521 x 293 mm
[ 74.863] (II) modeset(0): h_active: 1280 h_sync: 1720 h_sync_end 1760 h_blank_end 1980 h_border: 0
[ 74.863] (II) modeset(0): v_active: 720 v_sync: 725 v_sync_end 730 v_blanking: 750 v_border: 0
[ 74.863] (II) modeset(0): Supported detailed timing:
[ 74.863] (II) modeset(0): clock: 27.0 MHz Image Size: 521 x 293 mm
[ 74.863] (II) modeset(0): h_active: 720 h_sync: 732 h_sync_end 796 h_blank_end 864 h_border: 0
[ 74.863] (II) modeset(0): v_active: 576 v_sync: 581 v_sync_end 586 v_blanking: 625 v_border: 0
[ 74.863] (II) modeset(0): Supported detailed timing:
[ 74.863] (II) modeset(0): clock: 27.0 MHz Image Size: 521 x 293 mm
[ 74.863] (II) modeset(0): h_active: 720 h_sync: 736 h_sync_end 798 h_blank_end 858 h_border: 0
[ 74.863] (II) modeset(0): v_active: 480 v_sync: 489 v_sync_end 495 v_blanking: 525 v_border: 0
[ 74.863] (II) modeset(0): Number of EDID sections to follow: 1
[ 74.863] (II) modeset(0): EDID (in hex):
[ 74.863] (II) modeset(0): 00ffffffffffff004c2d200d564d5a5a
[ 74.863] (II) modeset(0): 291a010380341d782a9315a655519c27
[ 74.864] (II) modeset(0): 115054bfef80714f81c0810081809500
[ 74.864] (II) modeset(0): a9c0b3000101023a801871382d40582c
[ 74.864] (II) modeset(0): 450009252100001e000000fd00324b1e
[ 74.864] (II) modeset(0): 5111000a202020202020000000fc0053
[ 74.864] (II) modeset(0): 3234463335300a2020202020000000ff
[ 74.864] (II) modeset(0): 0048345a484130303239370a202001b3
[ 74.864] (II) modeset(0): 020311b14690041f13120365030c0010
[ 74.864] (II) modeset(0): 00011d00bc52d01e20b8285540092521
[ 74.864] (II) modeset(0): 00001e8c0ad090204031200c40550009
[ 74.864] (II) modeset(0): 25210000188c0ad08a20e02d10103e96
[ 74.864] (II) modeset(0): 00092521000018000000000000000000
[ 74.864] (II) modeset(0): 00000000000000000000000000000000
[ 74.865] (II) modeset(0): 00000000000000000000000000000000
[ 74.865] (II) modeset(0): 00000000000000000000000000000051
[ 74.865] (II) modeset(0): Printing probed modes for output HDMI-1
[ 74.865] (II) modeset(0): Modeline "1920x1080"x60.0 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[ 74.865] (II) modeset(0): Modeline "1920x1080"x50.0 148.50 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync (56.2 kHz e)
[ 74.865] (II) modeset(0): Modeline "1920x1080"x59.9 148.35 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.4 kHz e)
[ 74.865] (II) modeset(0): Modeline "1680x1050"x59.9 119.00 1680 1728 1760 1840 1050 1053 1059 1080 +hsync -vsync (64.7 kHz e)
[ 74.866] (II) modeset(0): Modeline "1600x900"x60.0 108.00 1600 1624 1704 1800 900 901 904 1000 +hsync +vsync (60.0 kHz e)
[ 74.866] (II) modeset(0): Modeline "1280x1024"x75.0 135.00 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[ 74.866] (II) modeset(0): Modeline "1280x1024"x60.0 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[ 74.866] (II) modeset(0): Modeline "1440x900"x59.9 88.75 1440 1488 1520 1600 900 903 909 926 +hsync -vsync (55.5 kHz e)
[ 74.866] (II) modeset(0): Modeline "1280x800"x59.9 71.00 1280 1328 1360 1440 800 803 809 823 +hsync -vsync (49.3 kHz e)
[ 74.866] (II) modeset(0): Modeline "1152x864"x75.0 108.00 1152 1216 1344 1600 864 865 868 900 +hsync +vsync (67.5 kHz e)
[ 74.866] (II) modeset(0): Modeline "1280x720"x60.0 74.25 1280 1390 1430 1650 720 725 730 750 +hsync +vsync (45.0 kHz e)
[ 74.866] (II) modeset(0): Modeline "1280x720"x50.0 74.25 1280 1720 1760 1980 720 725 730 750 +hsync +vsync (37.5 kHz e)
[ 74.866] (II) modeset(0): Modeline "1280x720"x59.9 74.18 1280 1390 1430 1650 720 725 730 750 +hsync +vsync (45.0 kHz e)
[ 74.866] (II) modeset(0): Modeline "1024x768"x75.0 78.75 1024 1040 1136 1312 768 769 772 800 +hsync +vsync (60.0 kHz e)
[ 74.866] (II) modeset(0): Modeline "1024x768"x70.1 75.00 1024 1048 1184 1328 768 771 777 806 -hsync -vsync (56.5 kHz e)
[ 74.866] (II) modeset(0): Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz e)
[ 74.867] (II) modeset(0): Modeline "832x624"x74.6 57.28 832 864 928 1152 624 625 628 667 -hsync -vsync (49.7 kHz e)
[ 74.867] (II) modeset(0): Modeline "800x600"x72.2 50.00 800 856 976 1040 600 637 643 666 +hsync +vsync (48.1 kHz e)
[ 74.867] (II) modeset(0): Modeline "800x600"x75.0 49.50 800 816 896 1056 600 601 604 625 +hsync +vsync (46.9 kHz e)
[ 74.867] (II) modeset(0): Modeline "800x600"x60.3 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz e)
[ 74.867] (II) modeset(0): Modeline "800x600"x56.2 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz e)
[ 74.867] (II) modeset(0): Modeline "720x576"x50.0 27.00 720 732 796 864 576 581 586 625 -hsync -vsync (31.2 kHz e)
[ 74.867] (II) modeset(0): Modeline "720x480"x60.0 27.03 720 736 798 858 480 489 495 525 -hsync -vsync (31.5 kHz e)
[ 74.867] (II) modeset(0): Modeline "720x480"x59.9 27.00 720 736 798 858 480 489 495 525 -hsync -vsync (31.5 kHz e)
[ 74.867] (II) modeset(0): Modeline "640x480"x75.0 31.50 640 656 720 840 480 481 484 500 -hsync -vsync (37.5 kHz e)
[ 74.867] (II) modeset(0): Modeline "640x480"x72.8 31.50 640 664 704 832 480 489 492 520 -hsync -vsync (37.9 kHz e)
[ 74.867] (II) modeset(0): Modeline "640x480"x66.7 30.24 640 704 768 864 480 483 486 525 -hsync -vsync (35.0 kHz e)
[ 74.867] (II) modeset(0): Modeline "640x480"x60.0 25.20 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e)
[ 74.867] (II) modeset(0): Modeline "640x480"x59.9 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e)
[ 74.868] (II) modeset(0): Modeline "720x400"x70.1 28.32 720 738 846 900 400 412 414 449 -hsync +vsync (31.5 kHz e)
[ 74.868] (II) modeset(0): Output HDMI-1 connected
[ 74.868] (II) modeset(0): Using exact sizes for initial modes
[ 74.868] (II) modeset(0): Output HDMI-1 using initial mode 1920x1080 +0+0
[ 74.868] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[ 74.868] (==) modeset(0): DPI set to (96, 96)
[ 74.868] (II) Loading sub module "fb"
[ 74.868] (II) LoadModule: "fb"
[ 74.868] (II) Module "fb" already built-in
[ 75.280] (==) modeset(0): Backing store enabled
[ 75.280] (==) modeset(0): Silken mouse enabled
[ 75.422] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
[ 75.423] (==) modeset(0): DPMS enabled
[ 75.424] (II) modeset(0): [DRI2] Setup complete
[ 75.424] (II) modeset(0): [DRI2] DRI driver: vc4
[ 75.424] (II) modeset(0): [DRI2] VDPAU driver: vc4
[ 75.424] (II) Initializing extension Generic Event Extension
[ 75.426] (II) Initializing extension SHAPE
[ 75.428] (II) Initializing extension MIT-SHM
[ 75.429] (II) Initializing extension XInputExtension
[ 75.434] (II) Initializing extension XTEST
[ 75.436] (II) Initializing extension BIG-REQUESTS
[ 75.438] (II) Initializing extension SYNC
[ 75.440] (II) Initializing extension XKEYBOARD
[ 75.442] (II) Initializing extension XC-MISC
[ 75.443] (II) Initializing extension SECURITY
[ 75.445] (II) Initializing extension XFIXES
[ 75.447] (II) Initializing extension RENDER
[ 75.449] (II) Initializing extension RANDR
[ 75.452] (II) Initializing extension COMPOSITE
[ 75.454] (II) Initializing extension DAMAGE
[ 75.456] (II) Initializing extension MIT-SCREEN-SAVER
[ 75.458] (II) Initializing extension DOUBLE-BUFFER
[ 75.459] (II) Initializing extension RECORD
[ 75.461] (II) Initializing extension DPMS
[ 75.463] (II) Initializing extension Present
[ 75.465] (II) Initializing extension DRI3
[ 75.466] (II) Initializing extension X-Resource
[ 75.468] (II) Initializing extension XVideo
[ 75.470] (II) Initializing extension XVideo-MotionCompensation
[ 75.470] (II) Initializing extension GLX
[ 75.505] (II) AIGLX: Loaded and initialized vc4
[ 75.505] (II) GLX: Initialized DRI2 GL provider for screen 0
[ 75.505] (II) Initializing extension XFree86-VidModeExtension
[ 75.506] (II) Initializing extension XFree86-DGA
[ 75.508] (II) Initializing extension XFree86-DRI
[ 75.508] (II) Initializing extension DRI2
[ 75.511] (II) modeset(0): Damage tracking initialized
[ 75.511] (II) modeset(0): Setting screen physical size to 508 x 285
[ 76.084] (II) config/udev: Adding input device Logitech K400 (/dev/input/event0)
[ 76.084] (**) Logitech K400: Applying InputClass "libinput pointer catchall"
[ 76.084] (**) Logitech K400: Applying InputClass "libinput keyboard catchall"
[ 76.084] (II) LoadModule: "libinput"
[ 76.085] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[ 76.114] (II) Module libinput: vendor="X.Org Foundation"
[ 76.114] compiled for 1.21.1.3, module version = 1.2.1
[ 76.114] Module class: X.Org XInput Driver
[ 76.114] ABI class: X.Org XInput driver, version 24.4
[ 76.114] (II) Using input driver 'libinput' for 'Logitech K400'
[ 76.120] (II) systemd-logind: got fd for /dev/input/event0 13:64 fd 24 paused 0
[ 76.120] (**) Logitech K400: always reports core events
[ 76.120] (**) Option "Device" "/dev/input/event0"
[ 76.158] (II) event0 - Logitech K400: is tagged by udev as: Keyboard Mouse
[ 76.159] (II) event0 - Logitech K400: device is a pointer
[ 76.159] (II) event0 - Logitech K400: device is a keyboard
[ 76.160] (II) event0 - Logitech K400: device removed
[ 76.161] (II) libinput: Logitech K400: needs a virtual subdevice
[ 76.161] (**) Option "config_info" "udev:/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.2/0003:046D:C52B.0003/0003:046D:4024.0004/input/input10/event0"
[ 76.161] (II) XINPUT: Adding extended input device "Logitech K400" (type: MOUSE, id 6)
[ 76.162] (**) Option "AccelerationScheme" "none"
[ 76.162] (**) Logitech K400: (accel) selected scheme none/0
[ 76.162] (**) Logitech K400: (accel) acceleration factor: 2.000
[ 76.162] (**) Logitech K400: (accel) acceleration threshold: 4
[ 76.173] (II) event0 - Logitech K400: is tagged by udev as: Keyboard Mouse
[ 76.174] (II) event0 - Logitech K400: device is a pointer
[ 76.174] (II) event0 - Logitech K400: device is a keyboard
[ 76.182] (II) config/udev: Adding input device Logitech K400 (/dev/input/mouse0)
[ 76.182] (II) No input driver specified, ignoring this device.
[ 76.182] (II) This device may have been added with another device file.
[ 76.206] (**) Logitech K400: Applying InputClass "libinput pointer catchall"
[ 76.206] (**) Logitech K400: Applying InputClass "libinput keyboard catchall"
[ 76.206] (II) Using input driver 'libinput' for 'Logitech K400'
[ 76.206] (II) systemd-logind: returning pre-existing fd for /dev/input/event0 13:64
[ 76.207] (**) Logitech K400: always reports core events
[ 76.207] (**) Option "Device" "/dev/input/event0"
[ 76.207] (II) libinput: Logitech K400: is a virtual subdevice
[ 76.207] (**) Option "config_info" "udev:/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.2/0003:046D:C52B.0003/0003:046D:4024.0004/input/input10/event0"
[ 76.207] (II) XINPUT: Adding extended input device "Logitech K400" (type: KEYBOARD, id 7)
[ 84.261] (II) modeset(0): Disabling kernel dirty updates, not required.
[ 97.656] (II) modeset(0): EDID vendor "SAM", prod id 3360
[ 97.657] (II) modeset(0): Using EDID range info for horizontal sync
[ 97.657] (II) modeset(0): Using EDID range info for vertical refresh
[ 97.657] (II) modeset(0): Printing DDC gathered Modelines:
[ 97.657] (II) modeset(0): Modeline "1920x1080"x0.0 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[ 97.657] (II) modeset(0): Modeline "1280x720"x0.0 74.25 1280 1720 1760 1980 720 725 730 750 +hsync +vsync (37.5 kHz e)
[ 97.657] (II) modeset(0): Modeline "720x576"x0.0 27.00 720 732 796 864 576 581 586 625 -hsync -vsync (31.2 kHz e)
[ 97.657] (II) modeset(0): Modeline "720x480"x0.0 27.00 720 736 798 858 480 489 495 525 -hsync -vsync (31.5 kHz e)
[ 97.658] (II) modeset(0): Modeline "1280x720"x0.0 74.25 1280 1390 1430 1650 720 725 730 750 +hsync +vsync (45.0 kHz e)
[ 97.658] (II) modeset(0): Modeline "1920x1080"x0.0 148.50 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync (56.2 kHz e)
[ 97.658] (II) modeset(0): Modeline "800x600"x0.0 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz e)
[ 97.658] (II) modeset(0): Modeline "800x600"x0.0 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz e)
[ 97.658] (II) modeset(0): Modeline "640x480"x0.0 31.50 640 656 720 840 480 481 484 500 -hsync -vsync (37.5 kHz e)
[ 97.658] (II) modeset(0): Modeline "640x480"x0.0 31.50 640 664 704 832 480 489 492 520 -hsync -vsync (37.9 kHz e)
[ 97.658] (II) modeset(0): Modeline "640x480"x0.0 30.24 640 704 768 864 480 483 486 525 -hsync -vsync (35.0 kHz e)
[ 97.658] (II) modeset(0): Modeline "640x480"x0.0 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e)
[ 97.658] (II) modeset(0): Modeline "720x400"x0.0 28.32 720 738 846 900 400 412 414 449 -hsync +vsync (31.5 kHz e)
[ 97.658] (II) modeset(0): Modeline "1280x1024"x0.0 135.00 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[ 97.658] (II) modeset(0): Modeline "1024x768"x0.0 78.75 1024 1040 1136 1312 768 769 772 800 +hsync +vsync (60.0 kHz e)
[ 97.658] (II) modeset(0): Modeline "1024x768"x0.0 75.00 1024 1048 1184 1328 768 771 777 806 -hsync -vsync (56.5 kHz e)
[ 97.658] (II) modeset(0): Modeline "1024x768"x0.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz e)
[ 97.658] (II) modeset(0): Modeline "832x624"x0.0 57.28 832 864 928 1152 624 625 628 667 -hsync -vsync (49.7 kHz e)
[ 97.658] (II) modeset(0): Modeline "800x600"x0.0 49.50 800 816 896 1056 600 601 604 625 +hsync +vsync (46.9 kHz e)
[ 97.658] (II) modeset(0): Modeline "800x600"x0.0 50.00 800 856 976 1040 600 637 643 666 +hsync +vsync (48.1 kHz e)
[ 97.658] (II) modeset(0): Modeline "1152x864"x0.0 108.00 1152 1216 1344 1600 864 865 868 900 +hsync +vsync (67.5 kHz e)
[ 97.659] (II) modeset(0): Modeline "1280x800"x0.0 71.00 1280 1328 1360 1440 800 803 809 823 +hsync -vsync (49.3 kHz e)
[ 97.659] (II) modeset(0): Modeline "1280x1024"x0.0 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[ 97.659] (II) modeset(0): Modeline "1440x900"x0.0 88.75 1440 1488 1520 1600 900 903 909 926 +hsync -vsync (55.5 kHz e)
[ 97.659] (II) modeset(0): Modeline "1600x900"x60.0 119.00 1600 1696 1864 2128 900 901 904 932 -hsync +vsync (55.9 kHz e)
[ 97.659] (II) modeset(0): Modeline "1680x1050"x0.0 119.00 1680 1728 1760 1840 1050 1053 1059 1080 +hsync -vsync (64.7 kHz e)
[ 106.806] (II) modeset(0): EDID vendor "SAM", prod id 3360
[ 106.807] (II) modeset(0): Using hsync ranges from config file
[ 106.807] (II) modeset(0): Using vrefresh ranges from config file
[ 106.807] (II) modeset(0): Printing DDC gathered Modelines:
[ 106.807] (II) modeset(0): Modeline "1920x1080"x0.0 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[ 106.807] (II) modeset(0): Modeline "1280x720"x0.0 74.25 1280 1720 1760 1980 720 725 730 750 +hsync +vsync (37.5 kHz e)
[ 106.807] (II) modeset(0): Modeline "720x576"x0.0 27.00 720 732 796 864 576 581 586 625 -hsync -vsync (31.2 kHz e)
[ 106.807] (II) modeset(0): Modeline "720x480"x0.0 27.00 720 736 798 858 480 489 495 525 -hsync -vsync (31.5 kHz e)
[ 106.807] (II) modeset(0): Modeline "1280x720"x0.0 74.25 1280 1390 1430 1650 720 725 730 750 +hsync +vsync (45.0 kHz e)
[ 106.807] (II) modeset(0): Modeline "1920x1080"x0.0 148.50 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync (56.2 kHz e)
[ 106.807] (II) modeset(0): Modeline "800x600"x0.0 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz e)
[ 106.807] (II) modeset(0): Modeline "800x600"x0.0 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz e)
[ 106.807] (II) modeset(0): Modeline "640x480"x0.0 31.50 640 656 720 840 480 481 484 500 -hsync -vsync (37.5 kHz e)
[ 106.807] (II) modeset(0): Modeline "640x480"x0.0 31.50 640 664 704 832 480 489 492 520 -hsync -vsync (37.9 kHz e)
[ 106.807] (II) modeset(0): Modeline "640x480"x0.0 30.24 640 704 768 864 480 483 486 525 -hsync -vsync (35.0 kHz e)
[ 106.807] (II) modeset(0): Modeline "640x480"x0.0 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e)
[ 106.807] (II) modeset(0): Modeline "720x400"x0.0 28.32 720 738 846 900 400 412 414 449 -hsync +vsync (31.5 kHz e)
[ 106.807] (II) modeset(0): Modeline "1280x1024"x0.0 135.00 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[ 106.807] (II) modeset(0): Modeline "1024x768"x0.0 78.75 1024 1040 1136 1312 768 769 772 800 +hsync +vsync (60.0 kHz e)
[ 106.807] (II) modeset(0): Modeline "1024x768"x0.0 75.00 1024 1048 1184 1328 768 771 777 806 -hsync -vsync (56.5 kHz e)
[ 106.807] (II) modeset(0): Modeline "1024x768"x0.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz e)
[ 106.807] (II) modeset(0): Modeline "832x624"x0.0 57.28 832 864 928 1152 624 625 628 667 -hsync -vsync (49.7 kHz e)
[ 106.807] (II) modeset(0): Modeline "800x600"x0.0 49.50 800 816 896 1056 600 601 604 625 +hsync +vsync (46.9 kHz e)
[ 106.807] (II) modeset(0): Modeline "800x600"x0.0 50.00 800 856 976 1040 600 637 643 666 +hsync +vsync (48.1 kHz e)
[ 106.808] (II) modeset(0): Modeline "1152x864"x0.0 108.00 1152 1216 1344 1600 864 865 868 900 +hsync +vsync (67.5 kHz e)
[ 106.808] (II) modeset(0): Modeline "1280x800"x0.0 71.00 1280 1328 1360 1440 800 803 809 823 +hsync -vsync (49.3 kHz e)
[ 106.808] (II) modeset(0): Modeline "1280x1024"x0.0 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[ 106.808] (II) modeset(0): Modeline "1440x900"x0.0 88.75 1440 1488 1520 1600 900 903 909 926 +hsync -vsync (55.5 kHz e)
[ 106.808] (II) modeset(0): Modeline "1600x900"x60.0 119.00 1600 1696 1864 2128 900 901 904 932 -hsync +vsync (55.9 kHz e)
[ 106.808] (II) modeset(0): Modeline "1680x1050"x0.0 119.00 1680 1728 1760 1840 1050 1053 1059 1080 +hsync -vsync (64.7 kHz e)
[ 256.321] (**) Option "fd" "24"
[ 256.327] (**) Option "fd" "24"
[ 256.327] (II) event0 - Logitech K400: device removed
[ 256.328] (II) AIGLX: Suspending AIGLX clients for VT switch
[ 256.447] (II) systemd-logind: got pause for 13:64
[ 302.572] (II) UnloadModule: "libinput"
[ 302.572] (II) systemd-logind: not releasing fd for 13:64, still in use
[ 302.574] (II) UnloadModule: "libinput"
[ 302.574] (II) systemd-logind: releasing fd for 13:64
[ 302.648] (II) Server terminated successfully (0). Closing log file.
')
jyno
 
Posts: 67
Joined: Wed May 05, 2021 4:37 pm

Re: Unable to startx Cannot open /dev/tty0 (Permission denie

Postby jyno » Mon Mar 21, 2022 8:16 pm

Same for Kodi. Perhaps this will work on a different monitor.
Tough, when I started the thread, I used the same monitor and Kodi was properly displayed.

$this->bbcode_second_pass_code('', '
[sudo] password for alarm:
[root@alarmpi ~]# pacman -S kodi
:: There are 3 providers available for kodi:
:: Repository alarm
1) kodi-rpi 2) kodi-rpi-git 3) kodi-rpi-legacy

Enter a number (default=1):
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: cifs-utils will be installed before its smbclient dependency

Packages (47) alsa-lib-1.2.6.1-1
alsa-topology-conf-1.2.5.1-1
alsa-ucm-conf-1.2.6.3-1 bluez-libs-5.64-2
cifs-utils-6.14-1 confuse-3.3-3 dav1d-0.9.2-1
jansson-2.14-1 lcms2-2.13.1-1 ldb-2:2.4.2-1
libao-1.2.2-5 libass-0.15.2-2
libbluray-1.3.0-2 libbsd-0.11.5-1
libcddb-1.3.2-6 libcdio-2.1.0-2
libcec-rpi-6.0.2-3 libftdi-1.5-4
libimagequant-2.17.0-3 libmd-1.0.4-1
libmicrohttpd-0.9.75-1 libnfs-5.0.1-2
libnsl-2.0.0-2 libraqm-0.9.0-1
libusb-compat-0.1.7-1 libxslt-1.1.35-1
lirc-1:0.10.1-12 lmdb-0.9.29-1
lockdev-1.0.3_1.6-6 mariadb-libs-10.7.3-1
openjpeg2-2.4.0-1 p8-platform-2.1.0.1-4
python-3.10.3-1 python-dnspython-1:2.2.0-1
python-importlib-metadata-4.8.1-3
python-markdown-3.3.6-3 python-pillow-9.0.1-1
python-pycryptodomex-3.12.0-1
python-simplejson-3.17.6-3 python-zipp-3.7.0-1
shairplay-20180824.096b61a-3
smbclient-4.15.6-1 taglib-1.12-1
talloc-2.3.3-3 tevent-1:0.11.0-3
tinyxml-2.6.2-8 kodi-rpi-19.4-1

Total Download Size: 62.35 MiB
Total Installed Size: 219.80 MiB
')
jyno
 
Posts: 67
Joined: Wed May 05, 2021 4:37 pm

Re: Unable to startx Cannot open /dev/tty0 (Permission denie

Postby jyno » Mon Mar 21, 2022 8:27 pm

Kodi DOES work when executing kodi as is, in contract to using xinit.
jyno
 
Posts: 67
Joined: Wed May 05, 2021 4:37 pm

Re: Unable to startx Cannot open /dev/tty0 (Permission denie

Postby jyno » Mon Mar 21, 2022 11:22 pm

Perhaps this can provide more clues as to what's happening

$this->bbcode_second_pass_code('', '
[alarm@alarmpi ~]$ sddm-greeter --test-mode --theme /usr/share/sddm/themes/breeze
[23:20:55.614] (II) GREETER: High-DPI autoscaling not Enabled
[23:20:55.647] (WW) GREETER: could not connect to display
[23:20:55.647] (II) GREETER: Could not load the Qt platform plugin "xcb" in "" even though it was found.
[23:20:55.648] (EE) GREETER: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted (core dumped)
')
jyno
 
Posts: 67
Joined: Wed May 05, 2021 4:37 pm

Re: Unable to startx Cannot open /dev/tty0 (Permission denie

Postby robg » Tue Mar 22, 2022 12:22 am

Kindly post the output of `cat /boot/config.txt`.

Also, try running `startx` without the line "xrandr --output HDMI-1 --mode 1920x1080 --rate 60" in ~/.xinitrc and without the file ~/.xserverrc.

There should be no missing dependency; I am running LxQT on my RPI4 without problems.
robg
 
Posts: 186
Joined: Tue Jan 05, 2021 8:22 am

PreviousNext

Return to General

Who is online

Users browsing this forum: No registered users and 4 guests