VIM 4 Without HDMI Connected

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu

Which version of system do you use? Khadas official images, self built images, or others?

Khadas Image

Please describe your issue below:

Using the VIM4 with no HDMI connected - ideally we could find a way to get the device to boot to the OS without a HDMI connection - rather than remaining on the splash screen.

Some programs do function without the HDMI connected - however we are seeing a large amount of data in the SYSlog relating to no display detected - making the syslog file multiple GB in size very quickly.

Is there a way to work around this?

Post a console log of your issue below:

-rw-r-----  1 syslog            adm             8580M Jul 25 12:32 syslog
-rw-r-----  1 syslog            adm             8294M Jun 18 00:01 syslog.1
-rw-r-----  1 syslog            adm              126M Jun 13 00:00 syslog.2.gz

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: X.Org X Server 1.21.1.3
Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: X Protocol Version 11, Revision 0
Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: Current Operating System: Linux Apollo-Engine 5.4.180 #1.4.2 SMP PREEMP>
Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: Kernel command line: root=UUID=64acfb24-d636-498d-9ef3-3d9fc7af72e7 roo>
Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: xorg-server 2:21.1.3-2ubuntu2.7 (For technical support please see http:>
Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: Current version of pixman: 0.40.0
Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: #011Before reporting problems, check http://wiki.x.org
Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: #011to make sure that you have the latest version.
Jul 25 12:51:47 Apollo-Engine kernel: [  122.175667@0]  ionvid: dbg: vidioc_close
Jul 25 12:51:47 Apollo-Engine kernel: [  122.175667@0]
Jul 25 12:51:47 Apollo-Engine kernel: [  122.175847@0]  v4lvid: dbg: v4lvideo open
Jul 25 12:51:47 Apollo-Engine kernel: [  122.175866@0]  v4lvid: dbg: vidioc_close!!!!
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176037@0]  v4lvid: dbg: v4lvideo open
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176057@0]  v4lvid: dbg: vidioc_close!!!!
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176221@0]  v4lvid: dbg: v4lvideo open
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176241@0]  v4lvid: dbg: vidioc_close!!!!
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176426@0]  ionvid: dbg: vidioc_open
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176426@0]
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176445@0]  ionvid: dbg: vidioc_close!!!!
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176445@0]
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176455@0]  ionvid: dbg: vidioc_close
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176455@0]
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176636@0]  ionvid: dbg: vidioc_open
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176636@0]
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176655@0]  ionvid: dbg: vidioc_close!!!!
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176655@0]
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176664@0]  ionvid: dbg: vidioc_close
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176664@0]
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176842@0]  ionvid: dbg: vidioc_open
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176842@0]
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176861@0]  ionvid: dbg: vidioc_close!!!!
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176861@0]
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176870@0]  ionvid: dbg: vidioc_close
Jul 25 12:51:47 Apollo-Engine kernel: [  122.176870@0]
Jul 25 12:51:47 Apollo-Engine kernel: [  122.177051@0]  ionvid: dbg: vidioc_open
Jul 25 12:51:47 Apollo-Engine kernel: [  122.177051@0]
Jul 25 12:51:47 Apollo-Engine kernel: [  122.177070@0]  ionvid: dbg: vidioc_close!!!!
Jul 25 12:51:47 Apollo-Engine kernel: [  122.177070@0]
Jul 25 12:51:47 Apollo-Engine kernel: [  122.177078@0]  ionvid: dbg: vidioc_close
Jul 25 12:51:47 Apollo-Engine kernel: [  122.177078@0]
Jul 25 12:51:47 Apollo-Engine kernel: [  122.177237@0]  v4lvid: dbg: v4lvideo open
Jul 25 12:51:47 Apollo-Engine kernel: [  122.177255@0]  v4lvid: dbg: vidioc_close!!!!
Jul 25 12:51:47 Apollo-Engine kernel: [  122.177440@0]  ionvid: dbg: vidioc_open
Jul 25 12:51:47 Apollo-Engine kernel: [  122.177440@0]
Jul 25 12:51:47 Apollo-Engine kernel: [  122.177459@0]  ionvid: dbg: vidioc_close!!!!
Jul 25 12:51:47 Apollo-Engine kernel: [  122.177459@0]
Jul 25 12:51:47 Apollo-Engine kernel: [  122.177469@0]  ionvid: dbg: vidioc_close
Jul 25 12:51:47 Apollo-Engine kernel: [ 122.177469@0]

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.177678@0] ionvid: dbg: vidioc_open

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.177678@0]

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.177699@0] ionvid: dbg: vidioc_close!!!!

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.177699@0]

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.177708@0] ionvid: dbg: vidioc_close

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.177708@0]

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.177915@0] v4lvid: dbg: v4lvideo open

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.177934@0] v4lvid: dbg: vidioc_close!!!!

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.178128@0] v4lvid: dbg: v4lvideo open

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.178147@0] v4lvid: dbg: vidioc_close!!!!

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.178382@0] ionvid: dbg: vidioc_open

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.178382@0]

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.178403@0] ionvid: dbg: vidioc_close!!!!

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.178403@0]

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.178414@0] ionvid: dbg: vidioc_close

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.178414@0]

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.178648@0] v4lvid: dbg: v4lvideo open

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.178670@0] v4lvid: dbg: vidioc_close!!!!

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.178903@0] v4lvid: dbg: v4lvideo open

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.178925@0] v4lvid: dbg: vidioc_close!!!!

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: Markers: (--) probed, (**) from config file, (==) default setting,

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: #011(++) from command line, (!!) notice, (II) informational,

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: #011(WW) warning, (EE) error, (NI) not implemented, (??) unknown.

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (==) Log file: "/home/sfxadm/.local/share/xorg/Xorg.0.log", Time: Tue J>

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (==) Using system config directory "/usr/share/X11/xorg.conf.d"

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (==) No Layout section. Using the first Screen section.

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (==) No screen section available. Using defaults.

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (**) |-->Screen "Default Screen Section" (0)

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (**) | |-->Monitor "<default monitor>"

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (==) No monitor specified for screen "Default Screen Section".

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: #011Using a default monitor configuration.

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (==) Automatically adding devices

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (==) Automatically enabling devices

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (==) Automatically adding GPU devices

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (==) Automatically binding GPU devices

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (==) Max clients allowed: 256, resource mask: 0x1fffff

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: #011Entry deleted from font path.

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: #011Entry deleted from font path.

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: #011Entry deleted from font path.

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: #011Entry deleted from font path.

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: #011Entry deleted from font path.

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: #011Entry deleted from font path.

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (==) FontPath set to:

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: #011/usr/share/fonts/X11/misc,

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: #011built-ins

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (==) ModulePath set to "/usr/lib/xorg/modules"

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (II) The server relies on udev to provide the list of input devices.

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: #011If no devices become available, reconfigure udev or disable AutoAdd>

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (II) Loader magic: 0x558cb09010

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (II) Module ABI versions:

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: #011X.Org ANSI C Emulation: 0.4

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: #011X.Org Video Driver: 25.2

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: #011X.Org XInput driver : 24.4

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: #011X.Org Server Extension : 10.0

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (++) using VT number 2

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (II) systemd-logind: took control of session /org/freedesktop/login1/se>

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (II) xfree86: Adding drm device (/dev/dri/card0)

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (II) Platform probe for /sys/devices/platform/drm-subsystem/drm/card0

