Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get GPU acceleration working? (Debian 12.2, Gnome, Wayland, X11, Nvidia P1000 GPU, Zbook Studio G5) #48

Closed
tkonicz opened this issue Oct 16, 2023 · 15 comments

Comments

@tkonicz
Copy link

tkonicz commented Oct 16, 2023

Hello,

I got the "Speech Note" Flatpak working on my Debian 12 system (Zbook Studio G5). I can use Whisper in offline mode here. After downloading Whisper (large and/or medium), the speech recognition is quite good, but very slow (50 sec.). GPU acceleration would help, so I installed the Nivida drivers for my P1000. They work just fine with games, eg., but not with "Speech Note" and Whisper. Any ideas how to fix this? How do I get my Nvidia card to accelerate the speech recognition of whisper on Debian 12? Maybe this is a bug?

My Nvidia Driver Version: 525.125.06

I have already libcudart11.0 and nvidia-cuda-toolkit installed.

I tried both Wayland and X11.

My Card, the P1000, seems to supports CUDA 6.1 - this should be enough?

Terminal output, when starting Speech Note:

flatpak run net.mkiol.SpeechNote 
QSocketNotifier: Can only be used with threads started with QThread
qt.qpa.qgnomeplatform: Could not find color scheme  ""
ALSA lib ../../oss/pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib ../../../src/pcm/pcm_direct.c:2045:(snd1_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)


