Systems installed from the 26.06.5 image now receive new kernels. The package that brings them, skillfishos-kernel, should have arrived with an update in September, but at that moment those systems still had recommended packages switched off, and apt never offers a skipped one again. It is now installed right after this update, unless it was removed on purpose. USB Wi-Fi and Bluetooth adapters that first show up as a CD-ROM, such as the Realtek RTL8851BU, now work without extra steps: usb-modeswitch is part of the system.
+I sistemi installati dall'immagine 26.06.5 ricevono ora i kernel nuovi. Il pacchetto che li porta, skillfishos-kernel, doveva arrivare con un aggiornamento di settembre, ma in quel momento quei sistemi avevano ancora spenti i pacchetti raccomandati, e apt non ripropone mai uno saltato. Ora si installa subito dopo questo aggiornamento, a meno che non sia stato tolto apposta. Le chiavette Wi-Fi e Bluetooth USB che all'inizio si presentano come un CD-ROM, come la Realtek RTL8851BU, funzionano senza passaggi in più: usb-modeswitch fa parte del sistema.
+Les systèmes installés depuis l'image 26.06.5 reçoivent désormais les nouveaux noyaux. Le paquet qui les apporte, skillfishos-kernel, aurait dû arriver avec une mise à jour en septembre, mais à ce moment-là ces systèmes avaient encore les paquets recommandés désactivés, et apt ne repropose jamais un paquet ignoré. Il s'installe maintenant juste après cette mise à jour, sauf s'il a été retiré volontairement. Les adaptateurs USB Wi-Fi et Bluetooth qui se présentent d'abord comme un CD-ROM, comme le Realtek RTL8851BU, fonctionnent sans étape supplémentaire : usb-modeswitch fait partie du système.
+Los sistemas instalados desde la imagen 26.06.5 reciben ahora los kernels nuevos. El paquete que los trae, skillfishos-kernel, debía llegar con una actualización de septiembre, pero en ese momento esos sistemas aún tenían desactivados los paquetes recomendados, y apt nunca vuelve a ofrecer uno que se saltó. Ahora se instala justo después de esta actualización, salvo que se haya quitado a propósito. Los adaptadores USB de Wi-Fi y Bluetooth que al principio aparecen como un CD-ROM, como el Realtek RTL8851BU, funcionan sin pasos adicionales: usb-modeswitch forma parte del sistema.
+Os sistemas instalados a partir da imagem 26.06.5 passam a receber os kernels novos. O pacote que os traz, o skillfishos-kernel, devia ter chegado com uma atualização em setembro, mas nesse momento esses sistemas ainda tinham os pacotes recomendados desligados, e o apt nunca volta a propor um pacote que foi ignorado. Agora é instalado logo a seguir a esta atualização, a não ser que tenha sido removido de propósito. Os adaptadores USB de Wi-Fi e Bluetooth que primeiro aparecem como um CD-ROM, como o Realtek RTL8851BU, funcionam sem passos extra: o usb-modeswitch faz parte do sistema.
+Systeme, die vom Abbild 26.06.5 installiert wurden, erhalten jetzt neue Kernel. Das Paket, das sie bringt, skillfishos-kernel, hätte mit einem Update im September kommen sollen, aber zu diesem Zeitpunkt waren auf diesen Systemen empfohlene Pakete noch abgeschaltet, und apt bietet ein übersprungenes Paket nie wieder an. Es wird jetzt direkt nach diesem Update installiert, außer es wurde absichtlich entfernt. USB-WLAN- und Bluetooth-Adapter, die sich zuerst als CD-ROM melden, wie der Realtek RTL8851BU, funktionieren ohne zusätzliche Schritte: usb-modeswitch gehört jetzt zum System.
+Systemy zainstalowane z obrazu 26.06.5 otrzymują teraz nowe jądra. Pakiet, który je dostarcza, skillfishos-kernel, miał przyjść z aktualizacją we wrześniu, ale wtedy te systemy miały jeszcze wyłączone pakiety zalecane, a apt nigdy nie proponuje ponownie pominiętego pakietu. Teraz instaluje się zaraz po tej aktualizacji, chyba że został celowo usunięty. Adaptery USB Wi-Fi i Bluetooth, które najpierw zgłaszają się jako CD-ROM, jak Realtek RTL8851BU, działają bez dodatkowych kroków: usb-modeswitch jest częścią systemu.
+Системы, установленные с образа 26.06.5, теперь получают новые ядра. Пакет, который их приносит, skillfishos-kernel, должен был прийти с обновлением в сентябре, но тогда на этих системах ещё были отключены рекомендуемые пакеты, а apt никогда не предлагает пропущенный пакет повторно. Теперь он устанавливается сразу после этого обновления, если только его не удалили намеренно. USB-адаптеры Wi-Fi и Bluetooth, которые сначала определяются как CD-ROM, например Realtek RTL8851BU, работают без лишних шагов: usb-modeswitch входит в систему.
+Системи, встановлені з образу 26.06.5, тепер отримують нові ядра. Пакет, який їх приносить, skillfishos-kernel, мав прийти з оновленням у вересні, але тоді на цих системах ще були вимкнені рекомендовані пакети, а apt ніколи не пропонує пропущений пакет повторно. Тепер він встановлюється одразу після цього оновлення, якщо його не видалили навмисно. USB-адаптери Wi-Fi і Bluetooth, які спершу визначаються як CD-ROM, наприклад Realtek RTL8851BU, працюють без додаткових кроків: usb-modeswitch входить до системи.
+On the BC-250 the graphics driver no longer finds its power controller refusing to hand over the sensor table. A SkillFishOS sampler that reads the GPU clock wrote into the same message box the driver uses; it now takes the clock the driver already provides. The refusals that showed up in the system log on almost every boot are gone: none in ten hours, against about one an hour before.
diff --git a/docs/BUILD.md b/docs/BUILD.md index 1c60ef85..9e03a250 100644 --- a/docs/BUILD.md +++ b/docs/BUILD.md @@ -45,12 +45,12 @@ The three userpatches: Output `.deb`s land in `DEBS/`. Install: ```sh -sudo dpkg -i linux-image-7.2.9-skillfishos_*.deb linux-headers-7.2.9-skillfishos_*.deb -sudo apt-mark hold linux-image-7.2.9-skillfishos linux-headers-7.2.9-skillfishos +sudo dpkg -i linux-image-7.3.4-skillfishos_*.deb linux-headers-7.3.4-skillfishos_*.deb +sudo apt-mark hold linux-image-7.3.4-skillfishos linux-headers-7.3.4-skillfishos sudo update-grub ``` -A prebuilt build is also published under [Releases](../../../releases/tag/kernel-7.2.9-skillfishos). +A prebuilt build is also published under [Releases](../../../releases/tag/kernel-7.3.4-skillfishos). ### Publishing a release diff --git a/docs/OPTIMIZATIONS.md b/docs/OPTIMIZATIONS.md index fd2564a1..dab44c6b 100644 --- a/docs/OPTIMIZATIONS.md +++ b/docs/OPTIMIZATIONS.md @@ -106,7 +106,7 @@ The full **PipeWire** stack (pipewire‑pulse, WirePlumber, ALSA/BT) with user s ## 8. Wi‑Fi & Bluetooth -Common combo adapters (e.g. Realtek **RTL8851BU**, Wi‑Fi 6 + BT) ship in **CD‑ROM installer mode**. `usb-modeswitch` + `usb-modeswitch-data` flip them to the real device, persistently via udev — without them there is **no Wi‑Fi and no Bluetooth** on these adapters. +Common combo adapters (e.g. Realtek **RTL8851BU**, Wi‑Fi 6 + BT) ship in **CD‑ROM installer mode**. `usb-modeswitch` + `usb-modeswitch-data` flip them to the real device, persistently via udev — without them there is **no Wi‑Fi and no Bluetooth** on these adapters. Both come with `skillfish-base` since 26.11.4; on an older install, `sudo apt install usb-modeswitch usb-modeswitch-data`. --- diff --git a/scripts/build-debs-ci.sh b/scripts/build-debs-ci.sh index efbbd982..344cf31d 100755 --- a/scripts/build-debs-ci.sh +++ b/scripts/build-debs-ci.sh @@ -871,7 +871,11 @@ echo " os-release timbrato: $MEDIA" # were there something to scan with; print-manager is the Printers page of the # KDE settings. Depends, not Recommends: installs from 26.06.5 have Recommends # switched off until this very version moves 00recommends away. -ctrl $P "systemd, libnotify-bin, python3, cpio, locales, mokutil, systemd-zram-generator, sshpass, openssh-client, skillfish-boot, skillfish-desktop-guard, fastfetch, alsa-ucm-conf, alsa-topology-conf, sane-airscan, skanlite, print-manager" "SkillFishOS base - hardware watchdog + freeze detector + 8-core unlock" \ +# usb-modeswitch: common USB Wi-Fi/Bluetooth combo adapters (Realtek RTL8851BU +# and the like) start in CD-ROM installer mode, and only usb-modeswitch with its +# data package flips them to the real device. docs/OPTIMIZATIONS.md promised it, +# but nothing installed it (issue #136). +ctrl $P "systemd, libnotify-bin, python3, cpio, locales, mokutil, systemd-zram-generator, sshpass, openssh-client, skillfish-boot, skillfish-desktop-guard, fastfetch, alsa-ucm-conf, alsa-topology-conf, sane-airscan, skanlite, print-manager, usb-modeswitch, usb-modeswitch-data" "SkillFishOS base - hardware watchdog + freeze detector + 8-core unlock" \ "The watchdog that reboots the board if it stops answering, the freeze detector, the 8-core unlock, the shared translation dictionary and the sensor tables the applications read. It is also the one place that asks the SMU how much power the @@ -924,6 +928,31 @@ Aptitude::Recommends-Important "false";' ]; then mkdir -p /var/backups/skillfish mv "$F" /var/backups/skillfish/00recommends.live-build fi +# Issue #137: the Recommends on skillfishos-kernel (#103) never reached the +# installs it was written for. It arrived while 00recommends was still switched +# on, so apt skipped it, and apt only installs a Recommends that is new in the +# upgraded version: once skipped, never again. Changing the version constraint +# does not make it new (tried with apt 3.3.7), and an image installed today +# jumps to this version in one upgrade, with 00recommends still read by the apt +# that runs it. So the wrapper is installed here, after that apt lets go of the +# lock, the same way skillfishos-kernel installs its kernel. Only where the +# backup above proves the system came from an image without Recommends, only if +# dpkg has never had the wrapper selected and apt never removed it, and only +# until it worked once: someone who removed it keeps it removed. +KC_DONE=/var/lib/skillfish/kernel-catchup.done +if [ -d /run/systemd/system ] && [ -f /var/backups/skillfish/00recommends.live-build ] \ + && [ ! -e "$KC_DONE" ] && command -v systemd-run >/dev/null 2>&1 \ + && ! systemd-detect-virt --chroot --quiet 2>/dev/null; then + KC_WANT=$(dpkg-query -W -f='${db:Status-Abbrev}' skillfishos-kernel 2>/dev/null | cut -c1) + if [ "$KC_WANT" != i ] && [ "$KC_WANT" != h ] \ + && ! zgrep -qE '^(Remove|Purge): .*skillfishos-kernel:' /var/log/apt/history.log* 2>/dev/null; then + mkdir -p /var/lib/skillfish + systemd-run --quiet --on-active=30 --unit=skillfish-kernel-catchup \ + --setenv=DEBIAN_FRONTEND=noninteractive \ + /bin/sh -c "apt-get -y -q -o DPkg::Lock::Timeout=3600 install skillfishos-kernel && touch $KC_DONE" \ + >/dev/null 2>&1 || true + fi +fi if [ -d /run/systemd/system ]; then systemctl daemon-reload || true # senza chiavi host ssh.service fallisce all'infinito su installazione fresca @@ -1962,6 +1991,12 @@ check skillfish-base_${VER}_all.deb ./usr/local/share/applications/conky.desktop grep -q '^Depends:.*alsa-ucm-conf' "$OUT/skillfish-base/DEBIAN/control" \ && echo "OK skillfish-base: depends on alsa-ucm-conf" \ || { echo "FAIL skillfish-base: alsa-ucm-conf missing from Depends" >&2; exit 1; } +grep -q '^Depends:.*usb-modeswitch-data' "$OUT/skillfish-base/DEBIAN/control" \ + && echo "OK skillfish-base: depends on usb-modeswitch-data (#136)" \ + || { echo "FAIL skillfish-base: usb-modeswitch-data missing from Depends" >&2; exit 1; } +grep -q 'unit=skillfish-kernel-catchup' "$OUT/skillfish-base/DEBIAN/postinst" \ + && echo "OK skillfish-base: postinst catches up skillfishos-kernel (#137)" \ + || { echo "FAIL skillfish-base: kernel catch-up missing from postinst" >&2; exit 1; } while read -r leftover_pkg leftover_file; do grep -q "$leftover_file" "$OUT/$leftover_pkg/DEBIAN/postinst" \ && echo "OK $leftover_pkg: postinst moves the 26.06 leftover $leftover_file" \ diff --git a/system/usr/local/bin/skillfish-gpu-freq-sampler b/system/usr/local/bin/skillfish-gpu-freq-sampler index 87442966..fa056cd6 100755 --- a/system/usr/local/bin/skillfish-gpu-freq-sampler +++ b/system/usr/local/bin/skillfish-gpu-freq-sampler @@ -71,9 +71,8 @@ def power_line(d): def publish(path, text): - # Atomic replace, readable by the desktop user. If /run is full or read-only - # the readers keep the previous file, which is two seconds old: better than - # a sampler that dies because it could not write. + # Atomic replace. World-readable on purpose: the HUD and the apps that read + # the clock run as the desktop user, and the file holds only a number. try: tmp = path + ".tmp" with open(tmp, "w") as f: @@ -81,6 +80,9 @@ def publish(path, text): os.chmod(tmp, 0o644) os.replace(tmp, path) except OSError: + # /run full or read-only: the readers keep the previous file, which is + # two seconds old. Better than a sampler that dies because it could + # not write. pass