summaryrefslogtreecommitdiffstats
path: root/virtual-programs
diff options
context:
space:
mode:
authorOmar Rizwan <omar@omar.website>2024-04-09 21:12:33 +0000
committerOmar Rizwan <omar@omar.website>2024-04-09 21:12:33 +0000
commit8f46f8cf77e34f5c6a88bfb398feab12db72b0b2 (patch)
tree61bdf13024ba0f7764fbda0438e7970a7851f789 /virtual-programs
parentcamera: Add gadget (pi camera) mode using YUV420 (diff)
downloadfolk-8f46f8cf77e34f5c6a88bfb398feab12db72b0b2.tar.gz
folk-8f46f8cf77e34f5c6a88bfb398feab12db72b0b2.zip
Use HDMI1 on some gadgets
Diffstat (limited to 'virtual-programs')
-rw-r--r--virtual-programs/display.folk7
1 files changed, 6 insertions, 1 deletions
diff --git a/virtual-programs/display.folk b/virtual-programs/display.folk
index e4ab2acd..a7f7d298 100644
--- a/virtual-programs/display.folk
+++ b/virtual-programs/display.folk
@@ -8,7 +8,12 @@ Start process "display" {
puts "Display pid: [pid]"
source pi/Gpu.tcl
- Gpu::init
+ if {[info hostname] eq "gadget-blue" || [info hostname] eq "gadget-green"} {
+ # HACK: we use HDMI1 instead of HDMI0 on these
+ Gpu::init 1
+ } else {
+ Gpu::init 0
+ }
Gpu::ImageManager::imageManagerInit
# TODO: Share these functions through the database somehow,