G'day all, I figured out how to detect when the device folds using tasker/macrodroid.
The built in Bixby Modes and Routines can do it but it has a long(ish) delay and can really only be used to create a custom notification for tasker/macrodroid to intercept, which then also has to be cleared and adds even more of a delay.
So you set up a task/macro to read the logcat as a trigger.
Trigger logcat details are as follows:
Component: lid_state_changed
Value: 0 or 1 (0=folded and 1=unfolded)
In macrodroid, the buffer is "Events", not sure in tasker as I don't use it.
So I have a macro set up to detect when the device is folded or unfolded and set a global variable to store the status for use by other macros.
This detection method is instant, simple and the best and easiest way to detect when a fold occurs.
Hope it helps everyone and ta-ta
The built in Bixby Modes and Routines can do it but it has a long(ish) delay and can really only be used to create a custom notification for tasker/macrodroid to intercept, which then also has to be cleared and adds even more of a delay.
So you set up a task/macro to read the logcat as a trigger.
Trigger logcat details are as follows:
Component: lid_state_changed
Value: 0 or 1 (0=folded and 1=unfolded)
In macrodroid, the buffer is "Events", not sure in tasker as I don't use it.
So I have a macro set up to detect when the device is folded or unfolded and set a global variable to store the status for use by other macros.
This detection method is instant, simple and the best and easiest way to detect when a fold occurs.
Hope it helps everyone and ta-ta
Last edited: