Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't write new address #24

Open
TNTeon opened this issue Nov 20, 2022 · 2 comments
Open

Can't write new address #24

TNTeon opened this issue Nov 20, 2022 · 2 comments

Comments

@TNTeon
Copy link

TNTeon commented Nov 20, 2022

Hate to use your time to help me, but this tool looks perfect for what I need! So heres my problem.
I fixed the build-custom.sh with the graceful_disconnect name switch, and got it to run... kinda. I was faced with this

wmemu.c: In function ‘wmemu_remove’: wmemu.c:34:41: warning: passing argument 2 of ‘btd_adapter_unregister_pin_cb’ from incompatible pointer type [-Wincompatible-pointer-types] 34 | btd_adapter_unregister_pin_cb(adapter, wmemu_pincb); | ^~~~~~~~~~~ | | | ssize_t (*)(struct btd_adapter *, struct btd_device *, char *, _Bool *, unsigned int) {aka int (*)(struct btd_adapter *, struct btd_device *, char *, _Bool *, unsigned int)}

hope that makes sense to you, cause it doesn't for me. Anyways, I ran ./wmemulator to see, and we make progress from last attempt. I was greeted with the commands overview and some nice drawings of remotes, but right under that are a few lines of errors...

Can't write new address Failed to set device address Device manufacturer: Broadcom Corporation (15) Failed to set device address Warning: device address must have a Nintendo OUI Can't write device name: Operation not permitted (1) Failed to set device name failed to set up Bluetooth device

I did go through everything in README, and I've also connected my wii controller through cwiid, and got its mac address (which also means my bluetooth should be working). I've also tried adding my MAC address like this ./wmemulator 00:00:00:00:00:00 but no luck (I also obviously used my real MAC address, just forgot it). Sorry for using your time, but I think this program is amazing, and I'd appreciate any help!

@ThatsJustCheesy
Copy link
Contributor

It might not be mentioned in the docs, but IIRC, I had to run wmemulator as root (sudo), or it would fail to change the host's address, like you're seeing.

@TNTeon
Copy link
Author

TNTeon commented Nov 20, 2022

Oh wow! I can't believe it was that simple! Thank you very much, can't believe I didn't try that myself!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants