juliuszint / asdbctl Goto Github PK
View Code? Open in Web Editor NEWSmall command line utility to get/set the brightness of Apple Studio Displays from Linux
License: MIT License
Small command line utility to get/set the brightness of Apple Studio Displays from Linux
License: MIT License
When I run the binary:
./asdbctl set 100
I receive:
Error: "No Apple Studio Display connected"
output of boltctl
● Apple Inc. Studio Display
├─ type: peripheral
├─ name: Studio Display
├─ vendor: Apple Inc.
├─ uuid: bc010000-0082-8c0e-0312-10db5c21d108
├─ generation: Thunderbolt 3
├─ status: authorized
│ ├─ domain: b8030000-0090-941e-8350-c83322114927
│ ├─ rx speed: 40 Gb/s = 2 lanes * 20 Gb/s
│ ├─ tx speed: 40 Gb/s = 2 lanes * 20 Gb/s
│ └─ authflags: none
├─ authorized: wo 14 aug 2024 06:53:20 UTC
├─ connected: wo 14 aug 2024 06:53:20 UTC
└─ stored: ma 12 aug 2024 12:02:54 UTC
├─ policy: auto
└─ key: no
I am trying to set the brightness but it fails with an error:
$ sudo ./target/release/asdbctl set 60000
error: invalid value '60000' for '<BRIGHTNESS>': number too large to fit in target type
I tried multiple values (1000, 5000, 10000, 60000) but they all fail.
$ boltctl
● Apple Inc. Studio Display
├─ type: peripheral
├─ name: Studio Display
├─ vendor: Apple Inc.
├─ uuid: 00a62a5c-ab63-0100-ffff-ffffffffffff
├─ generation: Thunderbolt 3
├─ status: authorized
│ ├─ domain: e9188780-0063-42b8-ffff-ffffffffffff
│ ├─ rx speed: 40 Gb/s = 2 lanes * 20 Gb/s
│ ├─ tx speed: 40 Gb/s = 2 lanes * 20 Gb/s
│ └─ authflags: none
├─ authorized: Sat 17 Aug 2024 10:35:12 PM UTC
├─ connected: Sat 17 Aug 2024 10:35:12 PM UTC
└─ stored: Sat 17 Aug 2024 10:21:12 PM UTC
├─ policy: iommu
└─ key: no
When following build instructions I get this error msg:
error: failed to download `bit-set v0.2.0`
Caused by:
unable to get packages from source
Caused by:
failed to parse manifest at `/home/***/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bit-set-0.2.0/Cargo.toml`
Caused by:
dependency (bit-vec) specified without providing a local path, Git repository, version, or workspace dependency to use
I tried playing with the versions to see if any different version would work, but none did.
Running on ArchLinux with rustup
installed and rustup default stable
set.
❯ cargo --version
cargo 1.79.0 (ffa9cf99a 2024-06-03)
❯ rustc --version
rustc 1.79.0 (129f3b996 2024-06-10)
❯ uname -a
Linux archlinux-laptop 6.6.38-1-lts #1 SMP PREEMPT_DYNAMIC Tue, 09 Jul 2024 11:08:50 +0000 x86_64 GNU/Linux
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.