A tube lamp including a light source including at least one string of light emitting diodes within a tube body; end caps having pin contacts on each end of the tube body; and driver electronics including a filament detector portion provided by a passive resistance capacitor (RC) circuit that simulates the filament load of a fluorescent lamp when installed into a ballast containing fixture. The tube lamp may also include a switch for selecting light characteristics for light emitted by the light source.