Difference between revisions of "Application:ModeSwitcher Sandbox"

From WebOS Internals
Jump to navigation Jump to search
m (Undo revision 14457 by Oakridge outdoors (talk))
 
(57 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<accesscontrol>Devs,Usergroup:Members</accesscontrol>
 +
 +
<div style='position: relative;'>
 
{{application
 
{{application
 
|name=Mode Switcher
 
|name=Mode Switcher
Line 4: Line 7:
 
|type=webOS
 
|type=webOS
 
|tag=Utilities
 
|tag=Utilities
|screenshot=modeswitcher001.png
+
|screenshot=modeswitcher_2x.png
|description=
+
|description=<div style='position: absolute; bottom: 0; right: 0; padding-right: 28px; padding-bottom: 16px'>{{SconixDonation}}</div>
 
}}
 
}}
 
+
</div>
  
 
== Overview ==  
 
== Overview ==  
 +
[[image:Icon_Mode-Switcher.png|frameless|left]]
 +
Mode Switcher is a webOS application that brings profile support to your device in the form of "modes". These "modes" can nearly control every available setting in webOS and can be triggered (manually or automatically) by a number of different methods or "triggers" that in turn change settings on your device based on the configuration of the modes you created. Mode Switcher is very powerful and feature rich. You can make its use as simple or complex as you would need.
 +
<br /><br />
  
What is Mode Switcher?
+
Here is a list of the controllable settings and available triggers.
 +
<br />
 +
''(Note: Some settings are only available and controllable when using Mode Switcher 2.x and the Advanced System Prefs patches for webOS 2.1)''
 
<br /><br />
 
<br /><br />
Mode Switcher brings profile support in the form of "modes" that can control nearly every available setting in webOS.
+
 
 +
{{article-two-columns
 +
|width1=50%;
 +
|column1=
 +
'''<span style="color:#8a0002"><center>Controllable Settings</center></span>'''
 +
* The wallpaper
 +
* The status for instant messaging accounts
 +
* All three volume levels (Ringtone, System, Media)
 +
* Ringtones and system sounds and alerts
 +
* The display (brightness, screen timeout, LED/banner notifications and screen on/off when on touchstone)
 +
* All radios (Wi-Fi/Bluetooth/GPS/Data/Phone)
 +
* Open and closing of applications
 +
* Network type
 +
* Roaming setting (forced and automatic)
 +
* E-mail and messaging notifications and settings
 +
* Security settings
 +
* Apps that support launch parameters (like Govnah)
 +
|column2=
 +
'''<span style="color:#8a0002"><center>Available Triggers</center></span>'''
 +
* Application
 +
* Battery Level
 +
** ''Advanced Systems Prefs - Framework (Required)''
 +
* Bluetooth Connection ''(by profile or device name)''
 +
* Calendar Event
 +
* Charger Event ''(touchstone w/orientation, USB or wall charger. Can be set separately)''
 +
** ''Advanced Systems Prefs - Framework (Required)''
 +
* Display State
 +
* GPS Location
 +
* Headset
 +
* Mode Change
 +
* Silent Switch
 +
* Time Interval
 +
* Time of Day
 +
* Wi-Fi Network
 +
}}
 +
 
  
 
==== Versions ====
 
==== Versions ====
 
+
<blockquote>
There are two version of Mode Switcher available. What version you use is dependent on what version of webOS is running on your device. Mode Switcher 1.x is available for webOS 1.4.x and Mode Switcher 2.x for webOS 2.x.
+
There are two versions of Mode Switcher available. What version you use is dependent on what version of webOS is running on your device. Mode Switcher 1.x is available for webOS 1.4.x and Mode Switcher 2.x for webOS 2.x.
 
<br /><br />
 
<br /><br />
Mode Switcher 2 was completely rewritten into a Javascript service instead of being an application that runs in the background. It supports controlling even more system settings than MS 1.x with the help of the Advanced System Prefs patches for webOS 2.x. Mode Switcher 2 is faster, better and all around more awesome than before!
+
Mode Switcher 2 was completely rewritten into a Javascript service instead of being an application that runs in the background. It supports controlling even more system settings than MS 1.x with the help of the Advanced System Prefs patches for webOS 2.1. Mode Switcher 2 is faster, better and all around more awesome than before!
 
<br /><br />
 
<br /><br />
Differences in the version features, settings and capabilities will be noted throughout the rest of the wiki to denote the differences depending on what version you will be using.
+
Differences in the version's features, settings and capabilities will be noted throughout the rest of the wiki.
 +
</blockquote>
 +
 
  
 +
== Installation ==
  
== Installation ==
+
The following information will help you install Mode Switcher.
  
  
 
==== Overview ====
 
==== Overview ====
 
<blockquote>
 
<blockquote>
'''Stable Releases'''
+
<span style="color:#8a0002">'''Stable Releases'''</span>
 
<br />
 
<br />
 
The stable releases of Mode Switcher can be found in the WebOS-Internals Feed and are recommended for general public use.
 
The stable releases of Mode Switcher can be found in the WebOS-Internals Feed and are recommended for general public use.
 +
<br />
 +
''(Note: Mode Switcher 2 is not yet in the public feeds.)''
 
<br /><br />
 
<br /><br />
  
'''Testing Releases'''
+
<span style="color:#8a0002">'''Testing Releases'''</span>
 
<br />
 
<br />
 
The testing releases of Mode Switcher can be found in the [http://www.webos-internals.org/wiki/Testing_Feeds WebOS-Internals Testing Feed].
 
The testing releases of Mode Switcher can be found in the [http://www.webos-internals.org/wiki/Testing_Feeds WebOS-Internals Testing Feed].
Line 42: Line 90:
 
<br /><br />
 
<br /><br />
  
'''Corresponding/Related Patches'''
+
<span style="color:#8a0002">'''Corresponding/Related Patches'''</span>
 
<br />
 
<br />
There are two patches that extend Mode Switcher's functionality.
+
There are a number of patches that extend Mode Switcher's functionality. While they are not required for Mode Switcher to function; they are recommended as they add much more functionality to your device and controlling of the functions with Mode Switcher. These patches can be found in the WebOS-Internals Patch Feed. Please follow the links for installation and other general information.
 +
 
 +
<blockquote>
 +
<u>'''Mode Switcher 2.x'''</u>
 +
* [http://www.webos-internals.org/wiki/Patch:AdvancedSystemMenus Advanced System Menu - Mode Menu]
 +
* [http://www.webos-internals.org/wiki/Patch:AdvancedSystemPrefs Advanced System Prefs Patches]
 
<blockquote>
 
<blockquote>
 +
In Particular:
 +
* Advanced Systems Prefs - Framework ''(For using the charger/battery triggers)''.
 +
* Advanced Systems Prefs - Email and/or Messaging Prefs patches ''(For controlling email/messaging settings)''.
 +
* Advanced Systems Prefs - Calendar Prefs OR Uber Calendar patch ''(For controlling calendar settings)''.
 +
</blockquote>
 +
 +
<br /><br />
 +
<u>'''Mode Switcher 1.x'''</u>
 
* Launch Mode Switcher on Luna Boot ''(Pre/Pre+ Only)''
 
* Launch Mode Switcher on Luna Boot ''(Pre/Pre+ Only)''
* System Menu Mode Menu
+
* [http://www.webos-internals.org/wiki/Patch:SystemMenus System Menu Mode Menu]
 +
</blockquote>
 
</blockquote>
 
</blockquote>
  
These patches are found in the WebOS-Internals Patch Feed. Neither patch is required for Mode Switcher to function. For more information on how these patches extend the functionality of Mode Switcher, please see the [[#Usage_Manual|Mode Switcher Manual]].
 
<br /><br />
 
  
The following steps will guide you through installing Mode Switcher and related patches with [http://www.webos-internals.org/wiki/Application:Preware Preware].
+
==== Method ====
<br />
 
''(These steps assume your Preware Preferences Main Scene option is set to "No".)''
 
</blockquote>
 
  
 +
The following method can be used to install Mode Switcher.
  
==== Installation via Preware ====
 
  
===== Stable Releases =====
 
 
<blockquote>
 
<blockquote>
 +
===== [http://www.webos-internals.org/wiki/Application:Preware Preware] =====
 +
 
# Open Preware
 
# Open Preware
# Tap Available Packages
+
# Start typing “Mode Switcher” (no quotes)
# Tap Application > System Utilities > Mode Switcher
+
# Tap the Mode Switcher from the list
 
# Tap the Install button
 
# Tap the Install button
 
# Tap the Ok button to restart Luna
 
# Tap the Ok button to restart Luna
Line 71: Line 129:
 
'''Or'''
 
'''Or'''
  
# At the main Preware screen, start a search for Mode Switcher by typing in "mode switcher" (without the parenthesis), then press enter.
+
# Open Preware
# Tap Mode Switcher from the list
+
# Tap Available Packages
 +
# Tap Application > System Utilities > Mode Switcher
 
# Tap the Install button
 
# Tap the Install button
 
# Tap the Ok button to restart Luna
 
# Tap the Ok button to restart Luna
Line 78: Line 137:
  
  
===== Testing Releases =====
+
==== Updating ====
''Adding the WebOS-Internals Testing Feeds''
+
 
 
<blockquote>
 
<blockquote>
# Open Preware
+
===== <span style="color:#8a0002">webOS OTA Updates</span> =====
# From the App Menu, tap Manage Feeds
+
Since Mode Switcher is an app, it is OTA (over-the-air) update safe. However, the patches that correspond/extend Mode Switchers functionality like the Advanced System Prefs patches and the Mode Menu patches are not OTA (over-the-air) update safe. When there is an OTA update to a newer version of webOS from your carrier, you must remove these patches before updating. If you do not remove them prior to running the OTA update, you most likely will need to run the Emergency Patch Recovery tool from Preware.
# Scroll past the Installed section until you see the New Feed section
+
 
# In the Name field, TYPE ''*what ever name you want to call the feed*'' (ie. webos-internals-testing)
+
 
# In the URL field, TYPE <nowiki>http://ipkg.preware.org/feeds/webos-internals/testing/all</nowiki>  
+
===== <span style="color:#8a0002">Application and Patch Updates</span> =====
# The "IS COMPRESSED" option should be set to YES
+
Updated versions of Mode Switcher and the related patches can be applied via Preware.
# Tap the Add Feed button
 
# Tap Ok at the Custom Feed alert message
 
# Gesture swipe back to go back to the main Preware screen
 
# Tap the Do It Now button at the alert message to update the package list
 
 
</blockquote>
 
</blockquote>
  
After adding the testing feed, follow the same steps under the stable releases section for installing.
 
  
 +
== Usage ==
 +
<blockquote>
 +
<u>'''<span style="color:#8a0002">Mode Switcher 2.x</span>'''</u>
 +
<blockquote>
 +
topics (no particular order at this point:
  
===== Corresponding/Related Patches =====
+
# Introduction
''Launch Mode Switcher on Luna Boot patch (Pre/Pre+ Only)''
+
## activating
<blockquote>
+
 
# Open Preware
+
# Modes
# Tap Available Packages
+
## Exporting/Importing
# Tap Patch > Misc > Launch Mode Switcher on Luna Boot
+
## Mode Type (norm/mod)
# Tap the Install button
+
## automation
# Tap the Ok button to restart Luna
+
 
 +
# Settings
 +
## setting types (need adv patches for some of them)
 +
## notify
 +
## add/remove settings
 +
 
 +
# Actions
 +
## add apps
 +
## add MS
 +
### advanced MS control
 +
## add service (srv)
 +
 
 +
# Triggers
 +
## behavior
 +
## groups
 +
## trigger types (need adv patches for some of them)
 +
## add/remove triggers
 +
 
 +
# Extensions
 +
## advanced features
 +
## setting/action/trigger extensions
 +
 
 +
# Help
 +
## via app menu
 +
## help bubbles for explanation of settings.
 +
 
 +
# Status
 +
## main scene
 +
## mode scene
 +
 
 +
#extras
 +
## creating launcher shortcuts
 
</blockquote>
 
</blockquote>
<br />
 
  
''System Menu Mode Menu patch''
+
 
 
<blockquote>
 
<blockquote>
# Open Preware
 
# Tap Available Packages
 
# Tap Patch > Top Bar > System Menu Mode Menu
 
# Tap the Install button
 
# Tap the Install / Update It button (This will install the "System Menu Mode Menu" patch and the dependent/required "System Menu Initial Framework" patch.)
 
# Tap the Ok button to restart Luna
 
  
'''Or'''
+
===== <span style="color:#3399ff">Initial Launch</span> =====
 
+
<blockquote>
# At the main Preware screen, start a search for each patch by name, then press enter.
+
Upon the initial launch, Mode Switcher will start by automatically collecting the current settings of your device and then applies them to the "Default Mode" ''(wiki note: link to section describing DM)''. A dashboard notification message will appear when the collection of the current settings is complete.
# Tap the corresponding patch from the list
 
# Tap the Install button
 
# Tap the Ok button to restart Luna
 
 
</blockquote>
 
</blockquote>
  
  
== Troubleshooting (FAQ) ==
+
===== <span style="color:#3399ff">Main View</span> =====
 
 
 
<blockquote>
 
<blockquote>
'''Q: I’m getting this error when I try to install Mode Switcher: “1 of 1 hunk failed -- saving rejects to file etc/palm/luna.conf.rej”'''
+
<u>'''Activated'''</u>
 
<br />
 
<br />
A: The patch “Launch Brightness Unlinked on Luna Boot” conflicts with the "Launch Mode Switcher on Luna Boot" patch and must be removed.
+
This setting determines whether or not Mode Switcher is activated ''(i.e. running)''.
 +
<br /><br />
  
<br/ ><br/>
+
<u>'''Popup Dialog'''</u>
 +
<br />
 +
This setting determines the amount of time the mode popup dialog is displayed before the mode is applied. This setting only applies to modes that use the "By Selection" or "After Timer" Automation setting within each mode.
 +
<br /><br />
  
'''Q: I installed Mode Switcher, but when I tap the launcher icon nothing happens.'''
+
<u>'''Custom Modes'''</u>
 
<br />
 
<br />
A: You must perform a Luna Restart after installing/updating Mode Switcher.
+
This is a list of all of your custom modes that have been created. Tapping a mode in the list will open that mode's configuration. Option + Tap a mode to toggle the mode on/off. ''(wiki note: add link to section describing option+tap, etc...)''
 +
<br /><br />
 +
By tapping and holding a mode, you can arrange the order in the custom modes list. The order of the modes listed affects the order the modes are displayed for the Advanced System Menu - Mode Menu ''(add link)'' and the mode selection popup.
 +
<br /><br />
  
<br/ ><br/>
+
<u>'''Add Custom Mode'''</u>
 +
<br />
 +
Tap this button to being creating a mode.
 +
<br /><br />
  
'''Q: Can I close / get rid of the Mode Switcher dashboard icon?'''
+
<u>'''Edit Default Mode'''</u>
 
<br />
 
<br />
A: If you are on a Pixi/Pixi+, then no, the dashboard scene needs to be active for Mode Switcher to function. For the Pre/Pre+, install the Launch Mode Switcher on Luna Boot patch to get rid of the dashboard.
+
Tap this button to edit the Default Mode.
 +
</blockquote>
 +
 
 +
 
 +
===== <span style="color:#3399ff">Modes</span> =====
 +
<blockquote>
 +
blah blah blah..
 +
</blockquote>
 +
 
 +
 
 
</blockquote>
 
</blockquote>
  
  
== Resources ==
 
  
==== Donation to Developer ====
+
<u>'''<span style="color:#8a0002">Mode Switcher 1.x</span>'''</u>
 
<blockquote>
 
<blockquote>
* Please see the official PreCentral Forum thread opening post for the donation link.
+
#creating
 +
#deleting
 +
#norm or mod
 +
#automation
 +
 
 +
</blockquote>
 
</blockquote>
 
</blockquote>
  
==== Official Forum ====
+
== Troubleshooting/FAQs ==
 +
<blockquote>
 +
<u>'''<span style="color:#8a0002">Mode Switcher 1.x & 2.x</span>'''</u>
 
<blockquote>
 
<blockquote>
* [http://forums.precentral.net/enlightened-linux-solutions/260212-ms-mode-switcher-1-x.html Official PreCentral Forum Thread]
+
'''Q: There are times when the radios (Phone/Data (3G)/Bluetooth/Wi-Fi) don't change state (on/off) when opening, closing or switching modes. What is wrong?'''
 +
<br />
 +
A: There is a bug in webOS (version independent) where depending on the device/installation you may have varying success with the radios changing state. The frequency in which what radio settings get "stuck" or which radio settings don't get applied varies. A temporary solution is to do a full restart of the device which usually clears the "stuck" radio settings.
 +
<br /><br />
 +
'''Note: This issue affects devices running the stock and modified kernels. It appears to affect any device running any current webOS versions (1.4.x/2.x)'''
 
</blockquote>
 
</blockquote>
  
==== Official Usage Manual ====
+
 
 +
<u>'''<span style="color:#8a0002">Mode Switcher 2.x</span>'''</u>
 
<blockquote>
 
<blockquote>
*[http://modeswitcher.jupiterns.org Mode Switcher Manual (current to version 1.0.7)]
+
'''Q: I can't seem to find the settings for controlling the calendar, email and/or messaging nor the charger and/or battery triggers?'''
 +
<br />
 +
A: One of two things are not setup correctly.
 +
# As mentioned in the [[#Overview_2|Installation > Overview > Corresponding/Related Patches section]], certain patches are needed to extend Mode Switcher functionality. Please see the links to the related wiki pages for help with installing those patches.
 +
# If you have those patches installed, make sure you have the Advanced Features toggle enabled. ''(It can be found by going to the app menu and selecting Extensions.)''
 
</blockquote>
 
</blockquote>
  
==== Official Twitter Account ====
+
 
 +
<u>'''<span style="color:#8a0002">Mode Switcher 1.x</span>'''</u>
 
<blockquote>
 
<blockquote>
* Follow Mode Switcher on Twitter: [http://twitter.com/modeswitcher @modeswitcher]
+
'''Q: I’m getting this error when I try to install Mode Switcher: “1 of 1 hunk failed -- saving rejects to file etc/palm/luna.conf.rej"'''
 +
<br />
 +
A: The patch “Launch Brightness Unlinked on Luna Boot” conflicts with the "Launch Mode Switcher on Luna Boot" patch and must be removed.
 +
<br /><br />
 +
'''Q: I installed Mode Switcher, but when I tap the launcher icon nothing happens.'''
 +
<br />
 +
A: You must perform a Luna Restart after installing/updating Mode Switcher.
 +
<br /><br />
 +
'''Q: Can I close / get rid of the Mode Switcher dashboard icon?'''
 +
<br />
 +
A: If you are on a Pixi/Pixi+, then no, the dashboard scene needs to be active for Mode Switcher to function. For the Pre/Pre+, install the Launch Mode Switcher on Luna Boot patch to get rid of the dashboard.
 +
<br /><br />
 +
'''Q: Can I manually or use [[Application:SaveRestore|Save/Restore]] to import my Mode Switcher 1.x modes into Mode Switcher 2.x?'''
 +
<br />
 +
A: Unfortunately, no. The differences between version 1.x and 2.x are to great to make this possible.
 +
</blockquote>
 
</blockquote>
 
</blockquote>
  
  
== Status ==
+
== Resources ==
  
==== Current Stable Release ====
+
===== Support Development =====
 
<blockquote>
 
<blockquote>
'''1.0.9 <span style="color:#ff0000">'''</span> - (''Released November 10th, 2010'')
+
{{SconixDonation}}
 +
<br />
 
</blockquote>
 
</blockquote>
  
===== Changelog =====
+
===== Official Forum =====
 
<blockquote>
 
<blockquote>
* Small change to display trigger
+
<u>'''<span style="color:#8a0002">Mode Switcher 2.x</span>'''</u>
* removed experimental code
+
* [http://forums.precentral.net/enlightened-linux-solutions/279166-ms-mode-switcher-2-x.html Official PreCentral Forum Thread]
* fixed no match calendar trigger functionality
+
<br />
 +
<u>'''<span style="color:#8a0002">Mode Switcher 1.x</span>'''</u>
 +
* [http://forums.precentral.net/enlightened-linux-solutions/260212-ms-mode-switcher-1-x.html Official PreCentral Forum Thread]
 
</blockquote>
 
</blockquote>
  
===== Known Issues =====
+
===== Official Twitter Account =====
 
<blockquote>
 
<blockquote>
* See also next release info below since it should fix all known issues
+
* Follow Mode Switcher on Twitter: [http://twitter.com/modeswitcher @modeswitcher]
* Phone call and other system tasks may interrupt or prevent mode change
 
* Launcher popup is not updated if another trigger happens while visible
 
* Requesting mode change while processing previous change might cause unexpected behavior
 
 
</blockquote>
 
</blockquote>
  
==== Next Release ====
+
===== Bug Reporting =====
 
<blockquote>
 
<blockquote>
'''1.1.0'''
+
* [http://redmine.webos-internals.org/projects/modeswitcher Official Bug Reporting Site]
* Day of event option for calendar trigger
+
:''Registration on the site is required to submit bug reports.''
* Fix interval trigger also work on manual mode starts
 
* Maybe add a signal trigger
 
* Add always on for screen timeout
 
* Timeout configuration for security settings
 
* Filemanager extension for moving files/directories
 
 
</blockquote>
 
</blockquote>
  
==== Future Releases ====
+
===== Feature Requests =====
 
<blockquote>
 
<blockquote>
* Add extension for filemanager service for renaming dirs
+
* [http://redmine.webos-internals.org/projects/modeswitcher Official Feature Requests Site]
* Individual mode triggers locking
+
:''Registration on the site is required to submit feature requests.''
* Per account ringtone settings
 
* Add per account IM configuration when WebOS/messaging plugin patches allow this
 
* Add special triggers like: Im status trigger / signal strength trigger / etc.
 
* Script for save/restore application
 
 
</blockquote>
 
</blockquote>
  
  
==== Current Testing Release ====
+
== Status ==
 +
 
 +
{{article-two-columns
 +
|width1=50%
 +
|column1=
 +
'''<span style="color:#8a0002"><center>'''Mode Switcher 2.x'''</center></span>'''
 +
<br />
 +
 
 +
:'''Changelog'''
 
<blockquote>
 
<blockquote>
'''No Testing Release currently available'''
+
:'''2.2.0 - Next Major Public Release''' - (''?? ??th, 2011'')
 +
:* Delay configuration for starting of applications (was in MS 1.x)
 +
:* Extension configuration for trigger delays, settings handling
 +
:* Screen state control (hopefully for both, on charger and when removed)
 +
:* Automatic updating of account lists (now email/msg settings need to be re-added if accounts are added)
 +
:* Allowing popup for modifier modes (not sure if this is doable in the way I would like)
 +
:* New contacts settings extension (support for unknown contacts settings)
 +
:* New settings into sound extension (support for battery/charger notification sound settings)
 +
:* New phone settings extension (support for some of the advanced phone app settings)
 +
:* Mode status functionality (possible to see what the current trigger status is for the modes)
 +
<br />
 +
:'''2.1.0 - First Major Public Release''' - (''May 9th, 2011'')
 +
:* Bug fixes & final touches
 +
<br />
 +
:'''2.0.8 - Next Testing Release''' - (''May 6th, 2011'')
 +
:* Automatic updating of configuration when mode is renamed (MS app configs in other modes)
 +
:* Other final touches on the app side
 +
:* Added configurable sound for the popup into MS preferences
 +
:* Added notification for mode loops (wrongly configured MS app usage)
 +
:* Changed the grouped trigger behavior, now all triggers need to be valid in one of the groups
 +
:* Removed unneeded preferences / app menu entries
 +
<br />
 +
:'''2.0.7 - Current Testing Release''' - (''May 3th, 2011'')
 +
:* Fixed bug that caused modifier modes to close when closing normal mode
 +
<br />
 +
:'''2.0.6 - Testing Release''' - (''May 1st, 2011'')
 +
:* One more fix for bluetooth trigger
 +
:* Small fix for closing applications
 +
<br />
 +
:'''2.0.5 - Testing Release''' - (''April 29th, 2011'')
 +
:* Changed application closing to close all apps with the requested appid
 +
:* Removed impostah extension and added systools extension that allow luna/phone restart
 +
:* Fixes for bluetooth trigger...again
 +
:* Fixed displaying of security settings when fetched and other than unsecure set
 +
:* Fixed close all apps option
 +
:* Fixed the previous mode handling
 +
<br />
 +
:'''2.0.4 - Testing Release''' - (''April 15th, 2011'')
 +
:* Fixes for some settings not taking effect for everyone such as screen lock timeout
 +
<br />
 +
:'''2.0.3 - Testing Release''' - (''April 15th, 2011'')
 +
:* Fixes for bluetooth trigger
 +
:* Added help system
 +
<br />
 +
:'''2.0.2 - Testing Release''' - (''April 14th, 2011'')
 +
:* Fixed severe typo that caused service not to start
 +
<br />
 +
:'''2.0.1 - Testing Release''' - (''April 14th, 2011'')
 +
:* Fixed interval trigger UI
 +
:* Fixes to charger trigger logic not to trigger mode when not needed
 +
:* Fixed package installing (WebOS bug)
 +
:* Fixed a small bug in location trigger
 +
:* Small fix for bluetooth trigger
 +
:* Couple fixes for the MS app
 +
<br />
 +
:'''2.0.0 - Testing Release''' - (''April 13th, 2011'')
 +
:* Initial Testing Feed Release
 
</blockquote>
 
</blockquote>
  
===== Changelog =====
+
|column2=
 +
'''<span style="color:#8a0002"><center>'''Mode Switcher 1.x'''</center></span>'''
 +
<br />
 +
 
 +
:'''Changelog'''
 
<blockquote>
 
<blockquote>
 +
:'''1.0.9 - Current Release''' - (''Nov. 10th, 2010'')
 +
:* Small change to display trigger
 +
:* Removed experimental code
 +
:* Fixed no match calendar trigger functionality
 
</blockquote>
 
</blockquote>
 +
}}

Latest revision as of 21:54, 10 May 2011

<accesscontrol>Devs,Usergroup:Members</accesscontrol>

Modeswitcher 2x.png

Overview

Icon Mode-Switcher.png

Mode Switcher is a webOS application that brings profile support to your device in the form of "modes". These "modes" can nearly control every available setting in webOS and can be triggered (manually or automatically) by a number of different methods or "triggers" that in turn change settings on your device based on the configuration of the modes you created. Mode Switcher is very powerful and feature rich. You can make its use as simple or complex as you would need.

Here is a list of the controllable settings and available triggers.
(Note: Some settings are only available and controllable when using Mode Switcher 2.x and the Advanced System Prefs patches for webOS 2.1)

Controllable Settings
  • The wallpaper
  • The status for instant messaging accounts
  • All three volume levels (Ringtone, System, Media)
  • Ringtones and system sounds and alerts
  • The display (brightness, screen timeout, LED/banner notifications and screen on/off when on touchstone)
  • All radios (Wi-Fi/Bluetooth/GPS/Data/Phone)
  • Open and closing of applications
  • Network type
  • Roaming setting (forced and automatic)
  • E-mail and messaging notifications and settings
  • Security settings
  • Apps that support launch parameters (like Govnah)
Available Triggers
  • Application
  • Battery Level
    • Advanced Systems Prefs - Framework (Required)
  • Bluetooth Connection (by profile or device name)
  • Calendar Event
  • Charger Event (touchstone w/orientation, USB or wall charger. Can be set separately)
    • Advanced Systems Prefs - Framework (Required)
  • Display State
  • GPS Location
  • Headset
  • Mode Change
  • Silent Switch
  • Time Interval
  • Time of Day
  • Wi-Fi Network


Versions

There are two versions of Mode Switcher available. What version you use is dependent on what version of webOS is running on your device. Mode Switcher 1.x is available for webOS 1.4.x and Mode Switcher 2.x for webOS 2.x.

Mode Switcher 2 was completely rewritten into a Javascript service instead of being an application that runs in the background. It supports controlling even more system settings than MS 1.x with the help of the Advanced System Prefs patches for webOS 2.1. Mode Switcher 2 is faster, better and all around more awesome than before!

Differences in the version's features, settings and capabilities will be noted throughout the rest of the wiki.


Installation

The following information will help you install Mode Switcher.


Overview

Stable Releases
The stable releases of Mode Switcher can be found in the WebOS-Internals Feed and are recommended for general public use.
(Note: Mode Switcher 2 is not yet in the public feeds.)

Testing Releases
The testing releases of Mode Switcher can be found in the WebOS-Internals Testing Feed.

Due to the testing releases of Mode Switcher being in the WebOS-Internals Testing Feed, please take a few mintues to read over, understand and agree to the WebOS-Internals Testing Feed Rules before continuing. The testing releases of Mode Switcher are recommended only for those that wish to test out the latest and greatest features before they are implemented into the stable releases.

Corresponding/Related Patches
There are a number of patches that extend Mode Switcher's functionality. While they are not required for Mode Switcher to function; they are recommended as they add much more functionality to your device and controlling of the functions with Mode Switcher. These patches can be found in the WebOS-Internals Patch Feed. Please follow the links for installation and other general information.

Mode Switcher 2.x

In Particular:

  • Advanced Systems Prefs - Framework (For using the charger/battery triggers).
  • Advanced Systems Prefs - Email and/or Messaging Prefs patches (For controlling email/messaging settings).
  • Advanced Systems Prefs - Calendar Prefs OR Uber Calendar patch (For controlling calendar settings).



Mode Switcher 1.x


Method

The following method can be used to install Mode Switcher.


Preware
  1. Open Preware
  2. Start typing “Mode Switcher” (no quotes)
  3. Tap the Mode Switcher from the list
  4. Tap the Install button
  5. Tap the Ok button to restart Luna

Or

  1. Open Preware
  2. Tap Available Packages
  3. Tap Application > System Utilities > Mode Switcher
  4. Tap the Install button
  5. Tap the Ok button to restart Luna


Updating

webOS OTA Updates

Since Mode Switcher is an app, it is OTA (over-the-air) update safe. However, the patches that correspond/extend Mode Switchers functionality like the Advanced System Prefs patches and the Mode Menu patches are not OTA (over-the-air) update safe. When there is an OTA update to a newer version of webOS from your carrier, you must remove these patches before updating. If you do not remove them prior to running the OTA update, you most likely will need to run the Emergency Patch Recovery tool from Preware.


Application and Patch Updates

Updated versions of Mode Switcher and the related patches can be applied via Preware.


Usage

Mode Switcher 2.x

topics (no particular order at this point:

  1. Introduction
    1. activating
  1. Modes
    1. Exporting/Importing
    2. Mode Type (norm/mod)
    3. automation
  1. Settings
    1. setting types (need adv patches for some of them)
    2. notify
    3. add/remove settings
  1. Actions
    1. add apps
    2. add MS
      1. advanced MS control
    3. add service (srv)
  1. Triggers
    1. behavior
    2. groups
    3. trigger types (need adv patches for some of them)
    4. add/remove triggers
  1. Extensions
    1. advanced features
    2. setting/action/trigger extensions
  1. Help
    1. via app menu
    2. help bubbles for explanation of settings.
  1. Status
    1. main scene
    2. mode scene
  1. extras
    1. creating launcher shortcuts


Initial Launch

Upon the initial launch, Mode Switcher will start by automatically collecting the current settings of your device and then applies them to the "Default Mode" (wiki note: link to section describing DM). A dashboard notification message will appear when the collection of the current settings is complete.


Main View

Activated
This setting determines whether or not Mode Switcher is activated (i.e. running).

Popup Dialog
This setting determines the amount of time the mode popup dialog is displayed before the mode is applied. This setting only applies to modes that use the "By Selection" or "After Timer" Automation setting within each mode.

Custom Modes
This is a list of all of your custom modes that have been created. Tapping a mode in the list will open that mode's configuration. Option + Tap a mode to toggle the mode on/off. (wiki note: add link to section describing option+tap, etc...)

By tapping and holding a mode, you can arrange the order in the custom modes list. The order of the modes listed affects the order the modes are displayed for the Advanced System Menu - Mode Menu (add link) and the mode selection popup.

Add Custom Mode
Tap this button to being creating a mode.

Edit Default Mode
Tap this button to edit the Default Mode.


Modes

blah blah blah..



Mode Switcher 1.x

  1. creating
  2. deleting
  3. norm or mod
  4. automation

Troubleshooting/FAQs

Mode Switcher 1.x & 2.x

Q: There are times when the radios (Phone/Data (3G)/Bluetooth/Wi-Fi) don't change state (on/off) when opening, closing or switching modes. What is wrong?
A: There is a bug in webOS (version independent) where depending on the device/installation you may have varying success with the radios changing state. The frequency in which what radio settings get "stuck" or which radio settings don't get applied varies. A temporary solution is to do a full restart of the device which usually clears the "stuck" radio settings.

Note: This issue affects devices running the stock and modified kernels. It appears to affect any device running any current webOS versions (1.4.x/2.x)


Mode Switcher 2.x

Q: I can't seem to find the settings for controlling the calendar, email and/or messaging nor the charger and/or battery triggers?
A: One of two things are not setup correctly.

  1. As mentioned in the Installation > Overview > Corresponding/Related Patches section, certain patches are needed to extend Mode Switcher functionality. Please see the links to the related wiki pages for help with installing those patches.
  2. If you have those patches installed, make sure you have the Advanced Features toggle enabled. (It can be found by going to the app menu and selecting Extensions.)


Mode Switcher 1.x

Q: I’m getting this error when I try to install Mode Switcher: “1 of 1 hunk failed -- saving rejects to file etc/palm/luna.conf.rej"
A: The patch “Launch Brightness Unlinked on Luna Boot” conflicts with the "Launch Mode Switcher on Luna Boot" patch and must be removed.

Q: I installed Mode Switcher, but when I tap the launcher icon nothing happens.
A: You must perform a Luna Restart after installing/updating Mode Switcher.

Q: Can I close / get rid of the Mode Switcher dashboard icon?
A: If you are on a Pixi/Pixi+, then no, the dashboard scene needs to be active for Mode Switcher to function. For the Pre/Pre+, install the Launch Mode Switcher on Luna Boot patch to get rid of the dashboard.

Q: Can I manually or use Save/Restore to import my Mode Switcher 1.x modes into Mode Switcher 2.x?
A: Unfortunately, no. The differences between version 1.x and 2.x are to great to make this possible.


Resources

Support Development

Btn donateCC LG.gif

Official Forum

Mode Switcher 2.x


Mode Switcher 1.x

Official Twitter Account
Bug Reporting
Registration on the site is required to submit bug reports.
Feature Requests
Registration on the site is required to submit feature requests.


Status

Mode Switcher 2.x


Changelog
2.2.0 - Next Major Public Release - (?? ??th, 2011)
  • Delay configuration for starting of applications (was in MS 1.x)
  • Extension configuration for trigger delays, settings handling
  • Screen state control (hopefully for both, on charger and when removed)
  • Automatic updating of account lists (now email/msg settings need to be re-added if accounts are added)
  • Allowing popup for modifier modes (not sure if this is doable in the way I would like)
  • New contacts settings extension (support for unknown contacts settings)
  • New settings into sound extension (support for battery/charger notification sound settings)
  • New phone settings extension (support for some of the advanced phone app settings)
  • Mode status functionality (possible to see what the current trigger status is for the modes)


2.1.0 - First Major Public Release - (May 9th, 2011)
  • Bug fixes & final touches


2.0.8 - Next Testing Release - (May 6th, 2011)
  • Automatic updating of configuration when mode is renamed (MS app configs in other modes)
  • Other final touches on the app side
  • Added configurable sound for the popup into MS preferences
  • Added notification for mode loops (wrongly configured MS app usage)
  • Changed the grouped trigger behavior, now all triggers need to be valid in one of the groups
  • Removed unneeded preferences / app menu entries


2.0.7 - Current Testing Release - (May 3th, 2011)
  • Fixed bug that caused modifier modes to close when closing normal mode


2.0.6 - Testing Release - (May 1st, 2011)
  • One more fix for bluetooth trigger
  • Small fix for closing applications


2.0.5 - Testing Release - (April 29th, 2011)
  • Changed application closing to close all apps with the requested appid
  • Removed impostah extension and added systools extension that allow luna/phone restart
  • Fixes for bluetooth trigger...again
  • Fixed displaying of security settings when fetched and other than unsecure set
  • Fixed close all apps option
  • Fixed the previous mode handling


2.0.4 - Testing Release - (April 15th, 2011)
  • Fixes for some settings not taking effect for everyone such as screen lock timeout


2.0.3 - Testing Release - (April 15th, 2011)
  • Fixes for bluetooth trigger
  • Added help system


2.0.2 - Testing Release - (April 14th, 2011)
  • Fixed severe typo that caused service not to start


2.0.1 - Testing Release - (April 14th, 2011)
  • Fixed interval trigger UI
  • Fixes to charger trigger logic not to trigger mode when not needed
  • Fixed package installing (WebOS bug)
  • Fixed a small bug in location trigger
  • Small fix for bluetooth trigger
  • Couple fixes for the MS app


2.0.0 - Testing Release - (April 13th, 2011)
  • Initial Testing Feed Release
Mode Switcher 1.x


Changelog
1.0.9 - Current Release - (Nov. 10th, 2010)
  • Small change to display trigger
  • Removed experimental code
  • Fixed no match calendar trigger functionality