#7916·HandBrake

Linux: sleep-inhibit during encode fails on portals without suspend support, with no fallback (KDE/Wayland)

Author: looktoCreated Jun 9, 2026Updated Aug 28, 2026
LabelsBugPatch / Help Welcome

Problem Description

On Linux (KDE Plasma / Wayland), HandBrake does not prevent the system from suspending during an encode.

HandBrake appears to request a suspend inhibition via the org.freedesktop.portal.Inhibit portal, but the active portal backend only supports the idle flag, so the call fails and no inhibitor is registered (not even idle). The system then follows its normal idle-suspend timer and suspends partway through the encode, freezing the job until the machine is woken manually.

Two things make this hard to notice: HandBrake surfaces no error to the user when the inhibit request fails, and there is no fallback to a working mechanism (e.g. a direct logind inhibit).

Steps to reproduce:

KDE Plasma Wayland session with automatic suspend enabled. Start an encode in HandBrake and leave the machine without input. At the idle timeout, the system suspends despite the encode running.

Expected: the system stays awake for the duration of the encode. Actual: the system suspends; the encode is frozen.

Workaround that confirms the diagnosis: launching via systemd-inhibit --what=idle:sleep ghb (which talks to logind directly and bypasses the portal) holds the inhibitor correctly and prevents suspend. That isolates the failure to the portal-based inhibit path.

Activity Log, Crash Log or any other details

System journal line(after starting an encode)

Jun 09 15:46:45 cachyos-desktop /usr/lib/xdg-desktop-portal[4622]: A backend call failed: Inhibiting other than idle not supported

Activity Log

[16:12:08] gtkgui: Modified Custom Preset: /My Presets/4k
[16:12:08] Starting work at: Tue Jun  9 16:12:08 2026

