-
-
Notifications
You must be signed in to change notification settings - Fork 56
Description
IIRC, a while back and few versions ago, ddcutil seemed to work just fine. However, at some point, a quirk was introduced that resulted in notably buggy behavior when using --verify along with --noverify (or something like that), and values were not always set as intended. The bug seems to be fixed partially, as ddcutil now seems to try and set values in this case but does not always seem to verify them as it used to if both --verify and --noverify are used together.
So, I read the man page and the Synopsis section tells me that there are actually two option areas:
ddcutil [options] command [command-arguments] [options]
Now, I wonder whether --verify is supposed to appear before or after loadvcp filename. I noticed that when I put --verify before it (as I did in the past, IIRC), the call does not always result in the intended outcome anymore (e.g, some color settings remain unchanged). Now, I put --verify both before and after loadvcp filename and according to some tests I did, it seems to work reliably now. This indicates that --verify should appear in the last option area, not the first. Or maybe it needs to appear in both?
This is really confusing. If --verify (or --noverify, for that matter) only works in one of the two option areas, ddcutil should exit with an error code immediately (i.e. without doing anything else) if --verify appears in the wrong option area. Also, the two option areas should be given different names in the man page, and the man page should make clear which options may appear in which option area.
One might also consider providing only one option area but that might have other drawbacks.
While we are at it, contradictory options (like --verify and --noverify) should either be not allowed to appear together or, as I have seen more often, options that appear later in the command line should override options that appear earlier.
Or maybe what I observed is just a bug in the command line parser. EDIT: Or maybe my observations are just incorrect.
EDIT2: It seems that it happened again even with --verify specfiied twice as described above. At that time, the computer was resuming while I manually triggered the script which uses loadvcp to set values. Using ddcutil-2.2.1-1 on Arch.