crankshaft icon indicating copy to clipboard operation
crankshaft copied to clipboard

[CSNG] RCA resolution scaling

Open tehniemer opened this issue 6 years ago • 10 comments

Phone: Nexus 5 Build: 0.2.0 Hardware: Pontiac G8 factory infotainment system (RCA in) with touch overlay and AR1100

There is an issue with the "connect your phone" screen where it seems the resolution and touch calibration [maybe] is off. It seems that the image is inset from the extents of the display by a fair amount. This doesn't seem to be an issue when a phone is plugged in. Furthermore, the touch registration is functional, but incorrect, before a phone is plugged in and seems to be correct when AA is up and running.

I have calibrated by installing xinput_calibrator on Raspbian and copying the calibration parameters over.

No borders and touches register correctly. img_20180330_154819

Black borders, touches don't register correctly, and I have no way of exiting this screen. img_20180330_155134

tehniemer avatar Mar 30 '18 21:03 tehniemer

RCA has a fixed resolution on the Pi. (Same vertical res of 480 but a shorter horizontal res of 720) (Compare to 800 horizontal of the default screen)

Your best best would be to play with the overscan settings in config.txt. You can do this on the fly with https://github.com/ukscone/set_overscan (It auto saves to config.txt upon exiting)

parkerlreed avatar Mar 30 '18 23:03 parkerlreed

What doesn't make sense to me is that the borders only appear before a phone is connected. They go away once connected and come back when disconnected.

I found more information, the screen is a SHARP LQ065T5AR05, and apparently has a 400(RGB) x 234 resolution. http://www.panelook.com/LQ065T5AR05_SHARP__LCM_overview_9528.html

tehniemer avatar Mar 31 '18 02:03 tehniemer

Changing the overscan helped a little, I can now at least access the buttons on the far right, but still can not see the full screen. It seems that it is not scaling correctly, or at all, for RCA.

img_20180331_144413

tehniemer avatar Mar 31 '18 20:03 tehniemer

I think the resolution was too small - the dialog box simply wasn't expecting that resolution. Too bad the current way the dialog is designed is resolution dependent and it is not going to change soon. However, you totally can change any setting with editing the openauto.ini file directly.

htruong avatar Apr 01 '18 02:04 htruong

Where is that .ini located?

tehniemer avatar Apr 01 '18 03:04 tehniemer

You need to activate the dev mode (instructions on the wiki) -- then edit the /home/pi/.openauto_saved.ini file. The logic to save and load the file is described here - save at shutdown and here - load at startup.

htruong avatar Apr 01 '18 04:04 htruong

OK, is there a way to modify the dialog box to better fit my resolution? I guess ultimately it's not a big deal, but I'm not even sure if I can see all of it. What is all supposed to be configurable in these settings?

What does the DPI setting actually do?

tehniemer avatar Apr 01 '18 15:04 tehniemer

The DPI setting allows you to scale the Android Auto projection interface. Bigger values = bigger buttons/targets to hit.

htruong avatar Apr 01 '18 15:04 htruong

I'm re-opening this as a feature request for CSNG.

Can we get some sort of resolution settings for those of us not using HDMI?

tehniemer avatar Jul 06 '18 12:07 tehniemer

Hm i think it needs a rework of the gui layout with an x/y correction for scaling. Possible i will think about it for later builds.

hawkeyexp avatar Jul 09 '18 04:07 hawkeyexp