Electron transparent window on raspberry pi (4) - raspberry-pi

As demoed here Can't succeed in making transparent window in Electron (javascript), I manage to run the hello world application on a debian buster with background transparency.
However, when I try this demo on a raspberry pi 4 (raspbian desktop), it doesn't work out of the box. I read here https://ourcodeworld.com/articles/read/315/how-to-create-a-transparent-window-with-electron-framework that it could be caused by some driver bugs.
Can someone help me understand the issue with more depth ?
The need in my project is to display an HD video in the background and a few buttons in the foreground. Chromium-browser does not benefit as much from the hardware acceleration as omxplayer does (and drops frames), so I'm trying not to embed the video in the browser. Instead, I plan to have the smooth omxplayer run in the background and display an electron app with transparency.

(Pi 4B)
Doing some looking into openbox, the docs here say that you can use:
xcompmgr -c -t-5 -l-5 -r4.2 -o.55 &
I tested it, and it works with the parameters specified here. You can set the xcompmgr command to run in an autostart file when X initializes.
EDIT: In my testing, the latest electron build where transparency works correctly is electron#9.2.1.

Related

How Do You Diagnose MAUI Splash Screen Issues

I use a custom PNG for the splash screen in my MAUI app. It works fine on all of the IOS emulators I run the app on. It works fine on the Android emulator it runs on. However, when I connect my physical Android device to my computer and deploy to it, the splash screen does not appear.
I've tried looking at the device log, but there are literally thousands of entries in there which make it problematic for troubleshooting. What are the recommended debugging or diagnostic steps I can realistically use to track this down?
EDIT:
I managed to grab the device log entries during the splash screen loading and thought I would paste them here to see if anyone can make any more sense of what's going on. Here's a color coded version of it that I formatted in Excel:

video filter adjust not working on rasperry pi

I am trying to view a video via CVLC on a raspberry pi zero by using this command...
cvlc --no-osd --video-filter=adjust --brightness=2.0 /mnt/flash-drive/16-16-05.mp4
The video plays without any issues when i leave out the "--video-filter=adjust --brightness=2.0" section.
But when i add that section VLC does not show the video.
I looked around on the web on how to adjust image settings like brightness and contrast from command line and that seems to be the way , i just don't understand why it doesn't work on the raspberry pi zero.
Any idea why that doesn't work ?
EDIT :
This function is not supported on the raspberry pi because of its hardware acceleration.
This function is not supported on the raspberry pi because of its hardware acceleration.
VLC BUG REPORT WEBSITE

My animations are not smooth using animations package in flutter

am using the animations package in flutter for default animations but by using open container method from a listView item to a screen the animations are not smooth without any errors.
please help me guys.
Are you running the app in the iOS Simulator or Android Emulador? The Simulator/Emulator performance is not representative of real devices, so you should always test the app's performance on an actual device.
If not, are you running the app in debug mode? Debug mode is not optimized, and often the animations will be janky. Instead, try running your app on an actual device and in release mode (flutter run --release).

How do I change the rendering speed in the Project Monitor?

I have just installed Kdenlive on Ubuntu 20.04 and I am following the quickstart manual, and it's all fine except for one thing: Whenever I try to preview the video in the Project Monitor, it stutters very badly.
When I preview a clip in the Clip Monitor, it plays smoothly, incrementing the frames one by one, but when I preview the video in the Project Monitor, it skips the timeline cursor by a second instead incrementing the frames.
Here's a video of what's happening.
Okay I've found the problem, it was a problem with my GPU drivers, as I had a Nvidia GPU but it wasn't being detected. Today I refreshed and upgraded the packages and solved some secure boot issue and Kdenlive is working fine now.

Platform 4.0.3 x86 - How to run the emulator in phone mode at higher resolutions

Any idea how to run the emulator in phone mode for 720x1280 res in 4.0.3 platform?
(without using avd)
Running with the parameter: emulator-x86 -skin WXGA720 starts the emulator in tablet mode. (curiously in 4.0.4 it starts in phone mode - hardware.ini and layer files have no difference)
Anybody has the answer?
Thanks,
Asi
Can you define what you mean by "phone mode" and "tablet mode"? As far as I'm aware, Android makes no such distinction.
If you want to run with a custom screen resolution, you can set the resolution manually rather than using a skin name when running the emulator creation command, e.g. to get a Nexus 7-like device, where it's in portrait by default:
android create avd --name nexus7 --target android-16 --skin 720x1280
Though as there currently isn't a way to set the screen density (or other hardware properties) from the command line; if you want to do so, it's better to do this from the android GUI.
In platform 4.0.3, when running "emulator -skin WXGA720", for some reason the emulator does not read the hardware.ini file under development/tools/emulator/skins/WXGA720/
The reason that the emulator opens in tablet mode is insufficient lcd density. In hardware.ini it is set to 320 but the emulator does not interpret that and sets density to 160.
The solution that I was able to find is hacking emulator hw load properties.
in external/qemu/vl-android.c
change the line
long density = android_hw->hw_lcd_density;
to
long density = 320;
Of course at the end, make the platform.
Note: If you would like to show the system bar (the home and back buttons)
in external/qemu/android/hardware-properties.ini
set hw.mainkeys to no
Asi Mugrabi