Issues with Kiosk mode

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
parallacks
Posts: 5
Joined: Mon May 31, 2021 9:19 pm

Issues with Kiosk mode

Post by parallacks »

Hey all,
Just getting into dietpi for a small project and I'm trying to start up in Kiosk mode but I've run into an issue. I don't really know what's going on but my googling hasn't gotten me anywhere so I'm hoping I can get some help here.
Here is the log that the X server is outputting.

Code: Select all

[    43.099]
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
[    43.101] Build Operating System: Linux 5.10.17-v8+ aarch64 Raspbian
[    43.101] Current Operating System: Linux DietPi 5.10.17+ #1421 Thu May 27 13:58:02 BST 2021 armv6l
[    43.102] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:59:7B:69 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  console=tty1 root=PARTUUID=e8af6eb2-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet net.ifnames=0
[    43.104] Build Date: 19 April 2021  03:23:36PM
[    43.105] xorg-server 2:1.20.4-1+rpt3+deb10u3 (https://www.debian.org/support)
[    43.105] Current version of pixman: 0.36.0
[    43.106]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[    43.106] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    43.109] (==) Log file: "/home/dietpi/.local/share/xorg/Xorg.0.log", Time: Mon May 31 20:11:27 2021
[    43.175] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    43.175] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    43.188] (==) No Layout section.  Using the first Screen section.
[    43.188] (==) No screen section available. Using defaults.
[    43.188] (**) |-->Screen "Default Screen Section" (0)
[    43.188] (**) |   |-->Monitor "<default monitor>"
[    43.204] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[    43.204] (**) Option "BlankTime" "0"
[    43.205] (==) Automatically adding devices
[    43.205] (==) Automatically enabling devices
[    43.205] (==) Automatically adding GPU devices
[    43.218] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    43.241] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    43.241]    Entry deleted from font path.
[    43.242] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    43.242]    Entry deleted from font path.
[    43.242] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    43.242]    Entry deleted from font path.
[    43.242] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
[    43.243]    Entry deleted from font path.
[    43.243] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    43.243]    Entry deleted from font path.
[    43.243] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    43.243]    Entry deleted from font path.
[    43.243] (==) FontPath set to:
        /usr/share/fonts/X11/misc,
        built-ins
[    43.244] (==) ModulePath set to "/usr/lib/xorg/modules"
[    43.244] (**) Extension "DPMS" is disabled
[    43.244] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[    43.244] (II) Loader magic: 0x1fdf80
[    43.244] (II) Module ABI versions:
[    43.244]    X.Org ANSI C Emulation: 0.4
[    43.245]    X.Org Video Driver: 24.0
[    43.245]    X.Org XInput driver : 24.1
[    43.245]    X.Org Server Extension : 10.0
[    43.278] (EE) systemd-logind: failed to get session: PID 426 does not belong to any known session
[    43.280] (II) no primary bus or device found
[    43.280] (II) LoadModule: "glx"
[    43.290] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    43.517] (II) Module glx: vendor="X.Org Foundation"
[    43.517]    compiled for 1.20.4, module version = 1.0.0
[    43.518]    ABI class: X.Org Server Extension, version 10.0
[    43.518] (==) Matched modesetting as autoconfigured driver 0
[    43.518] (==) Matched fbdev as autoconfigured driver 1
[    43.518] (==) Assigned the driver to the xf86ConfigLayout
[    43.519] (II) LoadModule: "modesetting"
[    43.536] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    43.581] (II) Module modesetting: vendor="X.Org Foundation"
[    43.581]    compiled for 1.20.4, module version = 1.20.4
[    43.581]    Module class: X.Org Video Driver
[    43.582]    ABI class: X.Org Video Driver, version 24.0
[    43.582] (II) LoadModule: "fbdev"
[    43.583] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[    43.609] (II) Module fbdev: vendor="X.Org Foundation"
[    43.610]    compiled for 1.20.3, module version = 0.5.0
[    43.610]    Module class: X.Org Video Driver
[    43.610]    ABI class: X.Org Video Driver, version 24.0
[    43.610] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    43.611] (II) FBDEV: driver for framebuffer: fbdev
[    43.611] (EE)
Fatal server error:
[    43.612] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
[    43.613] (EE)
[    43.613] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[    43.614] (EE) Please also check the log file at "/home/dietpi/.local/share/xorg/Xorg.0.log" for additional information.
[    43.623] (EE)
[    43.624] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[    43.626] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[    43.626] (EE) Server terminated with error (1). Closing log file.
I've never tried this before but it looks like its not getting the access it needs for /dev/tty0?
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: Issues with Kiosk mode

Post by Joulinar »

Hi,

Which user you are using to run in kiosk mode? What is your DietPi version?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
parallacks
Posts: 5
Joined: Mon May 31, 2021 9:19 pm

Re: Issues with Kiosk mode

Post by parallacks »

I'm using the default dietpi user. I'm using the most recent dietpi version for raspberry pi running on a pi zero W
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: Issues with Kiosk mode

Post by Joulinar »

Did you already updated to latest 7.2? As well you could use user root to start kiosk mode
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
parallacks
Posts: 5
Joined: Mon May 31, 2021 9:19 pm

Re: Issues with Kiosk mode

Post by parallacks »

Yep its 7.2.3. I just set it up to use the root user and it worked. I'll probably just stick with that. It is about half the size of the screen currently. That's another problem entirely that I can work on but if you know off the top of your head that'd be nice. Thanks so much for your help I don't know why I didn't think to try it on the root user.
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: Issues with Kiosk mode

Post by Joulinar »

Hi,

you can have a look to /boot/dietpi.txt. Close to the bottom you have following section

Code: Select all

# Chromium
SOFTWARE_CHROMIUM_RES_X=1024
SOFTWARE_CHROMIUM_RES_Y=768
SOFTWARE_CHROMIUM_AUTOSTART_URL=https://dietpi.com
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
parallacks
Posts: 5
Joined: Mon May 31, 2021 9:19 pm

Re: Issues with Kiosk mode

Post by parallacks »

That was it! Thanks again for your help I really appreciate it :D
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: Issues with Kiosk mode

Post by Joulinar »

Hi,

ok good. There will be some improvement on next release 7.3 https://github.com/MichaIng/DietPi/issues/4379
At least that's the plan ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
parallacks
Posts: 5
Joined: Mon May 31, 2021 9:19 pm

Re: Issues with Kiosk mode

Post by parallacks »

Awesome, I'm looking forward to it! Is there documentation on other settings that can be changed? The last couple things I'm trying to fix are just minor things. Hiding the mouse and the scroll bar.
I know you can do it in the commandline version of starting kiosk mode but I'm wondering if I can use the autostart version and not have to worry about a custom script.
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: Issues with Kiosk mode

Post by Joulinar »

there is an older discussion on how to hide the mouse. https://github.com/MichaIng/DietPi/issues/2575
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply