Skip to content

Commit

Permalink
Revert "filter by cap"
Browse files Browse the repository at this point in the history
This reverts commit 50a4e5b.
  • Loading branch information
wiiznokes committed Jan 11, 2025
1 parent 50a4e5b commit 8271df2
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,7 @@ pub fn sub() -> impl Stream<Item = Message> {
let mut rx = {
let mut res = HashMap::new();

for mut display in Display::enumerate() {
match display.handle.capabilities() {
Ok(cap) => {
if !cap.vcp_features.contains_key(&BRIGHTNESS_CODE) {
info!("BRIGHTNESS_CODE capabilities not found");
continue;
}
}
Err(e) => {
error!("can't get capabilities {e}");
continue;
}
}

for display in Display::enumerate() {
let mon = Monitor {
name: display.info.model_name.clone().unwrap_or_default(),
brightness: 0,
Expand Down

0 comments on commit 8271df2

Please sign in to comment.