First, paste/create the file resetScript.sh into your IDEA's instalation folder (example: /opt/intellij-idea-ultimate-edition/bin/)
After, edit the file idea.sh that you can locate at the same directory. And add these line before the commented line, # Run the IDE.
sh $IDE_BIN_HOME/resetScript.sh
The end of your idea.sh file should be like, this:
...
# ---------------------------------------------------------------------
# Reset eval time of the IDE.
# ---------------------------------------------------------------------
sh $IDE_BIN_HOME/resetScript.sh
# ---------------------------------------------------------------------
# Run the IDE.
# ---------------------------------------------------------------------
IFS="$(printf '\n\t')"
# shellcheck disable=SC2086
"$JAVA_BIN" \
-classpath "$CLASSPATH" \
${VM_OPTIONS} \
"-XX:ErrorFile=$HOME/java_error_in_idea_%p.log" \
"-XX:HeapDumpPath=$HOME/java_error_in_idea_.hprof" \
"-Didea.vendor.name=${PRODUCT_VENDOR}" \
"-Didea.paths.selector=${PATHS_SELECTOR}" \
"-Djb.vmOptionsFile=$VM_OPTIONS_FILE" \
${IDE_PROPERTIES_PROPERTY} \
-Didea.jre.check=true \
com.intellij.idea.Main \
"$@"
Now, your eval time should be reseted before it ends. You just need to select Evaluate for free again, when it resets. If you're using Arch Linux, you can use the hook file for automatically inject the resetScript.sh when it upgrades, it should be placed in /etc/pacman.d/hooks/.