|
30 | 30 | - ansible_facts['distribution'] in ['Fedora', 'Ubuntu'] |
31 | 31 | - dfe_has_gnome |
32 | 32 |
|
33 | | -# ============================================================================ |
34 | | -# PIPEWIRE VIDEO FRAME RATE OPTIMIZATION |
35 | | -# ============================================================================ |
36 | | -# Reduce video capture frame rate to lower CPU encoding load for software H.264 |
37 | | -# This helps when VA-API hardware encoding is not available (e.g., VirGL VMs) |
38 | | -# Default PipeWire video rate is 25fps, we reduce to 15fps for dev workloads |
39 | | -# (text editing, terminals, web browsing don't need high frame rates) |
40 | | - |
41 | | -- name: Create PipeWire config directory |
42 | | - ansible.builtin.file: |
43 | | - path: /etc/pipewire/pipewire.conf.d |
44 | | - state: directory |
45 | | - mode: '0755' |
46 | | - when: |
47 | | - - ansible_facts['distribution'] in ['Fedora', 'Ubuntu'] |
48 | | - - dfe_has_gnome |
49 | | - |
50 | | -- name: Deploy PipeWire RDP optimization config |
51 | | - ansible.builtin.copy: |
52 | | - dest: /etc/pipewire/pipewire.conf.d/99-rdp-optimize.conf |
53 | | - mode: '0644' |
54 | | - content: | |
55 | | - # DFE RDP Optimization - Reduce video frame rate |
56 | | - # Lower frame rate = less CPU encoding load for software H.264 |
57 | | - # Good for dev work (VSCode, terminals) - text doesn't need 60fps |
58 | | - # Change default.video.rate.num to 20 or 25 if scrolling feels choppy |
59 | | - context.properties = { |
60 | | - default.video.rate.num = 15 |
61 | | - default.video.rate.denom = 1 |
62 | | - } |
63 | | - register: pipewire_rdp_config |
64 | | - when: |
65 | | - - ansible_facts['distribution'] in ['Fedora', 'Ubuntu'] |
66 | | - - dfe_has_gnome |
67 | | - |
68 | 33 | - name: Display dconf status |
69 | 34 | ansible.builtin.debug: |
70 | | - msg: | |
71 | | - GNOME Remote Desktop optimizations applied: |
72 | | - - Animations disabled for RDP performance |
73 | | - - PipeWire video rate reduced to 15fps (saves CPU on software H.264 encoding) |
74 | | - - Reconnect RDP session for frame rate change to take effect |
| 35 | + msg: "GNOME Remote Desktop configured via grdctl (system service mode) - animations disabled for RDP performance" |
75 | 36 | when: |
76 | 37 | - ansible_facts['distribution'] in ['Fedora', 'Ubuntu'] |
77 | 38 | - dfe_has_gnome |
0 commit comments