Skip to content

Instantly share code, notes, and snippets.

View fredldotme's full-sized avatar

Alfred E. Neumayer fredldotme

View GitHub Profile
#!/bin/bash
while [ true ]; do
echo "Starting loop"
ubuntu-app-launch morph-browser
sleep 15
echo "Killing morph"
kill -9 `pidof morph-browser`
echo "Killed morph"
sleep 2
#!/bin/bash
ABS_PATH=`pwd`
cd $ABS_PATH/kernel-upstream
#make O=../kernel-out/ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- defconfig
#make -j4 O=../kernel-out/ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
#mkdir ../kernel-out/out-modules/
#make O=../kernel-out/ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- INSTALL_MOD_PATH=../kernel-out/out-modules/ modules_install
@fredldotme
fredldotme / qemu-force-ivshmem.diff
Created June 2, 2021 21:15
QEMU ivshmem attempt without explicit eventfd
diff --git a/configure b/configure
index e85d6baf8f..0abad3f459 100755
--- a/configure
+++ b/configure
@@ -5362,9 +5362,9 @@ if test "$mingw32" = "yes" ; then
fi
# We can only support ivshmem if we have eventfd
-if [ "$eventfd" = "yes" ]; then
+#if [ "$eventfd" = "yes" ]; then
#!/usr/bin/env bash
if [ -f build-settings.sh ]; then
source build-settings.sh
else
echo "ERROR! Could not source build-settings.sh."
exit 1
fi
SEED_DIR="/var/lib/snapd/seed"
project build/soong/
diff --git a/cc/config/x86_darwin_host.go b/cc/config/x86_darwin_host.go
index 52d63514..1c7eb4ec 100644
--- a/cc/config/x86_darwin_host.go
+++ b/cc/config/x86_darwin_host.go
@@ -83,6 +83,7 @@ var (
"10.12",
"10.13",
"10.14",
@fredldotme
fredldotme / code.desktop
Last active March 6, 2022 07:52
VSCode on Ubuntu Touch (put it in ~/.local/share/applications/code.desktop)
[Desktop Entry]
Name=Visual Studio Code
Exec=env GDK_BACKEND=x11 GDK_SCALE=2 /home/phablet/Downloads/VSCode-linux-arm64/code --force-device-scale-factor=2 %U
Icon=/home/phablet/Downloads/VSCode-linux-arm64/resources/app/resources/linux/code.png
Terminal=false
Type=Application
X-Ubuntu-Touch=true
X-Ubuntu-Splash-Color=#FFFFFF
Path=/home/phablet/Downloads/VSCode-linux-arm64
X-Ubuntu-XMir-Enable
@fredldotme
fredldotme / hive.txt
Created March 18, 2022 23:06
Welcome to the (Ubuntu Touch) Hive
Imagine sitting/lazily lying on your couch with your tablet,
getting a call from someone on your Ubuntu Touch smartphone,
and having to start working on a document, preferrably in an
environment you are already having a familiarity with.
You get sent an attachment over the internet by someone,
need to include those in your document, and call it a day.
Now how do we make this workflow a simple matter?
Open your laptop and it's just there, and you are in complete
1. The texture target needs to be GLES20.GL_TEXTURE_EXTERNAL_OES instead of GL_TEXTURE_2D, e.g. in the glBindTexture calls and glTexParameteri calls.
2. In the fragment shader define a requirement to use the extension:
#extension GL_OES_EGL_image_external : require
3. For the texture sampler used in the fragment shader, use samplerExternalOES instead of sampler2D.
Everything below here is all in the C code, no more Java.
4. In the C code, use glEGLImageTargetTexture2DOES(GL_TEXTURE_EXTERNAL_OES, eglImage) to specify where the data is, instead of using glTexImage2D family of functions.
@fredldotme
fredldotme / qtwebengine-hwaccel-omx.diff
Created September 28, 2022 16:10
QtWebEngine + OMX video decoding on libhybris
diff --git a/qtwebengine-chromium/chromium/content/gpu/BUILD.gn b/qtwebengine-chromium/chromium/content/gpu/BUILD.gn
index 872ddb841..2c2c1e8d2 100644
--- a/qtwebengine-chromium/chromium/content/gpu/BUILD.gn
+++ b/qtwebengine-chromium/chromium/content/gpu/BUILD.gn
@@ -92,7 +92,8 @@ target(link_target_type, "gpu_sources") {
"//ui/gl",
"//ui/gl/init",
"//ui/latency/ipc",
- ]
+ "//components/services/quarantine/public/mojom",
*** snapd-2.57.5+20.04ubuntu0.1/cmd/snap-confine/mount-support.c Mon Nov 28 04:54:57 2022
--- snapd.patched/cmd/snap-confine/mount-support.c Tue Dec 13 20:50:41 2022
***************
*** 585,590 ****
--- 585,599 ----
// and it has a large duplicated view of many mount points. Note that this
// is only applicable to ubuntu-core systems.
sc_detach_views_of_writable(config->distro, config->normal_mode);
+
+ // On Android-based hybris/Halium devices the driver stack is