Repository: Askannz/optimus-manager

Issue #391: Config validate: 
Created: 2021-03-10T11:56:26Z
Describe the bug
A clear and concise description of what the bug is.
When 'dynamic_power_management=no" and also
the 'dynamic_power_management_memory_threshold=' value is empty, 0 or -1 in configs, cannot start daemon and we get this error: "non-blank integer value required"
[12] ERROR: Daemon startup error
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/optimus_manager/hooks/pre_daemon_start.py", line 27, in main
    config = load_config()
  File "/usr/lib/python3.7/site-packages/optimus_manager/config.py", line 16, in load_config
    config = _load_config()
  File "/usr/lib/python3.7/site-packages/optimus_manager/config.py", line 28, in _load_config
    _validate_config(base_config)
  File "/usr/lib/python3.7/site-packages/optimus_manager/config.py", line 132, in _validate_config
    raise ConfigError(error_msg)
optimus_manager.config.ConfigError: Config parsing : error in option "dynamic_power_management_memory_threshold" in section [nvidia] : non-blank integer value required
[12] INFO: Writing state {'type': 'startup_failed', 'startup_mode': None, 'daemon_run_id': '20210310T121854'}

Duplicate issue #469: Config parsing : error in option "dynamic_power_management_memory_threshold" in section [nvidia] : non-blank integer value required
Created: 2022-01-21T01:23:54Z
Describe the bug
The error keeps poping up either on optimus-manager log or journalctl, and maybe related to nvidia gpu varing from 11W, 5W and 1W usage, when it should be 1W with no use.
System info
Please include :

Your distribution

Arch Linux with general kernel 5.16

Your desktop manager (KDE, GNOME, Cinnamon...), if you have one

Desktop Manager: KDE Plasma 5.24

You display manager (SDDM, GDM, LightDM...), if you have one. If you do not know, you are probably using the one coming with your desktop manager.

Display Manager: SDDM

Your laptop model, if you think it could be related to the problem

Acer Nitro AN515-54, Intel Core i5-9300H, GTX 1650 Mobile

The version of optimus-manager you are using : latest stable release (optimus-manager), or the latest Git version (optimus-manager-git)

Optimus Manager (Client) version 1.4.3 (AUR version)

Your custom optimus-manager configuration file at /etc/optimus-manager/optimus-manager.conf, if you made one

"
[amd]
DRI=3
driver=modesetting
tearfree=
[intel]
DRI=3
accel=
driver=modesetting
modeset=no
tearfree=
[nvidia]
DPI=96
PAT=yes
allow_external_gpus=no
dynamic_power_management=fine
dynamic_power_management_memory_threshold=0
ignore_abi=yes
modeset=yes
options=overclocking, triple_buffer
[optimus]
auto_logout=yes
pci_power_control=yes
pci_remove=no
pci_reset=no
startup_auto_battery_mode=integrated
startup_auto_extpower_mode=hybrid
startup_mode=hybrid
switching=none
"
Logs
Run optimus-manager --status in a console, and if an error message appears, post it here. The message should also point you to a log path, attach it here as well. If there is no error message but you are still experiencing issues, grab the most recent files in /var/log/optimus-manager/switch/ and /var/log/optimus-manager/daemon/.
"
Config parsing : error in option "dynamic_power_management_memory_threshold" in section [nvidia] : non-blank integer value required
Optimus Manager (Client) version 1.4
Current GPU mode : hybrid
GPU mode requested for next login : no change
GPU at startup : hybrid
Temporary config path: no
"

Closing comment (2022-03-24T09:28:52Z): Actually this is a duplicate of #391, should be fixed on master already. Use optimus-manager-git until a new stable version is released.