Stop Motioner Photographer's utilities for working with Canon IXUS 127HS camera. Controls camera functions and allows taking photos remotely from your pc. Written by Miha in 2026 --------------------------------------------------------------------------------- Table of contents --------------------------------------------------------------------------------- 1. Connecting to camera 2. Taking photos -beginner level -intemediate -advanced 3. Camera File management 4. Camera diagnostics --------------------------------------------------------------------------------- 1. CONNECTING TO CAMERA --------------------------------------------------------------------------------- Connecting camera to linux pc is tricky, because other services like usb port might detect camera and interfere and turn off camera's LCD and retract camera's lenses. Therefore follow the precise protocol: - run Stop Motioner - turn on camera - plug it in - trouble starts, some window pops up trying to steal the usb port, camera's LCD turns black, lenses retract. We fight this trouble: - click "Release USB" - turn on camera again (press on button again twice) so LCD returns - if camera lenses retracted, don't worry, you can enter "Record" mode later - connect - optionally: - push "Record" to get lenses out and shoot manually - start preset (this will get lenses out if not already) - run diagnostics and control the camera through cli commands etc. - disconnect - turn off camera - plug it out Reset camera if needed or do hard batteries reset. --------------------------------------------------------------------------------- 2. TAKING PHOTOS --------------------------------------------------------------------------------- --------------------------------------------------------------------------------- Beginner level --------------------------------------------------------------------------------- The simplest way to take a photo: - connect the camera (see chapter 1) - press "Record" — lenses extend, camera enters record mode - press "Shoot" in the toolbar - the photo is saved to the camera's SD card and a copy is downloaded to your output folder on the PC - press "Disconnect" when done That's it. Your photos are in the output folder, ready to use. --------------------------------------------------------------------------------- Intermediate level — Presets --------------------------------------------------------------------------------- Presets are configuration files that tell Stop Motioner what to do and when to do it automatically. Instead of pressing Shoot manually every time, you describe the rules once and let the app follow them. A preset file contains: [meta] name = My timelapse description = One shot every 5 seconds [settings] interval_ms = 5000 ; shoot every 5 seconds motion_threshold = 10.0 ; motion sensitivity (0-100) stable_time_ms = 2000 ; wait this long for scene to settle [rules] INTERVAL_TICK -> shoot MOTION_START -> notify "Motion detected" MOTION_END -> shoot Rule format: EVENT -> action Common events: INTERVAL_TICK fires on every interval (set by interval_ms) MOTION_START fires when motion level crosses the threshold MOTION_END fires when scene becomes stable again STABLE_FOR_2S fires after 2 seconds of no motion BUTTON_SHOOT fires when the manual Shoot button is pressed Common actions: shoot take a photo notify "text" display a message in the status bar beep play a short sound log "text" write a line to the event log Using a preset: - open the Presets panel on the left - select a preset from the list - press "Start" — Stop Motioner begins following the rules - press "Stop" to end the session Preset files are plain text (.txt) stored in the presets/ folder next to the application. You can edit them in any text editor. Copy an existing one as a starting point. --------------------------------------------------------------------------------- Advanced level --------------------------------------------------------------------------------- Advanced users can combine all features for full control: Stop motion animation: - set up your scene - use a preset with STABLE_FOR_2S -> shoot the camera waits for the scene to stop moving, then fires - move your subject, let it settle, repeat - all frames are numbered sequentially in the output folder Time lapse: - use INTERVAL_TICK -> shoot with a short interval_ms - set a shot limit in the Time Lapse panel to stop automatically after a fixed number of frames - use the Nature tab for fully autonomous long-running sessions where the camera operates without the PC staying connected Motion triggered: - use MOTION_START -> shoot - adjust motion_threshold to filter out noise vs. real movement - combine with stable_time_ms to avoid burst-firing on fast motion Manual control from CLI: - the Diagnostics tab gives direct access to all chdkptp commands - you can shoot, change modes, reboot, inspect the camera state and run Lua scripts without leaving the application - see chapter 4 for the full command reference --------------------------------------------------------------------------------- 3. Camera File management --------------------------------------------------------------------------------- The File Manager (FM) is the main interface for browsing camera files. It allows folder navigation, file selection, preview and download. Navigation: - Click refresh to show files on camera first - Click folder to select - Double click folder to enter - Use Go Up button to go to parent folder Preview: - Loads a single image into a temporary file and displays it. Download: - Copies selected files from camera to local output folder. --------------------------------------------------------------------------------- 4. CAMERA DIAGNOSTICS --------------------------------------------------------------------------------- The Diagnostics tab gives you direct access to chdkptp, the command line tool that talks to your Canon camera over USB. Every button in the toolbar sends one command and shows the result in the output window below. You can also type commands directly in the command bar. This chapter describes what each command does and when to use it. --------------------------------------------------------------------------------- Toolbar buttons --------------------------------------------------------------------------------- INFO GROUP Help Prints the full list of available chdkptp commands. Use this when you need a quick reminder of syntax. Help verbose Same as Help but includes parameter descriptions for every command. More output, more detail. Clock Reads the current date and time from the camera. Useful for checking if the clock needs correction after a battery change. Set clock Opens a dialog pre-filled with the current system time. Confirm or edit, then click OK. The camera clock is set silently. Format: YYYY/MM/DD HH:MM:SS List devices Lists all PTP/USB devices visible to chdkptp. Run this if Connect fails — it tells you whether the camera is seen at the USB level at all. Version Shows the chdkptp version string. List files Runs "ls" on the camera root. Shows what is on the SD card at the top level. List images Runs "imls" — lists image files the camera knows about. May differ from a plain ls if the camera's image database is out of sync with the SD card. Get messages Runs "getm" — reads pending messages from the camera's CHDK script engine. Use this to debug Lua scripts running on the camera. History Shows the command history for this session. CAMERA CONTROL GROUP Connect Connects to the camera. Same as the main toolbar Connect button but sends output to the diagnostics window instead of the event log. Reconnect Drops and re-establishes the USB connection without restarting the app. Try this if commands start timing out or returning errors after a long idle. Disconnect Releases the USB connection cleanly. Record Switches camera to record mode (lenses extend). Required before shooting. If the camera is in playback mode, run this first. Play Switches camera to playback mode (lenses retract). Use this before disconnecting to protect the lens. Reboot Sends a reboot command to the camera. The camera restarts and disconnects. You will need to Connect again after it comes back up. Clear Clears the diagnostics output window. --------------------------------------------------------------------------------- Command bar --------------------------------------------------------------------------------- The command bar at the top of the output area lets you type any chdkptp command directly and run it with Enter or the button. Examples: ls A/DCIM list a specific folder imdl A/DCIM/100___01/IMG0001.JPG download a single image clock -sync sync camera clock to PC time exactly clock -sync -utc sync to UTC instead of local time lua return os.clock() run a Lua expression on the camera luar get_mode() run Lua and print the return value shoot take a photo immediately rs remoteshoot (shoot + download) --------------------------------------------------------------------------------- Command reference --------------------------------------------------------------------------------- Below is a summary of the most useful chdkptp commands. For the complete list with all options, press "Help verbose" in the toolbar. clock show current camera date/time clock -set YYYY/MM/DD HH:MM:SS -quiet set camera clock clock -sync sync to PC system time connect connect to camera disconnect disconnect reconnect reconnect rec enter record mode play enter playback mode reboot reboot camera list list connected PTP devices version show chdkptp version help / help -v show command help ls [path] list files on SD card mkdir path create folder on SD card rm path delete file or folder download src dst download file to PC upload src dst upload file to camera imdl path download image file imls [path] list image files imrm path delete image file mdl src dst download folder recursively mup src dst upload folder recursively shoot take a photo rs / remoteshoot shoot and download immediately rsint count interval interval shooting lua expr evaluate Lua on camera luar expr evaluate Lua, print return value exec cmd run a shell command getm get camera script messages killscript stop running Lua script rmem addr size read raw camera memory (advanced) set [option value] get or set chdkptp options history show command history --------------------------------------------------------------------------------- Tips and troubleshooting --------------------------------------------------------------------------------- If a command returns "ERROR" or rc=1: - the camera may have gone to sleep — run "reconnect" first - the camera may not be in the right mode (record vs playback) for that command — check with "getm" or switch mode first - for file commands, check the path is correct with "ls" first If Connect fails from the main toolbar: - run "list" in diagnostics — if the camera does not appear, another process (gvfs, Shotwell, gphoto2) has the USB port - click "Release USB" in the main toolbar to kill those processes - turn camera off and on, for LCD to appear - then try Connect again If the camera freezes after a dialog box opened: - this is caused by gvfs-gphoto2 grabbing the USB port while the file dialog was open — Stop Motioner kills this process before opening its own file dialogs, but system dialogs do not - disconnect, turn camera off and on, then reconnect If the camera malfunctions: - in extreme cases chdk software installed on camera may become stuck due to improper use of powerful low level firmware CLI commands. To repair chdk, pull the card out, turn the boot switch, put it back in, restart, in camera's file manager locate and delete the chdk4.cfg file. Restart again with the card switch on. Chdk runs and usb is detectable again. ---------------------------------------------------------------------------------