feat: multiple output modes and less logs at boot (fixes)

This commit is contained in:
2026-11-04 01:42:24 +01:00
parent d0640583a1
commit a76abe63db
9 changed files with 22 additions and 11 deletions
+2 -2
View File
@@ -56,11 +56,11 @@ build: $(BUILD_DIR)/$(TARGET)
.PHONY: run
run: $(BUILD_DIR)/$(TARGET)
@$(BUILD_DIR)/$(TARGET) $(RUN_ARGS) 2>&1 >> $(PROJECT_DIR)/forge.log
@$(BUILD_DIR)/$(TARGET) $(RUN_ARGS) 2>&1 | tee -ai $(PROJECT_DIR)/forge.log 2>&1 > /dev/null
.PHONY: start-bg
start-bg:
@python3 $(PROJECT_DIR)/__main__.py 2>&1 >> $(PROJECT_DIR)/python.log 2>&1
@python3 $(PROJECT_DIR)/__main__.py 2>&1 | tee -ai $(PROJECT_DIR)/python.log 2>&1 > /dev/null &
.PHONY: start-fg
start-fg:
+2 -1
View File
@@ -55,7 +55,8 @@ make -f Makefile.dev rasp-install
* https://linuxvox.com/blog/linux-autologin/
* https://www.exploding-shed.com/synth-diy-guides/standards-of-eurorack/eurorack-dimensions/
* https://electricalflux.com/mcu-raspberry/i2c-oled-display-raspberry-pi-5-wiring-code
* https://www.raspberrypi.com/documentation/computers/configuration.html
* https://www.raspberrypi.com/documentation/computers/config_txt.html
* https://www.raspberrypi.com/documentation/computers/configuration.html#cmdline
* https://int10h.org/oldschool-pc-fonts/fontlist/font?ibm_bios
* https://raspberrypihq.com/use-a-push-button-with-raspberry-pi-gpio/
+3 -3
View File
@@ -32,11 +32,11 @@ class ForgeRawData:
def read(self, file: pathlib.Path = FORGE_SAVE_PATH) -> bool:
try:
content = file.read_text()
for line in content.splitlines():
key, value = line.split("=", maxsplit=2)
self.__data[key] = float(value)
except: # noqa: E722
return False
for line in content.splitlines():
key, value = line.split("=", maxsplit=2)
self.__data[key] = float(value)
if "time" in self.__data:
FORGE_SAVE_BACKUP_PATH.write_text(content)
return True
+1 -1
View File
@@ -1 +1 @@
quiet loglevel=3 quiet logo.nologo vt.global_cursor_default=0
loglevel=0 logo.nologo vt.global_cursor_default=0
+4
View File
@@ -20,3 +20,7 @@ enable_tvout=0
# --- I2C ---
dtparam=i2c_arm=on
# --- other ---
disable_splash=1
avoid_warnings=1
+1 -1
View File
@@ -1,2 +1,2 @@
vc4.tv_norm=NTSC video=Composite-1:720x480ie,tv_mode=NTSC
quiet loglevel=0 quiet logo.nologo vt.global_cursor_default=0
loglevel=0 logo.nologo vt.global_cursor_default=0
+4 -2
View File
@@ -17,8 +17,10 @@ gpu_mem=64
# --- composite ---
enable_tvout=1
sdtv_mode=0
sdtv_aspect=1
# --- I2C ---
dtparam=i2c_arm=on
# --- other ---
disable_splash=1
avoid_warnings=1
+1 -1
View File
@@ -1,2 +1,2 @@
vc4.tv_norm=PAL video=Composite-1:720x576ie,tv_mode=PAL
quiet loglevel=0 quiet logo.nologo vt.global_cursor_default=0
loglevel=0 logo.nologo vt.global_cursor_default=0
+4
View File
@@ -20,3 +20,7 @@ enable_tvout=1
# --- I2C ---
dtparam=i2c_arm=on
# --- other ---
disable_splash=1
avoid_warnings=1