Skip to content

bug: gui: source property sliders practically unusable #827

Closed

Description

@alerque

Location

An existing bug I had in upstream OBS Studio that is still present in this fork. I searched for upstream issues and don't see any, which makes me think this must be DE/compositor/Wayland specific otherwise I can't imagine it going unnoticed.

When I look at camera source properties, there are usually some number of sliders (depending on the devices of course). The slider widgets are utterly and completely unusable. I can grab the handle and drag, but it "drops" almost instantly, so at most I can drag them a position or two on the bar. Scrolling also has no effect when they are focused.

Image

I am only able to input values by typing them in or by using the up/down arrows next to the input box. The slider widgets themselves are totally ineffective to change anything.

I'm on Hyprland on Arch Linux (stable relaases). I've confirmed this on 3 different machines.

Class

GUI UX

How it is reached

Open properties for any camera source. Try moving a slider.

Proposed fix and failing test

The slider widgets should respond to mouse events without getting int erupted by anything else. As long as the user holds a mouse button down to drag the handle should stay active and not get dropped.

Additionally scrolling while the widget is focused should also adjust the slider. Bonus points for SHIFT or some other modifying while scrolling being a fast scroll.

Activity

  1. added
    bug
    on Oct 15, 2026
  2. zackees commented on Oct 15, 2026

    @zackees
    Member

    Thanks for the report. Two code paths could drop a drag, and a few checks would tell them apart:

    1. The camera controls rebuild the dialog. v4l2_control_changed (plugins/linux-v4l2/v4l2-controls.c) returns true when VIDIOC_S_CTRL fails, and true makes the properties view rebuild every widget (properties-view.cpp, RefreshProperties), which destroys the slider you're holding. A control the driver refuses (for example exposure while auto-exposure is on, or a value off its step) would do exactly this on every tick.
    2. Wayland/compositor input. Upstream has the same widgets, and nobody upstream reports this, which fits a Wayland-specific grab loss.

    Could you try:

    • a slider that isn't a camera control, e.g. a Color Correction filter's Gamma or Opacity. If that one drags fine, it's (1).
    • the same camera slider with QT_QPA_PLATFORM=xcb obs (XWayland). If it then works, it's (2).
    • starting OBS with --verbose and dragging once, then attaching the log. Failed controls show up there.

    Scrolling: sliders in properties deliberately ignore the wheel until clicked (focused), so the page can scroll past them (SliderIgnoreScroll). If the wheel does nothing even after clicking the slider, that's (1) again: the rebuild drops focus.

  3. rdoupe commented on Oct 15, 2026

    @rdoupe
    Collaborator

    Claiming: this issue.

    Reproduced in 0.1.0-beta.20261014 with a PipeWire camera that exposes controls. The device in the screenshot ("... (V4L2)" with a Camera Controls group and a Frame Rate list) is the PipeWire camera source, not the native V4L2 one. A 120 px drag of Brightness changes the value once and then drops. Six wheel notches over the focused slider change it once.

    Cause: control_changed() in plugins/linux-pipewire/camera-portal.c returns true for every control, on success too. true makes the properties view rebuild every widget (RefreshProperties), so the slider being dragged is destroyed after the first step and focus moves to the spin box. That's why the wheel stops too. The code comes from upstream (2022), not from anything obs-rust changed, and it isn't Wayland-specific.

    1. RED: a cmocka test against a private PipeWire camera with a Brightness control checks that obs_property_modified() on that control returns false (no rebuild). It fails today.
    2. GREEN: control_changed() returns false. The widget already shows the new value, and a rebuild only re-reads the same control list. pw_node_set_param is also made under the PipeWire thread lock, since it now runs on every slider step and PipeWire already warns about the unlocked call.

    With that change in the same setup, the drag goes through all 20 steps and the wheel moves on every notch.

  4. added
    claimed
    on Oct 15, 2026
  5. rdoupe commented on Oct 15, 2026

    @rdoupe
    Collaborator

    #829 is merged with a regression test. It should fix this, but it is not confirmed until you try it on your setup.

    The camera controls in the "Video Capture Device (PipeWire)" source told the Properties window to rebuild all its widgets after every value change. The first step of a drag destroyed the slider you were holding, and focus moved to the spin box, so the wheel stopped too. With #829 a control change only sets the value on the camera. In our release, a 120 px drag moved Brightness one step and dropped. With #829 it followed the mouse all the way here, and every wheel notch over the focused (clicked) slider moved it, but that is our test setup, not your camera and compositor. Shift+wheel fast scroll isn't part of this; it's a separate feature request.

    It will be in the next obs-rust daily release after 0.1.0-beta.20261014: https://github.com/obs-rust/obs-studio/releases (on Arch it's obs-studio-rust-git in the AUR).

    If you get a chance to try it on Hyprland, a reply here on whether the sliders now drag and scroll would really help.

  6. alerque commented on Oct 15, 2026

    @alerque
    Author

    This is a huge improvement, but not quite there. Notable most of the sliders are now operable (as opposed to none of them) but there are still some that are not.

    For example for this webcam, all the slider widgets respond to mouse control except the last one ("Exposure Time, Absolute") which still behaves as before:

    Image

    I imagine there are others. Perhaps the "absolute" value ones are different? I'll be able to check other camera devices later but am on a different machine than most of my production gear right now.

  7. rdoupe commented on Oct 15, 2026

    @rdoupe
    Collaborator

    Thanks for testing it this quickly, and for the screenshot. That's a separate case, so I'm reopening this.

    This dialog is the "Video Capture Device (V4L2)" source, not the PipeWire one #829 changed. Its sliders take a different path, v4l2_control_changed() in plugins/linux-v4l2/v4l2-controls.c, which rebuilds the whole dialog only when the camera refuses a value. With Auto Exposure on "Aperture Priority Mode", a UVC camera refuses manual exposure values, so every step of an Exposure Time drag is refused and rebuilds the dialog. That drops the drag in the same way. This matches the first case in zackees' comment above. I haven't confirmed it here yet; I'll check it against a camera that refuses values the way yours does.

    One quick check, if you have a minute: set Auto Exposure to "Manual Mode" and try the Exposure Time slider again. If it drags normally there, this is the cause.

    The other sliders should be fine in both modes. If you find another one that drops while its "automatic" partner is off, that would tell me something different.

  8. reopened this on Oct 15, 2026
  9. alerque commented on Oct 15, 2026

    @alerque
    Author

    10. That drops the drag in the same way. This matches the first case in zackees' comment above. I haven't confirmed it here yet; I'll check it against a camera that refuses values the way yours does.

    It might be an unused/invalid value, but the UI is still wonkey because the digit input box and up/down arrows work to accept values, so as either the entire widget should be disabled or it should be entirely usable (even if the value is ignored) but not this current limbo of accepting input then crashing the widget.

    One quick check, if you have a minute: set Auto Exposure to "Manual Mode" and try the Exposure Time slider again. If it drags normally there, this is the cause.

    Yes, actually setting manual mode does free up the slider.

  10. reopened this on Oct 15, 2026
  11. rdoupe commented on Oct 15, 2026

    @rdoupe
    Collaborator

    #895 is merged into master. It covers the Exposure Time case from your last comment, which zackees named first. I reopened this issue: it stays open until you have tried the fix on your camera, since our test used a stand-in device and not real hardware.

    What changed in the "Video Capture Device (V4L2)" source:

    • A control the camera reports as inactive is greyed out as a whole: slider, number box and label. Exposure Time, Absolute is inactive while Auto Exposure is not on Manual. This follows the V4L2 spec, and it's what qv4l2 does.
    • Switching Auto Exposure to Manual Mode enables Exposure Time at once, and switching back greys it out again.
    • Dragging a slider no longer rebuilds the window. A value the camera refuses is logged instead.
    • The value you saved is kept for when the automatic mode is off.

    Your White Balance Temperature will only grey out if your camera reports it as inactive while White Balance, Automatic is on. If it drags fine for you today, it should stay that way.

    It is in master now, so rebuilding obs-studio-rust-git from the AUR picks it up. It will also be in the next obs-rust daily release after 0.1.0-beta.20261014: https://github.com/obs-rust/obs-studio/releases

    When you get a chance, please try Exposure Time in Aperture Priority (it should be greyed out) and in Manual Mode (it should drag), and any other slider that has an automatic partner. Once you confirm, this can be closed.

  12. alerque commented on Oct 16, 2026

    @alerque
    Author

    I can confirm the specific cameras/sliders I was looking at before were fixed. The webcam with auto exposure stuff does disable the slider, and setting it to manual enables it.

    However the same issue does not appear to be universally fixed. Other cameras with other similar situations are not catching the same behavior.

    For example here is a different camera with a focus control. The auto focus checkbox works, and when disabled the focus slider work. The issue I see is that when checking the box for auto focus the slider remains active. It now actually works as a slider (the widget doesn't redraw on focus) and the value has no effect, but if the value has no effect I would have expected the slider widget to be disabled.

    Image

    Is there some sort of universal relationship between auto/manual controls that this can be fixed across the board or are we stuck playing whack-a-mole per camera and unique groups of settings?

  13. rdoupe commented on Oct 16, 2026

    @rdoupe
    Collaborator

    Thanks for testing. Good to hear the Exposure case works on the real camera.

    The fix is not per camera. After any change in the window, OBS asks the driver which controls are inactive right now (V4L2_CTRL_FLAG_INACTIVE) and greys out exactly those. No camera or control names are involved. Your first webcam's driver marks Exposure Time inactive outside Manual Mode, so that one greys out.

    The flag comes from the driver, though. For USB webcams (uvcvideo), Focus, Absolute is marked inactive while Focus, Automatic Continuous is on, but only when the driver can read the camera's current auto-focus setting. If the camera doesn't support reading it, or the camera uses a different driver, nothing is marked, and OBS can't tell the slider has no effect. That would match what you see: in auto mode the value is accepted and silently ignored rather than refused.

    To tell which case this is, could you run this for the focus camera with auto focus on? (v4l2-ctl is in the v4l-utils package; replace N with its number from v4l2-ctl --list-devices.)

    v4l2-ctl -d /dev/videoN -D --list-ctrls
    

    and also the output of uname -r.

    If focus_absolute shows flags=inactive there, the bug is on our side and I'll fix it. If it doesn't, the driver isn't reporting it. In that case I'd add a fallback for the standard automatic/manual control pairs the V4L2 API defines: Focus Auto/Focus, Auto White Balance/Temperature, Auto Gain/Gain, Hue Auto/Hue and Auto Exposure/Exposure. That would cover every camera that uses those standard controls, so no more whack-a-mole.

  14. alerque commented on Oct 16, 2026

    @alerque
    Author

    The inactive flag is there for this camera:

    $ v4l2-ctl -d /dev/video11 -D --list-ctrls
    Driver Info:
            Driver name      : uvcvideo
            Card type        : UHD Camera
            Bus info         : usb-0000:c3:00.0-1
            Driver version   : 7.2.9
            Capabilities     : 0x84a00001
                    Video Capture
                    Metadata Capture
                    Streaming
                    Extended Pix Format
                    Device Capabilities
            Device Caps      : 0x04200001
                    Video Capture
                    Streaming
                    Extended Pix Format
    Media Driver Info:
            Driver name      : uvcvideo
            Model            : UHD Camera
            Serial           : 001200091111111111111111
            Bus info         : usb-0000:c3:00.0-1
            Media version    : 7.2.9
            Hardware revision: 0x00000012 (18)
            Driver version   : 7.2.9
    Interface Info:
            ID               : 0x03000002
            Type             : V4L Video
    Entity Info:
            ID               : 0x00000001 (1)
            Name             : UHD Camera
            Function         : V4L2 I/O
            Flags            : default
            Pad 0x01000007   : 0: Sink
              Link 0x0200001c: from remote pad 0x100000a of entity 'Processing 3' (Video Pixel Formatter): Data, Enabled, Immutable
    
    User Controls
    
                         brightness 0x00980900 (int)    : min=0 max=14 step=1 default=7 value=7 flags=has-min-max
                           contrast 0x00980901 (int)    : min=0 max=14 step=1 default=7 value=7 flags=has-min-max
                         saturation 0x00980902 (int)    : min=60 max=200 step=10 default=100 value=100 flags=has-min-max
                                hue 0x00980903 (int)    : min=0 max=14 step=1 default=7 value=5 flags=has-min-max
                               gain 0x00980913 (int)    : min=0 max=7 step=1 default=2 value=2 flags=has-min-max
               power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=1 (50 Hz)
                          sharpness 0x0098091b (int)    : min=0 max=11 step=1 default=6 value=6 flags=has-min-max
             backlight_compensation 0x0098091c (int)    : min=0 max=1 step=1 default=0 value=0 flags=has-min-max
    
    Camera Controls
    
                      auto_exposure 0x009a0901 (menu)   : min=0 max=3 default=0 value=0 (Auto Mode)
             exposure_time_absolute 0x009a0902 (int)    : min=1 max=333 step=1 default=80 value=80 flags=inactive, has-min-max
                       pan_absolute 0x009a0908 (int)    : min=-612000 max=612000 step=1 default=0 value=-22845 flags=has-min-max
                      tilt_absolute 0x009a0909 (int)    : min=-108000 max=324000 step=1 default=0 value=-4456 flags=has-min-max
                     focus_absolute 0x009a090a (int)    : min=0 max=4148 step=1 default=1675 value=3758 flags=inactive, has-min-max
         focus_automatic_continuous 0x009a090c (bool)   : default=1 value=1
                      zoom_absolute 0x009a090d (int)    : min=0 max=4912 step=1 default=0 value=1791 flags=has-min-max
                    zoom_continuous 0x009a090f (int)    : min=-7 max=7 step=1 default=4 value=-3 flags=has-min-max
                      iris_absolute 0x009a0911 (int)    : min=180 max=1200 step=0 default=180 value=180 flags=has-min-max
                          pan_speed 0x009a0920 (int)    : min=-24 max=24 step=1 default=16 value=0 flags=has-min-max
                         tilt_speed 0x009a0921 (int)    : min=-20 max=20 step=1 default=16 value=0 flags=has-min-max
    
    $ uname -r
    7.2.9-arch1-1
  15. rdoupe commented on Oct 16, 2026

    @rdoupe
    Collaborator

    Thanks, that settles it: the driver marks focus_absolute inactive while focus_automatic_continuous is on, so the bug is in OBS, not the camera. I'm reproducing it now with a stand-in device that has your camera's exact control list, and will post a PR here when it's ready.

  16. rdoupe commented on Oct 16, 2026

    @rdoupe
    Collaborator

    PR: #1054.

    A correction to my last two comments: your screenshot is the "Video Capture Device (PipeWire)" source, not the V4L2 one. #895 only changed the V4L2 source. PipeWire doesn't pass the driver's inactive flag on to OBS, so the PipeWire source now greys out a manual control while its automatic partner is on. The pairs come from the V4L2 spec: Focus, Auto Exposure, White Balance (Temperature, Red and Blue Balance) and Hue. That works the same for every camera that uses those standard controls. The same PR also adds the menu controls that were missing from that window, including Auto Exposure and Power Line Frequency.

    I'll post here once it's merged, with how to test it.

  17. rdoupe commented on Oct 16, 2026

    @rdoupe
    Collaborator

    #1054 is merged into master. Your screenshot showed what was going on: the focus camera is in a "Video Capture Device (PipeWire)" source (Device, Video Format and Frame Rate, no "Restore camera controls"), not in the V4L2 source that #895 changed. PipeWire passes the camera's controls on to OBS, but not the driver's "inactive" flag, so OBS could not tell that Focus, Absolute does nothing while autofocus is on.

    What changed in the PipeWire camera source:

    • For a V4L2 camera, OBS now knows the automatic/manual pairs from the V4L2 spec: Focus, Automatic Continuous / Focus, Absolute; Auto Exposure / Exposure Time, Absolute (usable only in Manual Mode); White Balance, Automatic / White Balance Temperature, Red and Blue Balance; Hue, Automatic / Hue. A manual control is greyed out while its automatic partner is on, when the window opens and right after you change the automatic one.
    • Auto Exposure and Power Line Frequency are now shown. They were missing before, because PipeWire publishes menus in a format the source skipped.
    • Dragging a slider still doesn't rebuild the window.

    It is in master now, so rebuilding obs-studio-rust-git from the AUR picks it up. It will also be in the next obs-rust daily release after 0.1.0-beta.20261014: https://github.com/obs-rust/obs-studio/releases

    When you get a chance, please tick and untick Focus, Automatic Continuous on that camera (the Focus slider should grey out and come back). Then try Auto Exposure between Auto Mode and Manual Mode, and any other auto/manual pair your cameras have. This issue stays open until you confirm.

  18. zackees commented on Oct 16, 2026

    @zackees
    Member

    @rdoupe FYI: #385 turned out to be the same PipeWire-vs-V4L2 split. The "Restore camera controls" option only exists in the V4L2 source. I filed #1067 for the PipeWire source; claim it if you want it, I haven't started anything.

  19. alerque commented on Oct 16, 2026

    @alerque
    Author

    Thanks, I can confirm the enable/disable seems to be working much more like expected now and the widgets scroll when active and disable when not for the 3 cameras I currently have access too.

    There are some other really quirky things going on with the settings widgets that could be cleaned up but that is categorically different than what was originally reported in this issue so I'll open a new issue to track that.

  20. rdoupe commented on Oct 16, 2026

    @rdoupe
    Collaborator

    Thanks for testing on all three cameras. Closing this one as confirmed. I'll pick up the new issue for the other widget quirks when you open it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclaimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions