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 4 B

Thu May 14, 2020 3:42 pm

sjuniormachado wrote:
Thu May 14, 2020 1:31 pm
Hey there.
First of all, best regards from Brazil and sorry for my english.
Your distro is awesome. I'm using this for a academic project.

I read about why you don't share the source code, it's ok.
I'm using the Raspberry PI 4 with a touch monitor of 15.6", everything is ok but when i rotate the screen with display_rotate = 3 the touch doesn't get rotated.
I read about this in many places but i can't get this working with your distro.

Can you help me ?
Where i can change the matrix of the display?

Thanks a lot.
Yes, the source code situation is very unfortunate. I'd love for this to be open source so other people could contribute to development as well. Still, almost all of this is open source if you want to read it though - LineageOS code base itself is open source and I'm also sharing source code I'm obligated to provide (i.e. Linux kernel that is released under GPLv2). There's just parts of the Raspberry Pi device specific configuration I've kept to myself.

If you add display_rotate to config.txt, it will only rotate the display output. I haven't looked into what driver USB touchscreens(?) use and how you could rotate it. Instead other option is to let Android handle the rotation. This build uses forced default orientation but you can override this behavior with a system property. There's third party apps you can use to change orientation after that or use the notification tile to lock portrait orientation. This should take care both the display and touch input.

Code: Select all

su
mount -o rw,remount /system
echo "config.override_forced_orient=true" >> /system/build.prop
KonstaKANG.com

sjuniormachado
Posts: 6
Joined: Thu May 14, 2020 1:26 pm

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Thu May 14, 2020 4:40 pm

Thanks for reply!

I tried the code but gave me this error :
Sem título.png
Sem título.png (127.05 KiB) Viewed 1982 times
I tried early remount to edit config.txt on the fly but i got the same error.
I've installed full screen apk fullStartup but no success. My app is forcing portrait but no success too.

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 4 B

Thu May 14, 2020 4:57 pm

sjuniormachado wrote:
Thu May 14, 2020 4:40 pm
I tried the code but gave me this error :

I tried early remount to edit config.txt on the fly but i got the same error.
It's rw,remount. There's no extra space in between.

You can do the same for boot partition as well.

Code: Select all

su
mount -o rw,remount /boot
KonstaKANG.com

sjuniormachado
Posts: 6
Joined: Thu May 14, 2020 1:26 pm

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Thu May 14, 2020 5:28 pm

Omg., such a newbie mistake. sorry, i'm just a student.
Sorry for wasting your time.

Man, you rock !
Worked fine rotation and touch but with a use of a third party apk, in android how can i force this in "native" ways ?
I can set a configuration inside the os ?

Thank you so much!

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 4 B

Thu May 14, 2020 6:39 pm

sjuniormachado wrote:
Thu May 14, 2020 5:28 pm
Omg., such a newbie mistake. sorry, i'm just a student.
Sorry for wasting your time.

Man, you rock !
Worked fine rotation and touch but with a use of a third party apk, in android how can i force this in "native" ways ?
I can set a configuration inside the os ?

Thank you so much!
There's no support for motion sensors (accelerometer, gyroscope) which would be the "native" way to handle device orientation on Android.

You would need to find a way to rotate the USB touchscreen driver's input if you want to use the config.txt option.
KonstaKANG.com

sjuniormachado
Posts: 6
Joined: Thu May 14, 2020 1:26 pm

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Fri May 15, 2020 1:05 pm

It's ok.
I really thank your help.

It's working, the distro now supports rotation and i'm using a third party app to rotate the screen. Rotation Control_v1.0 is the app.
I will try to implement on my project to rotate the screen but everything worked ok without trying nothing about the USB drivers ( awesome. )

Thank you man, Best regards from brazil and sorry for wasting your time. :D

sjuniormachado
Posts: 6
Joined: Thu May 14, 2020 1:26 pm

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Thu May 21, 2020 1:14 pm

Hi konsta, it's me again !

My Pi4 was working well, monitor touch with rotation was ok, but somehow it stopped. It simplely stopped.
I turned off and when i powered next day when i try to rotate the screen, with my apk or 3rd party apks (that was working before) the Pi4 stuck and reboot.

He turns on, but reboot everytime i start rotation. I tried to reinstall and copy the config.txt but unsolved, pi4 is working now if i disable the force orientation config like u said to enable.

