Commit 5e8dddb
committed
Deprecate
XRandr will be removed in the next release.
There are a couple of reasons to deprecate XRandr:
1. X11 only
Xrandr doesn't support Wayland, and X11 is EOL. Gnome, Fedora and Ubuntu have dropped X11, and KDE is going to sometime soon.
70% of KDE users are on Wayland anyway.
2. It doesn't change backlight, only gamma
This has been a longstanding issue which is that xrandr doesn't change the backlight, it applies a gamma filter. This meant you could
accidentally dim your screen "twice" with different brightness methods and not realise how to fix it. This is confusing behaviour
and isn't what this library should do.
3. Functionality has been superseded
XRandr simply isn't needed any more. The SysFiles and I2C classes both cover pretty much all displays, with DDCUtil covering USB displays.
It's just not required anymore.
I'll probably publish a release with the deprecation warning in place and then remove it in the next one, or in a few months, whichever comes firstXRandr method1 parent 5ec8bee commit 5e8dddb
File tree
2 files changed
+14
-2
lines changed- docs/source/extras
- screen_brightness_control
2 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
434 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
435 | 444 | | |
436 | 445 | | |
437 | 446 | | |
| |||
549 | 558 | | |
550 | 559 | | |
551 | 560 | | |
| 561 | + | |
552 | 562 | | |
553 | 563 | | |
554 | 564 | | |
| |||
558 | 568 | | |
559 | 569 | | |
560 | 570 | | |
| 571 | + | |
561 | 572 | | |
562 | 573 | | |
563 | 574 | | |
| |||
0 commit comments