Change udev power supply detection to ATTR{type}=="Mains".