(12-21-2016, 12:39 PM)psychedup Wrote: ...The touch screen works but only the right half of the screen...
You're right, I have the same problem. I'll have to investigate further and get back to you.
I originally got the DTB file from ayufan's github: https://github.com/ayufan-pine64/device-pine64-common
I then decompiled the DTS from the DTB with Debian's device-tree-compiler. I haven't altered it though, I'm just using the DTB as included in the Android release.
I have saved both to a Guthub repository for posterity: https://github.com/atomicmooseca/pine64-lcd-dtb
(12-29-2016, 06:50 PM)atomicmoose Wrote: (12-21-2016, 12:39 PM)psychedup Wrote: ...The touch screen works but only the right half of the screen...
I have yet to figure out where the issue is and over New Years I broke my LCD panel. I've ordered a new one, when it arrives I'll resume tracing the problem.
(01-03-2017, 09:28 AM)atomicmoose Wrote: (12-29-2016, 06:50 PM)atomicmoose Wrote: (12-21-2016, 12:39 PM)psychedup Wrote: ...The touch screen works but only the right half of the screen...
I have yet to figure out where the issue is and over New Years I broke my LCD panel. I've ordered a new one, when it arrives I'll resume tracing the problem.
Sorry to hear about the breakage. I broke my first one too.
I looked at ayufan's .dts and don't see anything significantly different than mine. Also, the armbian image has LCD+touch working - looks like they're using the same .dts settings and driver, so I wonder what else they're doing differently.
(01-03-2017, 03:29 PM)psychedup Wrote: (01-03-2017, 09:28 AM)atomicmoose Wrote: (12-29-2016, 06:50 PM)atomicmoose Wrote: (12-21-2016, 12:39 PM)psychedup Wrote: ...The touch screen works but only the right half of the screen...
I have yet to figure out where the issue is and over New Years I broke my LCD panel. I've ordered a new one, when it arrives I'll resume tracing the problem.
Sorry to hear about the breakage. I broke my first one too.
I looked at ayufan's .dts and don't see anything significantly different than mine. Also, the armbian image has LCD+touch working - looks like they're using the same .dts settings and driver, so I wonder what else they're doing differently.
Looked at what Armbian does and was able to get it to work. Here's the relevant section of the .dts that made it work for me:
Code: ctp {
device_type = "ctp";
compatible = "allwinner,sun50i-ctp-para";
status = "okay";
ctp_used = <0x1>;
ctp_name = "gt911_DB2";
ctp_twi_id = <0x0>;
ctp_twi_addr = <0x40>;
ctp_screen_max_x = <0x400>;
ctp_screen_max_y = <0x258>;
ctp_revert_x_flag = <0x1>;
ctp_revert_y_flag = <0x1>;
ctp_exchange_x_y_flag = <0x0>;
ctp_int_port = <0x30 0x7 0x4 0x6 0xffffffff 0xffffffff 0xffffffff>;
ctp_wakeup = <0x30 0x7 0xb 0x1 0xffffffff 0xffffffff 0x1>;
ctp_power_ldo = "vcc-ctp";
ctp_power_ldo_vol = <0xce4>;
ctp_power_io;
};
(01-03-2017, 05:35 PM)psychedup Wrote: Looked at what Armbian does and was able to get it to work. Here's the relevant section of the .dts that made it work for me:
GREAT! I was going to test the "gt911_DB2" line when my new panel was delivered. Good to know it works.
When my panel does arrive, I'll test it all out, update my github repositories, and make a top level post on the forum with full instructions.
Then my next step is to get a full desktop working. I know XFCE, so I'll start with that.
01-26-2017, 03:50 AM
(This post was last modified: 01-27-2017, 12:52 AM by Learnincurve.)
The touchscreen is working fine with Armbian 5.24 Xenial and "legacy" kernel 3.10.104, following the simple instructions at:
https://docs.armbian.com/board_details/pine64/
- Also starting with 5.24 Pine64’s own LCD with touchscreen support can simply be activated in
/boot/armbianEnv.txt
- by setting
pine64_lcd=on
- and adding
gt9xxf_ts
to
/etc/modules
What I would really like would be to get this working in kernel 4.9 / 4.10, but the module is missing there. Anyone know if it is being worked on and where the source might be available to get it compiled?
BR.
--Marius--
(01-26-2017, 03:50 AM)Learnincurve Wrote: The touchscreen is working fine with Armbian 5.24 Xenial and "legacy" kernel 3.10.104, following the simple instructions at:
https://docs.armbian.com/board_details/pine64/
- Also starting with 5.24 Pine64’s own LCD with touchscreen support can simply be activated in
/boot/armbianEnv.txt
- by setting
pine64_lcd=on
- and adding
gt9xxf_tsgt9xxf_ts
to
/etc/modules
What I would really like would be to get this working in kernel 4.9 / 4.10, but the module is missing there. Anyone know if it is being worked on and where the source might be available to get it compiled?
BR.
--Marius--
I might have misunderstod something here... this is supposed to get the touchfunction to work aswell? When I try this the lcd is working but not the touchfunction. I run evtest but no luck...
Niklas
(01-26-2017, 07:38 AM)Gastenpa34an Wrote: (01-26-2017, 03:50 AM)Learnincurve Wrote: The touchscreen is working fine with Armbian 5.24 Xenial and "legacy" kernel 3.10.104, following the simple instructions at:
https://docs.armbian.com/board_details/pine64/
- Also starting with 5.24 Pine64’s own LCD with touchscreen support can simply be activated in
/boot/armbianEnv.txt
- by setting
pine64_lcd=on
- and adding
gt9xxf_tsgt9xxf_ts
to
/etc/modules
What I would really like would be to get this working in kernel 4.9 / 4.10, but the module is missing there. Anyone know if it is being worked on and where the source might be available to get it compiled?
BR.
--Marius--
I might have misunderstod something here... this is supposed to get the touchfunction to work aswell? When I try this the lcd is working but not the touchfunction. I run evtest but no luck...
Niklas
Ok, my bad... The connection for the touchfunction wasn't done properly. It works now :-)
03-17-2017, 03:06 PM
(This post was last modified: 03-17-2017, 04:43 PM by apple4ever.)
(12-16-2016, 11:47 PM)atomicmoose Wrote: I have detailed installing the touch driver on my github:
https://github.com/atomicmooseca/pine64-gt9xxf_ts
Tried this on Ubuntu and I get :
Code: [ 12.831207] gt9xxf_ts: exports duplicate symbol input_fetch_sysconfig_para (owned by kernel)
Edit: I just uncommented all the EXPORT_SYMBOL statements.
And touch is working on Ubuntu (and actually moves the mouse)! Well mostly. It only seems like half the screen, and everything is backwards.
Second Edit: Alright! Just decompiled the sun50i-a64-lcd-pine64-plus.dtb and changed gt911_DB to gt911_DB2, recompiled and rebooted and the touch screen works great!!
For those who need it:
Code: sudo apt install bison flex
git clone https://git.kernel.org/pub/scm/utils/dtc/dtc.git
cd dtc
make
sudo cp dtc /usr/local/bin/.
dtc --in-format=dtb sun50i-a64-lcd-pine64-plus.dtb > sun50i-a64-lcd-pine64-plus.dts
<edit gt911_DB to gt911_DB2>
dtc --in-format=dts sun50i-a64-lcd-pine64-plus.dts > sun50i-a64-lcd-pine64-plus.dtb
sudo cp sun50i-a64-lcd-pine64-plus.dtb /boot/pine64/.
--
BTW, thanks for the instructions on the LCD. I got the display part working on Ubuntu, FINALLY, after 8 months of waiting.
I do it live!
(03-17-2017, 03:06 PM)apple4ever Wrote: Code: [ 12.831207] gt9xxf_ts: exports duplicate symbol input_fetch_sysconfig_para (owned by kernel)
Edit: I just uncommented all the EXPORT_SYMBOL statements.
I'm trying to do this with the Ubuntu Mate image, but I'm seeing the same error message. I can't seem to find any EXPORT_SYMBOL statements in the driver? Can you elaborate a little more on how you got the driver to load?
|