Intermec ck1 Reference Guide
Chapter 2 — Configuring the CK1 System
CK1 SDK Programmer’s Reference Manual
53
• default_apm_mbatgood, default_apm_mbatlow,
• default_apm_mbatverylow, default_apm_mbatcritical
All the devApmSet*() and devApmGet*() functions get or change the value
from or to the relative file in /etc/config/, and the changed value remains
after you reboot the CK1.
from or to the relative file in /etc/config/, and the changed value remains
after you reboot the CK1.
The following is an example for changing the APM settings by Command
Line Operation:
Line Operation:
# echo “15” > /etc/config/default_apm_backlighttime
The backlight time turn off time is changed to 15 seconds, and then you
use the command below to let APM work from new setting:
use the command below to let APM work from new setting:
# sh /etc/config/es_set_config.sh
Changing the APM Function by /proc
All the commands shown in this section let APM work immediately, but
the value is not saved to the relative files in the /etc/config/ directory. If
you want the value to remain, you also need to change the relative files in
the /etc/config/ directory.
the value is not saved to the relative files in the /etc/config/ directory. If
you want the value to remain, you also need to change the relative files in
the /etc/config/ directory.
Commands for /proc
To Set APM to
Send This Command
Idle mode
# echo slow > /proc/apm
Resume from Idle mode
# echo busy > /proc/apm
Suspend mode
# echo stop > /proc/apm
Disable automatic APM work
# echo manual > /proc/apm
Enable automatic APM work
# echo auto > /proc/apm
Turn on the backlight
# echo "el on" > /proc/apm
Turn off the backlight
# echo "el off" > /proc/apm
Set the idle time to 10 seconds
# echo "lt 10" > /proc/apm
Set the suspend time to 10 seconds
# echo "st 10" > /proc/apm
Set the backlight off time to 10 seconds
# echo "el 10" > /proc/apm
Set the main battery good level to 90%
# echo "mbg 90" > /proc/apm
Set the main battery low level to 30%
# echo "mbl 30" > /proc/apm
Set the main battery very low level to 15%
# echo "mbv 15" > /proc/apm
Set the main battery critical level to 5%
# echo "mbc 5" > /proc/apm
Set the backup battery good level to 90%
# echo "bbg 90" > /proc/apm
Set the backup battery low level to 30%
# echo "bbl 30" > /proc/apm
Set the backup battery very low level to 15%
# echo "bbv 15" > /proc/apm
Set the backup battery critical level to 5%
# echo "bbc 5" > /proc/apm
Turn on the EXT5V
# echo “e5 on” > /proc/apm
Turn off the EXT5V
# echo “e5 off” > /proc/apm
Set the voltage to 3.8V for the BIOS to
resume from Stop mode
resume from Stop mode
# echo “cv 380” > /proc/apm