Some screens: 
![Bildschirmfoto vom 2023-10-16 19-43-06](https://github.com/mkiol/dsnote/assets/148144728/9fd7c5af-15b6-405c-bb53-d69e603fda99)
![Bildschirmfoto vom 2023-10-16 19-42-36](https://github.com/mkiol/dsnote/assets/148144728/a79775e9-9f99-43bf-b80c-36a9ed15a3a4)



@mkiol
Copy link
Owner

mkiol commented Oct 17, 2023

Thanks for the report.

Could you please run the app with --verbose option?

flatpak run net.mkiol.SpeechNote --verbose

When app starts, you should see log scanning for cuda devices. What it contains?
When you start listening, there should be log stt start listen. Could you paste here 30 lines of logs after that log line?

Edit: sorry, I closed this issue by mistake

@mkiol mkiol closed this as completed Oct 17, 2023
@mkiol mkiol reopened this Oct 17, 2023
@tkonicz
Copy link
Author

tkonicz commented Oct 17, 2023

Ok, here we go, I just post everything, there are quite a few error messages. There is one more strange thing: sometimes, on rare occasions, the GPU acceleration just works for some time - then ist crashes, and it is not accessible any more. The same applies after a reboot - the GPU accelaration is gone, even wehn it worked just fine for a few hours. I dont know what triggres it...
Hope you can fix it somehow, this is a very valuable project, you a closing a gap on Linux here. There is no easy offline speechrecognision right now, For me, as journalist with tendonitis, this is a godsend (I am forced to use the speech tool in google-docs now).

`flatpak run net.mkiol.SpeechNote --verbose
QSocketNotifier: Can only be used with threads started with QThread
qt.qpa.qgnomeplatform: Could not find color scheme ""
[I] 21:06:05.34 0x7fa55b175d80 init:49 - logging to stderr enabled
[D] 21:06:05.34 0x7fa55b175d80 () - failed to load translation: "de_DE" ":/translations"
[W] 21:06:05.34 0x7fa55b175d80 () - failed to install translation
[D] 21:06:05.34 0x7fa55b175d80 () - starting standalone app
[D] 21:06:05.35 0x7fa55b175d80 () - app: net.mkiol dsnote
[D] 21:06:05.35 0x7fa55b175d80 () - config location: "/home/tomasz/.var/app/net.mkiol.SpeechNote/config"
[D] 21:06:05.35 0x7fa55b175d80 () - data location: "/home/tomasz/.var/app/net.mkiol.SpeechNote/data/net.mkiol/dsnote"
[D] 21:06:05.35 0x7fa55b175d80 () - cache location: "/home/tomasz/.var/app/net.mkiol.SpeechNote/cache/net.mkiol/dsnote"
[D] 21:06:05.35 0x7fa55b175d80 () - settings file: "/home/tomasz/.var/app/net.mkiol.SpeechNote/config/net.mkiol/dsnote/settings.conf"
[D] 21:06:05.35 0x7fa55b175d80 () - available styles: ("Default", "Fusion", "Imagine", "Material", "org.kde.breeze", "org.kde.desktop", "Plasma", "Universal")
[D] 21:06:05.35 0x7fa55b175d80 () - style paths: ("/usr/lib/qml/QtQuick/Controls.2")
[D] 21:06:05.35 0x7fa55b175d80 () - switching to style: "Default"
[D] 21:06:05.140 0x7fa55b175d80 () - supported audio input devices:
ALSA lib ../../oss/pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
[D] 21:06:05.150 0x7fa55b175d80 () - "pulse"
[D] 21:06:05.173 0x7fa55b175d80 () - "default"
ALSA lib ../../../src/pcm/pcm_direct.c:2045:(snd1_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)
[D] 21:06:05.176 0x7fa55b175d80 () - "alsa_input.pci-0000_00_1f.3.analog-stereo"
[D] 21:06:05.176 0x7fa55b175d80 () - "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor"
[D] 21:06:05.176 0x7fa55b175d80 add_cuda_devices:226 - scanning for cuda devices
[D] 21:06:05.182 0x7fa55b175d80 add_cuda_devices:235 - cuda version: driver=12000, runtime=12020
[D] 21:06:05.182 0x7fa55b175d80 add_cuda_devices:240 - cudaGetDeviceCount returned: 999
[D] 21:06:05.182 0x7fa55b175d80 add_hip_devices:263 - scanning for hip devices
[D] 21:06:05.182 0x7fa55b175d80 hip_api:170 - failed to open hip lib: libamdhip64.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
[D] 21:06:05.182 0x7fa55b175d80 add_opencl_devices:300 - scanning for opencl devices
[D] 21:06:05.237 0x7fa55b175d80 add_opencl_devices:317 - opencl number of platforms: 2
[D] 21:06:05.237 0x7fa55b175d80 add_opencl_devices:342 - opencl platform: 0, name=AMD Accelerated Parallel Processing, vendor=Advanced Micro Devices, Inc.
[D] 21:06:05.237 0x7fa55b175d80 add_opencl_devices:356 - opencl number of devices: 0
[D] 21:06:05.237 0x7fa55b175d80 add_opencl_devices:342 - opencl platform: 1, name=Clover, vendor=Mesa
[D] 21:06:05.237 0x7fa55b175d80 add_opencl_devices:356 - opencl number of devices: 0
[D] 21:06:05.238 0x7fa546599600 loop:58 - py executor loop started
[D] 21:06:05.253 0x7fa55b175d80 () - starting service: app-standalone
[D] 21:06:05.257 0x7fa522bfe600 () - config version: 34 34
[D] 21:06:05.258 0x7fa522bfe600 () - checksum ok: "984891bb" "de.tflite"
[D] 21:06:05.258 0x7fa522bfe600 () - checksum ok: "e402d9c4" "de.scorer"
[D] 21:06:05.258 0x7fa522bfe600 () - found model: "de"
[D] 21:06:05.258 0x7fa522bfe600 () - checksum ok: "7fc513a" "de_aa.tflite"
[D] 21:06:05.258 0x7fa522bfe600 () - checksum ok: "787a9327" "de_aa.scorer"
[D] 21:06:05.258 0x7fa522bfe600 () - found model: "de_aa"
[D] 21:06:05.258 0x7fa522bfe600 () - checksum ok: "7fc513a" "de_aa.tflite"
[D] 21:06:05.258 0x7fa55b175d80 () - module already unpacked: "rhvoicedata"
[D] 21:06:05.258 0x7fa55b175d80 () - module already unpacked: "rhvoiceconfig"
[D] 21:06:05.259 0x7fa522bfe600 () - checksum ok: "f1d12eab" "multilang_whisper_base.ggml"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "multilang_whisper_base"
[D] 21:06:05.259 0x7fa522bfe600 () - checksum ok: "f3e2fa1" "multilang_whisper_medium.ggml"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "multilang_whisper_medium"
[D] 21:06:05.259 0x7fa522bfe600 () - checksum ok: "dfa47af8" "multilang_whisper_large.ggml"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "multilang_whisper_large"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "en_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "es_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "es_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "es_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "it_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "it_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "it_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "pt_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "pt_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "pt_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "de_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "de_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "de_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "ja_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "ja_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "ja_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "ru_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "ru_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "ru_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "nl_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "nl_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "nl_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "id_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "id_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "id_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "ca_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "ca_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "ca_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "fr_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "fr_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "fr_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "tr_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "tr_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.259 0x7fa522bfe600 () - found model: "tr_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "sv_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "sv_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "sv_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "uk_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "uk_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "uk_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "ms_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "ms_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "ms_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "no_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "no_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "no_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "fi_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "fi_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "fi_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "cs_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "cs_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "cs_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "sk_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "sk_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "sk_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "zh_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "zh_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "zh_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "vi_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "vi_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "vi_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "th_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "th_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "th_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "el_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "el_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "el_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "hr_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "hr_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "hr_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "bg_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "bg_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "bg_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "ro_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "ro_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "ro_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "sl_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "sl_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "sl_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "bs_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "bs_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "bs_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "mk_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "mk_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "mk_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "sr_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "sr_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "sr_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "hu_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "hu_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "hu_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "hi_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "hi_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "hi_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "fa_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "fa_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "fa_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "da_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "da_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "da_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "et_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "et_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "et_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "eu_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.260 0x7fa522bfe600 () - found model: "eu_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "eu_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "is_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "is_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "is_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "ka_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "ka_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "ka_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "kk_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "kk_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "kk_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "ko_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "ko_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "ko_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "lt_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "lt_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "lt_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "lv_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "lv_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "lv_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "mn_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "mn_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "mn_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "mt_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "mt_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "mt_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "ne_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "ne_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "ne_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "sq_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "sq_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "sq_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "sw_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "sw_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "sw_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "tl_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "tl_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "tl_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "tt_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "tt_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "tt_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "uz_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "uz_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "uz_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "yo_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "yo_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "yo_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "am_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "am_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "am_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "ar_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "ar_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "ar_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "bn_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "bn_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "bn_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "pl_whisper_base" alias of "multilang_whisper_base"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "pl_whisper_medium" alias of "multilang_whisper_medium"
[D] 21:06:05.261 0x7fa522bfe600 () - found model: "pl_whisper_large" alias of "multilang_whisper_large"
[D] 21:06:05.263 0x7fa55b175d80 () - module already unpacked: "espeakdata"
[D] 21:06:05.263 0x7fa55b175d80 () - default stt model not found: "de_whisper_large"
[D] 21:06:05.263 0x7fa55b175d80 () - default tts model not found: "de_piper_eva_low"
[D] 21:06:05.263 0x7fa55b175d80 () - default mnt lang not found: "de"
[D] 21:06:05.263 0x7fa55b175d80 () - new default mnt lang: "de"
[D] 21:06:05.263 0x7fa55b175d80 () - service refresh status, new state: busy
[D] 21:06:05.263 0x7fa55b175d80 () - service state changed: unknown => busy
[D] 21:06:05.263 0x7fa522bfe600 () - checksum ok: "827d6f00" "de_vosk_large"
[D] 21:06:05.263 0x7fa522bfe600 () - found model: "de_vosk_large"
[D] 21:06:05.264 0x7fa522bfe600 () - checksum ok: "b8b03e8a" "multilang_hftc_kredor"
[D] 21:06:05.264 0x7fa522bfe600 () - found model: "multilang_hftc_kredor"
[D] 21:06:05.264 0x7fa522bfe600 () - found model: "en_hftc_kredor" alias of "multilang_hftc_kredor"
[D] 21:06:05.264 0x7fa522bfe600 () - found model: "de_hftc_kredor" alias of "multilang_hftc_kredor"
[D] 21:06:05.264 0x7fa522bfe600 () - found model: "fr_hftc_kredor" alias of "multilang_hftc_kredor"
[D] 21:06:05.264 0x7fa522bfe600 () - found model: "es_hftc_kredor" alias of "multilang_hftc_kredor"
[D] 21:06:05.264 0x7fa522bfe600 () - found model: "it_hftc_kredor" alias of "multilang_hftc_kredor"
[D] 21:06:05.264 0x7fa522bfe600 () - found model: "pl_hftc_kredor" alias of "multilang_hftc_kredor"
[D] 21:06:05.264 0x7fa522bfe600 () - found model: "nl_hftc_kredor" alias of "multilang_hftc_kredor"
[D] 21:06:05.264 0x7fa522bfe600 () - found model: "cs_hftc_kredor" alias of "multilang_hftc_kredor"
[D] 21:06:05.264 0x7fa522bfe600 () - found model: "pt_hftc_kredor" alias of "multilang_hftc_kredor"
[D] 21:06:05.264 0x7fa522bfe600 () - found model: "sl_hftc_kredor" alias of "multilang_hftc_kredor"
[D] 21:06:05.264 0x7fa522bfe600 () - found model: "el_hftc_kredor" alias of "multilang_hftc_kredor"
[D] 21:06:05.264 0x7fa522bfe600 () - found model: "sv_hftc_kredor" alias of "multilang_hftc_kredor"
[D] 21:06:05.264 0x7fa522bfe600 () - found model: "hu_hftc_kredor" alias of "multilang_hftc_kredor"
[D] 21:06:05.264 0x7fa522bfe600 () - found model: "ro_hftc_kredor" alias of "multilang_hftc_kredor"
[D] 21:06:05.264 0x7fa522bfe600 () - found model: "sk_hftc_kredor" alias of "multilang_hftc_kredor"
[D] 21:06:05.264 0x7fa522bfe600 () - found model: "da_hftc_kredor" alias of "multilang_hftc_kredor"
[D] 21:06:05.265 0x7fa522bfe600 () - checksum ok: "e0d3f80" "de_piper_eva_low"
[D] 21:06:05.265 0x7fa522bfe600 () - found model: "de_piper_eva_low"
[D] 21:06:05.265 0x7fa522bfe600 () - checksum ok: "a9ba9546" "de_piper_pavoque_low"
[D] 21:06:05.265 0x7fa522bfe600 () - found model: "de_piper_pavoque_low"
[D] 21:06:05.265 0x7fa522bfe600 () - found model: "am_espeak_am"
[D] 21:06:05.265 0x7fa522bfe600 () - found model: "ar_espeak_ar"
[D] 21:06:05.265 0x7fa522bfe600 () - found model: "bg_espeak_bg"
[D] 21:06:05.265 0x7fa522bfe600 () - found model: "bs_espeak_bs"
[D] 21:06:05.265 0x7fa522bfe600 () - found model: "ca_espeak_ca"
[D] 21:06:05.265 0x7fa522bfe600 () - found model: "cs_espeak_cs"
[D] 21:06:05.265 0x7fa522bfe600 () - found model: "da_espeak_da"
[D] 21:06:05.265 0x7fa522bfe600 () - found model: "de_espeak_de"
[D] 21:06:05.265 0x7fa522bfe600 () - found model: "el_espeak_el"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "en_espeak_en"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "eo_espeak_eo"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "es_espeak_es"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "et_espeak_et"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "eu_espeak_eu"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "is_espeak_is"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "fa_espeak_fa"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "fi_espeak_fi"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "fr_espeak_fr"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "hi_espeak_hi"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "hr_espeak_hr"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "hu_espeak_hu"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "id_espeak_id"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "it_espeak_it"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "ja_espeak_ja"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "kk_espeak_kk"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "ko_espeak_ko"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "lv_espeak_lv"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "lt_espeak_lt"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "mk_espeak_mk"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "ms_espeak_ms"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "ne_espeak_ne"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "nl_espeak_nl"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "no_espeak_no"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "pt_espeak_pt"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "pt_espeak_pt_br"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "ro_espeak_ro"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "ru_espeak_ru"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "sk_espeak_sk"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "sl_espeak_sl"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "sr_espeak_sr"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "sv_espeak_sv"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "sw_espeak_sw"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "th_espeak_th"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "tr_espeak_tr"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "uk_espeak_uk"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "ka_espeak_ka"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "ky_espeak_ky"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "la_espeak_la"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "tt_espeak_tt"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "sq_espeak_sq"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "uz_espeak_uz"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "vi_espeak_vi"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "zh_espeak_yue"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "zh_espeak_hak"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "zh_espeak_cmn"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "ga_espeak_ga"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "mt_espeak_mt"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "bn_espeak_bn"
[D] 21:06:05.266 0x7fa522bfe600 () - found model: "pl_espeak_pl"
[D] 21:06:05.268 0x7fa522bfe600 () - checksum ok: "d87f409f" "de_bergamot_deen"
[D] 21:06:05.268 0x7fa522bfe600 () - found model: "de_bergamot_deen"
[D] 21:06:05.269 0x7fa522bfe600 () - models changed
[D] 21:06:05.364 0x7fa55b175d80 () - starting app: app-standalone
[D] 21:06:05.364 0x7fa55b175d80 () - app service state: unknown => busy
logger error: invalid format string
qrc:/qml/main.qml:165:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo() { ... }
logger error: invalid format string
qrc:/qml/main.qml:156:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo() { ... }
logger error: invalid format string
qrc:/qml/Notepad.qml:24:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo() { ... }
logger error: invalid format string
qrc:/qml/Translator.qml:29:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo() { ... }
[D] 21:06:05.434 0x7fa55b175d80 onCompleted:85 - default font pixel size: 14
[D] 21:06:05.446 0x7fa55b175d80 () - service refresh status, new state: idle
[D] 21:06:05.446 0x7fa55b175d80 () - service state changed: busy => idle
[D] 21:06:05.446 0x7fa55b175d80 () - service refresh status, new state: idle
[D] 21:06:05.578 0x7fa55b175d80 () - app service state: busy => idle
[D] 21:06:05.578 0x7fa55b175d80 () - app stt available models: 0 => 6
[D] 21:06:05.578 0x7fa55b175d80 () - update listen
[D] 21:06:05.578 0x7fa55b175d80 () - app active stt model: "" => "de_whisper_large"
[D] 21:06:05.578 0x7fa55b175d80 () - update listen
[D] 21:06:05.578 0x7fa55b175d80 () - app tts available models: 0 => 2
[D] 21:06:05.578 0x7fa55b175d80 () - update listen
[D] 21:06:05.578 0x7fa55b175d80 () - app active tts model: "" => "de_piper_eva_low"
[D] 21:06:05.578 0x7fa55b175d80 () - update listen
[D] 21:06:05.579 0x7fa55b175d80 () - app mnt available langs: 0 => 1
[D] 21:06:05.579 0x7fa55b175d80 () - update listen
[D] 21:06:05.579 0x7fa55b175d80 () - app active mnt lang: "" => "de"
[D] 21:06:05.579 0x7fa55b175d80 () - app mnt available out langs: 0 => 1
[D] 21:06:05.579 0x7fa55b175d80 () - app tts available models for in mnt: 0 => 2
[D] 21:06:05.579 0x7fa55b175d80 () - app active tts model for in mnt: "" => "de_piper_eva_low"
[D] 21:06:05.579 0x7fa55b175d80 () - app active mnt out lang: "" => "en"
[W] 21:06:05.579 0x7fa55b175d80 () - no available tts models for out mnt
[W] 21:06:05.579 0x7fa55b175d80 () - no available tts models for out mnt
[W] 21:06:05.579 0x7fa55b175d80 () - invalid task, reseting task state
[D] 21:06:05.579 0x7fa55b175d80 () - app stt configured: false => true
[D] 21:06:05.581 0x7fa55b175d80 () - app tts configured: false => true
[D] 21:06:05.581 0x7fa55b175d80 () - app mnt configured: false => true
[D] 21:06:05.581 0x7fa55b175d80 () - app busy: true => false
[D] 21:06:05.581 0x7fa55b175d80 () - stt models changed
[D] 21:06:05.581 0x7fa55b175d80 () - update listen
[D] 21:06:05.581 0x7fa55b175d80 () - tts models changed
[D] 21:06:05.581 0x7fa55b175d80 () - update listen
[W] 21:06:05.581 0x7fa55b175d80 () - no available tts models for out mnt
[D] 21:06:05.581 0x7fa55b175d80 () - ttt models changed
[D] 21:06:05.581 0x7fa55b175d80 () - app ttt configured: false => true
[D] 21:06:05.581 0x7fa55b175d80 () - mnt langs changed
[D] 21:06:05.581 0x7fa55b175d80 () - update listen
logger error: invalid format string
qrc:/qml/SettingsPage.qml:278:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo() { ... }

`

@mkiol
Copy link
Owner

mkiol commented Oct 18, 2023

In theory your video card is supported and should work fine. For some reason CUDA reports an "unknown" error (cudaErrorUnknown=999).

[D] 21:06:05.182 0x7fa55b175d80 add_cuda_devices:240 - cudaGetDeviceCount returned: 999

It looks that your NVIDIA driver is not the latest one. My system has "driver=12020". I don't think this resolves the problem but you may try to update the driver on your machine.

[D] 21:06:05.182 0x7fa55b175d80 add_cuda_devices:235 - cuda version: driver=12000, runtime=12020

You may try as well "beta" version from flatpak-beta. You can install it by following this manual. In Speech Note 4.3.0-beta (from flatpak-beta) I have downgraded CUDA to version 11 (official version has CUDA 12). Maybe with a lower version it will work.

Please let me know if any of this helped.

@tkonicz
Copy link
Author

tkonicz commented Oct 18, 2023

Ok, ust one strange thing: Now, after an Uptime of roughly 19 hours, the GPU is suddenly recognized by Speech Note. I can use it freely now. I did nothing to fix it in the meantime, I don't get it...
And after a quick reboot - the GPU-acceleration is gone. It ceased working again.

@tkonicz
Copy link
Author

tkonicz commented Oct 18, 2023

The Issue persists in the beta build as well.

@tkonicz
Copy link
Author

tkonicz commented Oct 18, 2023

Ok, I found the bug! After a fresh boot, Speech Note does not recognize the GPU - unless the GPU is used by an app.
I can reproduce it now:
I did a restart, and Speech Note did not recognize the GPU, as usual. So afterwards, I started Steam and some games (Dune, Shadow of the Forbidden Gods), just for a few seconds. And, behold, Speech Note does recognize my GPU now after closing steam and the games.

Hoe it helps somehow. Here, the terminal output after using Steam:
flatpak run net.mkiol.SpeechNote --verbose QSocketNotifier: Can only be used with threads started with QThread qt.qpa.qgnomeplatform: Could not find color scheme "" [I] 21:15:51.600 0x7f5d4ff75d80 init:49 - logging to stderr enabled [D] 21:15:51.600 0x7f5d4ff75d80 () - failed to load translation: "de_DE" ":/translations" [W] 21:15:51.600 0x7f5d4ff75d80 () - failed to install translation [D] 21:15:51.600 0x7f5d4ff75d80 () - starting standalone app [D] 21:15:51.601 0x7f5d4ff75d80 () - app: net.mkiol dsnote [D] 21:15:51.601 0x7f5d4ff75d80 () - config location: "/home/tomasz/.var/app/net.mkiol.SpeechNote/config" [D] 21:15:51.601 0x7f5d4ff75d80 () - data location: "/home/tomasz/.var/app/net.mkiol.SpeechNote/data/net.mkiol/dsnote" [D] 21:15:51.601 0x7f5d4ff75d80 () - cache location: "/home/tomasz/.var/app/net.mkiol.SpeechNote/cache/net.mkiol/dsnote" [D] 21:15:51.601 0x7f5d4ff75d80 () - settings file: "/home/tomasz/.var/app/net.mkiol.SpeechNote/config/net.mkiol/dsnote/settings.conf" [D] 21:15:51.601 0x7f5d4ff75d80 () - available styles: ("Default", "Fusion", "Imagine", "Material", "org.kde.breeze", "org.kde.desktop", "Plasma", "Universal") [D] 21:15:51.601 0x7f5d4ff75d80 () - style paths: ("/usr/lib/qml/QtQuick/Controls.2") [D] 21:15:51.601 0x7f5d4ff75d80 () - switching to style: "Default" [D] 21:15:51.764 0x7f5d4ff75d80 () - supported audio input devices: ALSA lib ../../oss/pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp [D] 21:15:51.776 0x7f5d4ff75d80 () - "pulse" [D] 21:15:51.840 0x7f5d4ff75d80 () - "default" ALSA lib ../../../src/pcm/pcm_direct.c:2045:(snd1_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio) [D] 21:15:51.851 0x7f5d4ff75d80 () - "alsa_input.pci-0000_00_1f.3.analog-stereo" [D] 21:15:51.851 0x7f5d4ff75d80 () - "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor" [D] 21:15:51.851 0x7f5d4ff75d80 add_cuda_devices:226 - scanning for cuda devices [D] 21:15:51.878 0x7f5d4ff75d80 add_cuda_devices:235 - cuda version: driver=12000, runtime=12020 [D] 21:15:51.878 0x7f5d4ff75d80 add_cuda_devices:244 - cuda number of devices: 1 [D] 21:15:51.878 0x7f5d4ff75d80 add_cuda_devices:253 - cuda device: 0, name=Quadro P1000 [D] 21:15:51.878 0x7f5d4ff75d80 add_hip_devices:263 - scanning for hip devices

@mkiol
Copy link
Owner

mkiol commented Oct 19, 2023

I've never encountered anything like this 🤔 .

My first thought was that your GPU uses some form of power control and disables "heavy features" in non-gaming mode. On laptop this kind of power optimization makes sense.... but the truth is that I have no idea.

@tkonicz
Copy link
Author

tkonicz commented Oct 19, 2023

ok, lets leave it at that. I have my workaround. Some kind of power saving while the GPU is in auto mode in the Zbook-BIOS - this is my guess too.

Greetings, and thanks for your work,

Tomasz

@hardpenguin
Copy link

My first thought was that your GPU uses some form of power control and disables "heavy features" in non-gaming mode. On laptop this kind of power optimization makes sense.... but the truth is that I have no idea.

I think this is spot on - this technology is called NVIDIA PRIME. The device uses a weaker integrated Intel GPU by default and starts the more powerful NVIDIA card when you run games.

@tkonicz you should be able to modify that behavior in the NVIDIA Settings application. For example, to turn the NVIDIA GPU permanently on (that will cost you battery life). Or get it to start whenever you launch Speech Note.

@mkiol
Copy link
Owner

mkiol commented Nov 4, 2023

This might be a solution for PRIME switching:

You need to set __NV_PRIME_RENDER_OFFLOAD=1 and __GLX_VENDOR_LIBRARY_NAME=nvidia env variables before starting the app. You can do it with flatpak override command:

flatpak override --env=__NV_PRIME_RENDER_OFFLOAD=1 --env=__GLX_VENDOR_LIBRARY_NAME=nvidia net.mkiol.SpeechNote

and than just start the app normally with:

flatpak run net.mkiol.SpeechNote

This trick resolved this problem.

@tkonicz
Copy link
Author

tkonicz commented Nov 6, 2023

flatpak override --env=__NV_PRIME_RENDER_OFFLOAD=1 --env=__GLX_VENDOR_LIBRARY_NAME=nvidia net.mkiol.SpeechNote

Hi, just a quick question: it this a permanent change, remaining even after a reset? And, will now every flatpak app use NVIDIA, or just SpeechNote?

@mkiol
Copy link
Owner

mkiol commented Nov 6, 2023

reference: https://docs.flatpak.org/en/latest/flatpak-command-reference.html#flatpak-override

It will affect only net.mkiol.SpeechNote app. Override is permanent, so you don't need to apply it every time you start the app. You can reset to defaults with:

flatpak override --reset net.mkiol.SpeechNote

@tkonicz
Copy link
Author

tkonicz commented Nov 6, 2023

Nope, it does not work here. Speechnote did not display at all after applying the override. Had to reset it.

@mkiol
Copy link
Owner

mkiol commented Nov 6, 2023

Can you please check what outputs:

flatpak run net.mkiol.SpeechNote --verbose

?

@mkiol
Copy link
Owner

mkiol commented Feb 6, 2024

If the problem still occurs, please re-open.

@mkiol mkiol closed this as completed Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants