Closed Lil2Greasy closed 5 days ago
Thank you for reporting!
This is the last step of all the verification steps. It seems the program is not correctly detecting the capture card, and it's not able to read frames from the Nintendo Switch. Can you please confirm:
python3 Game_Capture.py
command and select option 2 instead, "Check current capture device"? Does it show the Nintendo Switch screen?i'll happily provide any extra info you need to solve the issue, and I've also reported the issue to NXBT (waiting for reply there also)
It has nothing to do with NXBT, as far as we know for now. You can delete that report from their repository, as the issue is with the capture card, not the Bluetooth system.
Does the "Detecting the Capture Card" step print OK for any device? yes, it prints "OK" on the same video capture line shown in your screenshot.
If yes, could you please execute again the
python3 Game_Capture.py
command and select option 2 instead, "Check current capture device"? Does it show the Nintendo Switch screen? yes it shows the switch screeni'll happily provide any extra info you need to solve the issue, and I've also reported the issue to NXBT (waiting for reply there also)
It has nothing to do with NXBT, as far as we know for now. You can delete that report from their repository, as the issue is with the capture card, not the Bluetooth system.
i assumed it had something to do with NXBT since the issue only occured when I tried the "Controlling the Nintendo Switch" step. should I try to run the command again now that i've estabished that the video capture works?
Could you please answer both questions so I can understand what is happening exactly?
- Does the "Detecting the Capture Card" step print OK for any device?yes, it prints OK on the first line.
If yes, could you please execute again the python3 Game_Capture.py command and select option 2 instead, "Check current capture device"? Does it show the Nintendo Switch screen? yes, when selecting option 2 it shows the Nintendo Switch screen.
the issue only takes place when I try to run the python3 Switch_Controller.py command. my system either freezes on this screen, or on the other screen that was attached in my initial issue report:
and when I force-close my VM, and restart it, only then do I get the authenticate pop-up:
the issue only takes place when I try to run the python3 Switch_Controller.py command.
So when you run the Game_Capture.py scrips with the second option, the image does show as it should, right?
If yes, could you please open a terminal and run the following command:
sudo nxbt demo
and when I force-close my VM, and restart it, only then do I get the authenticate pop-up:
Don't worry about this, it's normal.
the issue only takes place when I try to run the python3 Switch_Controller.py command.
So when you run the Game_Capture.py scrips with the second option, the image does show as it should, right?
yes
If yes, could you please open a terminal and run the following command:
sudo nxbt demo
i get this result: VM freezes again also
Okay, at this point, we can say the problem is related to nxbt. Could you please try reinstalling it:
sudo pip install --force-reinstall nxbt
You can also try fully restarting your computer (not just the VM). At this point, I understand the Bluetooth card is correctly connected to the VM, right? Does the Bluetooth icon show on the top-right section of the VM?
Okay, at this point, we can say the problem is related to nxbt. Could you please try reinstalling it:
sudo pip install --force-reinstall nxbt
I reinstalled it, this is all that followed:
darko@Shiny-Hunter:~/Desktop/Nintendo-Switch-Pokemon-Shiny-Hunter/Modules$ sudo pip install --force-reinstall nxbt Collecting nxbt Using cached nxbt-0.1.4-py3-none-any.whl (104 kB) Collecting eventlet==0.31.0 Using cached eventlet-0.31.0-py2.py3-none-any.whl (224 kB) Processing /root/.cache/pip/wheels/79/67/93/91114b71e0965edb6233d607d82bb5de75ad02e3d9d469ba17/psutil-5.6.6-cp38-cp38-linux_x86_64.whl Processing /root/.cache/pip/wheels/96/73/ab/d284694896db856003b553f486e866d3829635a1687aa85b70/dbus_python-1.2.16-cp38-cp38-linux_x86_64.whl Collecting Flask-SocketIO==5.0.1 Using cached Flask_SocketIO-5.0.1-py2.py3-none-any.whl (16 kB) Collecting blessed==1.17.10 Using cached blessed-1.17.10-py2.py3-none-any.whl (76 kB) Collecting cryptography==3.3.2 Using cached cryptography-3.3.2-cp36-abi3-manylinux2010_x86_64.whl (2.6 MB) Collecting Flask==1.1.2 Using cached Flask-1.1.2-py2.py3-none-any.whl (94 kB) Collecting pynput==1.7.1 Using cached pynput-1.7.1-py2.py3-none-any.whl (99 kB) Collecting greenlet>=0.3 Using cached greenlet-3.0.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (667 kB) Collecting dnspython<2.0.0,>=1.15.0 Using cached dnspython-1.16.0-py2.py3-none-any.whl (188 kB) Collecting six>=1.10.0 Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting python-socketio>=5.0.2 Using cached python_socketio-5.11.3-py3-none-any.whl (76 kB) Collecting wcwidth>=0.1.4 Using cached wcwidth-0.2.13-py2.py3-none-any.whl (34 kB) Collecting cffi>=1.12 Using cached cffi-1.17.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (446 kB) Collecting Jinja2>=2.10.1 Using cached jinja2-3.1.4-py3-none-any.whl (133 kB) Collecting click>=5.1 Using cached click-8.1.7-py3-none-any.whl (97 kB) Collecting itsdangerous>=0.24 Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB) Collecting Werkzeug>=0.15 Using cached werkzeug-3.0.4-py3-none-any.whl (227 kB) Collecting python-xlib>=0.17; "linux" in sys_platform Using cached python_xlib-0.33-py2.py3-none-any.whl (182 kB) Processing /root/.cache/pip/wheels/40/a7/e8/d118cb622045826cc85b320ab9f6ebe89d9b88f2e8150be72d/evdev-1.7.1-cp38-cp38-linux_x86_64.whl Collecting bidict>=0.21.0 Using cached bidict-0.23.1-py3-none-any.whl (32 kB) Collecting python-engineio>=4.8.0 Using cached python_engineio-4.9.1-py3-none-any.whl (57 kB) Collecting pycparser Using cached pycparser-2.22-py3-none-any.whl (117 kB) Collecting MarkupSafe>=2.0 Using cached MarkupSafe-2.1.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (26 kB) Collecting simple-websocket>=0.10.0 Using cached simple_websocket-1.0.0-py3-none-any.whl (13 kB) Collecting wsproto Using cached wsproto-1.2.0-py3-none-any.whl (24 kB) Collecting h11<1,>=0.9.0 Using cached h11-0.14.0-py3-none-any.whl (58 kB) ERROR: launchpadlib 1.10.13 requires testresources, which is not installed. Installing collected packages: greenlet, dnspython, six, eventlet, psutil, dbus-python, bidict, h11, wsproto, simple-websocket, python-engineio, python-socketio, MarkupSafe, Jinja2, click, itsdangerous, Werkzeug, Flask, Flask-SocketIO, wcwidth, blessed, pycparser, cffi, cryptography, python-xlib, evdev, pynput, nxbt Attempting uninstall: greenlet Found existing installation: greenlet 3.0.3 Uninstalling greenlet-3.0.3: Successfully uninstalled greenlet-3.0.3 Attempting uninstall: dnspython Found existing installation: dnspython 1.16.0 Uninstalling dnspython-1.16.0: Successfully uninstalled dnspython-1.16.0 Attempting uninstall: six Found existing installation: six 1.16.0 Uninstalling six-1.16.0: Successfully uninstalled six-1.16.0 Attempting uninstall: eventlet Found existing installation: eventlet 0.31.0 Uninstalling eventlet-0.31.0: Successfully uninstalled eventlet-0.31.0 Attempting uninstall: psutil Found existing installation: psutil 5.6.6 Uninstalling psutil-5.6.6: Successfully uninstalled psutil-5.6.6 Attempting uninstall: dbus-python Found existing installation: dbus-python 1.2.16 Uninstalling dbus-python-1.2.16: Successfully uninstalled dbus-python-1.2.16 Attempting uninstall: bidict Found existing installation: bidict 0.23.1 Uninstalling bidict-0.23.1: Successfully uninstalled bidict-0.23.1 Attempting uninstall: h11 Found existing installation: h11 0.14.0 Uninstalling h11-0.14.0: Successfully uninstalled h11-0.14.0 Attempting uninstall: wsproto Found existing installation: wsproto 1.2.0 Uninstalling wsproto-1.2.0: Successfully uninstalled wsproto-1.2.0 Attempting uninstall: simple-websocket Found existing installation: simple-websocket 1.0.0 Uninstalling simple-websocket-1.0.0: Successfully uninstalled simple-websocket-1.0.0 Attempting uninstall: python-engineio Found existing installation: python-engineio 4.9.1 Uninstalling python-engineio-4.9.1: Successfully uninstalled python-engineio-4.9.1 Attempting uninstall: python-socketio Found existing installation: python-socketio 5.11.3 Uninstalling python-socketio-5.11.3: Successfully uninstalled python-socketio-5.11.3 Attempting uninstall: MarkupSafe Found existing installation: MarkupSafe 2.1.5 Uninstalling MarkupSafe-2.1.5: Successfully uninstalled MarkupSafe-2.1.5 Attempting uninstall: Jinja2 Found existing installation: jinja2 3.1.4 Uninstalling jinja2-3.1.4: Successfully uninstalled jinja2-3.1.4 Attempting uninstall: click Found existing installation: click 8.1.7 Uninstalling click-8.1.7: Successfully uninstalled click-8.1.7 Attempting uninstall: itsdangerous Found existing installation: itsdangerous 2.2.0 Uninstalling itsdangerous-2.2.0: Successfully uninstalled itsdangerous-2.2.0 Attempting uninstall: Werkzeug Found existing installation: werkzeug 3.0.4 Uninstalling werkzeug-3.0.4: Successfully uninstalled werkzeug-3.0.4 Attempting uninstall: Flask Found existing installation: Flask 1.1.2 Uninstalling Flask-1.1.2: Successfully uninstalled Flask-1.1.2 Attempting uninstall: Flask-SocketIO Found existing installation: Flask-SocketIO 5.0.1 Uninstalling Flask-SocketIO-5.0.1: Successfully uninstalled Flask-SocketIO-5.0.1 Attempting uninstall: wcwidth Found existing installation: wcwidth 0.2.13 Uninstalling wcwidth-0.2.13: Successfully uninstalled wcwidth-0.2.13 Attempting uninstall: blessed Found existing installation: blessed 1.17.10 Uninstalling blessed-1.17.10: Successfully uninstalled blessed-1.17.10 Attempting uninstall: pycparser Found existing installation: pycparser 2.22 Uninstalling pycparser-2.22: Successfully uninstalled pycparser-2.22 Attempting uninstall: cffi Found existing installation: cffi 1.17.0 Uninstalling cffi-1.17.0: Successfully uninstalled cffi-1.17.0 Attempting uninstall: cryptography Found existing installation: cryptography 3.3.2 Uninstalling cryptography-3.3.2: Successfully uninstalled cryptography-3.3.2 Attempting uninstall: python-xlib Found existing installation: python-xlib 0.33 Uninstalling python-xlib-0.33: Successfully uninstalled python-xlib-0.33 Attempting uninstall: evdev Found existing installation: evdev 1.7.1 Uninstalling evdev-1.7.1: Successfully uninstalled evdev-1.7.1 Attempting uninstall: pynput Found existing installation: pynput 1.7.1 Uninstalling pynput-1.7.1: Successfully uninstalled pynput-1.7.1 Attempting uninstall: nxbt Found existing installation: nxbt 0.1.4 Uninstalling nxbt-0.1.4: Successfully uninstalled nxbt-0.1.4 Successfully installed Flask-1.1.2 Flask-SocketIO-5.0.1 Jinja2-3.1.4 MarkupSafe-2.1.5 Werkzeug-3.0.4 bidict-0.23.1 blessed-1.17.10 cffi-1.17.0 click-8.1.7 cryptography-3.3.2 dbus-python-1.2.16 dnspython-1.16.0 evdev-1.7.1 eventlet-0.31.0 greenlet-3.0.3 h11-0.14.0 itsdangerous-2.2.0 nxbt-0.1.4 psutil-5.6.6 pycparser-2.22 pynput-1.7.1 python-engineio-4.9.1 python-socketio-5.11.3 python-xlib-0.33 simple-websocket-1.0.0 six-1.16.0 wcwidth-0.2.13 wsproto-1.2.0
You can also try fully restarting your computer (not just the VM). At this point, I understand the Bluetooth card is correctly connected to the VM, right? Does the Bluetooth icon show on the top-right section of the VM?
yes, no isssues with bluetooth, i've also restarted my PC a couple times
can I try and run the controller command again?
Sure! Now you can try again. I'd start by first running nxbt demo:
sudo nxbt demo
If it works, you can try with:
python3 Switch_Controller.py
Hi @Lil2Greasy! Could you please confirm if you finally managed to run the program?
Closed as @Lil2Greasy not answering.
hi so my knowledge of VMs and all this is basically 0.
i followed your guide to the letter and ran into the following issue:
when I try to run the "python3 Switch_Controller.py"-command i get this screen: when I then select "test switch controller", nothing happens (no pairing request) followed by the following screen: my entire VM then freezes, and I have to force-close the VM and restart it.
bluetooth works (have been able to connect my phone to the VM)
i'll happily provide any extra info you need to solve the issue, and I've also reported the issue to NXBT (waiting for reply there also)