Jul 25 12:51:47 Apollo-Engine pipewire[1088]: spa.v4l2: '/dev/video36' VIDIOC_QUERYCTRL: Inappropriate ioctl for device

Jul 25 12:51:47 Apollo-Engine pipewire[1088]: spa.v4l2: '/dev/video36' VIDIOC_ENUM_FRAMESIZES: Inappropriate ioctl for device

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 12 paused 0

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (II) no primary bus or device found

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: #011falling back to /sys/devices/platform/drm-subsystem/drm/card0

Jul 25 12:51:47 Apollo-Engine pipewire[1088]: spa.v4l2: '/dev/video14' VIDIOC_QUERYCTRL: Inappropriate ioctl for device

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (II) LoadModule: "glx"

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (II) Loading /usr/lib/xorg/modules/extensions/libglx.so

Jul 25 12:51:47 Apollo-Engine pipewire[1088]: spa.v4l2: '/dev/video14' VIDIOC_ENUM_FRAMESIZES: Inappropriate ioctl for device

Jul 25 12:51:47 Apollo-Engine pipewire[1088]: spa.v4l2: '/dev/video21' VIDIOC_QUERYCTRL: Inappropriate ioctl for device

Jul 25 12:51:47 Apollo-Engine pipewire[1088]: spa.v4l2: '/dev/video21' VIDIOC_ENUM_FRAMESIZES: Inappropriate ioctl for device

Jul 25 12:51:47 Apollo-Engine pipewire[1088]: spa.v4l2: '/dev/video30' VIDIOC_QUERYCTRL: Inappropriate ioctl for device

Jul 25 12:51:47 Apollo-Engine pipewire[1088]: spa.v4l2: '/dev/video30' VIDIOC_ENUM_FRAMESIZES: Inappropriate ioctl for device

Jul 25 12:51:47 Apollo-Engine pipewire[1088]: spa.v4l2: '/dev/video34' VIDIOC_QUERYCTRL: Inappropriate ioctl for device

