Askannz / optimus-manager

A Linux program to handle GPU switching on Optimus laptops.
MIT License
2.25k stars 165 forks source link

[Feature Request] Allow to force switching even if a xorg config file is present. #529

Closed lowusage closed 3 days ago

lowusage commented 1 year ago

Description of the problem

I have a /etc/X11/xorg.conf file for specific configurations for my windows manager. I use optimus-manager in bash scripts to automate the switching between my graphics cards, and it is kind of boring to have to take in account the Ignore this warning and proceed with GPU switching ? (y/N) prompt in my scripts, since I know exactly what is in this config file.

For some reasons I don't want to put those configurations in xorg.conf.d/

Use case

Exactly the case above and below.

Feature

I don't think using the --no-confirm option to override this warning would be a good idea (since people would maybe use it to just override the normal confirmation prompt, and they could not be aware later if a Xorg automatic file is created). But adding a --no-configcheck (not sure about the name) flag would allow users with control over their system to simplify their scripting automation.

I can do a PR if it is needed

nwildner commented 6 days ago

For some reasons I don't want to put those configurations in xorg.conf.d/

Well, if you don't provide rationale on why you couldn't adopt for example /etc/X11/xorg.conf.d/000-myconfs.conf for example to have your config processed before optimus-manager generated ones and to avoid conflicts with the Xorg.conffile, it's hard for us to discuss in something that is highly opinionated and specific for your needs.

Also, sorry with the delay on answering this, we are putting optimus-manager back on its tracks. Since the last update on this case was from 1,5 years ago, we'll keep this case opened for some days and close it if no answer is provided.

Have a nice week ahead.