Skip to content

Instantly share code, notes, and snippets.

@sigmaris
sigmaris / gist:fa107384a7492583ceee1c2962f5030a
Created January 24, 2026 21:05
RockPro64 USB-C DisplayPort hotplug
(cable unplugged here)
[ 222.646155] cdn-dp fec00000.dp: [drm:cdn_dp_pd_event_work] Connected with sink; re-train link
[ 222.936041] cdn-dp fec00000.dp: [drm:cdn_dp_get_edid_block] *ERROR* get block[0] edid failed: -22
[ 222.938473] cdn-dp fec00000.dp: [drm:cdn_dp_pd_event_work] Connected, not enabled; enabling cdn
[ 228.139363] cdn-dp fec00000.dp: [drm:cdn_dp_check_sink_connection] *ERROR* Get sink capability timed out
[ 228.140417] cdn-dp fec00000.dp: [drm:cdn_dp_pd_event_work] *ERROR* Enabling dp failed: -19
[ 233.331355] cdn-dp fec00000.dp: [drm:cdn_dp_check_sink_connection] *ERROR* Get sink capability timed out
[ 233.332437] cdn-dp fec00000.dp: [drm:cdn_dp_bridge_atomic_enable] *ERROR* Failed to enable bridge -19
[ 233.341035] cdn-dp fec00000.dp: [drm:cdn_dp_pd_event_work] Not connected; disabling cdn
[ 233.353874] cdn-dp fec00000.dp: [drm:cdn_dp_pd_event_work] Not connected; disabling cdn
@sigmaris
sigmaris / tests.md
Created January 24, 2026 17:33
NanoPC-T6 cooling fan tests

50°C and 60°C fan thresholds

Stress-ng run:

