We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50a4e5b commit 8271df2Copy full SHA for 8271df2
src/monitor.rs
@@ -44,20 +44,7 @@ pub fn sub() -> impl Stream<Item = Message> {
44
let mut rx = {
45
let mut res = HashMap::new();
46
47
- for mut display in Display::enumerate() {
48
- match display.handle.capabilities() {
49
- Ok(cap) => {
50
- if !cap.vcp_features.contains_key(&BRIGHTNESS_CODE) {
51
- info!("BRIGHTNESS_CODE capabilities not found");
52
- continue;
53
- }
54
55
- Err(e) => {
56
- error!("can't get capabilities {e}");
57
58
59
60
-
+ for display in Display::enumerate() {
61
let mon = Monitor {
62
name: display.info.model_name.clone().unwrap_or_default(),
63
brightness: 0,
0 commit comments