Konsta
Posts: 177
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland
Contact: Website Twitter

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 3 B and B+

Tue May 19, 2020 5:37 pm

H1sware wrote:
Tue May 19, 2020 3:56 am
So I thought to help someone who still has screen rotation problems (touch screen 7 "official)

[*]after loading LineageOS 16.0 to SD you will have these files, in particular (Config.txt)config lineageos rasppi4.PNG, open it and edit it with brackets, notepad ++ and the like ... if you don't want problems.

[*]in the file (config.txt) under the wording "disable_overscan = 1" insert a space and lcd_rotate=2 (config lineageos rasppi4 (before).PNGas in the image)

the last image will clarify everything .. config lineageos rasppi4 (after).PNG

I hope I have been of help to someone .. :D

[*]Raspberry pi 4 model b (4gb)[*]
Yeah, display_lcd_rotate=2 will rotate the display 180 degrees i.e. upside down. I think you still need to rotate the touch input as well (quick Google search says 'dtoverlay=rpi-ft5406,touchscreen-inverted-x=1,touchscreen-inverted-y=1' but I didn't bother to test this).

Rotating 90 degrees to portrait orientation was discussed here (http://disq.us/p/27gzrfc). In addition to display_lcd_rotate=1 you also need to modify the touchscreen overlay to 'dtoverlay=rpi-ft5406,touchscreen-swapped-x-y=1,touchscreen-inverted-x=1' which I tested working at the time.
KonstaKANG.com

ysraibagkar
Posts: 1
Joined: Tue Jun 09, 2020 3:30 pm

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 3 B and B+

Tue Jun 09, 2020 3:36 pm

I have installed latest version of lineageOS on Pi B+,
It seems to be working ok but HDMI is not giving any audio to TV,
I have changed TV, I changed HDMI cable as well.
Bluetooth speakers working fine.

Not able to fix audio via HDMI,

ANOTHER OBSERVATION,
if I turn of screen and later power on it triggers pi to reboot automatically.

Kindly help to fix this.

Yogesh (India)

Konsta
Posts: 177
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland
Contact: Website Twitter

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 3 B and B+

Thu Jun 11, 2020 1:05 pm

ysraibagkar wrote:
Tue Jun 09, 2020 3:36 pm
I have installed latest version of lineageOS on Pi B+,
It seems to be working ok but HDMI is not giving any audio to TV,
I have changed TV, I changed HDMI cable as well.
Bluetooth speakers working fine.

Not able to fix audio via HDMI,

ANOTHER OBSERVATION,
if I turn of screen and later power on it triggers pi to reboot automatically.

Kindly help to fix this.

Yogesh (India)
You need to add 'hdmi_force_edid_audio=1' to /boot/config.txt with some displays. It depends on the capabilities your display reports via EDID.

Also graphics drivers depend on the EDID information the connected display sends.E.g. if there's no display connected, graphics drivers will crash (see FAQ how to boot without connected display).
KonstaKANG.com

bigdata100
Posts: 2
Joined: Sat Jun 13, 2020 7:57 am

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 3 B and B+

Mon Jun 15, 2020 8:50 am

Hi,
Recently I managed to download and setup Lineage 16 on my Raspberry Pi 3 model b using KonstaKang build
https://konstakang.com/devices/rpi3/LineageOS16.0/

it's working fine and smooth when i connect rpi to hdmi screen.

I have the official 7" lcd display and touch screen for raspberry pi, and when i connect the rpi to the screen,
after switching the driver as the FAQ part suggests in link mentioned above,
using this command in the terminal
Code: Select all

Code: Select all

su
rpi3-graphics.sh swiftshader
I got it working on the 7" lcd display but its not as smooth as the hdmi screen, it choppy and laggy.

Is there any solution for this issue ?
and if upgrading to Raspberry Pi 4 Model B (4GB RAM) would do me any help?

Thanks.

Konsta
Posts: 177
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland
Contact: Website Twitter

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 3 B and B+

Mon Jun 15, 2020 9:51 am

bigdata100 wrote:
Mon Jun 15, 2020 8:50 am
Hi,
Recently I managed to download and setup Lineage 16 on my Raspberry Pi 3 model b using KonstaKang build
https://konstakang.com/devices/rpi3/LineageOS16.0/

it's working fine and smooth when i connect rpi to hdmi screen.

I have the official 7" lcd display and touch screen for raspberry pi, and when i connect the rpi to the screen,
after switching the driver as the FAQ part suggests in link mentioned above,
using this command in the terminal
Code: Select all

Code: Select all

su
rpi3-graphics.sh swiftshader
I got it working on the 7" lcd display but its not as smooth as the hdmi screen, it choppy and laggy.

Is there any solution for this issue ?
and if upgrading to Raspberry Pi 4 Model B (4GB RAM) would do me any help?

Thanks.
As far as I know KMS driver in 4.14/4.19 kernel doesn't support the official display. At least I haven't managed to get the DSI input recognized with the graphics drivers that are used by default. For now the only option is to use SwiftShader. It's a software renderer so graphics performance is not that great.

My Pi 4 build currently uses SwiftShader by default. CPU performance is much better on Pi 4 so software rendering works fairly well.
KonstaKANG.com

Konsta
Posts: 177
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland
Contact: Website Twitter

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 3 B and B+

Mon Jul 13, 2020 11:21 am

New build.

https://konstakang.com/devices/rpi3/LineageOS16.0/

-add ir-keytable tool to configure IR remotes
-enable USB gadget support & fix adb toggle in developer options
-add support for storage devices with exFAT filesystem
-hide su binary when root access is not enabled in developer options
-add support for PCM512x audio DACs (tested with Hifiberry DAC+)
-improve support for Waveshare HDMI touchscreens
-fix recording videos with camcorder
-add TWRP flashable zip to resize data partition (see FAQ)
-update TWRP to 3.3.1-1
-update to MESA 20.1.3 and latest upstream versions of minigbm gralloc, drm_hwcomposer, and libdrm
-update to Linux 4.19.132 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
-Android security patch level: 5 July 2020 (merged)
KonstaKANG.com

Return to “Android”