Switching back from gadget mode #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.txt