[Android General] wuuu:
Finally, I hv got a way to use Nova Launcher or any other launcher with ASUS DynamicDisplay support.

1.First for manually switching.

I only want the desktop display to be 5x8 and the drawer 5x7.

Make a copy of /data/data/com.teslacoilsw.launcher/shared_prefs/com.teslacoilsw.launcher_preferences.xml and name it com.teslacoilsw.launcher_preferences_last.xml.

Then write a script. Maybe SManager can give great help as it has a small widget to quickly run a script.

-------------------I name the script PhonePad_Switch-----------------------------

#!/system/bin/sh

mv /data/data/com.teslacoilsw.launcher/shared_prefs/com.teslacoilsw.launcher_preferences.xml /data/data/com.teslacoilsw.launcher/shared_prefs/com.teslacoilsw.launcher_preferences_temp.xml

mv /data/data/com.teslacoilsw.launcher/shared_prefs/com.teslacoilsw.launcher_preferences_last.xml /data/data/com.teslacoilsw.launcher/shared_prefs/com.teslacoilsw.launcher_preferences.xml

mv /data/data/com.teslacoilsw.launcher/shared_prefs/com.teslacoilsw.launcher_preferences_temp.xml /data/data/com.teslacoilsw.launcher/shared_prefs/com.teslacoilsw.launcher_preferences_last.xml

killall -HUP com.teslacoilsw.launcher

------------------------------------------------------

When your phone powers on, do some settings to make nova fit your phone. Then switch to your pad and run this script，do some settings to make it fit for you pad. Now when you switch to your phone or pad, just run this script once manually, the Launcher works well for each.

2.User tasker to switch automatically

though tasker has a state named "docked", it doesn't work with PFI. How I identify the state is using rotation state.

I creat four profiles. Landscape, When Landscape, Portrait, When Portrait.

this file:/sys/devices/i2c-0/0-0015/dock_hallsensor_status,when docked it is "1” and not docked it is “0”.

and I need an extra file to save the status of pfi now. eg. /sdcard/pfi, it is "0" or "1", 0 for phone and 1 for pad.

profle Landscape: Actived when Diskplay Orientation Landscape.

-------Tasks for it:--------

1.Read file /sys/devices/i2c-0/0-0015/dock_hallsensor_status to Var %docked

2.Read file /sdcard/pfi to Var %docked_s

3.If %docked=1

..4.run shell script PhonePad_Switch if %docked_s=0

..5.wirte %docked to file /sdcard/pfi

------------------------------

the 3 and 4 confirm that you insert your phone to your pad. and 5 updates the status of pfi to pad.

profile When Landscape: Actived when "Profile Active Landscape"

------Tasks for it:--------

1.Profile Status Name Landscape Set Off

2.Profile Status Name Portrait Set On

------------------------------

profile Portrait

-------Tasks for it:--------

1.Read file /sys/devices/i2c-0/0-0015/dock_hallsensor_status to Var %docked

2.Read file /sdcard/pfi to Var %docked_s

3.If %docked=0

..4.run shell script PhonePad_Switch if %docked_s=1

..5. wirte %docked to file /sdcard/pfi

------------------------------

profile When Portrait : Actived when "Profile Active Portrait "

------Tasks for it:--------

1.Profile Status Name Portrait Set Off

2.Profile Status Name Landscape Set On

------------------------------

it works well on my pfi. When it goes wrong, just run the script manually once.

You can also change the script to make it fit any launcher like "http://xdaforums.com/showthread.php?t=1106545&page=210" that makes two profiles for one app, one for Phone ,one for Pad.

at last, sorry for my poor English and thx for reading. In fact, I only provide a way to let tasker know whether your pfi is Phone state or Pad state.