qzed / pbpctrl

Control Google Pixel Buds Pro from the Linux command line.
Apache License 2.0
58 stars 2 forks source link

Can't connect #11

Closed JoshAtticus closed 5 months ago

JoshAtticus commented 5 months ago

Help command isn't too useful, I get this error when running -d

josh@josh-desktop:~$ pbpctrl -d
error: a value is required for '--device <DEVICE>' but none was supplied

For more information, try '--help'.

But I get this error when I provide my MAC address

josh@josh-desktop:~$ pbpctrl --device "B8:7B:D4:0A:A8:13"
error: 'pbpctrl' requires a subcommand but one was not provided
  [subcommands: show, get, set, help]

Usage: pbpctrl [OPTIONS] <COMMAND>

For more information, try '--help'.

I'm using Ubuntu 22.04 with earbuds firmware version 5.9

qzed commented 5 months ago

Hmm, the error lines pretty much tell you what it expects. Also there's pbpctrl help/pbpctrl --help to get you a better overview of the commands.

Basically, the first error tells you that the -d always needs to have a value, if you specify it. As indicated by the square brackets in the Usage: line though, you don't need to explicitly specify it, at least most of the time.

And the second error tells you that you need a subcommand. For a list of subcommands, you can run pbpctrl help.

So all in all, some examples would be

pbpctrl show software
pbpctrl get anc

You can also run pbpctrl or pbpctrl <subcommand> (e.g. pbpctrl get) to see which subcomands or sub-subcommands there are. Or just append the --help flag.

JoshAtticus commented 5 months ago

turns out I just couldn't read and forgot that