There's a lot of whining on the net about not being able to enable home screen rotation in CM11. Well, this is what the source code is for.
And you are able
to enable home screen rotation (without compiling your own version of Trebuchet or switching to an alternative launcher), just not through the UI.
You'll need to get your hands dirty and edit the
file. If you don't know what this is or where to find it or how to edit it, chances are you shouldn't try it. It's risky: one bad move and your phone won't boot! So don't blame me if you brick your phone.
Home screen rotation can be enabled (i.e. forced) by adding this property to
and of course you'll need a reboot as well:
Btw. I've found this info by downloading the source of Trebuchet
(from the CM11 branch) and looking into it. In the Utilities class you'll find this ...
// To turn on these properties, type
// adb shell setprop log.tag.PROPERTY_NAME [VERBOSE | SUPPRESS]
static final String FORCE_ENABLE_ROTATION_PROPERTY = "launcher_force_rotate";
public static boolean sForceEnableRotation = isPropertyEnabled(FORCE_ENABLE_ROTATION_PROPERTY);
Setting the property dynamically (as the above comment suggests) didn't work for me, but setting it via
just worked fine.
P.S.: I tested this with CM11 M8 on a Galaxy Nexus (maguro), but chances are it's all the same for the entire CM11 branch.
P.S.2: if you want to enable lock screen rotation as well, set the
P.S.3: the actual rotation is done in the com.android.launcher3.Launcher
class, but the above comment (in the com.android.launcher3.Utilities
class) gave away the hint about the
prefix that you've to use in the property name.