Pi TFT 2.8" Touchscreen: no /dev/input/touchscreen

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
reko1nsidered
 
Posts: 1
Joined: Sat May 03, 2014 6:07 pm

Pi TFT 2.8" Touchscreen: no /dev/input/touchscreen

Post by reko1nsidered »

I have followed the tutorial for the Pi TFT 2.8" Touchscreen, and I am able to get an x session going on the LCD screen, but touchscreen isn't working at all (and nothing shows up in /dev/input/ named touchscreen). I've been trying to look around for advice/troubleshooting tips, but have been unable to find any. Any help is greatly appreciated.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Pi TFT 2.8" Touchscreen: no /dev/input/touchscreen

Post by adafruit_support_rick »

What version of the OS have you got running?

jeremyj5000
 
Posts: 3
Joined: Sat Jul 26, 2014 3:41 pm

Re: Pi TFT 2.8" Touchscreen: no /dev/input/touchscreen

Post by jeremyj5000 »

Not sure if anyone is still watching this thread, but I could use the same help. I have no /DEV/Touchscreen folder, and thus nothing in it. I can get the pitft to turn on and auto load and it works fine with a mouse, but I can't get it the touchscreen to work or anything to load to that directory (which makes sense, since it isn't there). I am running Linux raspberrypi 3.15.3+ #12 PREEMPT from JUL 3 2014.

Any assistance would be greatly appreciated.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Pi TFT 2.8" Touchscreen: no /dev/input/touchscreen

Post by adafruit_support_rick »

What happens if you run
ls -l /dev/input/touchscreen

You created the file /etc/udev/rules.d/95-stmpe.rules? Can you post the content of that file?

jeremyj5000
 
Posts: 3
Joined: Sat Jul 26, 2014 3:41 pm

Re: Pi TFT 2.8" Touchscreen: no /dev/input/touchscreen

Post by jeremyj5000 »

Actually, what happened was that I found that the flex had come ever so slightly loose. I completely reseated it from the back of the board and the next time I booted it made the directory and the Pi is now seeing it as an input device.

Thanks for the quick response though!

jeremyj5000
 
Posts: 3
Joined: Sat Jul 26, 2014 3:41 pm

Re: Pi TFT 2.8" Touchscreen: no /dev/input/touchscreen

Post by jeremyj5000 »

So I lied. It stopped working again the next time it booted. The contents of my 95-stmpe.rules file is

SUBSYSTEM=="INPUT", ATTRS{name}=="stmpe-ts", ENV{DEVNAME}=="*event*", SYMLINK+="input/touchscreen"

I checked the flex, it's tight, and rechecked the solder joints, they are good. Wondering if there is something that I am missing? The screen loads fine, and all other functions work, I just can't get it to see it as a touchscreen input.

Thanks for any help.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Pi TFT 2.8" Touchscreen: no /dev/input/touchscreen

Post by adafruit_support_rick »

Can you post a clear picture of the solders anyway, just so we can double-check.

User avatar
adafruit2
 
Posts: 22187
Joined: Fri Mar 11, 2005 7:36 pm

Re: Pi TFT 2.8" Touchscreen: no /dev/input/touchscreen

Post by adafruit2 »

Can you post up the output from
sudo dmesg
especially the part near the endish where it talks about loading the adafruit TFT kernel modules.

User avatar
grimtims
 
Posts: 3
Joined: Tue Aug 19, 2014 12:08 pm

Re: Pi TFT 2.8" Touchscreen: no /dev/input/touchscreen

Post by grimtims »

