yashsingh1/xdaforums huggingface dataset:
[Raspberry Pi Original Development] MartelKombat:
Hi i have problems using this touchscreen: https://www.waveshare.com/wiki/5inch_DSI_LCD?Amazon

I tried some overlays icluding turning off camera, as stated in the waveshare wiki

# Camera

#camera_auto_detect=1

#start_x=1

# Graphics acceleration

[gpio21=1]

#dtoverlay=vc4-kms-v3d

#dtoverlay=vc4-kms-dsi-7inch

#dtoverlay=cma,cma-384

dtoverlay=vc4-fkms-v3d

#dtoverlay=vc4-fkms-v3d-pi4

start_x=1

[all]

Disylay gets the rainbow screen then it goes black. Depending on with overlay is enabled sometimes with backlight sometimes without.

I checked availability of the overlays on this site: https://github.com/lineage-rpi/andr...de9ebff28bd/arch/arm/boot/dts/overlays/README

I'm doing something wrong or should i just switch to a hdmi-touchscreen?

I try to get some logs tomorrow.

I'm on lineage-19.1-20220407-UNOFFICIAL-KonstaKANG-rpi4.
[Raspberry Pi Original Development] KonstaT:
Their wiki naturally doesn't apply to Android in anyway.

Waveshare DSI display was reported working apart from touch input (http://disq.us/p/2m3ln38). It's apparently "compatible" with the official Pi 7" DSI touchscreen and uses the same drivers. There's a settings option to enable the required configs for it (please see the relevant FAQ section). You would need to check it on Raspberry Pi OS if it uses some other driver than edt-ft5406/rpi-ft5406 for the touch.
[Raspberry Pi Original Development] duckredbeard:
Any way to control GPIOs on this build? I would like to control a case fan based on temperature.
[Raspberry Pi Original Development] KonstaT:
Various ways depending on the hardware you use and what you want to do with it. How would you use it on some regular Linux distro like Raspberry Pi OS?

There's drivers enabled for the GPIO fan and PoE HAT fans (dtoverlay=gpio-fan & dtoverlay=rpi-poe/dtoverlay=rpi-poe-plus). Add a line to config.txt to enable a driver and configure it.

Argon cases use I2C to control the fan speed. Someone shared a script for Argon case that changes the fan speed according to CPU temperature (http://disq.us/p/2guifm1)
[Raspberry Pi Original Development] duckredbeard:
Thanks. I have sent a message to that user asking to share that Tasker profile. I am an avid Tasker user and this should be exactly what I need.
[Raspberry Pi Original Development] duckredbeard:
So I am operating this in headless mode (no mouse or keyboard either) and I have enabled the power button on the nav bar. Accessing using RealVNC. I tapped that power button thinking it would give me a reboot menu. Nope. Blank screen. How can I regain access to the desktop without rebooting?
[Raspberry Pi Original Development] KonstaT:
E.g. ADB/SSH in and execute 'input keyevent KEYCODE_POWER' if you must do this remotely. Or just connect a mouse/keyboard and send some input event.

Power button in the navigation bar works just like power button in Android in general. Short press to switch display on/off. Long press to invoke power menu. Android 12 has a virtual power key in the notification shade to invoke the power menu so the navbar key is redundant.
[Raspberry Pi Original Development] mdniche:
Hi Konsta! I very much appreciate your work on LineageOS 19 for RPi4. I'm installing a UPS by 52Pi (model EP-0136). I have a few questions to ask regarding this:

1) The requirement to install the UPS is to enable I2C. When I checked the config.txt file, both I2C and I2S are enabled. Is there a reason why I2S is enabled by default? Will I2S interfere with I2C if I leave both on after installing the required scripts for the UPS?

2) The UPS must have its scripts installed for the system to know the battery level & so on but the script is for Raspberry Pi OS. I opened terminal & entered su. When I entered sudo raspi-config, it says "sudo: inaccessible or not found. Same thing happened when I entered pip install smbus2 but pip instead of sudo. Are there any solutions to run Raspberry Pi OS commands and install the scripts?

Here's a link to the UPS's wiki page: https://wiki.52pi.com/index.php/EP-0136

Thanks in advance.
[Raspberry Pi Original Development] KonstaT:
1) I2S is not enabled by default. It only gets enabled if you've selected DAC as audio output device. But no, it doesn't interfere with I2C.

