Knoppix hangs my A31 and A31p on closing the lid. The display is not back on A31, and on A31p it is back, but most (still not all) commands produce I/O error in the bash shell (system basically unusable)

How can I fix that? I guess one shoud compile APM in the kernel, (how) can I get the KNOPPIX kernel source and corresponding /boot/config?