root@nanopc:~# stress-ng --cpu 8 --timeout 2m --tz --thermalstat 10
stress-ng: info:  [173611] setting to a 2 mins run per stressor
stress-ng: info:  [173611] dispatching hogs: 8 cpu
stress-ng: info:  [173612] therm: AvGHz MnGHz MxGHz  LdA1  LdA5 LdA15  bigcor bigcor center gpu_th little npu_th packag
stress-ng: info:  [173612] therm:  1.35  1.20  1.80  0.21  1.16  1.47   45.31  45.31  44.38  44.38  45.31  44.38  44.38
stress-ng: info:  [173612] status: 7 run, 0 exit, 0 reap, 0 fail, 0 sigalarm, 0 sec
@sigmaris
sigmaris / JVT-AVC_V1.txt
Created December 28, 2023 18:38
RK3588 fluster with GStreamer 1.22.0 tests
****************************************************************************************************
Running test suite JVT-AVC_V1 with decoder GStreamer-H.264-V4L2SL-Gst1.0
Using 8 parallel job(s)
****************************************************************************************************
[TEST SUITE] (DECODER ) TEST VECTOR ... RESULT
----------------------------------------------------------------------
[JVT-AVC_V1] (GStreamer-H.264-V4L2SL-Gst1.0) BA1_Sony_D ... Success
[JVT-AVC_V1] (GStreamer-H.264-V4L2SL-Gst1.0) BA3_SVA_C ... Success
[JVT-AVC_V1] (GStreamer-H.264-V4L2SL-Gst1.0) BA_MW_D ... Success
@sigmaris
sigmaris / calendarCopy.js
Last active August 2, 2023 12:58 — forked from AndrewSouthpaw/calendarCopy.js
Google Apps script to copy personal events and block those times in your work calendar.
// *******************
// This setup will allow you to synchronize personal events from one calendar (the "secondary calendar") e.g. your Opsgenie
// schedule, to another calendar, e.g. work (the "primary calendar").
//
// Follow these steps:
// 1. Go to https://script.google.com/home and click [+ New project]
// 2. Make sure the two calendars you want to sync are in your Google calendar list, and the primary calendar can be edited
// by the Google account you're currently under (or switch accounts to the owner of the primary calendar)
// To get your Opsgenie schedule into Google Calendar, export your Opsgenie webcal URL: https://support.atlassian.com/opsgenie/docs/view-your-on-call-schedule/#Export-with-manual-URL
@sigmaris
sigmaris / qcom-sdm845-ayn-odin-m2-android-displayport.dts
Last active March 28, 2024 10:25
AYN Odin M2 Pro Android device tree (decompiled)
/dts-v1/;
/ {
compatible = "qcom,sdm845-mtp\0qcom,sdm845\0qcom,mtp";
qcom,board-id = <0x05 0x00>;
model = "Qualcomm Technologies, Inc. SDM845 v2.1 OEM";
interrupt-parent = <0x01>;
#address-cells = <0x02>;
#size-cells = <0x02>;
qcom,msm-id = <0x141 0x20001>;
@sigmaris
sigmaris / libreELEC_nightly_20210206-dc904cd.txt
Last active December 23, 2023 10:14
kernel WARNING from kodi software decoding
[ 826.656405] ------------[ cut here ]------------
[ 826.656435] WARNING: CPU: 2 PID: 965 at drivers/gpu/drm/drm_gem.c:1096 drm_gem_mmap_obj+0x1a8/0x208
[ 826.656438] Modules linked in: snd_usb_audio rockchip_rga hci_uart hantro_vpu(C) rockchip_vdec(C) btbcm videobuf2_dma_contig videobuf2_dma_sg bluetooth v4l2_h264 snd_hwdep v4l2_mem2mem videobuf2_vmalloc ecdh_generic snd_usbmidi_lib videobuf2_memops pwm_fan videobuf2_v4l2 phy_rockchip_pcie snd_rawmidi ecc videobuf2_common spi_rockchip ipv6 fuse
[ 826.656504] CPU: 2 PID: 965 Comm: kodi.bin Tainted: G WC 5.10.11 #1
[ 826.656507] Hardware name: Pine64 RockPro64 v2.1 (DT)
[ 826.656513] pstate: 00000005 (nzcv daif -PAN -UAO -TCO BTYPE=--)
[ 826.656518] pc : drm_gem_mmap_obj+0x1a8/0x208
[ 826.656523] lr : drm_gem_mmap_obj+0x7c/0x208
[ 826.656526] sp : ffff8000126d3be0
[ 826.656529] x29: ffff8000126d3be0 x28: 0000000000000008
@sigmaris
sigmaris / gist:5efb95190cbdf6e2114ce5f3c6847376
Created February 18, 2020 15:55
Exception when u-boot tries to read SRAM at 0xff8c1000
=> md.l ff8c1000 1
ff8c1000:"Synchronous Abort" handler, esr 0x96000010
elr: 000000000027a5b4 lr : 000000000027a530 (reloc)
elr: 00000000f7f945b4 lr : 00000000f7f94530
x0 : 0000000000000009 x1 : 0000000000000000
x2 : 000000000000003a x3 : 00000000ff8c1000
x4 : 0000000000000000 x5 : 00000000f7fae6b1
x6 : 0000000000000004 x7 : 00000000f5effe70
x8 : 00000000f5effd30 x9 : 0000000000000008
x10: 00000000ffffffd0 x11: 0000000000000006
@sigmaris
sigmaris / bl31.dump
Created February 17, 2020 13:47
ATF compiled with GCC 9.2.0 suspend exception
This file has been truncated, but you can view the full file.
build/rk3399/debug/bl31/bl31.elf: file format elf64-littleaarch64
build/rk3399/debug/bl31/bl31.elf
architecture: aarch64, flags 0x00000112:
EXEC_P, HAS_SYMS, D_PAGED
start address 0x0000000000040000
Program Header:
LOAD off 0x0000000000010000 vaddr 0x0000000000040000 paddr 0x0000000000040000 align 2**16
@sigmaris
sigmaris / atf_boot_log.txt
Created February 16, 2020 15:49
Boot log from ATF in debug mode on Rockpro64
U-Boot TPL 2020.04-rc2-00057-g6cef09d6f6 (Feb 16 2020 - 13:03:20)
Channel 0: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
Channel 1: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
256B stride
256B stride
lpddr4_set_rate: change freq to 400000000 mhz 0, 1
lpddr4_set_rate: change freq to 800000000 mhz 1, 0
Trying to boot from BOOTROM
@sigmaris
sigmaris / proc iomem
Created February 16, 2020 15:45
Linux's view of memory in /proc/iomem
00200000-f7ffffff : System RAM
02080000-0324ffff : Kernel code
03250000-0332ffff : reserved
03330000-03480fff : Kernel data
3bfff000-3fffefff : reserved
f1000000-f4ffffff : reserved
f5a11000-f5a1ffff : reserved
f5a22000-f5efcfff : reserved
f60ff000-f615efff : reserved
f615f000-f675ffff : reserved