# 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=PatternError;PatternDeviceOn;PatternPowerOn;PatternPowerOff;PatternCommunicationCall;PatternCommunicationIM;PatternCommunicationSMS;PatternCommunicationEmail;PatternCommonNotification;PatternWebcamActive;PatternBatteryCharging;PatternBatteryFull;PatternDeviceSoftOff;PatternBoost [LEDPatternMonoRX34] # Patterns used if the device has a single-colour LED # 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) # 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 # OnPeriod time in milliseconds # OffPeriod time in milliseconds # (0 for continuous light; ONLY when the charger is connected!) # Intensity in steps from 0 (off) to 15 (full intensity) PatternError=0;5;0;250;500;15 PatternDeviceOn=254;0;0;75;5000;10 PatternDeviceSoftOff=253;0;0;100;10000;5 PatternPowerOn=9;3;0;2000;1000;15 PatternPowerOff=10;3;0;2000;1000;15 PatternCommunicationCall=30;1;0;250;2000;15 PatternCommunicationIM=30;1;0;250;2000;15 PatternCommunicationSMS=30;1;0;250;2000;15 PatternCommunicationEmail=30;1;0;250;2000;15 PatternCommonNotification=30;1;0;250;2000;15 PatternWebcamActive=255;0;0;0;0;0 PatternBatteryCharging=50;4;0;500;7500;10 PatternBatteryFull=40;4;0;1500;0;10 # This example pattern has a priority of 42 (all patterns with a *lower* # priority value will have precedence), an on-period of 0.5 seconds, # and an off-period of 1.5 seconds. The pattern will be active for # 30 seconds, then stop. The brightness level will be 10 (with 15 being # the maximum, this would amount to 66%. # This pattern will be visible even when the display is on. PatternExample=42;1;30;500;1500;10 [LEDPatternNJoyRX44] # Patterns used if the device has an RGB LED connected to an NJoy 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 # R-channel pattern in NJoy format (16 commands at most) # G-channel pattern in NJoy format (16 commands at most) # B-channel pattern in NJoy format (16 commands at most) # # 0000 -- Jump to the start of the pattern for the channel # 40xx -- Set channel brightness # xxyy -- Increment/decrement # xx determines the speed; # 01-3f -- short step time (granularity 0.49ms) # 41-7f -- long step time (granularity 15.6ms) # yy determines the increment/decrement steps # 00-7f -- increment steps 00 = 0 steps, 7f = 127 steps # 80-ff -- decrement steps 80 = 0 steps, ff = 127 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 red trigger # e004 -- Send green trigger # e008 -- Send blue trigger # e080 -- Wait for red trigger # e100 -- Wait for green trigger # e200 -- Wait for blue trigger PatternError=0;5;0;40002000200040ff200020000000;0000;0000 PatternDeviceOn=254;0;0;4000205f20df7f007f007f007f000000;4000205f20df7f007f007f007f000000;4000205f20df7f007f007f007f000000 PatternDeviceSoftOff=253;0;0;4000203f20bf7f007f007f007f007f000000;4000203f20bf7f007f007f007f007f000000;0000 PatternPowerOn=9;3;0;4000207f207f01ff01ffc000;4000207f207f01ff01ffc000;4000207f207f01ff01ffc000 PatternPowerOff=10;3;0;4000017f017f36ff36ff7f00c000;4000017f017f36ff36ff7f00c000;4000017f017f36ff36ff7f00c000 PatternCommunicationCall=30;1;0;0000;0000;40007f00017f017f050001ff01ff0000 PatternCommunicationIM=30;1;0;0000;0000;40007f00017f017f050001ff01ff0000 PatternCommunicationSMS=30;1;0;0000;0000;40007f00017f017f050001ff01ff0000 PatternCommunicationEmail=30;1;0;0000;0000;40007f00017f017f050001ff01ff0000 PatternCommonNotification=30;1;0;0000;0000;40007f00017f017f050001ff01ff0000 PatternWebcamActive=20;1;0;4000027f027fc000;0000;0000 PatternBatteryCharging=50;4;0;0000;4000257f06ff7f0041000000;0000 PatternBatteryFull=40;4;0;0000;407f0000;0000 # 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;4000167f167f17ff17ff0000;4000167f167f17ff17ff0000;0000 [LEDPatternNJoyRX48] # Patterns used if the device has an RGB LED connected to an NJoy 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 # R-channel pattern in NJoy format (16 commands at most) # G-channel pattern in NJoy format (16 commands at most) # B-channel pattern in NJoy format (16 commands at most) # # 0000 -- Jump to the start of the pattern for the channel # 40xx -- Set channel brightness # xxyy -- Increment/decrement # xx determines the speed; # 01-3f -- short step time (granularity 0.49ms) # 41-7f -- long step time (granularity 15.6ms) # yy determines the increment/decrement steps # 00-7f -- increment steps 00 = 0 steps, 7f = 127 steps # 80-ff -- decrement steps 80 = 0 steps, ff = 127 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 red trigger # e004 -- Send green trigger # e008 -- Send blue trigger # e080 -- Wait for red trigger # e100 -- Wait for green trigger # e200 -- Wait for blue trigger PatternError=0;5;0;4000420040ff42000000;0000;0000 PatternDeviceOn=254;0;0;4000e100207e207ee00420fe20fee0047f007f007f007f000000;4000e0024a15e0804a95e0807f007f007f007f000000;0000 PatternDeviceSoftOff=253;0;0;4000204f20cf7f007f007f007f007f000000;4000204f20cf7f007f007f007f007f000000;0000 PatternPowerOn=9;3;0;4000207f207f01ff01ffc000;4000207f207f01ff01ffc000;4000207f207f01ff01ffc000 PatternPowerOff=10;3;0;4000017f017f36ff36ff7f00c000;4000017f017f36ff36ff7f00c000;4000017f017f36ff36ff7f00c000 PatternCommunicationCall=30;1;0;0000;0000;40007f00017f017f050001ff01ff0000 PatternCommunicationIM=30;1;0;0000;0000;40007f00017f017f050001ff01ff0000 PatternCommunicationSMS=30;1;0;0000;0000;40007f00017f017f050001ff01ff0000 PatternCommunicationEmail=30;1;0;0000;0000;40007f00017f017f050001ff01ff0000 PatternCommonNotification=30;1;0;0000;0000;40007f00017f017f050001ff01ff0000 PatternWebcamActive=20;1;0;4000027f027fc000;0000;0000 PatternBatteryCharging=50;4;0;0000;4000257f06ff7f0041000000;0000 PatternBatteryFull=40;4;0;0000;407f0000;0000 # 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;4000167f167f17ff17ff0000;4000167f167f17ff17ff0000;0000 [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;9d8040007f007f0040ff7f007f000000;9d800000 PatternDeviceOn=254;0;0;rgb;9d804000422043207f100000;9d800000 PatternDeviceSoftOff=253;0;0;rg;9d804000423f433f7f100000;9d800000 PatternPowerOn=9;3;0;rgb;9d80400042ff02ffc000;9d800000 PatternPowerOff=10;3;0;rgb;9d80400001ff43ff7f007f00c000;9d800000 PatternCommunicationCall=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000 PatternCommunicationIM=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000 PatternCommunicationSMS=30;1;0;b;9d80400002ff03ff02ff03ff71080000;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;9d804000427f0d7f7f007f0042000000;9d800000 PatternBatteryFull=40;4;0;g;9d80407f0000;9d800000 PatternBoost=35;5;0;b;9d804000043fc0000000;9d800000 # 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 [Vibrator] # List of patterns for the vibrator functionality # # A list of all pattern names that should be configured VibratorPatterns=PatternIncomingCall;PatternIncomingMessage;PatternPowerKeyPress;PatternTouchscreen;PatternChatAndEmail;PatternUserManual [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 # # Note: for PatternUserManual the user will send vibration details. # So only priority is important in the pattern # Rrepeat count is set to 1 since now it can't be changed by the user # The user will be able to set speed and OnPeriod only # # 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 PatternUserManual=9;1;0;1;0;0;0;0;0