Comments (10)
Is it possible to build directly on my Pi (Pi400)?
I'm trying but getting errors on missing headers (cecc.h) even after I installed libcec-dev, and all python dev....
A bit more info on building/cross-build, and pre-requisites, on different build OS would be a great addition to the README.
from cec-rs.
Raspberry PI is needed for the example. If you have USB Cec adapter, changes to example are probably needed. Check out the port parameter
which hardware you are using?
from cec-rs.
I tried on macos on Mac, and Ubuntu on Thinkpad.
OK.
from cec-rs.
You need to have suitable hardware... this is one USB HDMI cec adapter https://www.pulse-eight.com/p/104/usb-hdmi-cec-adapter (have not tested though)
I am not sure if the devices you mention support HDMI CEC. If they do, at least the port name in the example needs to be changed.
If issues occur with supported hardware, please raise a new ticket
from cec-rs.
OK, I didn't realize that it was so targetted at Raspberry Pi.
I wanted to write a cross-platform utility for controlling external monitors using CEC (a bit like Monitor Control Lite does for external monitor brightness on macos, but for more things).
It sounds like it's out of scope and at most I should look at building on libcec-sys?
That README mentions Linux and Windows, but not macos nor RPi, so I'm not sure to what extent anything in the stack is trying to be really cross-desktop-platform?
from cec-rs.
This is cross-platform, similar to libcec itself. There has been even positive usage with windows but Mac has not been tested. It might work. Pull requests are welcome if it is not working.
I was just noting that example is tailored against Raspberry Pi, due to obvious reasons:
cec-rs/examples/cec-example-cli/bin.rs
Line 42 in d31e77d
Maybe first check port name with prebuilt libcec tools (http://libcec.pulse-eight.com/Downloads), and then try with this one
from cec-rs.
Understood. It would be great to have an example (CLI) for other platforms, just to see something working after cloning and building, but I know zero about what would be required to get it working (such as "correct" port names).
If I can find them, then I would do a PR where the port-name would be under #[cfg(target_os="...")] and one example would work for all...
from cec-rs.
I am not sure either how libcec works with this regard in detail...great idea however! We need brave volunteers that could try it out with some other system :)
from cec-rs.
Update to this: while Macs have HDMI ports, they do not support CEC https://support.apple.com/en-us/HT204388
Mac computers don't support using CEC (Consumer Electronics Control) to control HDMI devices.
So you might actually need an external adapter with Mac: https://reddit.com/r/osx/comments/8cg86s/_/dyg39s5/?context=1
from cec-rs.
Thanks for suggestion, indeed this lib is missing basics in readme,
For now, can you try with linux prerequisites listed in libcec-sys: https://github.com/ssalonen/libcec-sys
If the problems continue, please make a new issue
from cec-rs.
Related Issues (12)
- Invalid representation of empty CecLogicalAddresses HOT 1
- private fields and lack of accessors make it impossible to interact with the library
- Callbacks should be Send HOT 1
- Incorrect interpretation of cec_logical_addresses HOT 1
- libcec >=v5 compatibility HOT 1
- Safety: CecConnection::transmit can crash with full packet size HOT 2
- Windows support
- Fix failing Windows CI
- Cannot build on Pi4 HOT 28
- Make CI faster HOT 1
- Device autodetection HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cec-rs.