Author Topic: NHD-7.0CTP-CAPE use touch screen in portrait mode?  (Read 409 times)

Arnie

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
NHD-7.0CTP-CAPE use touch screen in portrait mode?
« on: December 14, 2017, 02:30:15 AM »
Greetings,

I have here NHD-7.0CTP-CAPE with BeagleBone Black and the Ubuntu 14.03-3.8 image up and running ok. I can rotate the display in xorg.conf.d ebdev.conf to portrait mode, but the touchscreen is not rotated. This is regardless of the options set in xorg.conf.d evdev.conf. What could be wrong here?

evdev.conf:

Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
#        Option "Rotate" "CCW"
#        Option "InvX"
#        Option "InvY"
#        Option "SwapAxes" "true"
#        Option "InvertX" "true"
#        Option "InvertY" "true"
#        Option "GrabDevice" "true"
EndSection


mhall

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: NHD-7.0CTP-CAPE use touch screen in portrait mode?
« Reply #1 on: January 24, 2018, 02:08:05 AM »
Hi Arnie,

Running Debian 9.1 on BB Black , I found the same as you. But if you add the TransformatinMatrix option it does rotate the Touch.
I found this solution in the past for the RPi3.  This transformation works well for CW rotation.
 
For BeagleBone TourchScreen rotation : add or change this 40-libinput.conf file (/usr/share/X11/xorg.conf.d/40-....)

Section "InputClass"
        Identifier "libinput touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
#       Option "SwapAxes" "true"
#       Option "RotationAngle" "90.0"
        Option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1"
EndSection

Hope it helps.

 

NHD‐3.5‐320240MF‐ATXL#‐CTP‐1 Problem with standby mode

Started by guenterBoard TFTs

Replies: 0
Views: 2373
Last post June 16, 2016, 12:14:36 PM
by guenter
NHD‐3.5‐320240MF‐ATXL#‐T‐1 Touch Signal

Started by jmasamotoBoard TFTs

Replies: 1
Views: 2592
Last post February 05, 2016, 08:05:40 AM
by Paul_B
NHD-0420H1Z-FL-GBW-33V3 pull-ups and pull-downs in 4 bit mode

Started by richardwrightBoard Character LCDs

Replies: 3
Views: 3489
Last post December 15, 2014, 05:12:27 PM
by Michael_L
NHD0420CW-A*3 tHREE LINE MODE, MIDDLE LINE DOUBLE HEIGHT

Started by wb2dybBoard OLEDs

Replies: 3
Views: 3572
Last post July 01, 2015, 09:49:46 AM
by Paul_B
NHD-5.0-800480TF-ATXL#-T and NHD-5.0-800480TF-20 Controller Board No Touch?

Started by dfanslerBoard TFTs

Replies: 5
Views: 1673
Last post May 26, 2017, 11:10:57 AM
by Saurabh_B