Hi there I am having the same issue, /dev/input/touchscreen does not show up, all connections are good, here is dmesg

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.34+ (pi@raspi2) (gcc version 4.7.1 20120402 (prerelease) (crosstool-NG 1.15.2) ) #1 PREEMPT Fri Mar 28 20:10:54 CET 2014
[ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: BCM2708
[ 0.000000] cma: CMA: reserved 16 MiB at 1b000000
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 114688
[ 0.000000] free_area_init_node: node 0, pgdat c06075f4, node_mem_map c06b8000
[ 0.000000] Normal zone: 896 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 114688 pages, LIFO batch:31
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 113792
[ 0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0xe bcm2708.serial=0xb9f54902 smsc95xx.macaddr=B8:27:EB:F5:49:02 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbtft_device.name=pitft fbtft_device.rotate=90 fbtft_device.debug=0 fbtft_device.verbose=0 fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 448MB = 448MB total
[ 0.000000] Memory: 431416k/431416k available, 27336k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xdc800000 - 0xff000000 ( 552 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xdc000000 ( 448 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc05a0568 (5730 kB)
[ 0.000000] .init : 0xc05a1000 - 0xc05c62e4 ( 149 kB)
[ 0.000000] .data : 0xc05c8000 - 0xc06080f0 ( 257 kB)
[ 0.000000] .bss : 0xc06080f0 - 0xc06b7620 ( 702 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:394
[ 0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[ 0.000000] Switching to timer-based delay loop
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [tty1] enabled
[ 0.001182] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[ 0.001244] pid_max: default: 32768 minimum: 301
[ 0.001737] Mount-cache hash table entries: 512
[ 0.002541] Initializing cgroup subsys memory
[ 0.002648] Initializing cgroup subsys devices
[ 0.002685] Initializing cgroup subsys freezer
[ 0.002716] Initializing cgroup subsys blkio
[ 0.002877] CPU: Testing write buffer coherency: ok
[ 0.003332] Setting up static identity map for 0xc0421030 - 0xc042108c
[ 0.005117] devtmpfs: initialized
[ 0.024346] NET: Registered protocol family 16
[ 0.030623] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[ 0.032038] bcm2708.uart_clock = 0
[ 0.033836] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 0.033893] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.033929] mailbox: Broadcom VideoCore Mailbox driver
[ 0.034029] bcm2708_vcio: mailbox at f200b880
[ 0.034136] bcm_power: Broadcom power driver
[ 0.034174] bcm_power_open() -> 0
[ 0.034200] bcm_power_request(0, 8)
[ 0.534918] bcm_mailbox_read -> 00000080, 0
[ 0.534961] bcm_power_request -> 0
[ 0.535222] Serial: AMBA PL011 UART driver
[ 0.535382] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
[ 0.885916] console [ttyAMA0] enabled
[ 0.912375] bio: create slab <bio-0> at 0
[ 0.917865] SCSI subsystem initialized
[ 0.921838] usbcore: registered new interface driver usbfs
[ 0.927543] usbcore: registered new interface driver hub
[ 0.933104] usbcore: registered new device driver usb
[ 0.939974] Switching to clocksource stc
[ 0.944328] FS-Cache: Loaded
[ 0.947512] CacheFiles: Loaded
[ 0.963052] NET: Registered protocol family 2
[ 0.968463] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.975731] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.982255] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.988737] TCP: reno registered
[ 0.991994] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.997903] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 1.004653] NET: Registered protocol family 1
[ 1.009576] RPC: Registered named UNIX socket transport module.
[ 1.015636] RPC: Registered udp transport module.
[ 1.020360] RPC: Registered tcp transport module.
[ 1.025108] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.032767] bcm2708_dma: DMA manager at f2007000
[ 1.037588] bcm2708_gpio: bcm2708_gpio_probe c05d5f10
[ 1.043060] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[ 1.052494] audit: initializing netlink socket (disabled)
[ 1.058167] type=2000 audit(0.900:1): initialized
[ 1.224109] VFS: Disk quotas dquot_6.5.2
[ 1.228387] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 1.237249] FS-Cache: Netfs 'nfs' registered for caching
[ 1.243925] NFS: Registering the id_resolver key type
[ 1.249221] Key type id_resolver registered
[ 1.253429] Key type id_legacy registered
[ 1.258210] msgmni has been set to 874
[ 1.264181] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 1.271949] io scheduler noop registered
[ 1.276033] io scheduler deadline registered (default)
[ 1.281533] io scheduler cfq registered
[ 1.286934] BCM2708FB: allocated DMA memory 5b400000
[ 1.291986] BCM2708FB: allocated DMA channel 0 @ f2007000
[ 1.317894] Console: switching to colour frame buffer device 109x37
[ 1.330128] uart-pl011 dev:f1: no DMA platform data
[ 1.335228] kgdb: Registered I/O driver kgdboc.
[ 1.340487] vc-cma: Videocore CMA driver
[ 1.344563] vc-cma: vc_cma_base = 0x00000000
[ 1.349343] vc-cma: vc_cma_size = 0x00000000 (0 MiB)
[ 1.354904] vc-cma: vc_cma_initial = 0x00000000 (0 MiB)
[ 1.369497] brd: module loaded
[ 1.379733] loop: module loaded
[ 1.385256] vchiq: vchiq_init_state: slot_zero = 0xdb000000, is_master = 0
[ 1.395158] Loading iSCSI transport class v2.0-870.
[ 1.403653] bcm2708_spi bcm2708_spi.0: DMA channel 2 at address 0xf2007200 with irq 77
[ 1.413925] bcm2708_spi bcm2708_spi.0: DMA channel 4 at address 0xf2007400 with irq 20
[ 1.698204] graphics fb1: fb_ili9340 frame buffer, 320x240, 150 KiB video memory, 4 KiB DMA buffer memory, fps=20, spi0.0 at 32 MHz
[ 1.713262] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80)
[ 1.722613] bcm2708_spi bcm2708_spi.0: SPI Controller running in dma mode
[ 1.731867] CAN device driver interface
[ 1.737174] usbcore: registered new interface driver smsc95xx
[ 1.745619] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 1.954581] Core Release: 2.80a
[ 1.959013] Setting default values for core params
[ 1.965181] Finished setting default values for core params
[ 2.173519] Using Buffer DMA mode
[ 2.178231] Periodic Transfer Interrupt Enhancement - disabled
[ 2.186596] Multiprocessor Interrupt Enhancement - disabled
[ 2.194893] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 2.200613] Dedicated Tx FIFOs mode
[ 2.206009] dwc_otg: Microframe scheduler enabled
[ 2.206247] dwc_otg bcm2708_usb: DWC OTG Controller
[ 2.213779] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[ 2.224053] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[ 2.232347] Init: Port Power? op_state=1
[ 2.237798] Init: Power Port (0)
[ 2.242569] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 2.252134] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.262181] usb usb1: Product: DWC OTG Controller
[ 2.268441] usb usb1: Manufacturer: Linux 3.10.34+ dwc_otg_hcd
[ 2.277106] usb usb1: SerialNumber: bcm2708_usb
[ 2.283935] hub 1-0:1.0: USB hub found
[ 2.289333] hub 1-0:1.0: 1 port detected
[ 2.295249] dwc_otg: FIQ enabled
[ 2.295268] dwc_otg: NAK holdoff enabled
[ 2.295277] dwc_otg: FIQ split fix enabled
[ 2.295295] Module dwc_common_port init
[ 2.295750] usbcore: registered new interface driver usb-storage
[ 2.304929] mousedev: PS/2 mouse device common for all mice
[ 2.313909] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[ 2.322592] bcm2835-cpufreq: switching to governor powersave
[ 2.331053] bcm2835-cpufreq: switching to governor powersave
[ 2.339551] cpuidle: using governor ladder
[ 2.345240] cpuidle: using governor menu
[ 2.350695] sdhci: Secure Digital Host Controller Interface driver
[ 2.359597] sdhci: Copyright(c) Pierre Ossman
[ 2.365544] sdhci: Enable low-latency mode
[ 2.414044] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[ 2.424819] mmc0: BCM2708 SDHC host at 0x20300000 DMA 5 IRQ 21
[ 2.433577] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.444229] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.460604] hidraw: raw HID events driver (C) Jiri Kosina
[ 2.471367] usbcore: registered new interface driver usbhid
[ 2.481860] usbhid: USB HID core driver
[ 2.492143] TCP: cubic registered
[ 2.500398] Indeed it is in host mode hprt0 = 00021501
[ 2.508264] Initializing XFRM netlink socket
[ 2.519132] NET: Registered protocol family 17
[ 2.532059] can: controller area network core (rev 20120528 abi 9)
[ 2.557635] NET: Registered protocol family 29
[ 2.565560] mmc0: read SD Status register (SSR) after 2 attempts
[ 2.580165] can: netlink gateway (rev 20130117) max_hops=1
[ 2.596308] mmc0: new SDHC card at address aaaa
[ 2.604983] Key type dns_resolver registered
[ 2.615806] mmcblk0: mmc0:aaaa SU04G 3.69 GiB
[ 2.624863] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[ 2.640577] mmcblk0: p1 p2
[ 2.654921] registered taskstats version 1
[ 2.774076] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 2.783364] Indeed it is in host mode hprt0 = 00001101
[ 2.862585] EXT4-fs (mmcblk0p2): recovery complete
[ 2.876872] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.894892] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 2.905266] devtmpfs: mounted
[ 2.910330] Freeing unused kernel memory: 148K (c05a1000 - c05c6000)
[ 3.034845] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[ 3.046306] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.058034] hub 1-1:1.0: USB hub found
[ 3.063593] hub 1-1:1.0: 5 ports detected
[ 3.344250] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 3.454949] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 3.464659] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.478896] smsc95xx v1.0.4
[ 3.549594] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:f5:49:02
[ 3.644303] usb 1-1.2: new low-speed USB device number 4 using dwc_otg
[ 3.772517] usb 1-1.2: New USB device found, idVendor=03f0, idProduct=0324
[ 3.784770] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3.795127] usb 1-1.2: Product: HP Basic USB Keyboard
[ 3.807198] usb 1-1.2: Manufacturer: Lite-On Technology Corp.
[ 3.837293] input: Lite-On Technology Corp. HP Basic USB Keyboard as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0/input/input0
[ 3.875833] hid-generic 0003:03F0:0324.0001: input,hidraw0: USB HID v1.10 Keyboard [Lite-On Technology Corp. HP Basic USB Keyboard] on usb-bcm2708_usb-1.2/input0
[ 4.014370] usb 1-1.3: new low-speed USB device number 5 using dwc_otg
[ 4.137694] usb 1-1.3: New USB device found, idVendor=046d, idProduct=c03d
[ 4.147774] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 4.158314] usb 1-1.3: Product: USB-PS/2 Optical Mouse
[ 4.166505] usb 1-1.3: Manufacturer: Logitech
[ 4.187330] input: Logitech USB-PS/2 Optical Mouse as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0/input/input1
[ 4.203683] hid-generic 0003:046D:C03D.0002: input,hidraw1: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-bcm2708_usb-1.3/input0
[ 4.894279] udevd[157]: starting version 175
[ 6.994362] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory
[ 10.721990] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 11.277074] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 12.093421] stmpe-spi spi0.1: unknown chip id: 0x0
[ 12.104678] stmpe-spi: probe of spi0.1 failed with error -22
[ 12.350952] gpio-backlight gpio-backlight.0: unable to request GPIO
[ 12.371795] platform gpio-backlight.0: Driver gpio-backlight requests probe deferral
[ 17.272207] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 19.767983] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 21.430900] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 25.846938] Adding 102396k swap on /var/swap. Priority:-1 extents:2 across:2723836k SSFS

