An apparatus comprising a light emitting diode tube, TLED, lamp (200, 400, 900, 1100), the TLED lamp comprising: a tube having at least one electrical connector configured to be installed in a fluorescent light fixture and to receive AC input power from an electronic ballast; a plurality of light emitting diodes, LEDs, comprising a first subset of LEDs and a second subset of LEDs arranged in series with each other in a string and disposed inside the tube; and a lighting driver (36, 402, 902) disposed inside the tube and connected to the at least one electrical connector and having an output connected to the string of LEDs and configured to supply power to the string of LEDs, the lighting driver (36, 402, 902) comprising: a rectifier having an input connected to the at least one electrical connector to receive the AC power and having an output connected to the string of LEDs; characterized in that the lighting driver further comprises: a switching device, for bypassing the first subset of LEDs, connected to the output of the rectifier and configured to be selectively opened and closed based on a switching control signal; a current sensor configured to sense an LED current passing through the string of LEDs; and a controller (430, 930) configured to provide a comparison result based on the sensed LED current and a reference value and configured to modulate the switching control signal based on the comparison result to regulate the sensed LED current to be less than or equal to the reference value. a tube having at least one electrical connector configured to be installed in a fluorescent light fixture and to receive AC input power from an electronic ballast; a plurality of light emitting diodes, LEDs, comprising a first subset of LEDs and a second subset of LEDs arranged in series with each other in a string and disposed inside the tube; and a lighting driver (36, 402, 902) disposed inside the tube and connected to the at least one electrical connector and having an output connected to the string of LEDs and configured to supply power to the string of LEDs, the lighting driver (36, 402, 902) comprising: a rectifier having an input connected to the at least one electrical connector to receive the AC power and having an output connected to the string of LEDs; characterized in that the lighting driver further comprises: a switching device, for bypassing the first subset of LEDs, connected to the output of the rectifier and configured to be selectively opened and closed based on a switching control signal; a current sensor configured to sense an LED current passing through the string of LEDs; and a controller (430, 930) configured to provide a comparison result based on the sensed LED current and a reference value and configured to modulate the switching control signal based on the comparison result to regulate the sensed LED current to be less than or equal to the reference value. a rectifier having an input connected to the at least one electrical connector to receive the AC power and having an output connected to the string of LEDs; characterized in that the lighting driver further comprises: a switching device, for bypassing the first subset of LEDs, connected to the output of the rectifier and configured to be selectively opened and closed based on a switching control signal; a current sensor configured to sense an LED current passing through the string of LEDs; and a controller (430, 930) configured to provide a comparison result based on the sensed LED current and a reference value and configured to modulate the switching control signal based on the comparison result to regulate the sensed LED current to be less than or equal to the reference value. a switching device, for bypassing the first subset of LEDs, connected to the output of the rectifier and configured to be selectively opened and closed based on a switching control signal; a current sensor configured to sense an LED current passing through the string of LEDs; and a controller (430, 930) configured to provide a comparison result based on the sensed LED current and a reference value and configured to modulate the switching control signal based on the comparison result to regulate the sensed LED current to be less than or equal to the reference value.