From a895b3fff9369bff1e9dec44bb3bb642d001ce65 Mon Sep 17 00:00:00 2001 From: Maxime Desroches Date: Fri, 27 Jun 2025 16:26:30 -0700 Subject: [PATCH] update weston systemd config --- VERSION | 2 +- userspace/files/weston.service | 1 + userspace/usr/comma/weston.ini | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 800fd35..d39b7a2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -12.4 +12.5 diff --git a/userspace/files/weston.service b/userspace/files/weston.service index a090829..52ecd20 100644 --- a/userspace/files/weston.service +++ b/userspace/files/weston.service @@ -15,6 +15,7 @@ TTYVHangup=yes TTYVTDisallocate=yes ExecStartPre=/bin/bash -c "/usr/local/venv/bin/python -c 'import fcntl; KDSETMODE = 0x4B3A; KD_TEXT = 0x00; fd = open(\"/dev/tty1\", \"w\"); fcntl.ioctl(fd, KDSETMODE, KD_TEXT); fd.close()'" +ExecStartPre=/bin/bash -c "/usr/local/venv/bin/python -c 'from PIL import Image; img=Image.open(\"/usr/comma/bg.jpg\"); (img.rotate(180) if open(\"/sys/devices/platform/vendor/vendor:gpio-som-id/som_id\").read().strip() == \"1\" else img).save(\"/tmp/bg.jpg\")'" ExecStartPre=/bin/bash -c "mkdir -p $XDG_RUNTIME_DIR" ExecStartPre=/bin/bash -c "chown -R comma: $XDG_RUNTIME_DIR" ExecStartPre=/bin/bash -c "chmod -R 700 $XDG_RUNTIME_DIR" diff --git a/userspace/usr/comma/weston.ini b/userspace/usr/comma/weston.ini index e82aa39..9f1f991 100644 --- a/userspace/usr/comma/weston.ini +++ b/userspace/usr/comma/weston.ini @@ -1,4 +1,4 @@ [shell] -background-image=/usr/comma/bg.jpg +background-image=/tmp/bg.jpg background-type=scale-crop close-animation=none