From bf04cd5496bb4b5623a2ccd442b7c7d7fe21c9cf Mon Sep 17 00:00:00 2001 From: Tayray Date: Thu, 22 Jun 2017 20:50:39 +1000 Subject: [PATCH 1/6] Added driver for Arch linux --- arch/99-calibration.conf-5 | 6 ++++++ arch/LCD5-show | 8 ++++++++ arch/config-5.txt | 10 ++++++++++ 3 files changed, 24 insertions(+) create mode 100644 arch/99-calibration.conf-5 create mode 100644 arch/LCD5-show create mode 100644 arch/config-5.txt diff --git a/arch/99-calibration.conf-5 b/arch/99-calibration.conf-5 new file mode 100644 index 0000000..c6fbc8c --- /dev/null +++ b/arch/99-calibration.conf-5 @@ -0,0 +1,6 @@ +Section "InputClass" + Identifier "calibration" + MatchProduct "ADS7846 Touchscreen" + Option "Calibration" "140 3951 261 3998" + Option "SwapAxes" "0" +EndSection diff --git a/arch/LCD5-show b/arch/LCD5-show new file mode 100644 index 0000000..9fe8bcc --- /dev/null +++ b/arch/LCD5-show @@ -0,0 +1,8 @@ +#!/bin/bash + +sudo cp -rf ./config-5.txt /boot/config.txt +sudo mkdir /etc/X11/xorg.conf.d +sudo cp -rf ./99-calibration.conf-5 /etc/X11/xorg.conf.d/99-calibration.conf +yes | sudo pacman -S xinput-calibration xserver-xorg-input-evdev +sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf +sudo reboot diff --git a/arch/config-5.txt b/arch/config-5.txt new file mode 100644 index 0000000..225580f --- /dev/null +++ b/arch/config-5.txt @@ -0,0 +1,10 @@ +# See /boot/overlays/README for all available options +gpu_mem=64 + +dtparam=audio=on +max_usb_current=1 +hdmi_group=2 +hdmi_mode=1 +hdmi_mode=87 +hdmi_cvt=800 480 60 6 0 0 0 +dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900 From c386d8d7b941adeb844b8f9726ee9848c404bb45 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Thu, 22 Jun 2017 21:09:57 +1000 Subject: [PATCH 2/6] Update command --- arch/LCD5-show | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/LCD5-show b/arch/LCD5-show index 9fe8bcc..416f3ef 100644 --- a/arch/LCD5-show +++ b/arch/LCD5-show @@ -3,6 +3,6 @@ sudo cp -rf ./config-5.txt /boot/config.txt sudo mkdir /etc/X11/xorg.conf.d sudo cp -rf ./99-calibration.conf-5 /etc/X11/xorg.conf.d/99-calibration.conf -yes | sudo pacman -S xinput-calibration xserver-xorg-input-evdev +yes | sudo pacman -S xinput-calibration xf86-input-evdev sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf sudo reboot From 126ea556497996c667fe2746af83862cc408df35 Mon Sep 17 00:00:00 2001 From: Tayray Date: Thu, 22 Jun 2017 21:27:42 +1000 Subject: [PATCH 3/6] Update --- arch/config-5.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/config-5.txt b/arch/config-5.txt index 225580f..ce5eb30 100644 --- a/arch/config-5.txt +++ b/arch/config-5.txt @@ -7,4 +7,4 @@ hdmi_group=2 hdmi_mode=1 hdmi_mode=87 hdmi_cvt=800 480 60 6 0 0 0 -dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900 +dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=10000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900 From bb62414a32f9922cffa5d622b21b4f4e18366ae7 Mon Sep 17 00:00:00 2001 From: Tayray Date: Thu, 22 Jun 2017 21:52:06 +1000 Subject: [PATCH 4/6] Update --- arch/LCD5-show | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/LCD5-show b/arch/LCD5-show index 416f3ef..6616a94 100644 --- a/arch/LCD5-show +++ b/arch/LCD5-show @@ -3,6 +3,6 @@ sudo cp -rf ./config-5.txt /boot/config.txt sudo mkdir /etc/X11/xorg.conf.d sudo cp -rf ./99-calibration.conf-5 /etc/X11/xorg.conf.d/99-calibration.conf -yes | sudo pacman -S xinput-calibration xf86-input-evdev +yes | sudo pacman -S xinput-calibrator xf86-input-evdev sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf sudo reboot From 5df633990b6857c43aa13f032b5f5a9293129164 Mon Sep 17 00:00:00 2001 From: Tayray Date: Thu, 22 Jun 2017 21:56:28 +1000 Subject: [PATCH 5/6] Update --- arch/LCD5-show | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/LCD5-show b/arch/LCD5-show index 6616a94..6f5e296 100644 --- a/arch/LCD5-show +++ b/arch/LCD5-show @@ -3,6 +3,6 @@ sudo cp -rf ./config-5.txt /boot/config.txt sudo mkdir /etc/X11/xorg.conf.d sudo cp -rf ./99-calibration.conf-5 /etc/X11/xorg.conf.d/99-calibration.conf -yes | sudo pacman -S xinput-calibrator xf86-input-evdev +yes | sudo pacman -S xinput_calibrator xf86-input-evdev sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf sudo reboot From 4aac0f13bc3f4eb7f8656341ecdca0214ce68226 Mon Sep 17 00:00:00 2001 From: Tayray Date: Thu, 22 Jun 2017 21:57:32 +1000 Subject: [PATCH 6/6] Update --- arch/LCD5-show | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/LCD5-show b/arch/LCD5-show index 6f5e296..d39b9d0 100644 --- a/arch/LCD5-show +++ b/arch/LCD5-show @@ -3,6 +3,6 @@ sudo cp -rf ./config-5.txt /boot/config.txt sudo mkdir /etc/X11/xorg.conf.d sudo cp -rf ./99-calibration.conf-5 /etc/X11/xorg.conf.d/99-calibration.conf -yes | sudo pacman -S xinput_calibrator xf86-input-evdev +yes | sudo pacman -Sy xinput_calibrator xf86-input-evdev sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf sudo reboot