blawar / nut

GNU General Public License v3.0
1.09k stars 189 forks source link

[Bug] Can't see files on my PC via Tinfoil #422

Open petervogric opened 2 years ago

petervogric commented 2 years ago

I've been using Tinfoil on my Switch with SX OS without any issue. Now that the software support of SX OS is gone, I've moved to Atmosphere, updating my Switch to the latest firmware (14.1.0). After installing the latest version of NUT (3.3) and the latest version of Tinfoil (14.0), the software runs with some issues.

NUT displays the following message: "could not load keys.txt, all crypto operations will fail"

From Tinfoil on Switch (connected via USB) I can't see the files on my PC as I was able to do before.

I've already reinstalled the drivers and even changed the PC, but nothing: from Tinfoil I can't see any file.

How can I solve this issue?

PsySc0rpi0n commented 2 years ago

I have a similar issue. My setup is Nintendo Switch OLED + HWFLY + Hekate + Atmosphere + Tinfoil, all latest versions. I have installed nut according to instructions and I'm running Debian (no Windows PC here).

When I start nut (cli), with the console connected via USB cable to my laptop, I get the following:

$ python3 nut.py
loading blacklist /media/Storage/Nintendo/nut/nut/conf/blacklist.online.txt
could not load find or load keys.txt, all crypto operations will fail. See keys_template.txt for an example of how this file should look
loaded user guest
                        ,;:;;,
                       ;;;;;
               .=',    ;:;;:,
              /_', "=. ';:;:;
              @=:__,  \,;:;:'
                _(\.=  ;:;;'
               `"_(  _/="`
                `"'
fin

I also noticed that instructions says to add a rules file with one rule saying idProduct=="3000", however, my system says otherwise. dmesg says Nintendo is rather idProduct=="2000"

$ sudo dmesg
[125709.845241] usb 2-1: new high-speed USB device number 6 using xhci_hcd
[125709.995307] usb 2-1: New USB device found, idVendor=057e, idProduct=2000, bcdDevice= 1.00
[125709.995317] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[125709.995321] usb 2-1: Product: Nintendo Switch
[125709.995324] usb 2-1: Manufacturer: Nintendo
[125709.995327] usb 2-1: SerialNumber: XAW00000000000
$ sudo dmesg
[126061.327936] hid-generic 0003:057E:2000.0008: hiddev1,hidraw2: USB HID v1.11 Device [Nintendo Nintendo Switch] on usb-0000:00:14.0-1/input0
[126093.312203] usb 2-1: USB disconnect, device number 9
[126093.744501] usb 2-1: new high-speed USB device number 10 using xhci_hcd
[126093.894543] usb 2-1: New USB device found, idVendor=16c0, idProduct=27e2, bcdDevice= 1.00
[126093.894554] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[126093.894558] usb 2-1: Product: Tinfoil
[126093.894561] usb 2-1: Manufacturer: blawar
[126093.894564] usb 2-1: SerialNumber: 1.00

Edited; The gui version also have other problems, I think

$ python3 nut_gui.py 
Traceback (most recent call last):
  File "/media/Storage/Nintendo/nut/nut/nut_gui.py", line 8, in <module>
    from PyQt5.QtGui import (QIcon)
RuntimeError: the sip module implements API v12.0 to v12.8 but the PyQt5.QtGui module requires API v12.9
PsySc0rpi0n commented 2 years ago

I just fixed the keys.txt part! The README should have instructions regarding this.

It also should have examples of of to run the cli version and explain how it works.