Marcel doesn't like the fact that Gadget mode will cause the keyboard and mouse to not work on the usb port. I wonder if I can get Script/gadget.sh to detect that it has been enabled to avoid the problem.
Marcel doesn't like the fact that Gadget mode will cause the keyboard and mouse to not work on the usb port. I wonder if I can get Script/gadget.sh to detect that it has been enabled to avoid the problem.
It turns out that the only part users should need to change is config.txt by commenting #dtoverlay=dwg2.
The old instructions saying to add it to /etc/modules seem to be now out of date. The overlay automatically loads the dwg2 kernel module which I can then detect.
It turns out that the only part users should need to change is `config.txt` by commenting `#dtoverlay=dwg2`.
The old instructions saying to add it to /etc/modules seem to be now out of date. The overlay automatically loads the `dwg2` kernel module which I can then detect.
I can't quite figure out how to enable/disable the getty most efficiently (see 01b3a189ed) I think they need to be restarted after gadget.sh but this needs more testing.
I can't quite figure out how to enable/disable the getty most efficiently (see 01b3a189ed83facac3fac11be6dd87ffb5eaa6eb) I think they need to be restarted after `gadget.sh` but this needs more testing.
I want there to be logged information, so it also calls logger to dump it into the journalctl database (see 39c0f158fe). So far it seems to work on linux to comment and uncomment the line in config.txt
I want there to be logged information, so it also calls logger to dump it into the journalctl database (see 39c0f158fefa5d4ec8270eecf2832f9fc61e8d00). So far it seems to work on linux to comment and uncomment the line in `config.txt`
New procedure is to enable it using the official rpi-usb-gadget but work needs to be done so it can be switched back on when the pi is offline. Somehow (with a special manifest) the pi-imager >=2.0 says it can do it.
New procedure is to enable it using the official `rpi-usb-gadget` but work needs to be done so it can be switched back on when the pi is offline. Somehow (with a special manifest) the pi-imager >=2.0 says it can do it.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Marcel doesn't like the fact that Gadget mode will cause the keyboard and mouse to not work on the usb port. I wonder if I can get Script/gadget.sh to detect that it has been enabled to avoid the problem.
It turns out that the only part users should need to change is
config.txtby commenting#dtoverlay=dwg2.The old instructions saying to add it to /etc/modules seem to be now out of date. The overlay automatically loads the
dwg2kernel module which I can then detect.I can't quite figure out how to enable/disable the getty most efficiently (see
01b3a189ed) I think they need to be restarted aftergadget.shbut this needs more testing.I want there to be logged information, so it also calls logger to dump it into the journalctl database (see
39c0f158fe). So far it seems to work on linux to comment and uncomment the line inconfig.txtI finished the script and service in August, but apparently it's unreliable on the Pi Zero W 2. Investigation needed.
New procedure is to enable it using the official
rpi-usb-gadgetbut work needs to be done so it can be switched back on when the pi is offline. Somehow (with a special manifest) the pi-imager >=2.0 says it can do it.I give up. The provided script is good enough. I don't need to make usb-serial work since ssh is sufficient.