Assuming safety is required, why not offer an add on optional service at cost:
If you want you laptop / iPad with you on the cabin
1) Arrive at the Airport an hour earlier than what is required
2) place it in a special box that will be individually checked & scrutinized (x-rays / dog sniffing / residue test)
3) will be delivered to you in that box at boarding - like duty free in some airports
Logistical issues - so a fee to cover add on cost required. May even be another small profit center for airlines and airports. The fee may be high - but worth it for many business passengers on a long haul flight.
If the fee is high and not convenient - check it. If it is worth it to you, pay it.
Again, this is assuming there is a ban, so the extra fee is to cover the extra logistic expense of securing that risk and offering convenience for those willing to pay. Not that different from airports that offer fast pass VIP services to avoid lines.
Way to gouge the average passenger. Just add that to the $3.50 bottles of water at the gate. This is definitely not a solution. If the government is mandating that I need to inconvenience myself by potentially compromising the safety and security of my personal electronic devices, the service you mentioned should be free of charge.