Date: Wed, 9 Apr 2025 11:16:10 +0200 From: Christoph Badura <b...@bsd.de> Message-ID: <20250409091610.ga28...@irregular-apocalypse.k.bsd.de>
| How do you plan to get rid of the script once we've fixed the underlying | issues. I doubt there would be any need for that -- it is off by default (or should be once committed) and even if enabled, does nothing unless the config file exists and contains some work for the script to do. | Your proposed script pampers of the symptoms in a crude way. Paul's usage of it might in fact be just that, but in general I suspect it might be a good idea to be able to run drvctl early in the boot sequence (perhaps using -S to suspend some locally toublesome device) as a generally available facility. I don't see what harm it can possibly do to anyone. It is also true that some UPSs with USB interfaces for control attach as uhid, rather than as ugen which the applications generally want, I haven't looked at how yet, but this mechanism might be able to handle that as well - previously I have "papered over" that by specifically configuring a specific USB port as ugen in the kernel config file, but that is very crude, and doesn't work at all if the USB port the UPS gets connected to varies over time (after all, it is all USB, any speed compat socket should work...) kre