[PLUGIN] Touch Display

this?
volumio@volumio:~$ sudo ls -al /sys/class/backlight

[sudo] password for volumio:

voSorry, try again.

[sudo] password for volumio:

total 0

drwxr-xr-x 2 root root 0 May 13 19:29 .

drwxr-xr-x 64 root root 0 Jan 1 1970 …

lrwxrwxrwx 1 root root 0 May 13 19:29 fb_ili9486 → …/…/devices/platform/soc/fe204000.spi/spi_master/spi0/spi0.0/backlight/fb_ili9486

Thanks!
I can see brightnet settings on plugins config settings so I will try it.
Regards C

@nadirfly Regarding the touch function: The display has no ADS7846 touch controller but an XPT2046. Please try removing all entries from your “/boot/userconfig.txt” except dtparam=spi=on.

Interesting… please additionally post the the output of

sudo ls -al /sys/devices/platform/soc/fe204000.spi/spi_master/spi0/spi0.0/backlight/fb_ili9486

sudo ls -al /sys/devices/platform/soc/fe204000.spi/spi_master/spi0/spi0.0/backlight/fb_ili9486
ls: cannot access ‘/sys/devices/platform/soc/fe204000.spi/spi_master/spi0/spi0.0/backlight/fb_ili9486’: No such file or directory

now after editing the config.txt file I no longer have the brightness adjustment

… and no longer the error message, I guess?

no! but touch not work

this is my display…
and there’s the backlight adjust

i opened the box :slight_smile:

Well, this is not the display you confirmed to me before. :slightly_frowning_face: Instead your display seems to be this one.

i’m desolate.
yes is this 3.5inch HDMI Display-B - LCD wiki

That display has an ADS7846 touch controller… so you would probably have to add the ads7846 overlay and its params back to your “/boot/userconfig.txt”. After that please again execute

sudo ls -al /sys/devices/platform/soc/fe204000.spi/spi_master/spi0/spi0.0/backlight/fb_ili9486

and post the result.

@nadirfly Please add

dtoverlay=vc4-kms-v3d-pi4

to your “/boot/userconfig.txt”, too.

total 0
drwxr-xr-x 3 root root 0 May 13 20:04 .
drwxr-xr-x 3 root root 0 May 13 20:04 …
-r–r–r-- 1 root root 4096 May 13 20:58 actual_brightness
-rw-rw-rw- 1 root root 4096 May 13 20:04 bl_power
-rw-rw-rw- 1 root root 4096 May 13 20:05 brightness
lrwxrwxrwx 1 root root 0 May 13 20:58 device → …/…/…/spi0.0
-r–r–r-- 1 root root 4096 May 13 20:58 display_name
-r–r–r-- 1 root root 4096 May 13 20:04 max_brightness
drwxr-xr-x 2 root root 0 May 13 20:04 power
-r–r–r-- 1 root root 4096 May 13 20:58 scale
lrwxrwxrwx 1 root root 0 May 13 20:04 subsystem → …/…/…/…/…/…/…/…/…/class/backlight
-r–r–r-- 1 root root 4096 May 13 20:58 type
-rw-r–r-- 1 root root 4096 May 13 20:04 uevent

Does the error message still occur?

Did you already add

dtoverlay=vc4-kms-v3d-pi4

to “/boot/userconfig.txt” and does that help with the touch function?

this is my file now… the error is gone… but the touch not work!

dtparam=spi=on

dtoverlay=vc4-kms-v3d-pi4

#dtoverlay=ads7846

#dtparam=cs=1

#dtparam=penirq=25

#dtparam=penirq_pull=2

#dtparam=speed=50000

#dtparam=swapxy=0

#dtparam=pmax=255

#dtparam=xohms=150

#dtparam=xmin=200

#dtparam=xmax=3900

#dtparam=ymin=200

#dtparam=ymax=3900

Add your custom config.txt options to this file, which will be preserved duri$

#dtoverlay=piscreen,speed=16000000,rotate=90

Try with

dtparam=spi=on
dtoverlay=vc4-kms-v3d-pi4
dtoverlay=ads7846
dtparam=cs=1
dtparam=penirq=25
dtparam=penirq_pull=2
dtparam=speed=50000
dtparam=swapxy=0
dtparam=pmax=255
dtparam=xohms=150
dtparam=xmin=200
dtparam=xmax=3900
dtparam=ymin=200
dtparam=ymax=3900

i don’t know… but this touch don’t wont run!

Does this imply that the touch function does not work with the settings from my previous post?

tomorrow i’ll try ex-novo installation with this repo from start