Pulse-Eight / libcec

USB CEC Adapter communication Library http://libcec.pulse-eight.com/
Other
714 stars 287 forks source link

Send multiple commands at once? #574

Open penguinjeff opened 3 years ago

penguinjeff commented 3 years ago

I notice cec-client takes a bit of time returning to allow another command to run. Is there a way to run multiple commands at once? maybe something like this? echo -e" tx F5:44:42\ntx F5:44:42\ntx F5:44:42" | cec-client -s Trying to lower the volume multiple times This doesn't seem to work. It only seems to run once. If I remove the \n it seems to rewrite it as "e5:44:42:44:42:44:42" If I do it more than 7 at a time it does nothing. This still seems to only decrement the volume the same as just once. One at a time takes forever to lower the volume to an appropriate level if it is high.

markhicken commented 2 years ago

@penguinjeff Did you ever find a way to do this? I could definitely take advantage of a feature like this.