2) This is Android so you can't use scripts/drivers intended for regular Linux distributions. Android doesn't have python either. You would need to adapt whatever their python script does for Android (or ask the manufacturer for Android support). My builds have i2c-tools (i2cget/i2cset/etc) to control I2C devices.
[Raspberry Pi Original Development] mdniche:
Is it possible if I build a background app and use the i2c-tools to get information such as battery percentage and charging state from the UPS and return it to Android?
[Raspberry Pi Original Development] KonstaT:
If you mean that Android would report the battery/charging status (on status bar and Settings -> Battery, etc) like your "normal" Android device - no, not with an app or script. You would need to write a health HAL for this (https://source.android.com/devices/tech/health).

Depends what you need to do with this but easiest would be to write a shell script and place it inside /vendor/etc/init.d/ so it gets started when the device is booted.
[Raspberry Pi Original Development] myweb:
Logitech Bluetooth keyboard issue is still present in the latest build: it is impossible to get the keyboard connected.
[Raspberry Pi Original Development] darkdude18:
Is it possible to somehow emulate "pinch to zoom" with only mouse and keyboard? I've tried many shortcuts from the web but none of them worked with this build.

Some phone optimized apps are unusable on big displays without zoomnig...
[Raspberry Pi Original Development] KonstaT:
Not that I'm aware of at least.

You can look into 'input' and 'sendevent' tools if you want try something on the command line.
[Raspberry Pi Original Development] vj4:
Has the default path for GPIO scripts changed in 12 from 11?
[Raspberry Pi Original Development] KonstaT:
If you mean init.d scripts they are in /vendor/etc/init.d/ now (vs. /system/etc/init.d/ in previous Android versions).
[Raspberry Pi Original Development] vj4:
Top man thank you
[Raspberry Pi Original Development] Gadidou1999:
hello,

i followed the tuto but it boot loop on rainbow, i removed resolution.txt but it's still bootlooping rainbow.
[Raspberry Pi Original Development] KonstaT:
You need to use a display that reports resolutions it support via EDID. Check your HDMI cable/micro-HDMI adapter as well. Or try with another display.
[Raspberry Pi Original Development] SFX394402:
Model: Pi 400 (keyboard kit).

No signal after «rainbow» on each HDMI port. I have try to change any resolutions and delete resolution.txt — no result. OS loaded, Data partition is filled, caps/num lock leds ok. I have no problems with display when using standard Linux distro. Can anyone help me? Thanks.
[Raspberry Pi Original Development] SFX394402:
I have a problem with the Broadcom VC4 Graphics Driver (drm/vc4). When I tested with another Linux distro, my HDMI display turns off after loading vc4.ko kernel module. I will try another power supply with more effort. As I understand, without this module Android will not start?
[Raspberry Pi Original Development] KonstaT:
So you do have problems with regular Linux distros..

There's no drivers as modules on my builds. But no, this is obviously not going to work without kernel graphics drivers.
[Raspberry Pi Original Development] KonstaT:
New builds. Same changelog on both.

LineageOS 19 (Android 12L)

for Raspberry Pi 4

konstakang.com

LineageOS 19 Android TV (Android 12L)

for Raspberry Pi 4

konstakang.com

add support for Compute Module 4

fix HDMI/DAC audio device selection on CM4 & Pi 400 that don’t have 3.5mm audio jack

fix USB storage (Pi 400 as well?)

fix issue with webview/browser

add support for the RTC on the I/O board

use OTG mode for USB to support ADB, MTP, PTP, USB tethering on the micro-USB port on the I/O board

add support for APDS9930 ambient light/proximity sensor

update to TWRP 3.6.1_11-1-KonstaKANG

update to Mesa 22.0.3

update to Linux 5.10.112 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)

