Commit Graph

2317 Commits

Author SHA1 Message Date
Douglas Teles 4c0e295db2 es-menu: wire up AUTO FRAME DELAY and ship wg-quick for WIREGUARD VPN
Two ES menu items that wrote settings nothing consumed / called a missing
binary, found in the menu audit:

- AUTO FRAME DELAY (Latency menu) persisted `<config>.video_frame_delay_auto`
  to system.cfg, but setsettings.sh never translated it into retroarch.cfg,
  so the toggle did nothing. Add set_frame_delay(): ON/OFF -> RetroArch
  `video_frame_delay_auto = true/false`, AUTO leaves the cfg default.

- WIREGUARD VPN toggle runs `wg-quick up/down`, but the wireguard-tools
  package only installed `wg`, so every toggle silently failed. wg-quick is
  the upstream bash helper (src/wg-quick/linux.bash); install it. Runtime
  deps (bash, ip, wg, iptables) are all present.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 23:06:48 -03:00
Douglas Teles e8fd3a6c43 perf: corrigir gaps detectados via SSH no R36S
5 ganhos mensuráveis identificados rodando o sistema vivo:

1. /etc/sysctl.d → /storage/.config/sysctl.d, e systemd-sysctl roda
   Before=sysinit.target — /storage só monta em local-fs.target. O
   symlink ficava dangling quando systemd-sysctl lia, então archr.conf
   (BBR/fq_codel, vm.dirty_writeback_centisecs=1500, ip_forward, etc.)
   nunca era aplicado no boot. Verificado: rodando sysctl -p manual
   depois do boot, dirty_writeback_centisecs vai de 500 → 1500.
   Replicar os defaults da distro em /usr/lib/sysctl.d (rootfs, sempre
   disponível) garante aplicação antes de /storage subir; o /etc/
   sysctl.d permanece como ponto de override do usuário.

2. enable.turbo-mode=1 em system.cfg padrão. A baseline validada do
   R36S inclui CPU turbo @ 1512 MHz via cpufreq/boost (vdd_arm
   regulator-max=1.45V), mas o default era 0 — clamp em 1416 MHz
   sem opt-in. O nó scaling_max_freq sobe para 1512000 assim que
   boost=1, comprovado live no device. Quem precisar do clamp
   térmico de 1416 desliga via Settings > Advanced.

3. rpcbind.service rodando idle custava ~11 MB de RAM em um device
   com 1 GB total, sem nada usando NFS. O upstream já fornece
   rpcbind.socket (Listen :111 + /run/rpcbind.sock) e systemd faz
   activation on-demand — mount.nfs dispara o daemon quando o user
   realmente monta um share. Trocado enable_service rpcbind.service
   por rpcbind.socket.

4. archr-touchscreen-keyboard ficava acordando a cada 5s mesmo em
   devices sem touchscreen (R36S, R33S, etc), e com Restart=always
   um exit do helper provocava restart infinito. Adicionado bail-out
   precoce quando DEVICE_HAS_TOUCHSCREEN != true, e Restart trocado
   para on-failure para honrar o exit limpo. Em devices sem
   touchscreen o serviço passa a ficar inativo após o primeiro boot.

5. setrootpass cryptpw sha512 + smbpasswd + syncthing generate
   custavam ~6s a cada boot — chamado pelo autostart 007-rootpw com a
   senha já configurada. Adicionado short-circuit que compara o hash
   sha256 da senha contra o cache em /storage/.cache/.archr-rootpass.
   sha256: se nada mudou, sai em 20ms.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-24 11:37:36 -03:00
Douglas Teles e90a0708c8 units + scripts: corrigir bugs herdados de JELOS no boot
Sweep encontrou 5 categorias de bugs sutis em arquivos herdados:

1. StartLimitInterval/StartLimitBurst em [Service] em 13 unidades
   (avahi, bluez, connman, samba/nmbd/smbd, sshd, tz-data, ledfix,
   xorg, fluxbox/windowmanager, samba-config). systemd silenciosamente
   ignora StartLimit* fora de [Unit], então a proteção contra
   restart-flood nunca foi aplicada. Movidas para [Unit] e renomeadas
   para o canônico StartLimitIntervalSec (StartLimitInterval é alias
   antigo).

2. Refs dangling para kodi.service em 5 units (entware, locale, sway,
   xorg, xwayland-xorg, windowmanager-fluxbox). ArchR não embarca
   Kodi; o ordering Before=kodi.service ficava como "not-found" no
   systemctl list-units. Trocado por Before=archr.target (alvo real
   de boot da UI em ArchR).

3. usercache.service e userconfig.service referenciavam
   automount.service e autostart.service sem prefixo archr-. Em ArchR
   as unidades reais chamam-se archr-automount.service /
   archr-autostart.service, então o Before= era ignorado e o setup
   corria paralelo aos mounts.

4. archr-autostart.service tinha Before=weston.service. ArchR roda
   sway, não weston. Removido (After=graphical.target já cobre).

5. nmbd.service do override ArchR queria samba-config.service que só
   existe no pacote global packages/network/samba (não no override).
   O daemons/002-samba já cria /run/samba/smb.conf manualmente, então
   Wants/After=samba-config.service eram supérfluos.

