The Pentax scsi driver requires the camera to be in MSC mode. The K1-II uses different product IDs for MSC and PTP mode, and the wrong USB product ID was copied from the referenced thread.
This driver is imported from the pkremote project. https://sf.net/projects/pkremote/ and later on updated from the more recent pktriggercord fork of pkremote. https://github.com/asalamon74/pktriggercord It uses special SCSI commands tunneled over USB Mass Storage to control the camera.