User avatar
adafruit2
 
Posts: 22187
Joined: Fri Mar 11, 2005 7:36 pm

Re: Pi TFT 2.8" Touchscreen: no /dev/input/touchscreen

Post by adafruit2 »

grim, we need more details - what kind of raspi, how did you add pitft support, etc.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Pi TFT 2.8" Touchscreen: no /dev/input/touchscreen

Post by adafruit_support_rick »

Also, Please post clear, detailed pictures of PiTFT, showing your soldering.

User avatar
grimtims
 
Posts: 3
Joined: Tue Aug 19, 2014 12:08 pm

Re: Pi TFT 2.8" Touchscreen: no /dev/input/touchscreen

Post by grimtims »

It is the Raspberry Pi B Rev 2 , I bought it from Adafruit about 3 months ago. I have the PiTFT capacitive touch version on it. First I tried to install the new kernel over my existing version of raspbian (which was the newest version of Raspbian at the time 3 mounths ago). I received the problem stated above, the display worked fine but I could not get the touchscreen to work. I then formatted the SD card and installed the latest version of Raspbian that was PiTFT ready (the one in the tutorial page). I noticed that when I tried in both the instances I mentioned the dmesg showed:

[ 12.093421] stmpe-spi spi0.1: unknown chip id: 0x0
[ 12.104678] stmpe-spi: probe of spi0.1 failed with error -22

Attached are the photos (sorry for the bad quality, not the best phone), any point in the right direction would be greatly appreciated. Thanks.
PiTFT Flex Connector.jpg
PiTFT Flex Connector.jpg (246.75 KiB) Viewed 2263 times
GPIO Solder Joints.jpg
GPIO Solder Joints.jpg (296.47 KiB) Viewed 2263 times

User avatar
adafruit2
 
Posts: 22187
Joined: Fri Mar 11, 2005 7:36 pm

Re: Pi TFT 2.8" Touchscreen: no /dev/input/touchscreen

Post by adafruit2 »

you're trying to install the resistive software on a capacitive screen. start over and *only* follow the capacitive pitft tutorial here
https://learn.adafruit.com/adafruit-2-8 ... tive-touch

User avatar
grimtims
 
Posts: 3
Joined: Tue Aug 19, 2014 12:08 pm

Re: Pi TFT 2.8" Touchscreen: no /dev/input/touchscreen

Post by grimtims »

I guess I just got caught up in the the parts that were identical to the resistive touchscreen and forgot to go back to the original tutorial, but this time it worked, thanks!

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”