echo "config.override_forced_orient=FALSE" >> /system/build.prop

How can i get a log file of this to try to solve ?

sjuniormachado
Posts: 6
Joined: Thu May 14, 2020 1:26 pm

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Thu May 21, 2020 1:35 pm

Sorry i forgot to say something, i tried another monitor and mouse in usb, and same issue.
:(

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 4 B

Fri May 22, 2020 2:52 pm

sjuniormachado wrote:
Thu May 21, 2020 1:14 pm
How can i get a log file of this to try to solve ?
You can get Android system logs with 'logcat'. Probably the best way is to use adb over network to grab logs ('adb logcat').
KonstaKANG.com

Aliensnipemaster
Posts: 12
Joined: Fri May 29, 2020 1:50 pm

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Fri May 29, 2020 2:20 pm

How do I tether internet from raspberry pi in lineage os 16 on Pi4 B 4GB to a pc
Can I share internet through Bluetooth or the Ethernet Port

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 4 B

Sat May 30, 2020 5:41 am

Aliensnipemaster wrote:
Fri May 29, 2020 2:20 pm
How do I tether internet from raspberry pi in lineage os 16 on Pi4 B 4GB to a pc
Can I share internet through Bluetooth or the Ethernet Port
Wifi tethering works. If your Pi is connected to internet using ethernet, you can use wifi to share it to other devices.
KonstaKANG.com

Pokemonbulbasaur
Posts: 42
Joined: Fri May 29, 2020 9:17 pm

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Mon Jun 01, 2020 3:42 pm

I was able to do that but is there a way to use wifi and convert it to ethernet or a way I can have the hotspot turn on on boot
To get internet t my pc I have to use a power bank to first connect to moniter to turn on the hotspot then move over to the router to get the internet
is there a way I can get the pi to do this automatically so I can plug pi into the wall

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 4 B

Mon Jun 01, 2020 5:40 pm

Pokemonbulbasaur wrote:
Mon Jun 01, 2020 3:42 pm
I was able to do that but is there a way to use wifi and convert it to ethernet or a way I can have the hotspot turn on on boot
To get internet t my pc I have to use a power bank to first connect to moniter to turn on the hotspot then move over to the router to get the internet
is there a way I can get the pi to do this automatically so I can plug pi into the wall
No, I'm not aware that you could share wifi connection using ethernet.

You can check if there's an app that can turn on the hotspot automatically (Tasker, etc). Though, quick Google search says that this might not be possible in recent Android versions.
KonstaKANG.com

Pokemonbulbasaur
Posts: 42
Joined: Fri May 29, 2020 9:17 pm

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Mon Jun 01, 2020 10:29 pm

Thanks Now I can automatically use the hotspot no more powerbanks
at least for 1 week
Too bad service isn't completly free

kdorts
Posts: 1
Joined: Sun Jun 07, 2020 10:21 pm

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Sun Jun 07, 2020 10:24 pm

Having an issue with the screen not to scale of my tv upon bootup. No option to decrease display in general settings and no device settings. Any suggestions on how to fix this?

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 4 B

Mon Jun 08, 2020 6:43 am

kdorts wrote:
Sun Jun 07, 2020 10:24 pm
Having an issue with the screen not to scale of my tv upon bootup. No option to decrease display in general settings and no device settings. Any suggestions on how to fix this?
https://www.raspberrypi.org/documentati ... t/video.md

Not sure what you mean by "scale", but I assume you need to look into the overscan options.
KonstaKANG.com

ChrisChris
Posts: 15
Joined: Thu Jan 16, 2020 1:33 pm

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Mon Jun 08, 2020 4:20 pm

Hi!

Just a little update after I had so many problems with my first board earlier this year:
  • Constant re-starts
  • Extremely slow
  • Shitty WiFi
  • Strange display of apps that could not be used like that
  • Audio dropouts when starting
  • A dozen different sd cards with most not working
In the end I just got another board elsewhere and tried again. All cards work, setup was a breeze and apps are running like they should. WiFi is at least 10 times faster and usable for streaming. I was able to extend the partition to include the entire size of the large card I am now using. Power supply works, cables work, everthing works. I switched to a passively cooled case which does a fine job and is silent.

I even think to take the case when traveling and have a nice media center with content on the road even if the hotels have shitty WiFi, all the size of a pack of cigarettes.

I am still fuming that I wasted so much time on an obviously defective board but this being my first one, I didn't know any better. At least, I was able to return it and got my money back.

Thanks for all the help and patience!

Chris

vperror
Posts: 1
Joined: Mon Jun 08, 2020 6:36 pm

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Mon Jun 08, 2020 6:41 pm

I am able to get 1080P resolution simply enable command line terminal in adb and fire these commands

Code: Select all

adb shell wm size 1920x1080
To fix overscan
If the reset does not do what expected, use LEFT,TOP,RIGHT,BOTTOM values in pixels

Code: Select all

adb shell wm overscan 0,0,0,0
adb shell wm overscan 10,20,30,40

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 4 B

Tue Jun 09, 2020 1:30 pm

vperror wrote:
Mon Jun 08, 2020 6:41 pm
I am able to get 1080P resolution simply enable command line terminal in adb and fire these commands

Code: Select all

adb shell wm size 1920x1080
To fix overscan
If the reset does not do what expected, use LEFT,TOP,RIGHT,BOTTOM values in pixels

Code: Select all

adb shell wm overscan 0,0,0,0
adb shell wm overscan 10,20,30,40
That naturally doesn't change physical resolution. It's still 720p. That just emulates a different display size.

Rather still use overscan options in config.txt if your display needs that.
KonstaKANG.com

Pokemonbulbasaur
Posts: 42
Joined: Fri May 29, 2020 9:17 pm

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Wed Jun 24, 2020 10:22 pm

Can't flash Lineage OS 16 to a usb drive and use on raspberry pi 4 with usb booting

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 4 B

Thu Jun 25, 2020 7:55 am

Pokemonbulbasaur wrote:
Wed Jun 24, 2020 10:22 pm
Can't flash Lineage OS 16 to a usb drive and use on raspberry pi 4 with usb booting
Yes, you can (see http://disq.us/p/29geafx). If/when there's another build and EEPROM that supports USB boot is out of beta, I'll add proper support for it.
KonstaKANG.com

Cdell1
Posts: 3
Joined: Thu Jun 25, 2020 7:53 am

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Thu Jun 25, 2020 8:02 am

Tripp396 wrote:
Sun Apr 05, 2020 8:38 pm
Tripp396 wrote:
Sun Apr 05, 2020 3:59 pm
Konsta wrote:
Sun Apr 05, 2020 6:21 am


You need to reboot/power off your device properly via the power menu (see FAQ) for the permissions to stick.
Attempted a proper reboot. Whenever the app attempts to access the microphone it says I need to give the app full permissions (which is shows to already have).

I’ll try to see if the app devs are seeing this issue.
Next step I tried was deleting the offending app. Installed a voice recorder app, confirmed that the app was the only one with access to the microphone and when I tried to use it, it said that another app was using the microphone and to find that app and close it first.
I am having the same issue with the same app (carlinkit) and setup whereby despite the permissions being saved after the recommended method of rebooting.

I have noticed that when opening the phone sub-app, it will take me to the permissions page (with the same permissions message you got), however when going back, it will open the phone sub-app fine.

Opening the SMS sub-app and then going back from the permissions page does display message overviews, but not the content of individual messages when chosen.

Whatsapp refuses to display anything at all.

Did you get any reply from the devs or figure out a fix for this?

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 4 B

Mon Jul 13, 2020 11:22 am

New build.

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

-add support for storage devices with exFAT filesystem
-hide su binary when root access is not enabled in developer options
-support for booting from USB devices (see FAQ)
-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 Linux 4.19.132 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
-Android security patch level: 5 July 2020 (merged)
KonstaKANG.com

fsa317
Posts: 51
Joined: Thu Nov 06, 2014 2:13 pm

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Mon Jul 13, 2020 10:04 pm

Has anyone gotten a touch screen (USB based like the Dell E2014T) working with Lineage and RPi? I had a E2014T from a previous project but its not working. However, its also not working with any other devices I have so I can't tell for sure if the monitor itself is working or not. I can see via `lsusb` and `dmesg` the touchscreen registering when being plugged in and out via USB but thats about all I can tell.

Any tips?

Return to “Android”