Android security patch level: 5 May 2022 (merged)
[Raspberry Pi Original Development] Goketsa:
Hi, I've built my Raspberry Pi 4 today using your latest build, the system is very snappy and responsive however when watching video either live or not through any app I'm experiencing sluggishness (it's not freezing or lagging) just a very slight out of sync issue. Do you have any idea what might be causing this?
[Raspberry Pi Original Development] KonstaT:
Which audio device are you using (3.5mm/HDMI/DAC/bluetooth)? Logcat?

There's been some similar reports but I'm not able to reproduce such issue myself.
[Raspberry Pi Original Development] Goketsa:
It looks like it was being caused by having the resolution set to "Preferred" when plugged into a 4K TV. Setting it to 1080 60 has seemed to of fixed the issue.
[Raspberry Pi Original Development] azakosath:
Hi @KonstaT, I'm trying to use an IR receiver with this build. The feature is enabled from settings (as in FAQs), ir-keytable finds the device and ir-keytable -t detects the key pressures on the remote. When I make a keymap for any remote and place it as /boot/rc_keymap.txt and try ir-keytable -w I'm getting "invalid parameter on line 1", but if I rename it to rc_keympap.toml it loads succesfully as I can see with r-keytable -r and whith ir-keytable -t during key pressures. The thing is that the remote has no effect outside the terminal. The only relative issue I found is in your thread at forums.raspberrypi.com.

Any enlightenment would be appreciated!!!

Thanks in advance...
[Raspberry Pi Original Development] KonstaT:
Ah, ok. You can expect all kinds of performance issues if you use higher resolutions. That's why 1080p is forced by default to provide consistent user experience.

rc_keymap.txt needs to have UNIX line endings so use a proper text editor (Windows notepad won't do) or look into tools like dos2unix.

Otherwise the RC is just exposed as regular Linux input device and it works like any keyboard. You should also see the input events with 'getevent' tool if you have it working properly.
[Raspberry Pi Original Development] azakosath:
I had in mind UNIX line endings (because of your comment in the other forum), so I created the keymap file using nano. "getevent" gives normal inputs e.g. "/dev/input/event0: 0004 0004 00000118".

Is there any known working RC with your builds? I'm using irplus app, so I could test all of them.
[Raspberry Pi Original Development] KonstaT:
What does the rc_keymap.txt exactly look like? And longer output of 'getevent' that shows the actual keycodes?
[Raspberry Pi Original Development] azakosath:
Here is my rc_keymap.txt

Spoiler content hidden.

And here are the outputs of 'ir-keytable' and 'getevent'. See the difference of the output of 'ir-keytable -w' between rc_keymap.txt and rc_keymap.toml, is the same file renamed.

Spoiler content hidden.
[Raspberry Pi Original Development] KonstaT:
There's also the old keymap format you can use (see https://github.com/lineage-rpi/android_external_ir-keytable/tree/lineage-18.1/rc_keymaps for reference). Last I tested both formats worked.

According to 'getevent' that should work just as expected.
[Raspberry Pi Original Development] azakosath:
With the old format 'ir-keytable" -w gives "Invalid parameter on line 1 of /boot/rc_keymap.txt" and "/boot/rc_keymap.toml: missing [protocols] section" for *.txt and *.toml respectively.

Are there any other actions I should do, apart from just placing the keymap file in /boot ? I think I'm missing something...
[Raspberry Pi Original Development] KonstaT:
Well, something invalid on the first line (table name, protocol, line ending)?

According to the 'getevent' you posted it already works as expected. How are you testing it in Android? Are you on a screen where the arrow keys actually do something?

Edit. Tested this again myself. I fixed the FAQ to point to the old rc_keymap format. .toml doesn't work with .txt file extension (I'll add support for separate /boot/rc_keymap.toml if/when there's another release). 'getevent' shows some events from the IR even if you don't have a right keymap. IR remote works fine, so you just need to figure out the rc_keymap.txt for the remote you're using.
[Raspberry Pi Original Development] azakosath:
I decided to start from scratch (before I read your edited post). So, after new installation the RC was working fine after loading the keymap file from storage as .toml

su -c ir-keytable /storage/emulated/0/.../rc_keymap.toml

Problems start as soon as the file is moved to /boot. After reboot the RC works only in terminal with 'ir-keytable -t'. It seems like mounting /boot messes things up, because even if the file is removed problem persists.

My solution so far, after clean installation 'ir-keytable -r' gives the default scancode to keycode mapping, which looks like this lirc.conf file, after converting to .toml using a .py script found here. So, using IrScrutinizer, I made an RC with these scancodes to use with irplus app.

I'll try again with the new insurrections and I'll report back.

Edit: I placed a .txt file with the old format as /boot/rc_keymap.txt and it works! And this time mounting /boot didn't brake the Matrix...
[Raspberry Pi Original Development] KonstaT:
Linux kernel uses rc6-mce keymap (https://github.com/lineage-rpi/andr...ge-19.1/drivers/media/rc/keymaps/rc-rc6-mce.c) by default. You could also configure RC keymaps kernel side (without using 'ir-keytable') if your remote was one supported by Linux (https://github.com/lineage-rpi/android_kernel_brcm_rpi/tree/lineage-19.1/drivers/media/rc/keymaps) but that's usually not the case.

My builds have a script at /vendor/etc/init.d/02remote that is executed on boot that clears the default RC keymap (rc6-mce) and writes one from /boot/rc_keymap.txt if such file exist. You can also easily edit that script if you want to use the .toml format instead of the legacy format.
[Raspberry Pi Original Development] adscombecorner:
Hello,

I installed the latest Konsakang Lineage OS 19.0 (LineageOS 19 - KonstaKANG (Android 12L) on RPi 4B 8GB - all I have had is audio buffering all the time ... I installed on different micro SD cards. various settings, but still the same audio buffering or no audio at all.

I have now reverted back to the latest 18.1 version (LineageOS 18.1 - KonstaKANG (Android 11) which works perfectly and even more zippy than the previous 18.1 version.

I'm not sure why I am getting audio buffering with 19.0 - could it to do with component tolerance?? but I have tested 19.0 on two Raspberry Pi 4B 8GB with same audio buffering - there is surely something not tweaked in the software? It is unusable for me, but 18.1 is fine with no issues at all.

My Raspberry Pi 4B 8GB comes out of China, but I guess most of them do these days?

Please update us when there is a fix for this issue.
[Raspberry Pi Original Development] KonstaT:
Please stick with one forum as there's no point in posting the same thing across various places.

HDMI audio is a bit of know issue on builds with 5.10 kernel (http://disq.us/p/2os3vri, http://disq.us/p/2lgvcmt).
[Raspberry Pi Original Development] kchatzig:
Thank you for the ROM, KonstaKang! Is there any news for Opengapps for ATV 12? (or any gapps that we can install)
[Raspberry Pi Original Development] adscombecorner:
Thanks Konsta,

I click one of the links which leads me you the build site and it says HDMI is working .. So why is it not working?? I do not see any notice on that site saying that HDMI is not working or may not work properly???
[Raspberry Pi Original Development] KonstaT:
I don't have anything to do with any gapps release so I wouldn't know. I'm not aware of any at least.

You would need to ask where you usually get your gapps or try building a package yourself.

Well, I can't reproduce such issue. As for why this can be an issue or what has changed from before, read the comments I linked for background information. These are links to Disqus comments which might take some time to load sometime so have some patience.
[Raspberry Pi Original Development] Bryanx86:
Thank you. This is great!
[Raspberry Pi Original Development] heist82:
Dupe post
[Raspberry Pi Original Development] heist82:
Hey KonstaT,

I'm having real issues with trying to get my android to shut down. I'm trying to use it in a car environment, so want my android to shutdown cleanly before I turn power off via relay.

Things I've tried:

1. In config.txt, I've used the gpio-shutdown on a number of pins, each one does the same thing, momentary press turns off the display, long press brings up the power menu.

2. Tried to add your script you wrote for previous lineages versions, I understand they are in a different place now and saw the twrp way to install doesn't work any more. I created the file in the correct spot /vendor/etc/init.d and put in exactly what you had in there with the correct permissions, didn't appear to work.

Each time I've tried it, it just brings up the power menu, instead of shutting down. Is there something different in 12l that has changed? Or can I even do what I want to do?

Cheers for your work on this, it's awesome, I have everything else working well, including a BigTreeTech 5inch screen working perfectly!
[Raspberry Pi Original Development] KonstaT:
The script I've posted at https://xdaforums.com/t/dev-rom-uno...raspberry-pi-4-b.4139059/page-6#post-83822011 works just fine. On Android 12 you need to copy it to /vendor/etc/init.d/ and change the permissions to make it executable (755). Please note that it uses different GPIO pin than the DIY power button.
[Raspberry Pi Original Development] SaturaniumYT:
Hello, I have a Raspberry Pi 4B and when I downloaded 1 GApps file each of 2 attempts to fix the following problem, both times it said that I was offline even while I was connected to both WiFi and ethernet (separately). The same raspberry pi was running on Android 12L both attempts. Help?
[Raspberry Pi Original Development] SaturaniumYT:
The same problem seems to be coming from the OS itself. Not sure what to do to try to fix it because every single solution that would normally work on other android devices does not work on the Raspberry Pi. (No offense intended)
[Raspberry Pi Original Development] SaturaniumYT:
Nvm those last 2 messages, I found out how to turn on wifi access to google play. For some odd reason, you need to enable wifi access by going to Settings > Apps > Google Play Store > Mobile data & WiFi and click on allow network access. Weird…
[Raspberry Pi Original Development] KonstaT:
Good to know you figured it out. Downloading gapps file and downloading from the Play Store are different things of course..

But yes, this seems to be a problem with Android 12 gapps and you need to enable this permission manually (possibly after Google Play services has updated itself).
[Raspberry Pi Original Development] Obecny:
Any solution for HDMI sleep issue? My HDMI monitor turning black but the backlight is still on so the monitor is not going to sleep at all like with any other regular linux distros. Thanks
[Raspberry Pi Original Development] KingMagla:
Hey i flashed the newest Build lineage-19.1-20220511 on a Raspberry Pi4, in the Buttons menu is no Power Menu option. I cant get in the advanced reboot. Is there any solution for this problem?
[Raspberry Pi Original Development] SaturaniumYT:
Is there a way you could send a pic to us?

I suspect it’s in the notification/control center or however you call it in the Android world.

And to turn on advanced restart, Go to Settings > System > Buttons > Power Menu and turn on the Advanced Restart option.
[Raspberry Pi Original Development] KonstaT:
There's been some similar reports (e.g http://disq.us/p/2ow1q71) but I'm not able to reproduce this. If I switch off the display by short pressing the power button or using screen timeout, my displays reports 'no signal' and switches to stand by after a while.

Please read the FAQ.

Settings -> System -> Buttons -> Power menu -> Advanced restart on the regular tablet UI build.

Settings -> System -> Buttons -> Advanced reboot on Android TV.
[Raspberry Pi Original Development] KingMagla:
Under the Buttons Menu is no Power Menu. This is all i see in the Buttons Menu.
[Raspberry Pi Original Development] KonstaT:
Scroll down on the menu of course. It's there.
[Raspberry Pi Original Development] KingMagla:
Nope i can only scroll to recents long press action. It doesn't go any further.
[Raspberry Pi Original Development] KonstaT:
Well, you can and you haven't even scrolled down to anywhere at that point.

Sorry, there's not much help I can offer on how to browse the settings menu.
[Raspberry Pi Original Development] KonstaT:
There's no support for external bluetooth dongles. You can consider Android as an OS for embedded devices so it's only designed to support one specific bluetooth hardware at a time.
[Raspberry Pi Original Development] pi_saab:
thanks for your reply 😀

you do not know where to start reading or reach tips for raspberry pi 4 ?
[Raspberry Pi Original Development] KonstaT:
Umm, about what? Google search is generally pretty useful whatever information you're looking for. :)
[Raspberry Pi Original Development] SFX394402:
Hello! Is it possible to change the mouse buttons for left-handers?

Dear KonstaT, please add an entry for f2fs userdata on fstab.rpi4. Thanks.
[Raspberry Pi Original Development] KonstaT:
No, Android doesn't have support for left-handed mouse buttons (mouses are not generally used on Android devices). It shouldn't be too difficult to implement as an extra feature but I don't have any current plans.

Data partition in the image I provide is formatted to ext4 so there's no reason to have any f2fs entry. Data partition is mounted by second stage init from /vendor/etc/fstab.rpi4 so you can add that yourself, format the partition to f2fs, and see if that works.
[Raspberry Pi Original Development] tnap1979:
any chance of support for beitian bn-880 gps??

would like to turn this into a portable, with gps and bme280 module
[Raspberry Pi Original Development] KonstaT:
Replied on my site. Not much point in asking the same thing across several places.

LineageOS 19 (Android 12L)

for Raspberry Pi 4

konstakang.com
[Raspberry Pi Original Development] tnap1979:
Ain't no need to be a snarky arse..

Actually YES there's a damn good reason for multiple platforms and similar stuff asked across such... to make it FAR EASIER for others seeking similar interests to find said info... this type of response from devs like you is what ruins the experience for others... I asked in both places because A, up til today... I knew **** all about you or your site... but as my status shows... I've been a senior XDA member for many years.... so how about cutting some of us a break and not being rude when asked simple questions for something YOU created... yes... I'm Thankful and enjoy it.. I just wanted to know if it was possible... have a grand day.
[Raspberry Pi Original Development] KonstaT:
If you consider that to be snarky or rude you haven't seen anything. :)

And yes, I linked the reply to make the information available here as well.
[Raspberry Pi Original Development] juniorhero:
apps shows device is rooted even without installing magisk.

safetynet cts profile is failing

how to fix? also please provide boot.img to patch magisk
[Raspberry Pi Original Development] KonstaT:
Raspberry Pi is not an Android device to begin with so it has never been Google certified (i.e. it has never passed CTS). I'm not spoofing any device identifiers nor plan to.

Please read the FAQ on how to install Magisk. I've already provided an installer. If you want to spoof SafetyNet you can do it using Magisk modules just like on any other device.
[Raspberry Pi Original Development] juniorhero:
i have already installed magisk

can you provide magisk flashable zip for magisk latest version 25.1

i tried with boot.img and seems it is not the usable method for flashing magisk

please provide updated magisk zip or provide method to generate the zip