gnif / LookingGlass

An extremely low latency KVMFR (KVM FrameRelay) implementation for guests with VGA PCI Passthrough.
GNU General Public License v2.0
4.64k stars 257 forks source link

Sonic boom noise or no sound #1110

Closed Mejituu closed 5 months ago

Mejituu commented 5 months ago

When listening to music in Windows 11, you sometimes encounter sonic boom noise problems or the sound suddenly goes silent. Then I pause the music and it will be normal after a while, or I can close looking-glass-client without pausing the music and then restart looking-glass-client and it will be normal. This sonic boom problem is triggered occasionally, on average at least once every two days. Maybe it’s because I use it for a long time. I usually leave it there and listen to music for 4-5 hours. However, I noticed that when the sonic boom noise occurs, it is playing a relatively high-pitched part?


在windows11中听歌,有时会遇到音爆杂音问题或者突然没声音了。 然后我暂停一下音乐过一会儿就正常了,或者是不暂停音乐直接关闭looking-glass-client再重新启动looking-glass-client也能正常。 这个音爆问题是偶尔能触发,平均下来每一俩天至少触发一次。可能是我用的时间比较长吧,我一般就放在那儿里听歌4-5小时。 不过我有注意到,出现音爆杂音时是在播放相对来说是高音部分?


OS: Debian GNU/Linux trixie/sid x86_64 DE: Plasma 5.27.10 WM: KWin CPU: Intel i7-10875H (16) @ 5.100GHz GPU: Intel CometLake-H GT2 [UHD Graphics] GPU: NVIDIA GeForce RTX 2060 Mobile Memory: 23332MiB / 64054MiB

Server Name: PulseAudio (on PipeWire 1.0.3) Default Sample Specification: float32le 2ch 48000Hz

Mejituu commented 5 months ago
00:00:00.000 [I]              main.c:1859 | main                           | Looking Glass (B7-rc1-b251b22a649)
00:00:00.000 [I]              main.c:1860 | main                           | Locking Method: Atomic
00:00:00.000 [I]           cpuinfo.c:38   | cpuInfo_log                    | CPU Model: Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz
00:00:00.000 [I]           cpuinfo.c:39   | cpuInfo_log                    | CPU: 1 sockets, 8 cores, 16 threads
00:00:00.008 [I]            config.c:608  | config_load                    | Loading config from: /home/mejituu/.config/looking-glass/client.ini
00:00:00.016 [I]              main.c:1185 | lg_run                         | Using font: /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf
00:00:00.017 [I]           ivshmem.c:128  | ivshmemOpenDev                 | KVMFR Device     : /dev/kvmfr0
00:00:00.020 [I]             audio.c:159  | audio_init                     | Using AudioDev: PipeWire
00:00:00.020 [I]                ps.c:245  | purespice_connect              | Connecting to socket 127.0.0.1:5900
00:00:00.028 [I]               rsa.c:178  | rsa_encryptPassword            | Using Nettle
00:00:00.028 [I]                ps.c:268  | purespice_connect              | Connected
00:00:00.028 [I]             agent.c:103  | agent_connect                  | Connected to the spice guest agent
00:00:00.028 [I]      channel_main.c:167  | onMessage_mainName             | Guest name: win11
00:00:00.028 [I]      channel_main.c:183  | onMessage_mainUUID             | Guest UUID: 1c2cc5bd-6786-469b-9431-0e0060e24ac5
00:00:00.038 [I]                ps.c:644  | ps_connectChannel              | RECORD channel connected
00:00:00.047 [I]                ps.c:644  | ps_connectChannel              | PLAYBACK channel connected
00:00:00.052 [I]                ps.c:644  | ps_connectChannel              | INPUTS channel connected
00:00:00.053 [I]               egl.c:289  | egl_initialize                 | Double buffering is on
00:00:00.053 [I]              main.c:1139 | tryRenderer                    | Using Renderer: EGL
00:00:00.054 [I]           channel.c:323  | onMessage_notify               | [notify] keyboard channel is insecure
00:00:00.054 [I]               x11.c:232  | x11CheckEWMHSupport            | EWMH-compliant window manager detected: KWin
00:00:00.054 [I]               x11.c:497  | x11Init                        | X11 XInput 2.0 in use
00:00:00.059 [I]              main.c:1398 | lg_run                         | Using JIT render mode
00:00:00.059 [I]               x11.c:1496 | x11GetEGLDisplay               | Using eglGetPlatformDisplayEXT
00:00:00.113 [I]               egl.c:860  | egl_renderStartup              | Back buffer mode
00:00:00.121 [I]               egl.c:883  | egl_renderStartup              | EGL     : 1.5
00:00:00.121 [I]               egl.c:884  | egl_renderStartup              | Vendor  : Intel
00:00:00.121 [I]               egl.c:885  | egl_renderStartup              | Renderer: Mesa Intel(R) UHD Graphics (CML GT2)
00:00:00.121 [I]               egl.c:886  | egl_renderStartup              | Version : OpenGL ES 3.2 Mesa 23.3.5-1
00:00:00.121 [I]               egl.c:887  | egl_renderStartup              | EGL APIs: OpenGL OpenGL_ES 
00:00:00.121 [I]               egl.c:958  | egl_renderStartup              | Debug messages disabled, enable with egl:debug=true
00:00:00.139 [I]               x11.c:1577 | x11WaitFrame                   | Warming up...
00:00:00.193 [I]           eglutil.c:35   | swapWithDamageInit             | Using EGL_KHR_swap_buffers_with_damage
00:00:00.339 [I]              main.c:1590 | lg_run                         | Guest Information:
00:00:00.339 [I]              main.c:1591 | lg_run                         | Version  : B7-rc1-b251b22a649
00:00:00.339 [I]              main.c:1612 | lg_run                         | UUID     : 1c2cc5bd-6786-469b-9431-0e0060e24ac5
00:00:00.339 [I]              main.c:1621 | lg_run                         | CPU Model: Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz
00:00:00.339 [I]              main.c:1622 | lg_run                         | CPU      : 1 sockets, 8 cores, 16 threads
00:00:00.339 [I]              main.c:1624 | lg_run                         | Using    : D12
00:00:00.339 [I]              main.c:1710 | lg_run                         | OS       : Windows
00:00:00.339 [I]              main.c:1712 | lg_run                         | OS Name  : Windows 10 Pro for Workstations (Build: 22635) 
00:00:00.339 [I]              main.c:1734 | lg_run                         | Starting session
00:00:00.340 [I]              main.c:553  | main_frameThread               | Using DMA buffer support
00:00:00.473 [I]              main.c:710  | main_frameThread               | Format: FRAME_TYPE_BGRA 1920x1080 (1920x1080) stride:1920 pitch:7680 rotation:0 hdr:0 pq:0
00:00:03.141 [I]               x11.c:1585 | x11WaitFrame                   | Warmup done, doing calibration...
00:00:04.701 [I]               x11.c:1650 | x11WaitFrame                   | Calibration done, delay = 3473 us
Mejituu commented 5 months ago

This is not a problem with d12. It also exists in dxgi and dxgi-d3d12. I have not encountered sonic boom yet. I will submit the log when I encounter it.


这不是d12的问题,在dxgi、dxgi-d3d12也存在,我现在还没遇到音爆,等我遇到了再提交日志。

gnif commented 5 months ago

Looking Glass does not transport audio, all sound comes via QEMU through the SPICE protocol. If there is an audio issue, it's not caused by LG.

Note: Your guest configuration is invalid 1 sockets, 8 cores, 16 threads You have left no cores for your host system to use.