Tablet mode unrecognized on Asus Vivobook 14 Flip under Linux: Workaround

My recently purchased Asus Vivobook 14 Flip (TP3407SA) does not flip into tablet (aka "slate") mode when flipping the lid over. Here is a workaround for Gnome under Debian Trixie. First of all, flipping is recognized under Windows. So it is not a hardware problem. However, searching online was futile: Other people reporting they were unable to get it to work as well Onlline resources suggesting to…