diff options
| author | BB <bbedward@gmail.com> | 2025-08-07 14:06:11 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-07 11:06:11 -0700 |
| commit | f74d83dccaa6e8fffb38c304dd5d1eae07b87d24 (patch) | |
| tree | d8870facb2123c3de3898989208a333e0e8ed2df /src/backend | |
| parent | 055a94de3d3b792adfb6842bdddd8eab6384164f (diff) | |
| download | niri-f74d83dccaa6e8fffb38c304dd5d1eae07b87d24.tar.gz niri-f74d83dccaa6e8fffb38c304dd5d1eae07b87d24.tar.bz2 niri-f74d83dccaa6e8fffb38c304dd5d1eae07b87d24.zip | |
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>
Diffstat (limited to 'src/backend')
| -rw-r--r-- | src/backend/tty.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/backend/tty.rs b/src/backend/tty.rs index 7b0303fd..3c7f512a 100644 --- a/src/backend/tty.rs +++ b/src/backend/tty.rs @@ -857,10 +857,13 @@ impl Tty { } debug!("picking mode: {mode:?}"); - // We only use 8888 RGB formats, so set max bpc to 8 to allow more types of links to run. - match set_max_bpc(&device.drm, connector.handle(), 8) { - Ok(bpc) => debug!("set max bpc to {bpc}"), - Err(err) => debug!("error setting max bpc: {err:?}"), + if !niri.config.borrow().debug.keep_max_bpc_unchanged { + // We only use 8888 RGB formats, so set max bpc to 8 to allow more types of links to + // run. + match set_max_bpc(&device.drm, connector.handle(), 8) { + Ok(bpc) => debug!("set max bpc to {bpc}"), + Err(err) => debug!("error setting max bpc: {err:?}"), + } } let mut gamma_props = GammaProps::new(&device.drm, crtc) |
