# Configuration file for MCE [Modules] # Path to modules # # Do not modify unless you're sure that you know what you're doing! ModulePath=/usr/lib/mce/modules # Modules # # List of modules to load # Note: the name should not include the "lib"-prefix Modules=display;keypad;vibrator;led;battery;filter-brightness-als;inactivity;alarm;accelerometer;callstate;camera;homekey;audiorouting [HomeKey] # Try to make this possible somehow # [HomeKey] keycode # HomeKeyCode=Key_F5 # Timeout before keypress is regarded as a long press # # Timeout in milliseconds, default 800 HomeKeyLongDelay=800 # Short [Home] behaviour # # Valid options: # disabled - do nothing on short press # shortsignal - send the short home D-Bus signal # longsignal - send the long home D-Bus signal HomeKeyShortAction=shortsignal # Long [Home] behaviour # # Valid options: # disabled - do nothing on short press # shortsignal - send the short home D-Bus signal # longsignal - send the long home D-Bus signal HomeKeyLongAction=longsignal [PowerKey] # Timeout before keypress is regarded as a medium press # This delay is used when powering up from charging # # Timeout in milliseconds, default 1000 PowerKeyMediumDelay=1000 # Timeout before keypress is regarded as a long press # # Timeout in milliseconds, default 1500 PowerKeyLongDelay=1500 # Timeout for double keypresses # # Timeout in milliseconds, default 1000 PowerKeyDoubleDelay=1000 # Short [power] behaviour # # WARNING: # Setting short, long, and double press to disabled will make it # near impossible to turn off your device without removing the battery! # # Valid options: # disabled - do nothing on short press # menu - show device menu # poweroff - shutdown device # softpoweroff - enter soft poweroff mode PowerKeyShortAction=menu # Long [power] behaviour # # Valid options: # disabled - do nothing on long press # menu - show the device menu # poweroff - shutdown device # softpoweroff - enter soft poweroff mode PowerKeyLongAction=poweroff # Double press [power] behaviour # # Valid options: # disabled - do nothing on double press # menu - show the device menu # poweroff - shutdown device # softpoweroff - enter soft poweroff mode # tklock - enable the touchscreen/keypad lock PowerKeyDoubleAction=tklock [SoftPowerOff] # Connectivity policy with charger connected # # Valid options: # forceoffline - always go to offline # softoffline - offline only if there are no open connections # retain - do not change the network status ConnectivityPolicyCharger=retain # Connectivity policy when running on battery # # Valid options: # forceoffline - always go to offline # softoffline - offline only if there are no open connections # retain - do not change the network status ConnectivityPolicyBattery=forceoffline # Connectivity policy when powering on from soft poweroff # Note that this policy only affects the connectivity state # # Valid options: # offline - stay offline # restore - restore state from before soft poweroff ConnectivityPolicyPowerOn=offline # Charger connect policy # # Valid options: # wakeup - wake up from soft poweroff when a charger is connected # ignore - remain in soft poweroff when a charger is connected ChargerPolicyConnect=ignore [DevLock] # Note that the delays loop: # # DevLockDelay0 -> DevLockDelay1 -> DevLockDelay2 -> DevLockDelay3 -> # DevLockDelay0 -> ... # Delay to use before the user can input the device lock code # # Timeout in seconds, default 0 (no delay) DevLockDelay0=0 # Delay to use 1st time user inputs an incorrect code # # Timeout in seconds, default 1 DevLockDelay1=1 # Delay to use 1st time user inputs an incorrect code # # Timeout in seconds, default 1 DevLockDelay2=1 # Delay to use 1st time user inputs an incorrect code # # Timeout in seconds, default 5 DevLockDelay3=5 # Time before the device shuts down automatically from # the shutdown query (shown when cancel is pressed in device lock), # 0 to disable the timeout # # Timeout in seconds, default 0 (disable timeout) DevLockShutdownTimeout=0 [TKLock] # Blank immediately instead of dim before blank when tklock is enabled # # 1 to blank immediately, 0 to dim before blanking BlankImmediately=1 # Dim immediately instead of having a timeout before dimming # when tklock is enabled # # 1 to dim immediately, 0 to wait for timeout DimImmediately=1 # Timeout before dimming # # Timeout in milliseconds, default 3000 DimDelay=3000 # Policy for touchscreen interrupts # # 1 - disable immediately # 0 - wait until display is blanked DisableTSImmediately=1 # Policy for keypad interrupts # # 2 - leave keypad interrupts on even after blanking # (used to support pass-through of +/-) # 1 - disable interrupts immediately # 0 to wait until display is blanked DisableKPImmediately=1 # Inhibit autolock when keyboard slide is open # # 1 - allow autolock when the keyboard slide is open # 0 - inhibit autolock when the keyboard slide is open AutolockWhenSlideOpen=0 # Unlock the tklock if the camera is popped out # # 1 to enable, 0 to disable CameraPopoutUnlock=1 # Unlock the tklock if the lens cover is opened # # 1 to enable, 0 to disable LensCoverUnlock=1 [KeyPad] # Timeout before disabling keyboard backlight when unused # # Timeout in seconds, default 30 BacklightTimeout=30 # Fade time for keyboard backlight # # Timeout in milliseconds, default 100; # valid values: 0, 50, 100, 150, 200, 250 BacklightFadeTime=100 [LED] # List of patterns for the LED functionality # # A list of all pattern names that should be configured LEDPatterns=PatternVboost;PatternError;PatternDeviceOn;PatternPowerOn;PatternPowerOff;PatternCommunicationCall;PatternCommunicationIM;PatternCommunicationSMS;PatternCommunicationEmail;PatternCommonNotification;PatternWebcamActive;PatternBatteryCharging;PatternBatteryFull;PatternDeviceSoftOff;PatternInhibit [LEDPatternLystiRX51] # Patterns used if the device has an RGB LED connected to a Lysti controller # Please prefix pattern names with Pattern to avoid name space clashes # # Priority (0 - highest, 255 - lowest) # ScreenOn - 0 only show pattern when the display is off # 1 show pattern even when the display is on # 2 only show pattern when the display is off, including acting dead # 3 show pattern even when the display is on, including acting dead # 4 only show pattern if the display is off, or if in acting dead # 5 always show pattern, even if LED disabled # Timeout in seconds before pattern is disabled, 0 for infinite # LED(s) to map to Engine 1/Engine 2 # "r", "g", "b" maps the LED to engine 1 # "R", "G", "B" maps the LED to engine 2 # Example: # "rG" maps the red LED to engine 1, # the green LED to engine 2, # and leaves the blue LED unmapped # Avoid mapping the same LEDs to both engines... # Engine 1 pattern in Lysti format (16 commands at most) # Engine 2 pattern in Lysti format (16 commands at most) # # 0000 -- Jump to the start of the pattern for the channel # 40xx -- Set channel brightness # 9d80 -- Refresh Mux (use as first command in every pattern!) # xxyy -- Increment/decrement # xx determines the speed; # 02-3f -- short step time (granularity 0.49ms) # 42-7f -- long step time (granularity 15.6ms) # # If xx is even, increment # If xx is odd, decrement # yy determines the increment/decrement steps # 00-ff -- in/decrement steps # # Use 0 steps to create pauses # Two consecutive increment/decrement sequences are needed # to cover the entire range from 0-255 # c000 -- End pattern execution # e002 -- Send engine 1 trigger # e004 -- Send engine 2 trigger # e008 -- Send engine 3 trigger # e080 -- Wait for engine 1 trigger # e100 -- Wait for engine 2 trigger # e200 -- Wait for engine 3 trigger PatternError=0;5;0;r;9d8040005000500040ff0b8c5c000000;9d800000 PatternDeviceOn=254;0;0;gb;9d80400006c509ad23650000;9d800000 PatternDeviceSoftOff=253;0;0;rg;9d804000423f433f7f100000;9d800000 PatternPowerOn=9;3;0;rgb;9d80400042ff02ffc000;9d800000 PatternPowerOff=10;3;0;rgb;9d80400001ff439e7f007e00c000;9d800000 PatternCommunicationCall=30;1;0;b;9d80400002ff03ff02ff03ff45080000;9d800000 PatternCommunicationIM=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000 PatternCommunicationSMS=30;1;0;b;9d80400002ff03ff02ff03ff71040000;9d800000 PatternCommunicationEmail=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000 PatternCommonNotification=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000 PatternWebcamActive=20;1;0;r;9d80400004ffc0000000;9d800000 PatternBatteryCharging=50;4;0;rg;9d80400020de0dc57f007f0042000000;9d800000 PatternBatteryFull=40;4;0;g;9d80407f0000;9d800000 # OK, let's get fancy # 9d80 allegedly init for mux. 1001 1101 1000 0000 is mux_map_next # In fact lp5523 driver creates a mux table of one entry length, so # mux_map_next will spin index in one point and will reload same # mapping which is pointed to by mux_ld_start and mux_ld_end # mux_ld_start: 1001 1110 0sss ssss; sssssss = SRAM start addr (0-95) # mux_ld_end: 1001 1100 1sss ssss; sssssss = SRAM end addr (0-95) # lp5523 driver executes a short program to load the mapping # from engineX_leds to the location of mux_ld_start # Later we might want to use mux_sel to associate _ONE_ LED directly: # mux_sel: 1001 1101 0bbb bbbb; bbbbbbb = int (0-16), 0=nothing, # (1-9)=LED1-9; 16=GPO # # 407f set_pwm: 0100 0000 pppp pppp; p = 8bit PWM value # PatternVboost=60;5;0;rB;9d80401a480040d948000000;9d80400b2c900000 # This example pattern has a priority of 42 (all patterns with a *lower* # priority value will have precedence), and will flash in yellow # This pattern will be visible even when the display is on. PatternExample=42;1;30;rg;9d80400044ff45ff0000;9d800000 # Added on 2011-02-15T18:03:44.231080Z by mceledpattern PatternInhibit=0;5;0;r;9d8040007f007f0040ff7f007f000000;9d800000 [Vibrator] # List of patterns for the vibrator functionality # # A list of all pattern names that should be configured VibratorPatterns=PatternIncomingCall;PatternIncomingMessage;PatternPowerKeyPress;PatternTouchscreen;PatternChatAndEmail [VibraPatternRX51] # Patterns used if the device uses Vibra # Please prefix pattern names with Pattern to avoid name space clashes # # Note: For power management purposes, remember to keep try to keep the # onPeriod relatively short (not shorter than 50ms though), # the offPeriod long; if this is not possible, make sure to have # a timeout for the pattern so that it goes off after 15-30 seconds # # Priority (0 - highest, 255 - lowest) # Policy - 0 only play pattern when the display is off # 1 play pattern even when the display is on # 2 only play pattern when the display is off, including acting dead # 3 play pattern even when the display is on, including acting dead # 4 only play pattern if the display is off, or if in acting dead # 5 always play pattern, even if vibrator disabled in profiles # Timeout in seconds before pattern is disabled, 0 for infinite # Repeat count, 0 for infinite # AcceleratePeriod time in millisecond # OnPeriod time in milliseconds # BreakPeriod time in milliseconds # OffPeriod time in milliseconds # Speed from 1 to 255 PatternIncomingCall=1;3;0;0;30;970;0;1000;180 PatternIncomingMessage=3;3;2;2;30;470;0;500;154 PatternPowerKeyPress=5;5;1;1;0;16;0;16;128 PatternTouchscreen=10;3;0;1;23;0;15;50;255 PatternChatAndEmail=4;3;1;1;30;360;0;100;154