After I posted this, I used a continuity tester to check the 5V line and all of the other pins on the expansion port, and most of them beeped. Right after that one of the ribbon cables attaching the PCB on the underside of the lid to the main PCB completely popped off (I suppose from being repeatedly bent back and forth from all of the opening and closing.) So that may somehow have something to do with something. I am going to get some IDE cable and replace both of those ribbon cables, and then see what's up with the system.