An apparatus for selectively driving a pivotable knotter includes a rack, a pinion in driving communication with the rack, a knotter drive gear connected to the knotter and a linear actuator. The linear actuator is connected to the knotter and pivots the knotter about a pivot axis. Upon pivot, the knotter drive gear is engaged with the rack.