azeam / camset

GUI for v4l2-ctl
GNU General Public License v3.0
165 stars 17 forks source link

Settings not stored permanently #12

Closed DavidEGx closed 3 years ago

DavidEGx commented 3 years ago

Configuration is not stored permanently so whenever I have to use the camera I need to open camset and change options.

Could you change Camset so settings are stored forever? Maybe adding a "Store permanently" button.

Steps to reproduce:

  1. Open Camset
  2. Change settings
  3. Close Camset
  4. Unplug camera (or power off in case of built-in webcam)
  5. Plug camera (or power on)
  6. Open Camset

Settings went to default :'(


Thanks for the app!

azeam commented 3 years ago

Sorry, I totally forgot about this issue. Will put it on the todo-list and try to find some time to look into it!

titouan73 commented 3 years ago

Any news about this feature ?

azeam commented 3 years ago

Any news about this feature ?

Thanks for the reminder, added an option to save/load the settings, not a full solution but also adds the option to keep multiple settings saved. Should be easy to add an auto-load if saved in a certain location but it was all I had time for tonight. Barely tested so report any issues with this commit (also at pip as 0.0.15).

titouan73 commented 3 years ago

Thanks I'll try to make the load operation persistant :100:

azeam commented 3 years ago

I believe this should resolve this issue, let me know otherwise (also added saving of resolution).

titouan73 commented 3 years ago

The fact is that, it's pretty hard to set params persistently (I mean even after reboot and/or unplug). The only things I get working is create a deamon that run a while infinite loop which execute v4l2-ctl commands every seconds. That's very ugly I admit.

azeam commented 3 years ago

The fact is that, it's pretty hard to set params persistently (I mean even after reboot and/or unplug). The only things I get working is create a deamon that run a while infinite loop which execute v4l2-ctl commands every seconds. That's very ugly I admit.

Check the latest commit (v0.0.16 @ pip) and see if that works. If you have a settings file stored at the suggested location (~/.config/camset) with the suggested name (same as the device) it should auto-load the saved settings for the device when starting camset (and when switching between devices if you have multiple).

It does, however, require camset to be started. It would be possible to write a startup script (or udev script listening for USB devices plugged in) that sets the stored values with v4l2-ctl, but maybe a bit outside the scope of this app - or, I guess, auto-starting camset after boot would work as well (although annyoing imo).

titouan73 commented 3 years ago

It work like a charm, moreover Camset doesn't take CPU usage so it can be run as a background application without problem, thanks again for your help and your time !