Bugs adicionais corrigidos no caminho:

- archr/autostart/050-audio: `if [ -n "/usr/sbin/quantum" ]` testa se
  uma string literal é não-vazia (sempre true) em vez de checar se o
  binário existe. Trocado para [ -x ].
- avahi: post_makeinstall_target removia /usr/sbin/avahi-dnsconfd mas
  deixava a unit avahi-dnsconfd.service órfã. Remove a unit junto.
- system-utils: video.service só faz sentido em devices que embarcam
  /usr/bin/video_sense (RK3399/RK3566/S922X). Remove a unit em
  devices que não têm o helper.
- xwayland: scripts/xorg-configure não era instalado, deixando
  xorg-configure@.service com ExecStart para um path inexistente.
  Agora copiado pra /usr/lib/xorg/xorg-configure.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-24 11:09:58 -03:00
Douglas Teles c542304146 New architecture release 2026-03-18 17:32:41 -03:00
Rudi Heitbaum c6e5ba7474 wireless-regdb: update to 2025.07.10
Release notes:
- https://git.kernel.org/pub/scm/linux/kernel/git/wens/wireless-regdb.git
2025-07-10 13:44:31 +00:00
Rudi Heitbaum ec11d95eb5 samba: update to 4.22.3
Release notes:
- https://www.samba.org/samba/history/samba-4.22.3.html
2025-07-08 02:43:21 +00:00
Rudi Heitbaum 13964aa5eb libssh: update to 0.11.2 2025-06-28 04:00:14 +00:00
Rudi Heitbaum 9dc824220e ethtool: update to 6.15 2025-06-24 10:38:16 +00:00
Rudi Heitbaum 267b669886 nfs-utils: add libnl as PKG_DEPENDS_TARGET 2025-06-15 00:44:49 +00:00
Rudi Heitbaum 63e29d5886 iwd: update to 3.9
+	Fix issue with Access Point mode and frequency unlocking.
+	Fix issue with network configuration and BSS retry logic.
+	Fix issue with handling busy notification from Access Point.
+	Fix issue with handling P-192, P-224 and P-521 for SAE.
2025-06-14 13:00:20 +00:00
Rudi Heitbaum 2927e4ed38 cifs-utils: update to 7.4 2025-06-11 13:36:37 +00:00
Rudi Heitbaum 5e5a7433e8 samba: update to 4.22.2
Release notes:
- https://www.samba.org/samba/history/samba-4.22.2.html
2025-06-06 09:16:41 +00:00
Rudi Heitbaum 82b109908d bluez: update to 5.83
release notes:
- https://github.com/bluez/bluez/releases/tag/5.83
- https://github.com/bluez/bluez/pulls?q=is%3Apr+closed%3A%3E2025-04-02+PW_SID
- https://github.com/bluez/bluez/compare/5.82...5.83
2025-06-03 08:58:52 +00:00
Rudi Heitbaum 3c030c6cac openssh: update to 10.0p2
Change log:
- https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/ChangeLog

Release notes:
- https://www.openssh.com/releasenotes.html#10.0p2

Release notes:
- https://www.openssh.com/txt/release-10.0p2
2025-05-24 07:13:57 +00:00
Christian Hewitt 6d2f071542 Merge pull request #10078 from heitbaum/pkg
Package updates
2025-05-22 15:34:27 +04:00
Rudi Heitbaum baeb55c4d5 wireguard-tools: update to 1.0.20250521
log: https://github.com/WireGuard/wireguard-tools/compare/v1.0.20210914...v1.0.20250521
2025-05-21 13:25:58 +00:00
Rudi Heitbaum 1588298b03 ipset: update to 7.24 2025-05-21 09:09:39 +00:00
Christian Hewitt c2234b95c3 Merge pull request #9985 from heitbaum/gcc15a
Patches required for LE to compile with gcc-15
2025-05-16 09:42:28 +04:00
Christian Hewitt ef377a261e openssh: support SSH_ENABLED_DEFAULT option
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
2025-05-11 12:28:50 +00:00
Rudi Heitbaum e1fe63d6b6 iwd: update to 3.8 2025-05-09 02:47:11 +00:00
Rudi Heitbaum 18fb4afe62 libnl: build with pic
- required by nmap-7.96
2025-05-09 02:47:11 +00:00
Rudi Heitbaum 5ed77e46c1 iwd: update to 3.7 2025-05-05 02:01:14 +00:00
Rudi Heitbaum dc581c2063 libtirpc: gcc-15 upstream fixes
ref:
- https://sourceforge.net/p/libtirpc/mailman/message/58851697/
- https://sourceforge.net/p/libtirpc/mailman/message/59113888/
2025-04-20 09:44:24 +00:00
Rudi Heitbaum 5d631aadc8 samba: update to 4.22.1
Release notes:
- https://www.samba.org/samba/history/samba-4.22.1.html
2025-04-18 01:01:04 +00:00
Rudi Heitbaum ab19ea9a6d libnftnl: update to 1.2.9 2025-04-15 07:28:47 +00:00