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.
+Sulla BC-250 il driver grafico non trova più il controllore di alimentazione che si rifiuta di consegnargli la tabella dei sensori. Un campionatore di SkillFishOS che legge il clock della GPU scriveva nella stessa casella di messaggi che usa il driver; ora prende il clock che il driver dà già. I rifiuti che comparivano nel registro di sistema quasi a ogni avvio sono spariti: nessuno in dieci ore, contro circa uno all'ora prima.
+Sur la BC-250, le pilote graphique ne voit plus le contrôleur d'alimentation refuser de lui remettre la table des capteurs. Un échantillonneur de SkillFishOS qui lit la fréquence du GPU écrivait dans la même boîte à messages que le pilote ; il prend désormais la fréquence que le pilote fournit déjà. Les refus qui apparaissaient dans le journal système à presque chaque démarrage ont disparu : aucun en dix heures, contre environ un par heure avant.
+En la BC-250 el controlador gráfico ya no encuentra al controlador de energía negándose a entregarle la tabla de sensores. Un muestreador de SkillFishOS que lee el reloj de la GPU escribía en el mismo buzón de mensajes que usa el controlador; ahora toma el reloj que el controlador ya ofrece. Los rechazos que aparecían en el registro del sistema casi en cada arranque han desaparecido: ninguno en diez horas, frente a uno por hora aproximadamente antes.
+Na BC-250 o controlador gráfico já não encontra o controlador de energia a recusar-lhe a tabela de sensores. Um amostrador do SkillFishOS que lê o relógio da GPU escrevia na mesma caixa de mensagens que o controlador usa; agora usa o relógio que o controlador já fornece. As recusas que apareciam no registo do sistema em quase todos os arranques desapareceram: nenhuma em dez horas, contra cerca de uma por hora antes.
+Auf der BC-250 erlebt der Grafiktreiber nicht mehr, dass der Energie-Controller ihm die Sensortabelle verweigert. Ein SkillFishOS-Sampler, der den GPU-Takt liest, schrieb in dasselbe Nachrichtenfach, das der Treiber benutzt; jetzt nimmt er den Takt, den der Treiber schon liefert. Die Ablehnungen, die fast bei jedem Start im Systemprotokoll standen, sind verschwunden: keine in zehn Stunden, vorher etwa eine pro Stunde.
+Na BC-250 sterownik grafiki nie trafia już na kontroler zasilania, który odmawia mu tabeli czujników. Próbnik SkillFishOS odczytujący zegar GPU pisał do tej samej skrzynki komunikatów, z której korzysta sterownik; teraz bierze zegar, który sterownik już podaje. Odmowy, które pojawiały się w dzienniku systemu niemal przy każdym starcie, zniknęły: żadnej w dziesięć godzin, wcześniej mniej więcej jedna na godzinę.
+На BC-250 графический драйвер больше не сталкивается с тем, что контроллер питания отказывается отдать ему таблицу датчиков. Сэмплер SkillFishOS, читающий частоту GPU, писал в тот же почтовый ящик, которым пользуется драйвер; теперь он берёт частоту, которую драйвер уже отдаёт. Отказы, появлявшиеся в системном журнале почти при каждой загрузке, исчезли: ни одного за десять часов против примерно одного в час раньше.
+На BC-250 графічний драйвер більше не стикається з тим, що контролер живлення відмовляється віддати йому таблицю датчиків. Семплер SkillFishOS, що читає частоту GPU, писав у ту саму поштову скриньку, якою користується драйвер; тепер він бере частоту, яку драйвер уже віддає. Відмови, що з'являлися в системному журналі майже під час кожного завантаження, зникли: жодної за десять годин проти приблизно однієї на годину раніше.
+Fixes for systems installed from the 26.06.5 image. Right after installation apt now finds every package from the terminal too: the package lists are fetched on the first start with a network. Recommended packages are installed again, as on any Debian. And the sound profiles that the audio of modern mini PCs needs, an app to scan with, support for network scanners and the Printers page of the settings are now part of the system. Debian's own Conky entry no longer opens a second one over the HUD.
diff --git a/apps/control-center/i18n/de.json b/apps/control-center/i18n/de.json index c94a0afb..5421ea8d 100644 --- a/apps/control-center/i18n/de.json +++ b/apps/control-center/i18n/de.json @@ -518,5 +518,26 @@ "System graphics driver": "Grafiktreiber des Systems", "No model on the disk: download one from Studio or copy a .gguf into ~/modelli": "Kein Modell auf der Platte: lade eines über Studio herunter oder kopiere eine .gguf nach ~/modelli", "checking the checksum": "prüfe die Prüfsumme", - "wrong sha512 checksum: the download is corrupt": "falsche sha512-Prüfsumme: der Download ist beschädigt" + "wrong sha512 checksum: the download is corrupt": "falsche sha512-Prüfsumme: der Download ist beschädigt", + "Frame generation": "Frame Generation", + "FreeFG (daniel-h-0, MIT licence) adds Intel's XeSS frame generation to a game, with faster shaders written for the BC-250, and FSR 4. In Cyberpunk at 1080p: about 130 fps shown against 90. They are generated frames: the game stays at its ~65 real fps and latency goes up a little. It is installed game by game, with the launcher closed; in that game GE-Proton's FSR 4 is turned off, because FreeFG brings its own. In the game, pick DLSS, FSR or XeSS and leave its own frame generation off.": "FreeFG (daniel-h-0, MIT-Lizenz) fügt einem Spiel Intels XeSS-Frame-Generation hinzu, mit schnelleren, für die BC-250 geschriebenen Shadern, und dazu FSR 4. In Cyberpunk bei 1080p: etwa 130 angezeigte fps statt 90. Es sind erzeugte Bilder: Das Spiel bleibt bei seinen ~65 echten fps, und die Latenz steigt etwas. Es wird Spiel für Spiel installiert, bei geschlossenem Launcher; in diesem Spiel wird das FSR 4 von GE-Proton abgeschaltet, weil FreeFG sein eigenes mitbringt. Im Spiel DLSS, FSR oder XeSS wählen und dessen eigene Frame Generation ausgeschaltet lassen.", + "Downloading FreeFG and checking its sha256…": "Lade FreeFG herunter und prüfe die sha256…", + "Looking for Steam and Heroic games…": "Suche Spiele von Steam und Heroic…", + "Download FreeFG": "FreeFG herunterladen", + "Install in the game": "Im Spiel installieren", + "Remove from the game": "Aus dem Spiel entfernen", + "Refresh list": "Liste aktualisieren", + "not downloaded": "nicht heruntergeladen", + "no game found": "kein Spiel gefunden", + "%d games, %d with FreeFG.": "%d Spiele, %d mit FreeFG.", + "Pick a game from the list.": "Wähle ein Spiel aus der Liste.", + "FreeFG is already in this game.": "FreeFG ist schon in diesem Spiel.", + "Install FreeFG?": "FreeFG installieren?", + "Installing FreeFG in %s…": "Installiere FreeFG in %s…", + "FreeFG is not in this game.": "FreeFG ist nicht in diesem Spiel.", + "Removing FreeFG from %s…": "Entferne FreeFG aus %s…", + "Download FreeFG %s (11 MB) to see which games take it.": "Lade FreeFG %s (11 MB) herunter, um zu sehen, welche Spiele es annehmen.", + "not suitable": "nicht geeignet", + "suitable": "geeignet", + "FreeFG goes into %s: XeSS frame generation and FSR 4. The first time it downloads Intel's runtime and the BC-250 FSR 4 (about 60 MB). In this game GE-Proton's FSR 4 is turned off. Steam and Heroic must be closed. Go ahead?": "FreeFG kommt in %s: XeSS-Frame-Generation und FSR 4. Beim ersten Mal lädt es Intels Laufzeit und das FSR 4 für die BC-250 herunter (etwa 60 MB). In diesem Spiel wird das FSR 4 von GE-Proton abgeschaltet. Steam und Heroic müssen geschlossen sein. Fortfahren?" } diff --git a/apps/control-center/i18n/es.json b/apps/control-center/i18n/es.json index b5f5e352..c44481a1 100644 --- a/apps/control-center/i18n/es.json +++ b/apps/control-center/i18n/es.json @@ -518,5 +518,26 @@ "System graphics driver": "Controlador gráfico del sistema", "No model on the disk: download one from Studio or copy a .gguf into ~/modelli": "Ningún modelo en el disco: descarga uno desde Studio o copia un .gguf en ~/modelli", "checking the checksum": "compruebo la suma de verificación", - "wrong sha512 checksum: the download is corrupt": "suma sha512 incorrecta: la descarga está dañada" + "wrong sha512 checksum: the download is corrupt": "suma sha512 incorrecta: la descarga está dañada", + "Frame generation": "Generación de fotogramas", + "FreeFG (daniel-h-0, MIT licence) adds Intel's XeSS frame generation to a game, with faster shaders written for the BC-250, and FSR 4. In Cyberpunk at 1080p: about 130 fps shown against 90. They are generated frames: the game stays at its ~65 real fps and latency goes up a little. It is installed game by game, with the launcher closed; in that game GE-Proton's FSR 4 is turned off, because FreeFG brings its own. In the game, pick DLSS, FSR or XeSS and leave its own frame generation off.": "FreeFG (daniel-h-0, licencia MIT) añade a un juego la generación de fotogramas XeSS de Intel, con shaders más rápidos escritos para la BC-250, y FSR 4. En Cyberpunk a 1080p: unos 130 fps mostrados frente a 90. Son fotogramas generados: el juego sigue en sus ~65 fps reales y la latencia sube un poco. Se instala juego por juego, con el lanzador cerrado; en ese juego se apaga el FSR 4 de GE-Proton, porque FreeFG trae el suyo. En el juego, elige DLSS, FSR o XeSS y deja apagada su propia generación de fotogramas.", + "Downloading FreeFG and checking its sha256…": "Descargo FreeFG y compruebo su sha256…", + "Looking for Steam and Heroic games…": "Busco juegos de Steam y Heroic…", + "Download FreeFG": "Descargar FreeFG", + "Install in the game": "Instalar en el juego", + "Remove from the game": "Quitar del juego", + "Refresh list": "Actualizar lista", + "not downloaded": "no descargado", + "no game found": "ningún juego encontrado", + "%d games, %d with FreeFG.": "%d juegos, %d con FreeFG.", + "Pick a game from the list.": "Elige un juego de la lista.", + "FreeFG is already in this game.": "FreeFG ya está en este juego.", + "Install FreeFG?": "¿Instalar FreeFG?", + "Installing FreeFG in %s…": "Instalo FreeFG en %s…", + "FreeFG is not in this game.": "FreeFG no está en este juego.", + "Removing FreeFG from %s…": "Quito FreeFG de %s…", + "Download FreeFG %s (11 MB) to see which games take it.": "Descarga FreeFG %s (11 MB) para ver qué juegos lo admiten.", + "not suitable": "no apto", + "suitable": "apto", + "FreeFG goes into %s: XeSS frame generation and FSR 4. The first time it downloads Intel's runtime and the BC-250 FSR 4 (about 60 MB). In this game GE-Proton's FSR 4 is turned off. Steam and Heroic must be closed. Go ahead?": "FreeFG entra en %s: generación de fotogramas XeSS y FSR 4. La primera vez descarga el runtime de Intel y el FSR 4 para la BC-250 (unos 60 MB). En este juego se apaga el FSR 4 de GE-Proton. Steam y Heroic deben estar cerrados. ¿Continuar?" } diff --git a/apps/control-center/i18n/fr.json b/apps/control-center/i18n/fr.json index ce222145..50f05e25 100644 --- a/apps/control-center/i18n/fr.json +++ b/apps/control-center/i18n/fr.json @@ -518,5 +518,26 @@ "System graphics driver": "Pilote graphique du système", "No model on the disk: download one from Studio or copy a .gguf into ~/modelli": "Aucun modèle sur le disque : téléchargez-en un depuis Studio ou copiez un .gguf dans ~/modelli", "checking the checksum": "vérification de la somme de contrôle", - "wrong sha512 checksum: the download is corrupt": "somme sha512 incorrecte : le téléchargement est corrompu" + "wrong sha512 checksum: the download is corrupt": "somme sha512 incorrecte : le téléchargement est corrompu", + "Frame generation": "Génération d'images", + "FreeFG (daniel-h-0, MIT licence) adds Intel's XeSS frame generation to a game, with faster shaders written for the BC-250, and FSR 4. In Cyberpunk at 1080p: about 130 fps shown against 90. They are generated frames: the game stays at its ~65 real fps and latency goes up a little. It is installed game by game, with the launcher closed; in that game GE-Proton's FSR 4 is turned off, because FreeFG brings its own. In the game, pick DLSS, FSR or XeSS and leave its own frame generation off.": "FreeFG (daniel-h-0, licence MIT) ajoute à un jeu la génération d'images XeSS d'Intel, avec des shaders plus rapides écrits pour la BC-250, et FSR 4. Dans Cyberpunk en 1080p : environ 130 fps affichés contre 90. Ce sont des images générées : le jeu reste à ses ~65 fps réels et la latence augmente un peu. Il s'installe jeu par jeu, lanceur fermé ; dans ce jeu, le FSR 4 de GE-Proton est désactivé, car FreeFG apporte le sien. Dans le jeu, choisissez DLSS, FSR ou XeSS et laissez sa propre génération d'images désactivée.", + "Downloading FreeFG and checking its sha256…": "Téléchargement de FreeFG et vérification du sha256…", + "Looking for Steam and Heroic games…": "Recherche des jeux Steam et Heroic…", + "Download FreeFG": "Télécharger FreeFG", + "Install in the game": "Installer dans le jeu", + "Remove from the game": "Retirer du jeu", + "Refresh list": "Actualiser la liste", + "not downloaded": "non téléchargé", + "no game found": "aucun jeu trouvé", + "%d games, %d with FreeFG.": "%d jeux, %d avec FreeFG.", + "Pick a game from the list.": "Choisissez un jeu dans la liste.", + "FreeFG is already in this game.": "FreeFG est déjà dans ce jeu.", + "Install FreeFG?": "Installer FreeFG ?", + "Installing FreeFG in %s…": "Installation de FreeFG dans %s…", + "FreeFG is not in this game.": "FreeFG n'est pas dans ce jeu.", + "Removing FreeFG from %s…": "Retrait de FreeFG de %s…", + "Download FreeFG %s (11 MB) to see which games take it.": "Téléchargez FreeFG %s (11 Mo) pour voir quels jeux l'acceptent.", + "not suitable": "non adapté", + "suitable": "adapté", + "FreeFG goes into %s: XeSS frame generation and FSR 4. The first time it downloads Intel's runtime and the BC-250 FSR 4 (about 60 MB). In this game GE-Proton's FSR 4 is turned off. Steam and Heroic must be closed. Go ahead?": "FreeFG entre dans %s : génération d'images XeSS et FSR 4. La première fois, il télécharge le runtime d'Intel et le FSR 4 pour la BC-250 (environ 60 Mo). Dans ce jeu, le FSR 4 de GE-Proton est désactivé. Steam et Heroic doivent être fermés. Continuer ?" } diff --git a/apps/control-center/i18n/pl.json b/apps/control-center/i18n/pl.json index b16ac692..88c6c57a 100644 --- a/apps/control-center/i18n/pl.json +++ b/apps/control-center/i18n/pl.json @@ -519,5 +519,26 @@ "System graphics driver": "Systemowy sterownik graficzny", "No model on the disk: download one from Studio or copy a .gguf into ~/modelli": "Brak modelu na dysku: pobierz go przez Studio albo skopiuj plik .gguf do ~/modelli", "checking the checksum": "sprawdzam sumę kontrolną", - "wrong sha512 checksum: the download is corrupt": "błędna suma sha512: pobrany plik jest uszkodzony" + "wrong sha512 checksum: the download is corrupt": "błędna suma sha512: pobrany plik jest uszkodzony", + "Frame generation": "Generowanie klatek", + "FreeFG (daniel-h-0, MIT licence) adds Intel's XeSS frame generation to a game, with faster shaders written for the BC-250, and FSR 4. In Cyberpunk at 1080p: about 130 fps shown against 90. They are generated frames: the game stays at its ~65 real fps and latency goes up a little. It is installed game by game, with the launcher closed; in that game GE-Proton's FSR 4 is turned off, because FreeFG brings its own. In the game, pick DLSS, FSR or XeSS and leave its own frame generation off.": "FreeFG (daniel-h-0, licencja MIT) dodaje do gry generowanie klatek XeSS firmy Intel, z szybszymi shaderami napisanymi dla BC-250, oraz FSR 4. W Cyberpunku w 1080p: około 130 wyświetlanych fps zamiast 90. To klatki generowane: gra zostaje przy swoich ~65 prawdziwych fps, a opóźnienie trochę rośnie. Instaluje się go gra po grze, przy zamkniętym launcherze; w tej grze FSR 4 z GE-Proton zostaje wyłączone, bo FreeFG przynosi własne. W grze wybierz DLSS, FSR lub XeSS i zostaw jej własne generowanie klatek wyłączone.", + "Downloading FreeFG and checking its sha256…": "Pobieram FreeFG i sprawdzam sumę sha256…", + "Looking for Steam and Heroic games…": "Szukam gier ze Steama i Heroica…", + "Download FreeFG": "Pobierz FreeFG", + "Install in the game": "Zainstaluj w grze", + "Remove from the game": "Usuń z gry", + "Refresh list": "Odśwież listę", + "not downloaded": "nie pobrano", + "no game found": "nie znaleziono gier", + "%d games, %d with FreeFG.": "Gry: %d, z FreeFG: %d.", + "Pick a game from the list.": "Wybierz grę z listy.", + "FreeFG is already in this game.": "FreeFG jest już w tej grze.", + "Install FreeFG?": "Zainstalować FreeFG?", + "Installing FreeFG in %s…": "Instaluję FreeFG w %s…", + "FreeFG is not in this game.": "FreeFG nie ma w tej grze.", + "Removing FreeFG from %s…": "Usuwam FreeFG z %s…", + "Download FreeFG %s (11 MB) to see which games take it.": "Pobierz FreeFG %s (11 MB), aby zobaczyć, które gry go obsługują.", + "not suitable": "nieodpowiednia", + "suitable": "odpowiednia", + "FreeFG goes into %s: XeSS frame generation and FSR 4. The first time it downloads Intel's runtime and the BC-250 FSR 4 (about 60 MB). In this game GE-Proton's FSR 4 is turned off. Steam and Heroic must be closed. Go ahead?": "FreeFG trafia do %s: generowanie klatek XeSS i FSR 4. Za pierwszym razem pobiera środowisko Intela i FSR 4 dla BC-250 (około 60 MB). W tej grze FSR 4 z GE-Proton zostaje wyłączone. Steam i Heroic muszą być zamknięte. Kontynuować?" } diff --git a/apps/control-center/i18n/pt.json b/apps/control-center/i18n/pt.json index 2f8ff040..c0ac6bd3 100644 --- a/apps/control-center/i18n/pt.json +++ b/apps/control-center/i18n/pt.json @@ -518,5 +518,26 @@ "System graphics driver": "Driver gráfico do sistema", "No model on the disk: download one from Studio or copy a .gguf into ~/modelli": "Nenhum modelo no disco: descarregue um pelo Studio ou copie um .gguf para ~/modelli", "checking the checksum": "a verificar a soma de verificação", - "wrong sha512 checksum: the download is corrupt": "soma sha512 errada: a transferência está corrompida" + "wrong sha512 checksum: the download is corrupt": "soma sha512 errada: a transferência está corrompida", + "Frame generation": "Geração de fotogramas", + "FreeFG (daniel-h-0, MIT licence) adds Intel's XeSS frame generation to a game, with faster shaders written for the BC-250, and FSR 4. In Cyberpunk at 1080p: about 130 fps shown against 90. They are generated frames: the game stays at its ~65 real fps and latency goes up a little. It is installed game by game, with the launcher closed; in that game GE-Proton's FSR 4 is turned off, because FreeFG brings its own. In the game, pick DLSS, FSR or XeSS and leave its own frame generation off.": "O FreeFG (daniel-h-0, licença MIT) acrescenta a um jogo a geração de fotogramas XeSS da Intel, com shaders mais rápidos escritos para a BC-250, e o FSR 4. No Cyberpunk a 1080p: cerca de 130 fps mostrados contra 90. São fotogramas gerados: o jogo fica nos seus ~65 fps reais e a latência sobe um pouco. Instala-se jogo a jogo, com o lançador fechado; nesse jogo o FSR 4 do GE-Proton é desligado, porque o FreeFG traz o seu. No jogo, escolha DLSS, FSR ou XeSS e deixe desligada a geração de fotogramas do próprio jogo.", + "Downloading FreeFG and checking its sha256…": "A transferir o FreeFG e a verificar o sha256…", + "Looking for Steam and Heroic games…": "A procurar jogos do Steam e do Heroic…", + "Download FreeFG": "Transferir FreeFG", + "Install in the game": "Instalar no jogo", + "Remove from the game": "Remover do jogo", + "Refresh list": "Atualizar lista", + "not downloaded": "não transferido", + "no game found": "nenhum jogo encontrado", + "%d games, %d with FreeFG.": "%d jogos, %d com FreeFG.", + "Pick a game from the list.": "Escolha um jogo da lista.", + "FreeFG is already in this game.": "O FreeFG já está neste jogo.", + "Install FreeFG?": "Instalar o FreeFG?", + "Installing FreeFG in %s…": "A instalar o FreeFG em %s…", + "FreeFG is not in this game.": "O FreeFG não está neste jogo.", + "Removing FreeFG from %s…": "A remover o FreeFG de %s…", + "Download FreeFG %s (11 MB) to see which games take it.": "Transfira o FreeFG %s (11 MB) para ver que jogos o aceitam.", + "not suitable": "não adequado", + "suitable": "adequado", + "FreeFG goes into %s: XeSS frame generation and FSR 4. The first time it downloads Intel's runtime and the BC-250 FSR 4 (about 60 MB). In this game GE-Proton's FSR 4 is turned off. Steam and Heroic must be closed. Go ahead?": "O FreeFG entra em %s: geração de fotogramas XeSS e FSR 4. Da primeira vez transfere o runtime da Intel e o FSR 4 para a BC-250 (cerca de 60 MB). Neste jogo o FSR 4 do GE-Proton é desligado. O Steam e o Heroic têm de estar fechados. Continuar?" } diff --git a/apps/control-center/i18n/ru.json b/apps/control-center/i18n/ru.json index 5004dd06..984468b7 100644 --- a/apps/control-center/i18n/ru.json +++ b/apps/control-center/i18n/ru.json @@ -518,5 +518,26 @@ "System graphics driver": "Системный графический драйвер", "No model on the disk: download one from Studio or copy a .gguf into ~/modelli": "На диске нет модели: скачайте её через Studio или скопируйте .gguf в ~/modelli", "checking the checksum": "проверяю контрольную сумму", - "wrong sha512 checksum: the download is corrupt": "неверная контрольная сумма sha512: загрузка повреждена" + "wrong sha512 checksum: the download is corrupt": "неверная контрольная сумма sha512: загрузка повреждена", + "Frame generation": "Генерация кадров", + "FreeFG (daniel-h-0, MIT licence) adds Intel's XeSS frame generation to a game, with faster shaders written for the BC-250, and FSR 4. In Cyberpunk at 1080p: about 130 fps shown against 90. They are generated frames: the game stays at its ~65 real fps and latency goes up a little. It is installed game by game, with the launcher closed; in that game GE-Proton's FSR 4 is turned off, because FreeFG brings its own. In the game, pick DLSS, FSR or XeSS and leave its own frame generation off.": "FreeFG (daniel-h-0, лицензия MIT) добавляет в игру генерацию кадров XeSS от Intel с более быстрыми шейдерами, написанными для BC-250, и FSR 4. В Cyberpunk при 1080p: около 130 показанных fps вместо 90. Это сгенерированные кадры: сама игра остаётся на своих ~65 реальных fps, а задержка немного растёт. Устанавливается для каждой игры отдельно, при закрытом лаунчере; в этой игре FSR 4 от GE-Proton отключается, потому что FreeFG приносит свой. В игре выберите DLSS, FSR или XeSS и оставьте её собственную генерацию кадров выключенной.", + "Downloading FreeFG and checking its sha256…": "Загружаю FreeFG и проверяю sha256…", + "Looking for Steam and Heroic games…": "Ищу игры Steam и Heroic…", + "Download FreeFG": "Скачать FreeFG", + "Install in the game": "Установить в игру", + "Remove from the game": "Убрать из игры", + "Refresh list": "Обновить список", + "not downloaded": "не скачан", + "no game found": "игры не найдены", + "%d games, %d with FreeFG.": "Игр: %d, с FreeFG: %d.", + "Pick a game from the list.": "Выберите игру из списка.", + "FreeFG is already in this game.": "FreeFG уже есть в этой игре.", + "Install FreeFG?": "Установить FreeFG?", + "Installing FreeFG in %s…": "Устанавливаю FreeFG в %s…", + "FreeFG is not in this game.": "FreeFG нет в этой игре.", + "Removing FreeFG from %s…": "Убираю FreeFG из %s…", + "Download FreeFG %s (11 MB) to see which games take it.": "Скачайте FreeFG %s (11 МБ), чтобы увидеть, какие игры его принимают.", + "not suitable": "не подходит", + "suitable": "подходит", + "FreeFG goes into %s: XeSS frame generation and FSR 4. The first time it downloads Intel's runtime and the BC-250 FSR 4 (about 60 MB). In this game GE-Proton's FSR 4 is turned off. Steam and Heroic must be closed. Go ahead?": "FreeFG будет установлен в %s: генерация кадров XeSS и FSR 4. В первый раз он скачает среду выполнения Intel и FSR 4 для BC-250 (около 60 МБ). В этой игре FSR 4 от GE-Proton отключается. Steam и Heroic должны быть закрыты. Продолжить?" } diff --git a/apps/control-center/i18n/uk.json b/apps/control-center/i18n/uk.json index a8a53c3f..1b705976 100644 --- a/apps/control-center/i18n/uk.json +++ b/apps/control-center/i18n/uk.json @@ -519,5 +519,26 @@ "System graphics driver": "Системний графічний драйвер", "No model on the disk: download one from Studio or copy a .gguf into ~/modelli": "На диску немає моделі: завантажте її через Studio або скопіюйте .gguf до ~/modelli", "checking the checksum": "перевіряю контрольну суму", - "wrong sha512 checksum: the download is corrupt": "неправильна контрольна сума sha512: завантаження пошкоджене" + "wrong sha512 checksum: the download is corrupt": "неправильна контрольна сума sha512: завантаження пошкоджене", + "Frame generation": "Генерація кадрів", + "FreeFG (daniel-h-0, MIT licence) adds Intel's XeSS frame generation to a game, with faster shaders written for the BC-250, and FSR 4. In Cyberpunk at 1080p: about 130 fps shown against 90. They are generated frames: the game stays at its ~65 real fps and latency goes up a little. It is installed game by game, with the launcher closed; in that game GE-Proton's FSR 4 is turned off, because FreeFG brings its own. In the game, pick DLSS, FSR or XeSS and leave its own frame generation off.": "FreeFG (daniel-h-0, ліцензія MIT) додає до гри генерацію кадрів XeSS від Intel зі швидшими шейдерами, написаними для BC-250, та FSR 4. У Cyberpunk при 1080p: близько 130 показаних fps замість 90. Це згенеровані кадри: сама гра лишається на своїх ~65 справжніх fps, а затримка трохи зростає. Встановлюється для кожної гри окремо, із закритим лаунчером; у цій грі FSR 4 від GE-Proton вимикається, бо FreeFG приносить свій. У грі виберіть DLSS, FSR або XeSS і залиште її власну генерацію кадрів вимкненою.", + "Downloading FreeFG and checking its sha256…": "Завантажую FreeFG і перевіряю sha256…", + "Looking for Steam and Heroic games…": "Шукаю ігри Steam і Heroic…", + "Download FreeFG": "Завантажити FreeFG", + "Install in the game": "Встановити в гру", + "Remove from the game": "Прибрати з гри", + "Refresh list": "Оновити список", + "not downloaded": "не завантажено", + "no game found": "ігор не знайдено", + "%d games, %d with FreeFG.": "Ігор: %d, з FreeFG: %d.", + "Pick a game from the list.": "Виберіть гру зі списку.", + "FreeFG is already in this game.": "FreeFG уже є в цій грі.", + "Install FreeFG?": "Встановити FreeFG?", + "Installing FreeFG in %s…": "Встановлюю FreeFG у %s…", + "FreeFG is not in this game.": "FreeFG немає в цій грі.", + "Removing FreeFG from %s…": "Прибираю FreeFG з %s…", + "Download FreeFG %s (11 MB) to see which games take it.": "Завантажте FreeFG %s (11 МБ), щоб побачити, які ігри його приймають.", + "not suitable": "не підходить", + "suitable": "підходить", + "FreeFG goes into %s: XeSS frame generation and FSR 4. The first time it downloads Intel's runtime and the BC-250 FSR 4 (about 60 MB). In this game GE-Proton's FSR 4 is turned off. Steam and Heroic must be closed. Go ahead?": "FreeFG буде встановлено в %s: генерація кадрів XeSS і FSR 4. Першого разу він завантажить середовище виконання Intel і FSR 4 для BC-250 (близько 60 МБ). У цій грі FSR 4 від GE-Proton вимикається. Steam і Heroic мають бути закриті. Продовжити?" } diff --git a/apps/control-center/os.skillfish.control-center.metainfo.xml b/apps/control-center/os.skillfish.control-center.metainfo.xml index e17025f9..ef172674 100644 --- a/apps/control-center/os.skillfish.control-center.metainfo.xml +++ b/apps/control-center/os.skillfish.control-center.metainfo.xml @@ -69,6 +69,19 @@Frame generation on the Games page. FreeFG, by daniel-h-0, adds Intel's XeSS frame generation with shaders written for the BC-250, together with FSR 4, one game at a time. In Cyberpunk at 1080p it shows about 130 fps against 90; they are generated frames, so the game itself still runs at about 65. Installing it turns off GE-Proton's FSR 4 for that game only, and removing it puts the game back as it was. Also: GE-Proton 11-12 and newer show up as installed once they are, and every GE-Proton download is checked against its published checksum before it is unpacked.
+Frame generation nella pagina Giochi. FreeFG, di daniel-h-0, aggiunge la frame generation XeSS di Intel con shader scritti per la BC-250, insieme a FSR 4, un gioco alla volta. In Cyberpunk a 1080p mostra circa 130 fps contro 90; sono fotogrammi generati, quindi il gioco in sé gira ancora sui 65. Installarlo spegne l'FSR 4 di GE-Proton solo per quel gioco, e toglierlo rimette il gioco com'era. Inoltre: GE-Proton 11-12 e successive risultano installate quando lo sono, e ogni scaricamento di GE-Proton viene controllato contro il checksum pubblicato prima di essere estratto.
+Génération d'images dans la page Jeux. FreeFG, de daniel-h-0, ajoute la génération d'images XeSS d'Intel avec des shaders écrits pour la BC-250, avec FSR 4, un jeu à la fois. Dans Cyberpunk en 1080p, il affiche environ 130 fps contre 90 ; ce sont des images générées, le jeu lui-même tourne donc toujours vers 65. L'installer désactive le FSR 4 de GE-Proton pour ce jeu seulement, et le retirer remet le jeu comme avant. Aussi : GE-Proton 11-12 et suivantes apparaissent comme installées une fois qu'elles le sont, et chaque téléchargement de GE-Proton est vérifié avec sa somme de contrôle publiée avant d'être extrait.
+Generación de fotogramas en la página Juegos. FreeFG, de daniel-h-0, añade la generación de fotogramas XeSS de Intel con shaders escritos para la BC-250, junto con FSR 4, un juego cada vez. En Cyberpunk a 1080p muestra unos 130 fps frente a 90; son fotogramas generados, así que el juego en sí sigue en unos 65. Instalarlo apaga el FSR 4 de GE-Proton solo para ese juego, y quitarlo deja el juego como estaba. Además: GE-Proton 11-12 y posteriores aparecen como instaladas cuando lo están, y cada descarga de GE-Proton se comprueba con su suma de verificación publicada antes de extraerla.
+Geração de fotogramas na página Jogos. O FreeFG, de daniel-h-0, acrescenta a geração de fotogramas XeSS da Intel com shaders escritos para a BC-250, juntamente com o FSR 4, um jogo de cada vez. No Cyberpunk a 1080p mostra cerca de 130 fps contra 90; são fotogramas gerados, por isso o jogo em si continua nos 65. Instalá-lo desliga o FSR 4 do GE-Proton só nesse jogo, e removê-lo deixa o jogo como estava. Além disso: o GE-Proton 11-12 e posteriores aparecem como instalados quando o estão, e cada transferência do GE-Proton é verificada com a soma publicada antes de ser extraída.
+Frame Generation auf der Seite Spiele. FreeFG von daniel-h-0 fügt Intels XeSS-Frame-Generation mit für die BC-250 geschriebenen Shadern hinzu, zusammen mit FSR 4, Spiel für Spiel. In Cyberpunk bei 1080p zeigt es etwa 130 fps statt 90; es sind erzeugte Bilder, das Spiel selbst läuft also weiter mit etwa 65. Die Installation schaltet das FSR 4 von GE-Proton nur für dieses Spiel ab, das Entfernen stellt das Spiel wieder her, wie es war. Außerdem: GE-Proton 11-12 und neuer erscheinen nach der Installation als installiert, und jeder GE-Proton-Download wird vor dem Entpacken mit seiner veröffentlichten Prüfsumme verglichen.
+Generowanie klatek na stronie Gry. FreeFG autorstwa daniel-h-0 dodaje generowanie klatek XeSS firmy Intel z shaderami napisanymi dla BC-250, razem z FSR 4, gra po grze. W Cyberpunku w 1080p pokazuje około 130 fps zamiast 90; to klatki generowane, więc sama gra nadal działa w około 65. Instalacja wyłącza FSR 4 z GE-Proton tylko dla tej gry, a usunięcie przywraca grę do poprzedniego stanu. Ponadto: GE-Proton 11-12 i nowsze są widoczne jako zainstalowane, gdy już są, a każde pobranie GE-Proton jest sprawdzane z opublikowaną sumą kontrolną przed rozpakowaniem.
+Генерация кадров на странице «Игры». FreeFG от daniel-h-0 добавляет генерацию кадров XeSS от Intel с шейдерами, написанными для BC-250, вместе с FSR 4, для каждой игры отдельно. В Cyberpunk при 1080p показывает около 130 fps вместо 90; это сгенерированные кадры, поэтому сама игра по-прежнему идёт примерно на 65. Установка отключает FSR 4 от GE-Proton только для этой игры, а удаление возвращает игру в прежнее состояние. Также: GE-Proton 11-12 и новее отображаются установленными, когда они установлены, а каждая загрузка GE-Proton проверяется по опубликованной контрольной сумме перед распаковкой.
+Генерація кадрів на сторінці «Ігри». FreeFG від daniel-h-0 додає генерацію кадрів XeSS від Intel із шейдерами, написаними для BC-250, разом із FSR 4, для кожної гри окремо. У Cyberpunk при 1080p показує близько 130 fps замість 90; це згенеровані кадри, тож сама гра й далі йде приблизно на 65. Встановлення вимикає FSR 4 від GE-Proton лише для цієї гри, а видалення повертає гру до попереднього стану. Також: GE-Proton 11-12 і новіші показуються встановленими, коли вони встановлені, а кожне завантаження GE-Proton перевіряється за опублікованою контрольною сумою перед розпакуванням.
+On the AI page, the engine switch and the start-at-boot switch ask for the password again after a cancelled prompt, instead of failing with "authentication cancelled" until the window was reopened.
diff --git a/apps/control-center/sfcc/freefg.py b/apps/control-center/sfcc/freefg.py new file mode 100644 index 00000000..07573bfb --- /dev/null +++ b/apps/control-center/sfcc/freefg.py @@ -0,0 +1,344 @@ +# -*- coding: utf-8 -*- +"""FreeFG for the Games page: XeSS frame generation with FSR 4 on the BC-250. + +FreeFG (daniel-h-0/freefg, MIT) runs Intel's XeFG runtime with its own faster +shaders and puts FSR 4 next to it through OptiScaler, per game. Measured on +bc250-dev (15/11/2026, Cyberpunk 1080p Quality): 130-133 fps shown against a +bench median of 90.6, 1% lows 30-33. Those are generated frames: the game's own +rate stays near 65 and latency was not measured. + +This module is the part without Qt. The page runs it as a separate process +(`skillfish-freefg ...`), so FreeFG's own code never runs inside the Control +Center. Everything happens as the desktop user, in their home. + +⚠️ THE VERSION IS PINNED, WITH ITS HASH. A new FreeFG release changes nothing +here until it has been tried on the board and VERSION/SHA256 are moved. The +helper also uses three of FreeFG's own functions (discover, fields, patch) to +read and write the launcher entries; pinning is what keeps them stable. + +⚠️ GE-PROTON MUST STAY OUT OF A FREEFG GAME. Our FSR 4 switch sets +PROTON_USE_OPTISCALER=1 and PROTON_FSR4_UPGRADE=1 for the whole launcher (a +flatpak override). GE-Proton then loads its own OptiScaler as dxgi.dll through +WINE_OPTISCALER_NAME, exactly where FreeFG's sits. Before installing, the two +variables are set to 0 in that game's own entry (GE reads them with nonzero(), +so 0 switches it off, and the entry wins over the launcher-wide override); the +values found there are saved and put back on removal. +""" +import hashlib +import json +import os +import shutil +import subprocess +import sys +import tempfile +import urllib.request +from pathlib import Path + +VERSION = "1.4.0" +URL = "https://github.com/daniel-h-0/freefg/releases/download/v%s/freefg-%s.zip" % (VERSION, VERSION) +SHA256 = "6fa3a44d27acb331d21169549d9b0bbd5bf283a0f37ef169172d4cb65614ef35" +HOME = Path(os.path.expanduser("~")) +BASE = HOME / ".local/share/skillfish/freefg" +DIR = BASE / ("freefg-" + VERSION) +ORIGINALS = BASE / "entries.json" +GE_VARS = ("PROTON_USE_OPTISCALER", "PROTON_FSR4_UPGRADE") +STATE = ".bc250-xefg-experimental/state.json" +HEROIC = HOME / ".var/app/com.heroicgameslauncher.hgl/config/heroic" +# What we ask FreeFG for: its BC-250 FSR 4 build (HelixSR's upscalers crash at +# load on our Proton, see helixsr-prova-14-11), the automatic input, and never +# NVIDIA's DLL, which would come with NVIDIA's licence. +INSTALL_ARGS = ["--upscaler", "fsr4", "--dlss-helper", "no", "--no-prepare"] +LAUNCHERS = ("steam", "steamwebhelper", "heroic") + + +# ---- pure parts (tested in tests/test_cc_freefg.py) ------------------------------ +def heroic_neutral(env_options): + """Heroic enviromentOptions with the GE variables set to 0, the rest kept in order.""" + out = [e for e in (env_options or []) if not (isinstance(e, dict) and e.get("key") in GE_VARS)] + return out + [{"key": k, "value": "0"} for k in GE_VARS] + + +def heroic_restored(env_options, original): + """Undo heroic_neutral on what is there now: drop our zeros, put back the + GE entries the game had before (in their old order, at the end).""" + out = [e for e in (env_options or []) if not (isinstance(e, dict) and e.get("key") in GE_VARS)] + return out + [e for e in (original or []) if isinstance(e, dict) and e.get("key") in GE_VARS] + + +def steam_neutral(options): + """Steam LaunchOptions with the GE variables set to 0 in front of %command%. + + Options without %command% are game arguments: Steam appends them, so they go + after it. Existing assignments of the two variables are replaced.""" + value = (options or "").strip() + ours = " ".join("%s=0" % k for k in GE_VARS) + if not value: + return ours + " %command%" + if "%command%" not in value: + return ours + " %command% " + value + head, tail = value.split("%command%", 1) + kept = [t for t in head.split() if t.split("=", 1)[0] not in GE_VARS] + return " ".join(kept + [ours, "%command%"]) + tail + + +def verdict_short(line): + """FreeFG's verdict line cut to what fits a list row.""" + line = (line or "").strip() + for cut in (": ", ". "): + if line.startswith(("Not supported", "Supported", "Automatic", "Refused", "Verified")) and cut in line: + return line.split(cut, 1)[0] + return line[:60] + + +def installed(exe): + """FreeFG is in this game: its state file is there and does not say restored.""" + try: + with open(Path(exe).parent / STATE) as f: + return json.load(f).get("status") != "restored" + except (OSError, ValueError): + return False + + +# ---- download --------------------------------------------------------------------- +def downloaded(): + return (DIR / "install.py").is_file() + + +def download(progress=print): + """Fetch the pinned release, check its hash, unpack it with bsdtar (which + keeps the executable bits that Python's zipfile drops).""" + if downloaded(): + return str(DIR) + if not shutil.which("bsdtar"): + raise RuntimeError("bsdtar is missing (package libarchive-tools)") + BASE.mkdir(parents=True, exist_ok=True) + work = Path(tempfile.mkdtemp(prefix="freefg-", dir=BASE)) + try: + zip_path = work / ("freefg-%s.zip" % VERSION) + req = urllib.request.Request(URL, headers={"User-Agent": "SkillFishOS-Control-Center"}) + h = hashlib.sha256() + with urllib.request.urlopen(req, timeout=60) as r, open(zip_path, "wb") as out: + total = int(r.headers.get("Content-Length") or 0) + done = 0 + for block in iter(lambda: r.read(1 << 20), b""): + out.write(block) + h.update(block) + done += len(block) + if total: + progress("download %d%%" % (done * 100 // total)) + if h.hexdigest() != SHA256: + raise RuntimeError("wrong sha256: the download is corrupt") + unpack = work / "x" + unpack.mkdir() + subprocess.run(["bsdtar", "-xf", str(zip_path), "-C", str(unpack)], check=True) + top = unpack / ("freefg-" + VERSION) + if not (top / "install.py").is_file(): + raise RuntimeError("unexpected archive layout") + os.replace(top, DIR) + return str(DIR) + finally: + shutil.rmtree(work, ignore_errors=True) + + +# ---- FreeFG's own modules, in this process only -------------------------------------- +def _freefg(): + if not downloaded(): + raise RuntimeError("FreeFG is not downloaded") + if str(DIR) not in sys.path: + sys.path.insert(0, str(DIR)) + import launcher_config # noqa: E402 (FreeFG's) + return launcher_config + + +def _heroic_sideload(): + """Heroic's sideloaded games, which FreeFG's scan does not list.""" + try: + with open(HEROIC / "sideload_apps/library.json") as f: + games = json.load(f).get("games", []) + except (OSError, ValueError): + return [] + out = [] + for g in games: + exe = (g.get("install") or {}).get("executable") + if exe and exe.lower().endswith(".exe") and os.path.isfile(exe): + out.append({"nome": g.get("title") or g.get("app_name"), "store": "heroic", "id": g.get("app_name"), "exe": exe}) + return out + + +def games(): + """Every Steam and Heroic game with FreeFG's verdict and whether it is in.""" + _freefg() + import gamescan # noqa: E402 (FreeFG's) + import compat # noqa: E402 (FreeFG's) + import install as ffg # noqa: E402 (FreeFG's install.py; main() only runs as a script) + rm = ffg.recipes_module() + recipes = DIR / "recipes/recipes.json" + data = rm.load(recipes) if recipes.is_file() else None + found = [] + for game in gamescan.installed_games(None): + try: + scan = gamescan.scan_folder(game) + except Exception: # noqa: BLE001 - one unreadable game must not hide the others + continue + exe = (scan.get("exe") or {}).get("selected") or "" + if exe and game.get("path"): + exe = str((Path(game["path"]) / exe).resolve()) + found.append(({"nome": game.get("name"), "store": game.get("store"), "id": str(game.get("id")), "exe": exe}, scan, game)) + known = {g["exe"] for g, _, _ in found} + for g in _heroic_sideload(): + if g["exe"] not in known: + try: + found.append((g, gamescan.scan_exe(Path(g["exe"])), None)) + except Exception: # noqa: BLE001 + continue + out = [] + for g, scan, game in found: + ids = dict(exe=Path(g["exe"]).name.lower(), steam=set(), gog=set(), epic=set(), + titles={rm.norm(g["nome"] or "")}, folders={rm.norm(p) for p in Path(g["exe"]).parts[:-1]} - {""}) + if g["store"] in ("steam", "gog", "epic"): + ids[g["store"]].add(g["id"]) + try: + v = compat.decide(scan, data, ids) + g["verdetto"] = v["line"] + g["blocca"] = v["blocking"][0]["code"] if v["blocking"] else None + except Exception as e: # noqa: BLE001 + g["verdetto"], g["blocca"] = "not checked (%s)" % type(e).__name__, "error" + g["breve"] = verdict_short(g["verdetto"]) + g["dentro"] = installed(g["exe"]) if g["exe"] else False + out.append(g) + return sorted(out, key=lambda g: (not g["dentro"], g["blocca"] is not None, (g["nome"] or "").lower())) + + +# ---- the launcher entries: GE-Proton out while FreeFG is in ---------------------------- +def _load_originals(): + try: + with open(ORIGINALS) as f: + return json.load(f) + except (OSError, ValueError): + return {} + + +def _save_originals(d): + BASE.mkdir(parents=True, exist_ok=True) + tmp = ORIGINALS.with_suffix(".tmp") + with open(tmp, "w") as f: + json.dump(d, f, indent=1) + os.replace(tmp, ORIGINALS) + + +def _key(t): + return "%s|%s|%s" % (t["launcher"], t["path"], t["id"]) + + +def neutralize(exe): + """Set the GE variables to 0 in every Steam/Heroic entry of this game, + remembering what was there. Returns the entries changed.""" + lc = _freefg() + lc.require_stopped(LAUNCHERS) + originals = _load_originals() + changed = [] + for t in lc.discover(Path(exe)): + if t["launcher"] not in ("steam", "heroic"): + continue + p = Path(t["path"]) + data = p.read_bytes() + cur = lc.fields(t, data) + if t["launcher"] == "heroic": + field, old = "enviromentOptions", cur.get("enviromentOptions") + new = heroic_neutral(old) + else: + field, old = "LaunchOptions", cur.get("LaunchOptions") + new = steam_neutral(old) + if new == old: + continue + values = {k: v for k, v in cur.items()} + values[field] = new + p.write_bytes(lc.patch(t, data, values)) + originals.setdefault(_key(t), {"campo": field, "originale": old, "scritto": new}) + changed.append(_key(t)) + _save_originals(originals) + return changed + + +def restore_entries(exe): + """Put back what neutralize() found, after FreeFG has restored its own.""" + lc = _freefg() + lc.require_stopped(LAUNCHERS) + originals = _load_originals() + done = [] + for t in lc.discover(Path(exe)): + rec = originals.get(_key(t)) + if not rec: + continue + p = Path(t["path"]) + data = p.read_bytes() + cur = lc.fields(t, data) + now = cur.get(rec["campo"]) + if now == rec["scritto"]: + back = rec["originale"] + elif t["launcher"] == "heroic": + back = heroic_restored(now, rec["originale"]) + else: + # Someone changed the options since: only take our two zeros out. + back = " ".join(x for x in (now or "").split() if x not in ("%s=0" % k for k in GE_VARS)) or None + values = dict(cur) + values[rec["campo"]] = back + p.write_bytes(lc.patch(t, data, values)) + originals.pop(_key(t)) + done.append(_key(t)) + _save_originals(originals) + return done + + +def _install_py(*args, timeout=1800): + r = subprocess.run([sys.executable, "-I", "install.py", *args], cwd=str(DIR), + capture_output=True, text=True, timeout=timeout) + return r.returncode, (r.stdout + r.stderr).strip() + + +def install(exe): + neutralize(exe) + rc, out = _install_py("install", exe, *INSTALL_ARGS) + if rc != 0 or not installed(exe): + # Nothing of FreeFG went in: the entries go back as they were. + try: + restore_entries(exe) + except Exception: # noqa: BLE001 - the install error is the one to report + pass + raise RuntimeError(out or "install failed") + return out + + +def remove(exe): + rc, out = _install_py("restore", exe) + if rc != 0: + raise RuntimeError(out or "restore failed") + restore_entries(exe) + return out + + +# ---- command line: what the page runs --------------------------------------------- +def main(argv): + cmd = argv[1] if len(argv) > 1 else "stato" + try: + if cmd == "stato": + print(json.dumps({"versione": VERSION, "scaricato": downloaded(), "dir": str(DIR), + "bsdtar": bool(shutil.which("bsdtar"))})) + elif cmd == "scarica": + print(json.dumps({"ok": True, "dir": download(lambda s: print(s, file=sys.stderr, flush=True))})) + elif cmd == "giochi": + print(json.dumps({"ok": True, "giochi": games()})) + elif cmd in ("installa", "togli") and len(argv) > 2: + out = (install if cmd == "installa" else remove)(argv[2]) + print(json.dumps({"ok": True, "testo": out})) + else: + print("usage: skillfish-freefg stato | scarica | giochi | installa EXE | togli EXE", file=sys.stderr) + return 2 + except Exception as e: # noqa: BLE001 - the page shows the message as it is + print(json.dumps({"ok": False, "errore": str(e)})) + return 1 + return 0 + + +if __name__ == "__main__": + sys.exit(main(sys.argv)) diff --git a/apps/control-center/sfcc/pagine/giochi.py b/apps/control-center/sfcc/pagine/giochi.py index 9ede341c..b508a09f 100644 --- a/apps/control-center/sfcc/pagine/giochi.py +++ b/apps/control-center/sfcc/pagine/giochi.py @@ -15,6 +15,8 @@ import os import re import shutil +import subprocess +import sys import tarfile import tempfile import urllib.request @@ -40,6 +42,18 @@ OVERRIDES = os.path.join(CASA, ".local/share/flatpak/overrides") GE_API = "https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases?per_page=15" FSR4_ENV = ("PROTON_USE_OPTISCALER", "PROTON_FSR4_UPGRADE") +# FreeFG runs in its own process: sfcc/freefg.py is a script as well as a module. +FREEFG = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "freefg.py") + + +def freefg(*args, timeout=1800): + """Run sfcc/freefg.py; its last stdout line is JSON.""" + try: + r = subprocess.run([sys.executable, FREEFG, *args], capture_output=True, text=True, timeout=timeout) + righe = [x for x in r.stdout.splitlines() if x.strip()] + return json.loads(righe[-1]) if righe else {"ok": False, "errore": r.stderr.strip()[-400:]} + except Exception as e: + return {"ok": False, "errore": str(e)} def _mesa_modulo(): @@ -350,9 +364,156 @@ def costruisci(self): (L("Predefinita in Steam", "Default in Steam"), lambda: self._default("steam"), False), (L("Predefinita in Heroic", "Default in Heroic"), lambda: self._default("heroic"), False)) v.addWidget(self.c_proton) + + # --- frame generation (FreeFG) + self.c_ffg = Scheda(L("Frame generation", "Frame generation"), L( + "FreeFG (daniel-h-0, licenza MIT) aggiunge al gioco la frame generation XeSS di Intel, con shader " + "piu' veloci scritti per la BC-250, e FSR 4. In Cyberpunk a 1080p: circa 130 fps mostrati contro 90. " + "Sono fotogrammi generati: il gioco resta sui suoi ~65 fps reali e la latenza sale un po'. Si installa " + "gioco per gioco, con il lanciatore chiuso; in quel gioco l'FSR 4 di GE-Proton si spegne, perche' " + "FreeFG porta il suo. Nel gioco si sceglie DLSS, FSR o XeSS e si lascia spenta la sua frame generation.", + "FreeFG (daniel-h-0, MIT licence) adds Intel's XeSS frame generation to a game, with faster shaders " + "written for the BC-250, and FSR 4. In Cyberpunk at 1080p: about 130 fps shown against 90. They are " + "generated frames: the game stays at its ~65 real fps and latency goes up a little. It is installed " + "game by game, with the launcher closed; in that game GE-Proton's FSR 4 is turned off, because " + "FreeFG brings its own. In the game, pick DLSS, FSR or XeSS and leave its own frame generation off.")) + self.b_ffg = Stato("", "quieto") + self.c_ffg.testa.insertWidget(self.c_ffg.testa.count() - 1, self.b_ffg) + self.ffg_lista = QListWidget() + self.ffg_lista.setMinimumHeight(160) + self.c_ffg.aggiungi(self.ffg_lista, 1) + self.e_ffg = QLabel("") + self.e_ffg.setObjectName("quieto") + self.e_ffg.setWordWrap(True) + self.c_ffg.aggiungi(self.e_ffg) + self.b_ffg_scarica, self.b_ffg_installa, self.b_ffg_togli, self.b_ffg_elenco = self.c_ffg.bottoni( + (L("Scarica FreeFG", "Download FreeFG"), self._ffg_scarica, False), + (L("Installa nel gioco", "Install in the game"), self._ffg_installa, True), + (L("Togli dal gioco", "Remove from the game"), self._ffg_togli, False), + (L("Aggiorna elenco", "Refresh list"), self._ffg_elenca, False)) + self._ffg_occupato = False + self._ffg_scaricato = False + v.addWidget(self.c_ffg) v.addStretch(1) self._proton_elenca() in_sfondo(self._scarica_elenco, self._elenco_pronto, self) + self._ffg_stato() + + # ---- FreeFG ------------------------------------------------------------------ + def _ffg_bottoni(self): + for b in (self.b_ffg_installa, self.b_ffg_togli, self.b_ffg_elenco): + b.setEnabled(self._ffg_scaricato and not self._ffg_occupato) + self.b_ffg_scarica.setEnabled(not self._ffg_scaricato and not self._ffg_occupato) + + def _ffg_stato(self): + st = freefg("stato", timeout=20) + self._ffg_scaricato = bool(st.get("scaricato")) + self.b_ffg.setText(("FreeFG " + st.get("versione", "?")) if self._ffg_scaricato else L("non scaricato", "not downloaded")) + self.b_ffg.tono("bene" if self._ffg_scaricato else "quieto") + self._ffg_bottoni() + if self._ffg_scaricato: + self._ffg_elenca() + else: + self.ffg_lista.clear() + self.e_ffg.setText(L("Scarica FreeFG %s (11 MB) per vedere quali giochi lo accettano.", + "Download FreeFG %s (11 MB) to see which games take it.") % st.get("versione", "?")) + + def _ffg_lavora(self, testo, fn, poi): + self._ffg_occupato = True + self._ffg_bottoni() + self.e_ffg.setText(testo) + + def fine(r): + self._ffg_occupato = False + poi(r) + self._ffg_bottoni() + in_sfondo(fn, fine, self) + + def _ffg_scarica(self): + def poi(r): + if r.get("ok"): + self._ffg_stato() + else: + self.e_ffg.setText(L("Non riuscito: %s", "Failed: %s") % r.get("errore", "?")) + self._ffg_lavora(L("Scarico FreeFG e controllo lo sha256…", "Downloading FreeFG and checking its sha256…"), + lambda: freefg("scarica", timeout=600), poi) + + def _ffg_elenca(self): + self._ffg_lavora(L("Cerco i giochi di Steam e Heroic…", "Looking for Steam and Heroic games…"), + lambda: freefg("giochi", timeout=300), self._ffg_elenco_pronto) + + def _ffg_elenco_pronto(self, r): + self.ffg_lista.clear() + if not r.get("ok"): + self.e_ffg.setText(L("Non riuscito: %s", "Failed: %s") % r.get("errore", "?")) + return + colore = __import__("PyQt6.QtGui", fromlist=["QColor"]).QColor + giochi = r.get("giochi") or [] + for g in giochi: + if g.get("dentro"): + stato = L("attivo", "active") + elif g.get("blocca"): + stato = L("non adatto", "not suitable") + else: + stato = L("adatto", "suitable") + it = QListWidgetItem("%s · %s · %s · %s" % (g.get("nome") or "?", (g.get("store") or "").capitalize(), + stato, g.get("breve") or "")) + it.setData(32, g) + it.setToolTip(g.get("verdetto") or "") + if g.get("dentro"): + it.setForeground(colore(stile.VERDE)) + elif g.get("blocca"): + it.setForeground(colore(stile.TESTO_2)) + self.ffg_lista.addItem(it) + if not giochi: + self.ffg_lista.addItem(L("nessun gioco trovato", "no game found")) + self.e_ffg.setText(L("%d giochi, %d con FreeFG.", "%d games, %d with FreeFG.") % ( + len(giochi), sum(1 for g in giochi if g.get("dentro")))) + + def _ffg_scelto(self): + it = self.ffg_lista.currentItem() + g = it.data(32) if it else None + if not isinstance(g, dict) or not g.get("exe"): + self.toast(L("Scegli un gioco dell'elenco.", "Pick a game from the list.")) + return None + return g + + def _ffg_installa(self): + g = self._ffg_scelto() + if not g: + return + if g.get("dentro"): + self.toast(L("FreeFG e' gia' in questo gioco.", "FreeFG is already in this game.")) + return + if g.get("blocca"): + QMessageBox.information(self, "FreeFG", g.get("verdetto") or "") + return + if QMessageBox.question(self, L("Installare FreeFG?", "Install FreeFG?"), L( + "FreeFG entra in %s: frame generation XeSS e FSR 4. La prima volta scarica il runtime di Intel e " + "l'FSR 4 per la BC-250 (circa 60 MB). In questo gioco l'FSR 4 di GE-Proton si spegne. Steam e " + "Heroic devono essere chiusi. Procedere?", + "FreeFG goes into %s: XeSS frame generation and FSR 4. The first time it downloads Intel's runtime " + "and the BC-250 FSR 4 (about 60 MB). In this game GE-Proton's FSR 4 is turned off. Steam and " + "Heroic must be closed. Go ahead?") % g.get("nome")) != QMessageBox.StandardButton.Yes: + return + self._ffg_lavora(L("Installo FreeFG in %s…", "Installing FreeFG in %s…") % g.get("nome"), + lambda: freefg("installa", g["exe"]), self._ffg_fatto) + + def _ffg_togli(self): + g = self._ffg_scelto() + if not g: + return + if not g.get("dentro"): + self.toast(L("FreeFG non e' in questo gioco.", "FreeFG is not in this game.")) + return + self._ffg_lavora(L("Tolgo FreeFG da %s…", "Removing FreeFG from %s…") % g.get("nome"), + lambda: freefg("togli", g["exe"]), self._ffg_fatto) + + def _ffg_fatto(self, r): + if r.get("ok"): + self._ffg_elenca() + else: + self.e_ffg.setText(L("Non riuscito: %s", "Failed: %s") % (r.get("errore") or "?")[-500:]) # ---- Mesa --------------------------------------------------------------------- def aggiorna(self): diff --git a/apps/control-center/skillfish-freefg b/apps/control-center/skillfish-freefg new file mode 100755 index 00000000..3b1b0335 --- /dev/null +++ b/apps/control-center/skillfish-freefg @@ -0,0 +1,18 @@ +#!/usr/bin/env python3 +# SkillFishOS - FreeFG frame generation per game, as the desktop user. +# +# skillfish-freefg stato JSON: pinned version, downloaded or not +# skillfish-freefg scarica download and check the pinned release +# skillfish-freefg giochi JSON: Steam and Heroic games, FreeFG's verdict, installed or not +# skillfish-freefg installa EXE GE-Proton's OptiScaler off for that game, then FreeFG in +# skillfish-freefg togli EXE FreeFG out, the game's launcher entry as it was +# +# The Control Center's Games page runs this in a separate process, so FreeFG's +# own code never runs inside the window. The logic is in sfcc/freefg.py. +import sys + +sys.path.insert(0, "/usr/share/skillfish/control-center") + +from sfcc import freefg # noqa: E402 + +sys.exit(freefg.main(sys.argv)) diff --git a/apps/dashboard/os.skillfish.remote-manager.metainfo.xml b/apps/dashboard/os.skillfish.remote-manager.metainfo.xml index f3d827f2..7c4b0100 100644 --- a/apps/dashboard/os.skillfish.remote-manager.metainfo.xml +++ b/apps/dashboard/os.skillfish.remote-manager.metainfo.xml @@ -72,6 +72,19 @@The Games page has the same frame generation panel as the Control Center: download FreeFG, see which Steam and Heroic games take it, and install or remove it one game at a time, from any browser on the network.
+La pagina Giochi ha lo stesso pannello di frame generation del Control Center: si scarica FreeFG, si vede quali giochi di Steam e Heroic lo accettano e lo si installa o toglie un gioco alla volta, da qualsiasi browser della rete.
+La page Jeux a le même panneau de génération d'images que le Control Center : télécharger FreeFG, voir quels jeux Steam et Heroic l'acceptent, et l'installer ou le retirer jeu par jeu, depuis n'importe quel navigateur du réseau.
+La página Juegos tiene el mismo panel de generación de fotogramas que el Control Center: descargar FreeFG, ver qué juegos de Steam y Heroic lo admiten e instalarlo o quitarlo juego a juego, desde cualquier navegador de la red.
+A página Jogos tem o mesmo painel de geração de fotogramas do Control Center: transferir o FreeFG, ver que jogos do Steam e do Heroic o aceitam e instalá-lo ou removê-lo jogo a jogo, a partir de qualquer navegador da rede.
+Die Seite Spiele hat dasselbe Frame-Generation-Feld wie das Control Center: FreeFG herunterladen, sehen, welche Steam- und Heroic-Spiele es annehmen, und es Spiel für Spiel installieren oder entfernen, aus jedem Browser im Netzwerk.
+Strona Gry ma ten sam panel generowania klatek co Control Center: pobranie FreeFG, podgląd, które gry ze Steama i Heroica go obsługują, oraz instalacja lub usunięcie gra po grze, z dowolnej przeglądarki w sieci.
+На странице «Игры» есть та же панель генерации кадров, что и в Control Center: скачать FreeFG, увидеть, какие игры Steam и Heroic его принимают, и установить или убрать его для каждой игры отдельно, из любого браузера в сети.
+Сторінка «Ігри» має ту саму панель генерації кадрів, що й Control Center: завантажити FreeFG, побачити, які ігри Steam і Heroic його приймають, і встановити чи прибрати його для кожної гри окремо, з будь-якого браузера в мережі.
+The remote desktop and the launcher work on any installation: they used the account name "skillfish" from the settings file, which an installation usually does not have, and now use the account that owns the desktop. The remote desktop also comes back on its own if it starts before the desktop session is up.
diff --git a/apps/dashboard/skillfish-dashboardd b/apps/dashboard/skillfish-dashboardd index 524ebcc6..665fe30d 100755 --- a/apps/dashboard/skillfish-dashboardd +++ b/apps/dashboard/skillfish-dashboardd @@ -1386,6 +1386,61 @@ def cc_proton_default(dove, nome): return {"ok": True} +# ---- FreeFG: the same sfcc/freefg.py as the Control Center -------------------------- +# It runs as the desktop user, never as root: FreeFG writes into the user's +# home, the game folders and the launchers' files, all of them the user's. +CC_FREEFG = "/usr/share/skillfish/control-center/sfcc/freefg.py" + + +def _cc_freefg(*args, timeout=120): + import pwd + if not os.path.isfile(CC_FREEFG): + return {"ok": False, "err": "skillfish-control-center non installato"} + uid, _gid, casa = _cc_utente() + if uid is None: + return {"ok": False, "err": "utente del desktop non trovato"} + utente = pwd.getpwuid(uid).pw_name + try: + r = subprocess.run(["runuser", "-u", utente, "--", "env", "HOME=" + casa, "python3", CC_FREEFG, *args], + capture_output=True, text=True, timeout=timeout, cwd=casa) + except Exception as e: + return {"ok": False, "err": str(e)} + righe = [x for x in r.stdout.splitlines() if x.strip()] + try: + d = json.loads(righe[-1]) if righe else {} + except ValueError: + d = {} + if not d: + return {"ok": False, "err": (r.stderr or r.stdout).strip()[-400:] or "nessuna risposta"} + if "errore" in d and "err" not in d: + d["err"] = d["errore"] + return d + + +def cc_freefg(): + """The pinned version, whether it is downloaded and, if it is, the games.""" + st = _cc_freefg("stato", timeout=30) + if not st.get("scaricato"): + return {"ok": True, "stato": st, "giochi": []} + g = _cc_freefg("giochi", timeout=300) + return {"ok": bool(g.get("ok")), "stato": st, "giochi": g.get("giochi") or [], "err": g.get("err")} + + +def cc_freefg_post(data): + azione = (data or {}).get("azione") + if azione == "scarica": + return _cc_freefg("scarica", timeout=600) + if azione not in ("installa", "togli"): + return {"ok": False, "err": "azione sconosciuta"} + # The path comes from the network: it is accepted only if it is one of the + # games FreeFG itself lists on this machine, never as a free path. + exe = (data or {}).get("exe") or "" + giochi = _cc_freefg("giochi", timeout=300).get("giochi") or [] + if exe not in {g.get("exe") for g in giochi if g.get("exe")}: + return {"ok": False, "err": "gioco non in elenco"} + return _cc_freefg(azione, exe, timeout=1800) + + def cc_giochi(): return {"ok": True, "mesa": {a: cc_mesa_stato(a) for a in CC_APP}, @@ -3541,6 +3596,10 @@ class Handler(BaseHTTPRequestHandler): if not self._guard("giochi"): return return self._json(200, cc_giochi()) + if path == "/api/giochi/freefg": + if not self._guard("giochi"): + return + return self._json(200, cc_freefg()) if path == "/api/profili": if not self._guard("profili"): return @@ -3880,6 +3939,10 @@ class Handler(BaseHTTPRequestHandler): if not self._guard("giochi"): return return self._json(200, cc_proton_default(data.get("dove"), data.get("nome"))) + if path == "/api/giochi/freefg": + if not self._guard("giochi"): + return + return self._json(200, cc_freefg_post(data)) if path == "/api/profili": if not self._guard("profili"): return diff --git a/apps/dashboard/web/giochi.html b/apps/dashboard/web/giochi.html index df169af2..e0c2a837 100644 --- a/apps/dashboard/web/giochi.html +++ b/apps/dashboard/web/giochi.html @@ -60,6 +60,14 @@| … |