Jump to content
Flirc Forums
Zero69

How do you use the command line utilty to set power on with flirc se

Recommended Posts

I see everyone saying you can setup the flirc se with the command line utility to power on a streacom pc from off but how exactly do you do that and i mean if someone could please provide step by step instructions. Since this is not in the gui this is pretty confusing.

Edited by Zero69

Share this post


Link to post
Share on other sites

Hello Flirc People. I too am a command line dummie. Reading various replies to queries I have finally managed to launch flirc_util.exe in the command prompt (Win 10). However, I don't seem to be able to get any of the commands to work. See below:

Microsoft Windows [Version 10.0.16299.192]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\Users\Clive>flirc
'flirc' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Clive>C:\Program Files (x86)\Flirc
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Clive>"C:\Program Files (x86)\Flirc\flirc_util.exe"
flirc_util version v3.9.7 [v3.9.7]
  Firmware: v4.4.2 [0xD60074C5]
Commands:
  delete         Delete next remote button flirc sees from saved database
  delete_index   Delete button at index displayed in `flirc_util settings`
  device_log     Displays the log on the device
  dfu            Kick in or out of Device Firmware Upgrade mode
  dump           Dumps contents of eeprom to console
  format         Remove all saved buttons from flirc
  help           Show this help. Also try `help <command>`
  interkey_delay set the interkey delay
  keys           Shows the recorded remote keys and their pairings
  loadconfig     Load configuration file from disk to flirc
  noise_canceler Noise canceler to prevent phantom presses
  normal         Put flirc in normal user mode
  normalize_cfg  Normalize configuration on device
  peek           Peek EEPROM address
  profiles       enable or disable built in profiles
  reboot         Displays all the devices current settings
  record         Record infrared buttons and link them to HID keys
  record_api     Advanced button recording
  record_lp      Record a long pres key
  record_macro   Record a macro key
  rom_table      enable or disable a give rom table
  saveconfig     Save configuration file to disk
  send_ir_raw    Send a packet over the IR transmitter
  seq_modifiers  enable or disable sequencing the modifiers
  settings       Displays all the devices current settings
  sku            Print the sku of the device
  sleep_detect   Turns on sleep/suspend detection
  space          Displays information about the space used and remaining
  status         Last Flirc Status
  unit_test      test flirc
  upgrade        Uploads new firmware image to flirc hardware
  version        Print the application version and device version if connected
  wait           Waits for the device to be plugged in (used for scripting)

C:\Users\Clive>flirc_util.exe record power''
'flirc_util.exe' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Clive>record
'record' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Clive>flirc_util.exe
'flirc_util.exe' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Clive>./record
'.' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Clive>/record
'/record' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Clive>keys
KEYS is off.

C:\Users\Clive>record_lp
'record_lp' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Clive>/flic_util.exe
'/flic_util.exe' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Clive>

Please could you provide a tutorial. Ideally in a location which is easy to find on the website i.e. not scattered all over the forum and which assumes no prior knowledge.Thank you.

Share this post


Link to post
Share on other sites

I'll jump in here and stand corrected by one of the experts if necessary.

You're in the wrong directory when you issue the Flirc commands when using flirc_util.exe.  Make sure you run flirc_util from the directory in which is resides.  In your case, it looks like that is C\Program Files (x86)\Flirc.  

Thus, if you want to run a "keys" command, then type, without the quotes, "flirc_util.exe keys" from the prompt C\Program Files (x86)\Flirc.  You're trying to run the command from C:\Users\Clive.  That's not where flirc_util.exe resides.

I'm a noob myself.  I just figured out how to run this utility.

  • Thanks 1

Share this post


Link to post
Share on other sites

Exactly as @FrogFan2 explained.

To be more specific, you have two options:

cd "C:\Program Files (x86)\Flirc\"
flirc_util.exe record power

or straight away:

"C:\Program Files (x86)\Flirc\flirc_util.exe" record power

There's also an option to add "C:\Program Files (x86)\Flirc\" to the PATH environment variable, which would allow you to execute flirc_util.exe from any location. To add Flirc to your PATH follow this page: https://www.computerhope.com/issues/ch000549.htm (just one of the first results when searching "windows add to path" in Google).

  • Thanks 1

Share this post


Link to post
Share on other sites

Thanks to both of you (@FrogFan2 & @Yawor) for your pointers. In 20+ years of using computers I've opened Command Prompt probably fewer than a dozen times. So, I can see that I'll need to do some reading about the command prompt before I can take the next step and create my long press keys. You do realise that the examples in the Flirc Gen2 manual are Linux (?) syntax not Windows which also make things a little confusing to neophytes such as myself. Once again thank you for giving your time on the forum. My $'s would have been wasted without you.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×