[EXPERIMENTAL] Linux on the LCD screen
#11
(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
  Reply
#12
(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.
  Reply
#13
(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.
  Reply
#14
(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;
               };
  Reply
#15
(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.
  Reply
#16
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--
  Reply
#17
(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
  Reply
#18
(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 :-)
  Reply
#19
(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!
  Reply
#20
(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?
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a screen for the Rockchip RK3399 that works with FreeBSD out of the box ? ziomario 0 80 11-10-2024, 02:06 AM
Last Post: ziomario
Information LCD Support on Linux pfeerick 8 20,853 02-08-2021, 03:30 PM
Last Post: HBeserra
  What other devices can the LCD screen work on? kodachrome 1 3,467 12-07-2019, 06:50 PM
Last Post: kodachrome
  Linux Support UnixOutlaw 69 102,619 03-18-2017, 07:25 PM
Last Post: apple4ever
  LCD screen brightness/contrast Learnincurve 10 15,517 02-17-2017, 12:45 PM
Last Post: psychedup
  Touch screen support shariq_2001 14 22,345 12-07-2016, 07:47 AM
Last Post: Luke
  LCD Touch Screen Problem. Gavin 8 10,955 11-27-2016, 10:26 PM
Last Post: michaelquezon
Photo Playbox LCD on Linux MackPI 10 17,583 10-19-2016, 07:49 AM
Last Post: Zoidiano0
  Screen flashes blue and then goes dark. tanarri 5 8,806 06-22-2016, 10:53 AM
Last Post: tanarri
  LCD Pannel working... Touch screen NOT working?? Why Chopshop13 3 5,807 06-13-2016, 08:24 AM
Last Post: PapaStahl

Forum Jump:


Users browsing this thread: 1 Guest(s)