Virt-Pieter
Posts: 45
Joined: Sat Aug 15, 2015 4:16 pm

[solved] Chromium in kiosk mode on 7" display: image & cursor are offscreen

Fri Jan 29, 2021 12:02 pm

Hi guys

I have an official 7" touchscreen with a RPi 3B+ and I'm trying to create a kiosk for my home automation.
I installed latest PI OS Lite, 64-bit image (need docker) and xorg + openbox + chromium.

So far this works fine but I have just 1 minor problem: the image is a little off screen, ~30pixels maybe.
Is there a way to solve this?
TIA, Pieter
Last edited by Virt-Pieter on Mon Feb 01, 2021 10:41 am, edited 2 times in total.

stevenbowyer
Posts: 9
Joined: Wed Nov 20, 2019 6:59 pm

Re: 7" touchscreen: kiosk => image a little bigger then display

Sat Jan 30, 2021 9:02 am

Have you had a look at the overscan settings in /boot/config.txt?

Virt-Pieter
Posts: 45
Joined: Sat Aug 15, 2015 4:16 pm

Re: 7" touchscreen: kiosk => image a little bigger then display

Sat Jan 30, 2021 12:27 pm

Hi @stevenbowyer! thanks for this hint, didn't know where to begin.

I have enabled framebuffer_width & _height with the correct dimensions, that didn't make a difference.
Enabling the overscan_right (with a positive value) also didn't do anything.
As a test I have configured the left side with +100px and at the start of the boot process this setting is used/visible but during boot it gets auto corrected.

I just saw that these settings in config.txt explicitly mention "console"..
Now I'm searching in the direction of xserver (totally unknown terrain for me)

EDIT: it seems to be related to running chromium in kiosk mode.
Chromium also has display size switches and it's only when using the kiosk switch that the picture is off screen..

stevenbowyer
Posts: 9
Joined: Wed Nov 20, 2019 6:59 pm

Re: 7" touchscreen: kiosk => image a little bigger then display

Sat Jan 30, 2021 1:37 pm

If it's only Chromium in kiosk mode that exhibits the issue, I would try either using a different browser (I believe firefox-esr now has a kiosk mode), or try Chromium in non kiosk mode and use different switches to force Chromium to a specific size and position (don't think.this can be done in kiosk mode).

Virt-Pieter
Posts: 45
Joined: Sat Aug 15, 2015 4:16 pm

Re: Chromium in kiosk mode on 7" display: image & cursor are offscreen

Sat Jan 30, 2021 2:59 pm

You are right: it seems definitely to be related to using Chromium in kiosk mode... will try FF.

Do you, or anybody else, know if there are any other lightweight browsers that support kiosk mode?
The system will be only used to access the webUI of a local server, so security is not an issue.

stevenbowyer
Posts: 9
Joined: Wed Nov 20, 2019 6:59 pm

Re: Chromium in kiosk mode on 7" display: image & cursor are offscreen

Sat Jan 30, 2021 3:41 pm

Try looking at the options (the arguments section in particular) in post below before giving up on Chromium:

https://blog.r0b.io/post/minimal-rpi-kiosk/

Virt-Pieter
Posts: 45
Joined: Sat Aug 15, 2015 4:16 pm

Re: Chromium in kiosk mode on 7" display: image & cursor are offscreen

Sat Jan 30, 2021 10:12 pm

THANK YOU BIG TIME again @stevenbowyer!
That link with the chromium arguments was the solution.

I still had a problem with the cursor: the x value/distance seemed to be multiplied by 2.
By disabling (in /boot/config.txt):
#dtoverlay=vc4-fkms-v3d
#max_framebuffers=2
this also got solved

BTW: FF (is my preferred browser though) was not that straight forward at all

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 11485
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Chromium in kiosk mode on 7" display: image & cursor are offscreen

Sun Jan 31, 2021 8:35 am

Virt-Pieter wrote:
Sat Jan 30, 2021 10:12 pm
THANK YOU BIG TIME again @stevenbowyer!
That link with the chromium arguments was the solution.

I still had a problem with the cursor: the x value/distance seemed to be multiplied by 2.
By disabling (in /boot/config.txt):
#dtoverlay=vc4-fkms-v3d
#max_framebuffers=2
this also got solved

BTW: FF (is my preferred browser though) was not that straight forward at all
xinput for the touchscreen is largely independent of the display configuration.
DSI with no HDMI will enable the composite as a second screen. xinput then stretches the touch input across both display devices.

Code: Select all

xinput map-to-output raspberrypi-ts DSI-1
or similar to associate it with only a single display device.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Virt-Pieter
Posts: 45
Joined: Sat Aug 15, 2015 4:16 pm

Re: Chromium in kiosk mode on 7" display: image & cursor are offscreen

Mon Feb 01, 2021 10:41 am

Thank you @6by9 for that info!

GeekFisher
Posts: 1
Joined: Thu Jun 17, 2021 3:49 am

Re: Chromium in kiosk mode on 7" display: image & cursor are offscreen

Thu Jun 17, 2021 3:51 am

Virt-Pieter wrote:
Sat Jan 30, 2021 10:12 pm
THANK YOU BIG TIME again @stevenbowyer!
That link with the chromium arguments was the solution.

I still had a problem with the cursor: the x value/distance seemed to be multiplied by 2.
By disabling (in /boot/config.txt):
#dtoverlay=vc4-fkms-v3d
#max_framebuffers=2
this also got solved

BTW: FF (is my preferred browser though) was not that straight forward at all
I am having the same problem on a 3.5" touchscreen. Which flags did you use to correct your problem ?

Return to “Official Foundation Display”