The printer adds successfully and works perfectly. However, after the Mac goes to sleep, the printer disappears from the system; attempting to add it again results in a "Bad file descriptor" error. The only fix is resetting the printing system, after which the printer can be added again... what can be done?
It is connected via Wi-Fi, with a static IP assigned on the router.
When added to the system, the printer immediately appears using the Bonjour protocol.
I also tried adding the printer via IP address specifying the AirPrint protocol, but the same problem occurs later.