Ivan Molodetskikh
6e8fd15339
tty: Fix cast for aarch64
2025-10-29 10:01:51 +03:00
Ivan Molodetskikh
db32f52ce6
tty: Move HDR property reset to session resume
...
Not sure why it was in output config changed, but it shouldn't be there
as that's called quite frequently.
2025-10-29 09:29:39 +03:00
Ivan Molodetskikh
978aace94d
tty: Tone down some property setting messages
...
If those props are missing we don't want to scream "error" in the logs.
2025-10-29 09:23:32 +03:00
Merlijn
6a2c6261df
Add support for custom modes and modelines. ( #2479 )
...
* 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-29 09:10:38 +03:00
athul-krishna-kr
c8eea8ee9d
backend/tty: Consider only primary node in drm udev event
2025-10-19 16:01:37 +03:00
Ivan Molodetskikh
ada6e844ba
tty: Retry adding device on change
...
On my laptop, sometimes the initial addition of the dGPU fails for some
reason.
2025-10-17 18:03:21 +03:00
Ivan Molodetskikh
b38df2d1c8
tty: Improve debug messages
2025-10-17 17:33:27 +03:00
Shaun Ren
5c91e3191d
tty: Add support for disabling DRM devices
2025-10-02 10:02:16 +03:00
Shaun Ren
b7f1e382a2
tty: Close DRM device session fd in device_removed()
...
Same logic as in cosmic-comp.
2025-10-02 10:02:16 +03:00
Ivan Molodetskikh
8b73910a11
tty: Don't print successful max bpc/HDR
...
These are not really that useful
2025-08-24 16:06:06 +03:00
Michael Yang
969f382e3e
feat: reset HDR connector properties
2025-08-24 16:06:06 +03:00
Ivan Molodetskikh
a6febb86aa
tty: Remove warning when rendering with inactive device
2025-08-17 11:29:33 +03:00
Ivan Molodetskikh
2fb993d221
Bump Smithay (xkbcommon wvkbd fix)
2025-08-11 09:07:13 +03:00
BB
f74d83dcca
niri-config: add keep-max-bpc-unchanged option ( #2195 )
...
* 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-08-07 11:06:11 -07:00
Ivan Molodetskikh
98a42c5557
Update Smithay (clipboard client exit nil fix, input region bottom-right fix)
2025-07-31 19:39:12 +02:00
Ivan Molodetskikh
dfb3683187
Fix new Clippy warnings
2025-07-13 12:54:03 +03:00
Ivan Molodetskikh
b55a80c641
Update Smithay
2025-06-23 16:12:45 +03:00
Gwen
a7186a0441
Add debug option to skip cursor-only updates while VRR is active ( #1616 )
...
* 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-06-03 15:56:21 +00:00
Christian Meissl
cb857e32e4
Bump Smithay and others
...
Presentation subsurface fix, popup unconstrain resize fix, cursor shape fix, refactors.
2025-04-29 08:53:25 +03:00
Ivan Molodetskikh
1c521e4831
Update Smithay (Framebuffer type)
2025-03-10 07:59:14 +03:00
Ivan Molodetskikh
d27d6a504d
Make idle notify lazy
2025-02-17 09:09:59 +03:00
Ivan Molodetskikh
2511a98e8b
Extract Niri::update_shaders()
2025-01-21 11:31:30 +03:00
Ivan Molodetskikh
623687e59b
Fix new Clippy warnings
2025-01-10 09:11:31 +03:00
Ivan Molodetskikh
098c826095
Search for connector duplicates across all devices
2025-01-04 23:32:09 +03:00
Ivan Molodetskikh
dca0364f4c
Unname connector if a duplicate is detected
2025-01-04 18:03:08 +03:00
Ivan Molodetskikh
37771259d9
Fetch monitor name from EDID only once
...
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-04 17:56:13 +03:00
Ivan Molodetskikh
4618e4851c
Default to unrestricted primary plane scanout
2025-01-04 13:02:22 +03:00
Ivan Molodetskikh
ab0cce7cb7
Add Xrgb/Xbgr to color formats
...
At least until the scanout check is fixed in Smithay again.
2025-01-04 11:22:56 +03:00
Ivan Molodetskikh
1973b97cc2
Upgrade Smithay (DrmCompositor changes)
2025-01-04 11:22:56 +03:00
Ivan Molodetskikh
e6d8932b3b
Update for Smithay VRR changes
2024-12-30 20:12:37 +03:00
Ivan Molodetskikh
70f96cca0a
Update Smithay (presentation-time v2)
2024-12-30 20:12:37 +03:00
Ivan Molodetskikh
5ff8b89aaf
Rework output connection to always go through on_output_config_changed()
...
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.
2024-11-08 09:11:56 +03:00
Ivan Molodetskikh
8867a4f84c
Add disable-monitor-names debug flag
2024-11-06 08:42:22 +03:00
Ivan Molodetskikh
cd90dfc7be
Disable laptop panel when the lid is closed
2024-11-05 10:03:51 +03:00
Ivan Molodetskikh
289ae3604d
tty: Guard against output disappearing immediately after connection
...
Fixes https://github.com/YaLTeR/niri/issues/739
2024-10-20 20:18:56 +03:00
Ivan Molodetskikh
55fb885256
Use new Smithay method for turning off DPMS
2024-10-20 20:18:56 +03:00
Ivan Molodetskikh
0bed253835
tty: Try connecting with invalid modifier on fail
2024-09-10 11:12:24 +03:00
Ivan Molodetskikh
6b6a84e55b
Avoid panics on more wrong VBlank events
2024-09-10 10:48:45 +03:00
Ivan Molodetskikh
cb5d97f600
Fix new Clippy warning
...
This was stabilized in 1.76 so we can use it now.
2024-09-05 20:40:11 +03:00
Ivan Molodetskikh
f0157e03e7
Use libdisplay-info for make/model/serial parsing, implement throughout
2024-09-03 13:48:08 +03:00
Ivan Molodetskikh
fef665df73
tty: Wait for sync on needs_sync()
...
How did I never add this back?
2024-08-23 09:26:42 +03:00
Michael Yang
f1894f6f9a
feature: add on-demand vrr ( #586 )
...
* feature: add on-demand vrr
* Don't require connector::Info in try_to_set_vrr
* Improve VRR help message
* Rename connector_handle => connector
* Fix tracy span name
* Move on demand vrr flag set higher
* wiki: Mention on-demand VRR
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
2024-08-22 11:58:07 +03:00
Ivan Molodetskikh
af904d23ac
tty: Add check for vblank on idle
2024-07-27 13:43:27 +03:00
Ivan Molodetskikh
c506fecc87
Upgrade dependencies
2024-07-27 09:28:40 +03:00
Ivan Molodetskikh
f9fe86ee3e
Restore VRR on TTY switch
2024-07-09 14:25:02 +04:00
Christian Meissl
570bf1cb3c
bump smithay
2024-07-08 08:30:00 +03:00
Ivan Molodetskikh
9dcc9160b3
Put Outputs config into a dedicated struct
2024-07-05 07:35:01 +03:00
Ivan Molodetskikh
d2087a2cd9
Add output ID tracking
2024-07-05 07:35:01 +03:00
it-a-me
105938df0b
Keep monitors powered off upon connecting a new one ( #488 )
...
* Keep monitors powered off upon connecting a new one
Update src/backend/tty.rs
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
Update src/backend/tty.rs
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
fix tests
* Update
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
2024-07-02 01:21:07 -07:00
Ivan Molodetskikh
198b5a502d
Update dependencies
2024-06-21 08:55:46 +03:00