Hi All,
I recently got my hands on a PiTFT display. Its this model ( https://www.adafruit.com/product/2097 ) - 3.5" 480x320 Restive Touch.
My Goal : Create a small interface to display / pilot some of the applications I’m running through resin on this Pi. Since I’m not a coding expert, I’ve headed the nodeJS / JS way as this is a language I have the most knowledge off. And also happens to be the language the app running on my resin Pis is dev’d in.
Initially I was looking into getting it to work with WPE. https://github.com/resin-io-playground/resin-wpe
But upon recommendation, I’ve changed my mind to use ElectronJS instead. Starting off with getting the boilerplate operational. => https://github.com/resin-io/resin-electronjs/
So To start simple, I’ve set the Env. Variable URL_LAUNCHER_URL to a URL. To display that page onto the PiTFT. It works on the HDMI screen I also connected, but the PiTFT stays turned on, but blank (white screen).
I’ve looked also at Adafruit’s FAQ, trying out their recommendations : https://learn.adafruit.com/adafruit-pitft-3-dot-5-touch-screen-for-raspberry-pi/faq?view=all
In my config.txt I have :
dtparam=spi=on
dtparam=i2c1=on
dtparam=i2c_arm=on
dtoverlay=pitft35r,rotate=90,speed=42000000,fps=20
gpu_mem=160
I tried several variations of settings in the config.txt but couldn’t figure out anything that worked.
In my console on resin I a have :
29.11.17 11:17:59 (+0800) Systemd init system enabled.
29.11.17 11:17:59 (+0800) systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
29.11.17 11:17:59 (+0800) Detected virtualization 'other'.
29.11.17 11:17:59 (+0800) Detected architecture 'arm'.
29.11.17 11:17:59 (+0800) Set hostname to <0578e5e>.
29.11.17 11:18:02 (+0800) hostname: No address associated with hostname
29.11.17 11:18:02 (+0800) xauth: file /root/.Xauthority does not exist
29.11.17 11:18:02 (+0800) xauth: (stdin):1: bad display name "0578e5e:0" in "add" command
29.11.17 11:18:02 (+0800)
29.11.17 11:18:02 (+0800)
29.11.17 11:18:02 (+0800) X.Org X Server 1.18.4
29.11.17 11:18:02 (+0800) Release Date: 2016-07-19
29.11.17 11:18:02 (+0800) X Protocol Version 11, Revision 0
29.11.17 11:18:02 (+0800) Build Operating System: Linux 4.4.26-v7+ armv7l Raspbian
29.11.17 11:18:02 (+0800) Current Operating System: Linux 0578e5e 4.9.50 #2 SMP Wed Nov 1 16:03:39 UTC 2017 armv7l
29.11.17 11:18:02 (+0800) Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=null root=/dev/mmcblk0p2 rootfstype=ext4 rootwait vt.global_cursor_default=0
29.11.17 11:18:02 (+0800) Build Date: 11 November 2016 11:59:59AM
29.11.17 11:18:02 (+0800) xorg-server 2:1.18.4-2+rpi1 (https://www.debian.org/support)
29.11.17 11:18:02 (+0800) Current version of pixman: 0.33.3
29.11.17 11:18:02 (+0800) Before reporting problems, check http://wiki.x.org
29.11.17 11:18:02 (+0800) to make sure that you have the latest version.
29.11.17 11:18:02 (+0800) Markers: (--) probed, (**) from config file, (==) default setting,
29.11.17 11:18:02 (+0800) (++) from command line, (!!) notice, (II) informational,
29.11.17 11:18:02 (+0800) (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
29.11.17 11:18:02 (+0800) (==) Log file: "/var/log/Xorg.0.log", Time: Wed Nov 29 03:18:02 2017
29.11.17 11:18:02 (+0800) (==) Using system config directory "/usr/share/X11/xorg.conf.d"
29.11.17 11:18:11 (+0800) [212:1129/031811.431368:WARNING:audio_manager.cc(295)] Multiple instances of AudioManager detected
29.11.17 11:18:11 (+0800) [212:1129/031811.431845:WARNING:audio_manager.cc(254)] Multiple instances of AudioManager detected
29.11.17 11:18:12 (+0800) [235:1129/031812.174771:ERROR:sandbox_linux.cc(343)] InitializeSandbox() called with multiple threads in process gpu-process.
29.11.17 11:18:15 (+0800) [212:1129/031815.374899:ERROR:object_proxy.cc(583)] Failed to call method:org.freedesktop.NetworkManager.GetDevices: object_path= /org/freedesktop/NetworkManager: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.NetworkManager was not provided by any .service files
29.11.17 11:18:15 (+0800) [212:1129/031815.375035:WARNING:wifi_data_provider_linux.cc(183)] Failed to get the device list
I probably missed something simple somewhere. I’m looking forward to your feedbacks!