In the nvidia-settings source, there are some sample programs that are very useful to automate activation of an external monitor. appended is a patch for the nvidia-settings ebuild to build the sample programs depending on the utils use flag. Some desccription for "utils" would be helpful, but I don't know how to go about that. Reproducible: Always
Created attachment 181017 [details, diff] Patch for nvidia-setting-169.07. Should also work for newer versions
Created attachment 181080 [details, diff] nvidia-settings-180.22-r1.ebuild patch Changes wrt original ebuild: * Put Makefile to better use (make clean && make works fine) * tc-export CC (the ebuild _knows_ :) * No need the specify CFLAGS awkwardly (the ebuild _knows_ :) * Remove unnecessary einfo Changes wrt previous patch $181017: * IUSE=examples fits better IMO - nvidia-settings is the real util * Put Makefile to better use (same as above) Notes: * I tried to fix make install but the current "manual" stuff in the ebuild is probably better for us - left that as it was. The Makefile has a ROOT variable we could use, but it assumes that is populated with usr/bin and alike so we should then also append -D to INSTALL_RULE, and make sure it doesn't STRIP the executable or compress the man page, and that still leaves other docs uninstalled.
Created attachment 181081 [details, diff] nvidia-settings-180.22-cflags.patch Apply CFLAGS in src/XF86Config-parser/Makefile as well.
This has been added to new ebuilds, only issue is they currently don't compile. When they do, it will be enabled.
Created attachment 269877 [details, diff] Patch for current nvidia-settings version Any progress here? Here is a patch for the current ebuild.
I've just added the "examples" useflag to 295.20. Right now I don't think we'll build those examples. Those are more examples of how to use the API etc. If you think it is *really* useful to build them please re-open this bug.