Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 128
    • Issues 128
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 23
    • Merge requests 23
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Librem5
  • linux
  • Merge requests
  • !455

Merged
Created Sep 09, 2021 by Martin Kepplinger@martin.kepplingerOwner

enable led flash for the camera

  • Overview 4
  • Commits 3
  • Pipelines 6
  • Changes 3
v4l2-ctl --media-bus-info platform:30b80000.csi --device white:torch --all

Flash Controls

                       led_mode 0x009c0901 (menu)   : min=0 max=2 default=0 value=0
				0: Off
				1: Flash
				2: Torch
                         strobe 0x009c0903 (button) : flags=write-only, execute-on-write
                    stop_strobe 0x009c0904 (button) : flags=write-only, execute-on-write
                  strobe_status 0x009c0905 (bool)   : default=0 value=0 flags=read-only, volatile
                 strobe_timeout 0x009c0906 (int)    : min=32000 max=1024000 step=32000 default=512000 value=512000
           intensity_flash_mode 0x009c0907 (int)    : min=62500 max=875000 step=62500 default=825000 value=812500 flags=volatile, execute-on-write
           intensity_torch_mode 0x009c0908 (int)    : min=62500 max=875000 step=62500 default=825000 value=825000 flags=volatile, execute-on-write

a strobe is lightning up when doing the following ( stop_strobe needs to be set for "strobe" to work again ):

v4l2-ctl --media-bus-info platform:30b80000.csi --device white:torch --set-ctrl led_mode=1
v4l2-ctl --media-bus-info platform:30b80000.csi --device white:torch --set-ctrl strobe=
v4l2-ctl --media-bus-info platform:30b80000.csi --device white:torch --set-ctrl stop_strobe=

turn on torch:

v4l2-ctl --media-bus-info platform:30b80000.csi --device white:torch --set-ctrl led_mode=2

turn off torch:

v4l2-ctl --media-bus-info platform:30b80000.csi --device white:torch --set-ctrl led_mode=0

but not sure if this is enough testing, but I guess the application will directly do the above, in which case it would be ok.

Fixes: #351 (closed)

Edited May 31, 2022 by Martin Kepplinger
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: led_flash