Jul 25 12:51:47 Apollo-Engine pipewire[1088]: spa.v4l2: '/dev/video34' VIDIOC_ENUM_FRAMESIZES: Inappropriate ioctl for device

Jul 25 12:51:47 Apollo-Engine pipewire[1088]: spa.v4l2: '/dev/video37' VIDIOC_QUERYCTRL: Inappropriate ioctl for device

Jul 25 12:51:47 Apollo-Engine pipewire[1088]: spa.v4l2: '/dev/video37' VIDIOC_ENUM_FRAMESIZES: Inappropriate ioctl for device

Jul 25 12:51:47 Apollo-Engine pipewire[1088]: spa.v4l2: '/dev/video19' VIDIOC_QUERYCTRL: Inappropriate ioctl for device

Jul 25 12:51:47 Apollo-Engine pipewire[1088]: spa.v4l2: '/dev/video19' VIDIOC_ENUM_FRAMESIZES: Inappropriate ioctl for device

Jul 25 12:51:47 Apollo-Engine pipewire[1088]: spa.v4l2: '/dev/video17' VIDIOC_QUERYCTRL: Inappropriate ioctl for device

Jul 25 12:51:47 Apollo-Engine pipewire[1088]: spa.v4l2: '/dev/video17' VIDIOC_ENUM_FRAMESIZES: Inappropriate ioctl for device

Jul 25 12:51:47 Apollo-Engine pipewire[1088]: spa.v4l2: '/dev/video15' VIDIOC_QUERYCTRL: Inappropriate ioctl for device

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (II) Module glx: vendor="X.Org Foundation"

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: #011compiled for 1.21.1.3, module version = 1.0.0

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: #011ABI class: X.Org Server Extension, version 10.0

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (==) Matched modesetting as autoconfigured driver 0

Jul 25 12:51:47 Apollo-Engine pipewire[1088]: spa.v4l2: '/dev/video15' VIDIOC_ENUM_FRAMESIZES: Inappropriate ioctl for device

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (==) Matched fbdev as autoconfigured driver 1

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (==) Assigned the driver to the xf86ConfigLayout

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (II) LoadModule: "modesetting"

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.184068@4] v4lvid: dbg: v4lvideo open

Jul 25 12:51:47 Apollo-Engine /usr/libexec/gdm-x-session[5706]: (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.184261@4] v4lvid: dbg: vidioc_close!!!!

Jul 25 12:51:47 Apollo-Engine kernel: [ 122.184342@4] ionvid: dbg: vidioc_open


We have the vim4 running headless, I shut down desktop manager and have not noticed what you are seeing. Also, you can go into kernel config and turn off some of the messages.

Hello @arts-projects

Which image you used? Could you provide steps to reproduce this issue?

Hi,

We used the Gnome Linux image - it has all the latest updates - though I havent yet tried a clean image - I will just to prove it.

I don’t think I have kept the original file - we image devices from oowow - Though it would have been August 22

To reporduce the issue all we have to do is disconnect a HDMI and reboot - the logging starts imediately and constantly loops. We have increased the log rotation as the result is the device runs out of disk space due to this.

We sadly cant just disable the Desktop Manager as we do require the ability to connect a HDMI in some occasions

Thanks

Andy

Hello @arts-projects

@ivan.li will help you with this issue.

@arts-projects Sorry for the late reply, try the following firmware, do you still have this problem?

Please click : http://dl.khadas.com/products/vim4/firmware/ubuntu/emmc/vim4-ubuntu-22.04-gnome-linux-5.4-fenix-1.5-230425-emmc.img.xz

Hi @ivan.li

Sorry I have been away also - hopefully I will get to download and test this next week.

Thanks

VIM4 X11 Fixup [Khadas Docs]

follow this to have a try. It could work for me, just the screen resolution is not suitable.

Hi Ivan.li,

Sorry its taken some time to get to this - I’ve done a clean install this morning and can confirm the issue still exists in this version.

Disconnect the HDMI and boot the device results in the same data being written to the syslog - also if you connect the HDMI once the device is booted it remains displaying the Khadas splash screen.

Let me know if there are some more steps we can try

Thanks

Andy

I didn’t reproduce the problem you described,as a quick fix, disable the printed lines in the source code.

https://docs.khadas.com/products/sbc/vim4/development/start

Is there a lack of power supply causing it to restart.

Hi Ivan,

There is nothing causing it to reboot just following these steps I get the issue,

Install the 230425 image using oowow,

Shut down the vim4

Disconnect the HDMI - power the vim4 back up

SSH to the device is possible - some programs run sucessfully

connect HDMI - just the Khadas logo is shown - programs and SSH continue to function - device does not reboot

Only way to get the desktop to show is to restart the device with the HDMI connected

I’ll have a look removing the lines from the syslog

Thanks

Andy