Let’s talk about how an energy producing wall might solve both problems.
The Problems Of A Solar Wall
The problem with a solar wall is initially three-fold. One the panels, if used for the wall, would be at the wrong angle for efficient yields, two glass panels make poor walls, and three getting the power to anyplace useful would be very expensive.
So rather than ignoring the problems or make them sound insurmountable, let’s actually focus on fixing the problem of both making the wall more effective and helping make it self-sufficient.
Drone Solution
Since I’m pointing to human carrying drones as the problem I can also point to defensive drones as the solution. With sensors and landing/charging pads for drones every mile or so you would have a series of nearly always flying drone interceptors who could disrupt, destroy, or simply disable anyone trying to lift off the wall. Now you have another reason for electrical power that is away from the grid and these drones and sensors would also be effective at stopping a weaponized low altitude drone from coming into the country unchallenged. Some of the anti-drone technology consists of little more than dropping a net on the thing and just having this in place would likely reduce substantially the use of technology to hop over the wall.