Lenovo ThinkPad E14 Gen 2 (AMD)
Function keys do not work out after startup and they only start working after the system is suspended to memory and waken up after a short amount of time.
There is a workaround to this issue that is based on putting the system to sleep for 2 seconds after boot.
To suspend the system after startup, you may use Cron to schedule that action as a part of the startup sequence.to suspend and automatically wake up and
You may edit the root crontab file with
# crontab -e
Then append the following line to the file to schedule a 2-second sleep:
@reboot sudo rtcwake -m mem -s 2