First, sorry for my English.
I found solution for my S4 display not to dim anymore.
I rooted my device and installed ROM Toolbox PRO where I created an CPU profile which reduces max. CPU frequency depending of battery temperature. So, when battery reaches 30 grade Celsius the CPU profile presetted reduces max. CPU frequency at only 800 MHz.
No dim anymore.
If I set this profile to activate at 40 grade Celsius then screen is still dimming.
I think all dimming problems are providing from Samsung automatic battery overheating protection feature built in our Samsung Galaxy S4 devices.
Hope I contribute to people who suffer for this annoying issues.