aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tty.rs
AgeCommit message (Collapse)Author
2025-11-26tty: Handle multiple primary nodes having the same render nodeyuxqiu
2025-11-21Remove setting max bpcIvan Molodetskikh
2025-11-21tty: Throttle VBlanks on displays running faster than expectedIvan Molodetskikh
Co-authored-by: Christian Meissl <meissl.christian@gmail.com> Co-authored-by: Scott McKendry <39483124+scottmckendry@users.noreply.github.com>
2025-11-21tty: Extract time and refresh_interval higherIvan Molodetskikh
Co-authored-by: Christian Meissl <meissl.christian@gmail.com> Co-authored-by: Scott McKendry <39483124+scottmckendry@users.noreply.github.com>
2025-11-21tty: Fall back to primary GPU for display-only devicesIvan Molodetskikh
This enables DisplayLink support. Co-authored-by: Christian Meissl <meissl.christian@gmail.com> Co-authored-by: Scott McKendry <39483124+scottmckendry@users.noreply.github.com>
2025-11-21tty: Name is_ccs variable explicitlyIvan Molodetskikh
Co-authored-by: Christian Meissl <meissl.christian@gmail.com> Co-authored-by: Scott McKendry <39483124+scottmckendry@users.noreply.github.com>
2025-11-21tty: Create allocator at device creationIvan Molodetskikh
Co-authored-by: Christian Meissl <meissl.christian@gmail.com> Co-authored-by: Scott McKendry <39483124+scottmckendry@users.noreply.github.com>
2025-11-21tty: Ensure we only use the primary render node for dmabuf globalIvan Molodetskikh
Necessary for a future refactor making render node optional. Co-authored-by: Christian Meissl <meissl.christian@gmail.com> Co-authored-by: Scott McKendry <39483124+scottmckendry@users.noreply.github.com>
2025-11-21tty: Initialize primary node before othersIvan Molodetskikh
Co-authored-by: Christian Meissl <meissl.christian@gmail.com> Co-authored-by: Scott McKendry <39483124+scottmckendry@users.noreply.github.com>
2025-11-19tty: Avoid modeset on session resumeIvan Molodetskikh
2025-11-19tty: Make sure to cleanup all CRTCs except used onesIvan Molodetskikh
Apparently a CRTC can be active and use bandwidth even without any connectors on it.
2025-11-19tty: Add Tracy span to another long callIvan Molodetskikh
2025-11-19tty: Avoid modeset on adding device if possibleIvan Molodetskikh
Session resume will still modeset; more work would be needed to support that (namely, handling changes to the CRTC mapping).
2025-11-19tty: Extract should_disable_laptop_panels()Ivan Molodetskikh
2025-11-18tty: Add Tracy spans to heavy functionsIvan Molodetskikh
2025-11-18Add more Tracy spans to initializationIvan Molodetskikh
2025-11-18tty: Honor "panel orientation" propertyIvan Molodetskikh
2025-11-17tty: Avoid reloading ignored nodes unnecessarilyIvan Molodetskikh
Also fixes panic when the code ran while udev_dispatcher was already locked.
2025-10-29tty: Fix cast for aarch64Ivan Molodetskikh
2025-10-29tty: Move HDR property reset to session resumeIvan Molodetskikh
Not sure why it was in output config changed, but it shouldn't be there as that's called quite frequently.
2025-10-29tty: Tone down some property setting messagesIvan Molodetskikh
If those props are missing we don't want to scream "error" in the logs.
2025-10-29Add support for custom modes and modelines. (#2479)Merlijn
* Implement custom modes and modelines Co-authored-by: ToxicMushroom <32853531+ToxicMushroom@users.noreply.github.com> * fixes * refactor mode and modeline kdl parsers. * add IPC parse checks * refactor: address feedback * fix: add missing > 0 refresh rate check * move things around * fixes * wiki fixes --------- Co-authored-by: Christian Meissl <meissl.christian@gmail.com> Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2025-10-19backend/tty: Consider only primary node in drm udev eventathul-krishna-kr
2025-10-17tty: Retry adding device on changeIvan Molodetskikh
On my laptop, sometimes the initial addition of the dGPU fails for some reason.
2025-10-17tty: Improve debug messagesIvan Molodetskikh
2025-10-02tty: Add support for disabling DRM devicesShaun Ren
2025-10-02tty: Close DRM device session fd in device_removed()Shaun Ren
Same logic as in cosmic-comp.
2025-08-24tty: Don't print successful max bpc/HDRIvan Molodetskikh
These are not really that useful
2025-08-24feat: reset HDR connector propertiesMichael Yang
2025-08-17tty: Remove warning when rendering with inactive deviceIvan Molodetskikh
2025-08-11Bump Smithay (xkbcommon wvkbd fix)Ivan Molodetskikh
2025-08-07niri-config: add keep-max-bpc-unchanged option (#2195)BB
* niri-config: add disable-set-bpc option setting bpc to 8 bricks some OLED displays driven by amdgpu * change to keep-max-bpc-unchanged and add to wiki * fmt * Update wiki/Configuration:-Debug-Options.md --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2025-07-31Update Smithay (clipboard client exit nil fix, input region bottom-right fix)Ivan Molodetskikh
2025-07-13Fix new Clippy warningsIvan Molodetskikh
2025-06-23Update SmithayIvan Molodetskikh
2025-06-03Add debug option to skip cursor-only updates while VRR is active (#1616)Gwen
* Add debug option to skip cursor-only updates while VRR is active * Update niri-config/src/lib.rs Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com> * Update src/backend/tty.rs Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com> * Update wiki/Configuration:-Debug-Options.md Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com> * Update Configuration:-Debug-Options.md * Update tty.rs * Update lib.rs * Update Configuration:-Debug-Options.md --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2025-04-29Bump Smithay and othersChristian Meissl
Presentation subsurface fix, popup unconstrain resize fix, cursor shape fix, refactors.
2025-03-10Update Smithay (Framebuffer type)Ivan Molodetskikh
2025-02-17Make idle notify lazyIvan Molodetskikh
2025-01-21Extract Niri::update_shaders()Ivan Molodetskikh
2025-01-10Fix new Clippy warningsIvan Molodetskikh
2025-01-04Search for connector duplicates across all devicesIvan Molodetskikh
2025-01-04Unname connector if a duplicate is detectedIvan Molodetskikh
2025-01-04Fetch monitor name from EDID only onceIvan Molodetskikh
Reduce spam when it's unavailable. Assume the name cannot change at runtime; before if it changed, bad things would probably happen anyway.
2025-01-04Default to unrestricted primary plane scanoutIvan Molodetskikh
2025-01-04Add Xrgb/Xbgr to color formatsIvan Molodetskikh
At least until the scanout check is fixed in Smithay again.
2025-01-04Upgrade Smithay (DrmCompositor changes)Ivan Molodetskikh
2024-12-30Update for Smithay VRR changesIvan Molodetskikh
2024-12-30Update Smithay (presentation-time v2)Ivan Molodetskikh
2024-11-08Rework output connection to always go through on_output_config_changed()Ivan Molodetskikh
This has the following benefits: 1. connector_connected() is now more closely mirroring connector_disconnected() in that it merely lights up the connector, and doesn't check if the connector should be off from the config. 2. We can use more complex on/off logic that depends on multiple connectors. For example, this commit adds logic to only disable the laptop panel on lid close if there are other connected outputs. We don't want to disable the laptop panel on lid close if it's the only connected output because it causes screen lockers to create their surface from scratch on normal laptop unsuspend, which is undesirable and also confuses some screen lockers.