opencardev / crankshaft

Crankshaft: A turnkey GNU/Linux solution that transforms a Raspberry Pi to an Android Auto head unit.
http://getcrankshaft.com
GNU General Public License v3.0
2.13k stars 258 forks source link

Crankshaft displayed on LCD. AndroidAuto open on HDMI. #334

Closed SHOmike closed 2 years ago

SHOmike commented 5 years ago

Hi. I am unable to get androidauto to open onto the LCD. I boot the Pi, crankshaft loads and its shown onto the LCD but when i connect the phone nothing happens. But if the HDMI is plugged into the Pi,androidauto will open with the LCD resolution on my TV.

What i have: -samsung s8, android 9 -Raspberry pi 3+ model b -LCD TFT 3.5" KUMAN ( http://www.kumantech.com/kuman-35quot-inch-480x320-rgb-tft-lcd-pixels-touch-screen-with-touch-pen-for-raspberry-pi-3-2-model-b-b-a-a-module-spi-interface-sc06_p0014.html ) -2019-03-03-crankshaft-ng-299C16C

what i have done: -installed cranshaft -installed LCD driver(which put "dtoverlay=tft35a" in /boot/config.txt) -changed some adjustment(enabled X11, changed line from "driver "fbturbo" " to "driver "fbdev"" in /usr/share/X11/xorg.conf.d/99-fbturbo.conf ,calibrated touchscreen)

this got me to have crankshaft working properly on LCD, but plugging the phone into the Pi will display androidauto through HDMI whether or not it is plugged into something.(touch features still works properly on LCD display)

I attached debug files.HDMI version is with the HDMI cable plugged in. just in case it is needed. debug-HDMI.zip debug.zip

Thanks a lot Mike -Sorry for my english-

vsvipul commented 5 years ago

Have the same problem.. need help for a project.. @SHOmike if u find something, please comment here.. I need help

SHOmike commented 5 years ago

Sorry.no way with the 3.5 lcd.i bought a 4" hdmi lcd from waveshare, higher resolution, quite similar dimension.plugged in and worked straight away.

vsvipul commented 5 years ago

Can you point me to a link for the 4 inch display you used? And what modifications were required in that to make it work? Did it come with an hdmi cable?

SHOmike commented 5 years ago

Ok.so the lcd is this one: https://www.amazon.com/Raspberry-Resistive-Supports-Revsions-Provided/dp/B078N8SHHQ/ref=mp_s_a_1_1?keywords=waveshare+4+inch&qid=1555414570&s=gateway&sr=8-1

Donno where u from so i picked it from amazon.com.

You only need to activate x11 mode, and add a couple of line on 10-evdev.conf which is located on usr/share/x11/xorg.conf.d.

If you get the LCD, let me know i will send you what i did in order to have it fully working. Sorry but now i am on my phone i dont have my stuff here to check.

vsvipul commented 5 years ago

@SHOmike ok sure.. thank u for your help.. I am ordering the LCD. Please post the changes you made (When you are free and have access to your computer) as a comment here or you can mail me to vsvipul555@gmail.com . Thanks for your help. Ordered from here

vsvipul commented 5 years ago

@SHOmike can u please list the changes you made. I finally got the LCD. can't wait to try it out. Thanks.

vsvipul commented 5 years ago

@SHOmike ping

SHOmike commented 5 years ago

yep.sorry. 1.install crankshaft

2.while you add your wifi's credential to the file /boot/crankshaft/crankshaft_env.sh, also change START_X11 and DEV_MODE and DEV_MODE_APP values from 0 to 1.

3.ssh into the pi

4.add these lines at the end of the file /boot/config.txt

hdmi_group=2 hdmi_mode=87 hdmi_cvt 480 800 60 6 0 0 0 dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=1,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900 display_rotate=3

5 make the relevant section of /usr/share/X11/xorg.conf.d/40-libinput.conf(which should be already present) look like this:

Section "InputClass" Identifier "libinput touchscreen catchall" MatchIsTouchscreen "on" MatchDevicePath "/dev/input/event*" Driver "libinput" Option "SwapAxes" "1" Option "InvertX" "1"
Option "InvertY" "0" Option "Calibration" "208 3905 288 3910" EndSection

6.reboot and try it out.

vsvipul commented 5 years ago

@SHOmike working fine now.. Thank you so much.. Just need to callibrate the touch.

Grandement commented 5 years ago

Hi guys, I got the LCD TFT 3.5" Kuman to work. I modified the tutorial for the retropie project. https://www.hackster.io/112938/kuman-tft-3-5-retropie-2018-a9b0c8

What I did:

sudo apt-get install libraspberrypi-dev

wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/adafruit-pitft.sh

git clone https://github.com/goodtft/LCD-show.git

sudo chmod +x adafruit-pitft.sh

cd LCD-show sudo chmod +x LCD35-show

cd ..

sudo ./adafruit-pitft.sh

Options: ----- 4 ----- ----- 1 ----- 90 ----- n ----- select no to console settings Select Y for HDMI mirror DO NOT REBOOT!!!!!!!! N

cd LCD-show sudo ./LCD35-show

Finish :)

I have added to (screen lag fixing)

sudo nano /boot/config.txt

dtoverlay=tft35a,speed=62000000,fps=40

libraspberrypi-dev is required because adafruit run into a missing File error: bcm_host.h

Touchscreen is not working well. Let me know if it worked at your side as well.

MarcGodard commented 5 years ago

This got my waveshare screen to work: https://github.com/opencardev/crankshaft/issues/351

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 60 days.

github-actions[bot] commented 2 years ago

This issue was closed because it has been stalled for 60 days with no activity.