rpi 3 b+ aarch64 archlinux xpt2046 ads7846 touchscreen

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

rpi 3 b+ aarch64 archlinux xpt2046 ads7846 touchscreen

Postby luntik2012 » Fri Jan 18, 2019 11:47 am

I have working 5 inch display, but cannot enable touchscreen in archlinux.

$this->bbcode_second_pass_code('', '
$ cat /boot/config.txt
#gpu_mem=256
#dispmanx_offline=1
#avoid_warnings=2
#dtparam=audio=on
#disable_overscan=1
#dtoverlay=vc4-kms-v3d
#cma_lwm=16
#cma_hwm=256
#cma_offline_start=16
#dtparam=spi=on
#display_rotate=3
#disable_splash=1

dtparam=i2c_arm=on
dtparam=spi=on
dtoverlay=ads7846,penirq=25,speed=10000,penirq_pull=2,xohms=150
')

replacing $this->bbcode_second_pass_quote('', 'd')toverlay=ads7846...
via $this->bbcode_second_pass_quote('', 'd')toverlay=vc4-kms-v3d
just removes some errors from dmesg, x starting with both of them.

$this->bbcode_second_pass_code('', '
$ cat /boot/cmdline.txt
root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait loglevel=6 quiet console=ttyAMA0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyAMA0,115200 elevator=noop cma=256M
')

$this->bbcode_second_pass_code('', '
$ cat /etc/X11/xorg.conf.d/99-calibration.conf
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "3853 170 288 3796"
Option "SwapAxes" "1"
EndSection
')

$this->bbcode_second_pass_code('', '
$ dmesg | grep -E "7846|ads|vc4|xpt|2046|fb"
[ 0.232948] simple-framebuffer 3eb10000.framebuffer: fb0: simplefb registered!
[ 12.612434] rc rc0: vc4 as /devices/platform/soc/3f902000.hdmi/rc/rc0
[ 12.704764] input: vc4 as /devices/platform/soc/3f902000.hdmi/rc/rc0/input0
[ 12.726935] vc4_hdmi 3f902000.hdmi: ASoC: Failed to create component debugfs directory
[ 12.780749] vc4_hdmi 3f902000.hdmi: vc4-hdmi-hifi <-> 3f902000.hdmi mapping ok
[ 12.795602] vc4_hdmi 3f902000.hdmi: ASoC: no DMI vendor name!
[ 12.806560] vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops [vc4])
[ 12.806832] vc4-drm soc:gpu: bound 3f806000.vec (ops vc4_vec_ops [vc4])
[ 12.806998] vc4-drm soc:gpu: bound 3f004000.txp (ops vc4_txp_ops [vc4])
[ 12.807175] vc4-drm soc:gpu: bound 3f400000.hvs (ops vc4_hvs_ops [vc4])
[ 12.807439] vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 12.807669] vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 12.807913] vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 12.955858] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
[ 13.004805] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
[ 13.020059] fb0: switching to vc4drmfb from simple
[ 13.036997] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
[ 13.192901] vc4-drm soc:gpu: fb0: DRM emulated frame buffer device
[ 819.729102] Modules linked in: btsdio brcmfmac brcmutil rc_cec vc4 cec rc_core microchip drm_kms_helper hci_uart drm btqca btbcm btintel cfg80211 lan78xx drm_panel_orientation_quirks syscopyarea bluetooth sysfillrect sysimgblt fb_sys_fops raspberrypi_hwmon ecdh_generic rfkill pwm_bcm2835 i2c_bcm2835 bcm2835_thermal bcm2835_wdt
')

$this->bbcode_second_pass_code('', '
# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: vc4
Select the device event number [0-0]: 0
Input driver version is 1.0.1
Input device ID: bus 0x1e vendor 0x0 product 0x0 version 0x1
Input device name: "vc4"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 1 (KEY_ESC)
Event code 2 (KEY_1)
Event code 3 (KEY_2)
................ many codes ................
Event type 2 (EV_REL)
Event code 0 (REL_X)
Event code 1 (REL_Y)
Event type 4 (EV_MSC)
Event code 4 (MSC_SCAN)
Key repeat handling:
Repeat type 20 (EV_REP)
Repeat code 0 (REP_DELAY)
Value 0
Repeat code 1 (REP_PERIOD)
Value 125
Properties:
Testing ... (interrupt to exit)
')

$this->bbcode_second_pass_code('', '
# xinput_calibrator --list
No calibratable devices found.
')

nothing happening when touching display. i think i've installed all possible packages from repos and aur.
btw, there is no /opt/vc directory in aarch64 image.
so question is: how to run 5 inch xpt2046 touchscreen in aarch64 archlinux on rpi 3 b+?
it's running using ads7846 in raspbian, but ads7846 does nothing in archlinux
luntik2012
 
Posts: 1
Joined: Fri Jan 18, 2019 9:38 am

Return to ARMv8

Who is online

Users browsing this forum: No registered users and 10 guests