[16:12:08] 1 job(s) to process
[16:12:08] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 0,
                "DRC": 0.0,
                "Encoder": "copy:truehd",
                "Mixdown": "none",
                "Name": "Surround 7.1",
                "PresetEncoder": "copy",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            },
            {
                "Bitrate": 0,
                "DRC": 0.0,
                "Encoder": "copy:eac3",
                "Mixdown": "none",
                "Name": "Surround 7.1",
                "PresetEncoder": "copy",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 3
            }
        ],
        "CopyMask": [
            "copy:mp3",
            "copy:aac",
            "copy:ac3",
            "copy:dts",
            "copy:dtshd",
            "copy:eac3",
            "copy:flac",
            "copy:truehd"
        ],
        "FallbackEncoder": "none"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 35,
                    "Ticks": 13907643
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 12,
                    "Ticks": 28051774
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 0,
                    "Seconds": 56,
                    "Ticks": 5048794
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 22,
                    "Ticks": 12796533
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 1,
                    "Seconds": 17,
                    "Ticks": 6891885
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 1,
                    "Seconds": 20,
                    "Ticks": 7195939
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 38,
                    "Ticks": 19654635
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 50,
                    "Ticks": 15296531
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 1,
                    "Seconds": 45,
                    "Ticks": 9444436
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 1,
                    "Seconds": 53,```text
                    "Ticks": 10138878
                },
                "Name": "Chapter 10"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 0,
                    "Seconds": 44,
                    "Ticks": 3986483
                },
                "Name": "Chapter 11"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 22,
                    "Ticks": 12785272
                },
                "Name": "Chapter 12"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 0,
                    "Seconds": 53,
                    "Ticks": 4782278
                },
                "Name": "Chapter 13"
            },
            {
                "Duration": {
                    "Hours": 0,```text
                    "Minutes": 2,
                    "Seconds": 51,
                    "Ticks": 15364098
                },
                "Name": "Chapter 14"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 16,
                    "Ticks": 17627611
                },
                "Name": "Chapter 15"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 18,
                    "Ticks": 17830312
                },
                "Name": "Chapter 16"
            },
            {
                "Duration": {```text
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 19,
                    "Ticks": 28693665
                },
                "Name": "Chapter 17"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 46,
                    "Ticks": 25743217
                },
                "Name": "Chapter 18"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 48,
                    "Ticks": 20521752
                },
                "Name": "Chapter 19"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 1,
                    "Seconds": 20,
                    "Ticks": 7158401
                },
                "Name": "Chapter 20"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 29,
                    "Ticks": 18851332
                },
                "Name": "Chapter 21"```text
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 55,
                    "Ticks": 21159889
                },
                "Name": "Chapter 22"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 20,
                    "Ticks": 12560048
                },
                "Name": "Chapter 23"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 18,
                    "Ticks": 17777760
                },
                "Name": "Chapter 24"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 59,
                    "Ticks": 26865589
                },
                "Name": "Chapter 25"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,```text
                    "Sec

system journal line captured immediately after starting an encode:
Jun 09 15:46:45 cachyos-desktop /usr/lib/xdg-desktop-portal[4622]: A backend call failed: Inhibiting other than idle not supportedonds": 26,
                    "Ticks": 13111848
                },
                "Name": "Chapter 26"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 39,
                    "Ticks": 19703434
                },
                "Name": "Chapter 27"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 36,
                    "Ticks": 14027764
                },
                "Name": "Chapter 28"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 51,
                    "Ticks": 15375360
                },
                "Name": "Chapter 29"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 1,
                    "Seconds": 31,
                    "Ticks": 8145637
                },
                "Name": "Chapter 30"
            },```text
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 33,
                    "Ticks": 13776263
                },
                "Name": "Chapter 31"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 1,
                    "Seconds": 36,
                    "Ticks": 8633625
                },
                "Name": "Chapter 32"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 23,
                    "Ticks": 12837825
                },
                "Name": "Chapter 33"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 1,
                    "Seconds": 57,
                    "Ticks": 10487977
                },
                "Name": "Chapter 34"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 25,```text
                    "Ticks": 13040528
                },
                "Name": "Chapter 35"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 1,
                    "Seconds": 49,
                    "Ticks": 9789780
                },
                "Name": "Chapter 36"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 1,
                    "Seconds": 41,
                    "Ticks": 9065306
                },
                "Name": "Chapter 37"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 39,
                    "Ticks": 14343079
                },
                "Name": "Chapter 38"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 16,
                    "Ticks": 12259747
                },
                "Name": "Chapter 39"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 43,
                    "Ticks": 14665901
                },
                "Name": "Chapter 40"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 28,
                    "Ticks": 13340828
                },
                "Name": "Chapter 41"
            },
            {
                "

system journal line captured immediately after starting an encode:
Jun 09 15:46:45 cachyos-desktop /usr/lib/xdg-desktop-portal[4622]: A backend call failed: Inhibiting other than idle not supportedDuration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 36,
                    "Ticks": 14042779
                },
                "Name": "Chapter 42"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 58,
                    "Ticks": 16005990
                },
                "Name": "Chapter 43"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 17,
                    "Ticks": 12334822
                },
                "Name": "Chapter 44"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 38,
                    "Ticks": 19575806
                },
                "Name": "Chapter 45"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 1,
                    "Seconds": 48,
                    "Ticks": 9692183
                },
                "Name": "Chapter 46"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 4,
                    "Ticks": 11201190
                },
                "Name": "Chapter 47"
            },
            {
                "Duration": {```text
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 27,
                    "Ticks": 13186924
                },
                "Name": "Chapter 48"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 8,
                    "Seconds": 16,
                    "Ticks": 44619049
                },
                "Name": "Chapter 49"
            }
        ],
        "ChapterMarkers": true,
        "File": "/media/scarlac/Imagefilm_RF16_4k.mkv",
        "InlineParameterSets": false,
        "Mux": "mkv",
        "Options": {
            "IpodAtom": false,
            "Optimize": false
        }
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 4,
                "Settings": {
                    "block-height": "16",
                    "block-thresh": "40",
                    "block-width": "16",
                    "filter-mode": "2",
                    "mode": "3",
                    "motion-thresh": "1",
                    "spatial-metric": "2",
                    "spatial-thresh": "1"
                }
            },
            {
                "ID": 6,
                "Settings": {
                    "mode": "7"
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "mode": 1
                }
            },
            {
                "ID": 20,
                "Settings": {
                    "crop-bottom": 276,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 276,
                    "height": 1608,
                    "width": 3840
                }
            }
        ]
    },
    "Metadata": {
        "CreationTime": "2026-04-11T09:41:08.000000Z",
        "Name": "Imagefilm"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "HWDecode": 0,
        "KeepDuplicateTitles": false,
        "Path": "/media/scarlac/Imagefilm.mkv",
        "Range": {
            "End": 49,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": true,
            "Forced": true
        },
        "SubtitleList": [
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 0
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 1
            }
        ]
    },
    "Video": {
        "AdapterIndex": -1,
        "AsyncDepth": 0,
        "ChromaLocation": 3,
        "ColorInputFormat": 0,
        "ColorMatrix": 9,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 9,
        "ColorRange": 0,
        "ColorTransfer": 16,
        "Encoder": "x265_10bit",
        "HardwareDecode": 0,
        "Level": "5.1",
        "MasteringDisplayColorVolume": {
            "DisplayPrimaries": [
                [
                    [
                        34000,
                        50000
                    ],
                    [
                        16000,
                        50000
                    ]
                ],
                [
                    [
                        13250,
                        50000
                    ],
                    [
                        34500,
                        50000
                    ]
                ],
                [
                    [
                        7500,
                        50000
                    ],
                    [
                        3000,
                        50000
                    ]
                ]
            ],
            "HasLuminance": true,
            "HasPrimaries": true,
            "MaxLuminance": [
                40000000,
                10000
            ],
            "MinLuminance": [
                50,
                10000
            ],
            "WhitePoint": [
                [
                    15635,
                    50000
                ],
                [
                    16450,
                    50000
                ]
            ]
        },
        "MultiPass": false,
        "Options": "strong-intra-smoothing=0:rect=0:aq-mode=1:rd=4:psy-rd=0,75:psy-rdoq=4:rdoq-level=1:rskip=2",
        "PasshtruHDRDynamicMetadata": 6,
        "Preset": "slow",
        "Profile": "main10",
        "Quality": 16.0,
        "Tune": "",
        "Turbo": false
    }
}
[16:12:08] OS: Linux 7.0.11