Optimus-manager vs bumblebee

so rerun it again:
sudo pacman -S python-jaraco.context
are there any errors?
dont install again envycontrol, your system is messed up, we need to fix it first

Looks like no errors installing this:

[demo@manjaro Downloads]$ sudo pacman -S python-jaraco.context
warning: python-jaraco.context-4.1.2-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) python-jaraco.context-4.1.2-1

Total Installed Size:  0.02 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                           [#########################################] 100%
(1/1) checking package integrity                                         [#########################################] 100%
(1/1) loading package files                                              [#########################################] 100%
(1/1) checking for file conflicts                                        [#########################################] 100%
(1/1) checking available disk space                                      [#########################################] 100%
:: Processing package changes...
(1/1) reinstalling python-jaraco.context                                 [#########################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Refreshing PackageKit...

yes it looks like reinstalling fixes the:

warning: could not get file information for

so since a lot of packages are affected with it, try running this:
sudo pacman -Qqn | sudo pacman -S -
it will reinstall everyhting…

Whoa…
This kinds of scares me.
Is this really necessary?
Should I do some kind of system backup first? What would you suggest?
Can we focus in a some part of this first before we reinstall everything?

I do appreciate all the help you are giving here.
thanks
Dan

you are doing with this what you did with the:
sudo pacman -S python-jaraco.context command, but with all packages that are listed in sudo pacman -Qqn
you have a lot of packages affected, which is obvious, from when we tried running optimus, there was the issue with the dbus packages…
and i have no idea how to check what packages are messed up …
post output from:
sudo ldconfig
does it list anything?

[demo@manjaro Downloads]$ sudo ldconfig
[sudo] password for demo: 

good, it should be empty…
so try reinstalling only python:
sudo pacman -Qqn | grep python | sudo pacman -S -
since so far, it was all related to it…

[demo@manjaro Downloads]$ sudo pacman -Qqn | grep python | sudo pacman -S -
warning: dbus-python-1.2.18-3 is up to date -- reinstalling
warning: python-3.10.8-2 is up to date -- reinstalling
warning: python-appdirs-1.4.4-7 is up to date -- reinstalling
warning: python-attrs-22.1.0-1 is up to date -- reinstalling
warning: python-autocommand-2.2.1-1 is up to date -- reinstalling
warning: python-babel-2.10.3-1 is up to date -- reinstalling
warning: python-beautifulsoup4-4.11.1-1 is up to date -- reinstalling
warning: python-cairo-1.21.0-1 is up to date -- reinstalling
warning: python-certifi-2022.09.24-1 is up to date -- reinstalling
warning: python-cffi-1.15.1-1 is up to date -- reinstalling
warning: python-chardet-5.0.0-1 is up to date -- reinstalling
warning: python-click-8.1.3-1 is up to date -- reinstalling
warning: python-configobj-5.0.6.r110.g3e2f4cc-3 is up to date -- reinstalling
warning: python-cryptography-38.0.1-1 is up to date -- reinstalling
warning: python-cssselect-1.1.0-9 is up to date -- reinstalling
warning: python-dateutil-2.8.2-4 is up to date -- reinstalling
warning: python-distro-1.7.0-1 is up to date -- reinstalling
warning: python-dnspython-1:2.2.1-1 is up to date -- reinstalling
warning: python-docopt-0.6.2-11 is up to date -- reinstalling
warning: python-fabulous-0.4.0-3 is up to date -- reinstalling
warning: python-flask-2.2.2-1 is up to date -- reinstalling
warning: python-getkey-0.6.5-3 is up to date -- reinstalling
warning: python-gobject-3.42.2-1 is up to date -- reinstalling
warning: python-html5lib-1.1-11 is up to date -- reinstalling
warning: python-httplib2-0.20.4-1 is up to date -- reinstalling
warning: python-idna-3.4-1 is up to date -- reinstalling
warning: python-inflect-6.0.2-1 is up to date -- reinstalling
warning: python-itsdangerous-2.1.2-2 is up to date -- reinstalling
warning: python-jaraco.context-4.1.2-1 is up to date -- reinstalling
warning: python-jaraco.functools-3.5.2-1 is up to date -- reinstalling
warning: python-jaraco.text-3.10.0-1 is up to date -- reinstalling
warning: python-jarowinkler-1.2.3-1 is up to date -- reinstalling
warning: python-jedi-0.18.1-1 is up to date -- reinstalling
warning: python-jinja-1:3.1.2-2 is up to date -- reinstalling
warning: python-joblib-1.2.0-1 is up to date -- reinstalling
warning: python-keyutils-0.6-8 is up to date -- reinstalling
warning: python-levenshtein-0.20.7-1 is up to date -- reinstalling
warning: python-lxml-4.9.1-1 is up to date -- reinstalling
warning: python-manjaro-sdk-0.8-2 is up to date -- reinstalling
warning: python-markdown-3.4.1-2 is up to date -- reinstalling
warning: python-markdown-it-py-2.1.0-1 is up to date -- reinstalling
warning: python-markupsafe-2.1.1-1 is up to date -- reinstalling
warning: python-mdurl-0.1.2-1 is up to date -- reinstalling
warning: python-more-itertools-9.0.0-1 is up to date -- reinstalling
warning: python-natsort-8.2.0-1 is up to date -- reinstalling
warning: python-npyscreen-4.10.5-7 is up to date -- reinstalling
warning: python-numpy-1.23.4-1 is up to date -- reinstalling
warning: python-ordered-set-4.1.0-1 is up to date -- reinstalling
warning: python-packaging-21.3-1 is up to date -- reinstalling
warning: python-pandas-1.4.4-1 is up to date -- reinstalling
warning: python-parso-1:0.8.3-1 is up to date -- reinstalling
warning: python-pillow-9.3.0-1 is up to date -- reinstalling
warning: python-pillowfight-0.3.0-6 is up to date -- reinstalling
warning: python-pip-22.3-1 is up to date -- reinstalling
warning: python-ply-3.11-10 is up to date -- reinstalling
warning: python-psutil-5.9.3-1 is up to date -- reinstalling
warning: python-pybluez-0.23-4 is up to date -- reinstalling
warning: python-pycountry-22.3.5-1 is up to date -- reinstalling
warning: python-pycparser-2.21-3 is up to date -- reinstalling
warning: python-pycryptodomex-3.12.0-1 is up to date -- reinstalling
warning: python-pycups-2.0.1-5 is up to date -- reinstalling
warning: python-pycurl-7.45.1-1 is up to date -- reinstalling
warning: python-pydantic-1.10.2-1 is up to date -- reinstalling
warning: python-pydbus-0.6.0-9 is up to date -- reinstalling
warning: python-pyelftools-0.29-1 is up to date -- reinstalling
warning: python-pygments-2.13.0-1 is up to date -- reinstalling
warning: python-pyinotify-0.9.6-11 is up to date -- reinstalling
warning: python-pyocr-0.8.3-1 is up to date -- reinstalling
warning: python-pyopenssl-22.1.0-1 is up to date -- reinstalling
warning: python-pyparsing-3.0.9-1 is up to date -- reinstalling
warning: python-pyqt5-5.15.7-2 is up to date -- reinstalling
warning: python-pyqt5-sip-12.11.0-1 is up to date -- reinstalling
warning: python-pysmbc-1.0.23-3 is up to date -- reinstalling
warning: python-pytz-2022.1-1 is up to date -- reinstalling
warning: python-pyxdg-0.28-1 is up to date -- reinstalling
warning: python-rapidfuzz-2.10.2-1 is up to date -- reinstalling
warning: python-reportlab-3.6.11-1 is up to date -- reinstalling
warning: python-requests-2.28.1-1 is up to date -- reinstalling
warning: python-scikit-learn-1.1.2-1 is up to date -- reinstalling
warning: python-scipy-1.9.3-1 is up to date -- reinstalling
warning: python-setuptools-1:63.4.3-1 is up to date -- reinstalling
warning: python-shiboken2-5.15.6-1 is up to date -- reinstalling
warning: python-simplebayes-1.5.8-1 is up to date -- reinstalling
warning: python-simplejson-3.17.6-4 is up to date -- reinstalling
warning: python-six-1.16.0-6 is up to date -- reinstalling
warning: python-soupsieve-2.3.2.post1-1 is up to date -- reinstalling
warning: python-systemd-235-1 is up to date -- reinstalling
warning: python-threadpoolctl-3.1.0-1 is up to date -- reinstalling
warning: python-tomli-2.0.1-1 is up to date -- reinstalling
warning: python-trove-classifiers-2022.10.19-1 is up to date -- reinstalling
warning: python-typing_extensions-4.4.0-1 is up to date -- reinstalling
warning: python-uc-micro-py-1.0.1-3 is up to date -- reinstalling
warning: python-urllib3-1.26.12-1 is up to date -- reinstalling
warning: python-validate-pyproject-0.10.1-1 is up to date -- reinstalling
warning: python-webencodings-0.5.1-9 is up to date -- reinstalling
warning: python-websocket-client-1.4.1-1 is up to date -- reinstalling
warning: python-werkzeug-2.2.2-1 is up to date -- reinstalling
warning: python-wheel-0.37.1-1 is up to date -- reinstalling
warning: python-whoosh-2.7.4-9 is up to date -- reinstalling
warning: python-wxpython-1:4.1.1-3 is up to date -- reinstalling
warning: python-yaml-6.0-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (101) dbus-python-1.2.18-3  python-3.10.8-2  python-appdirs-1.4.4-7  python-attrs-22.1.0-1
               python-autocommand-2.2.1-1  python-babel-2.10.3-1  python-beautifulsoup4-4.11.1-1  python-cairo-1.21.0-1
               python-certifi-2022.09.24-1  python-cffi-1.15.1-1  python-chardet-5.0.0-1  python-click-8.1.3-1
               python-configobj-5.0.6.r110.g3e2f4cc-3  python-cryptography-38.0.1-1  python-cssselect-1.1.0-9
               python-dateutil-2.8.2-4  python-distro-1.7.0-1  python-dnspython-1:2.2.1-1  python-docopt-0.6.2-11
               python-fabulous-0.4.0-3  python-flask-2.2.2-1  python-getkey-0.6.5-3  python-gobject-3.42.2-1
               python-html5lib-1.1-11  python-httplib2-0.20.4-1  python-idna-3.4-1  python-inflect-6.0.2-1
               python-itsdangerous-2.1.2-2  python-jaraco.context-4.1.2-1  python-jaraco.functools-3.5.2-1
               python-jaraco.text-3.10.0-1  python-jarowinkler-1.2.3-1  python-jedi-0.18.1-1  python-jinja-1:3.1.2-2
               python-joblib-1.2.0-1  python-keyutils-0.6-8  python-levenshtein-0.20.7-1  python-lxml-4.9.1-1
               python-manjaro-sdk-0.8-2  python-markdown-3.4.1-2  python-markdown-it-py-2.1.0-1
               python-markupsafe-2.1.1-1  python-mdurl-0.1.2-1  python-more-itertools-9.0.0-1  python-natsort-8.2.0-1
               python-npyscreen-4.10.5-7  python-numpy-1.23.4-1  python-ordered-set-4.1.0-1  python-packaging-21.3-1
               python-pandas-1.4.4-1  python-parso-1:0.8.3-1  python-pillow-9.3.0-1  python-pillowfight-0.3.0-6
               python-pip-22.3-1  python-ply-3.11-10  python-psutil-5.9.3-1  python-pybluez-0.23-4
               python-pycountry-22.3.5-1  python-pycparser-2.21-3  python-pycryptodomex-3.12.0-1  python-pycups-2.0.1-5
               python-pycurl-7.45.1-1  python-pydantic-1.10.2-1  python-pydbus-0.6.0-9  python-pyelftools-0.29-1
               python-pygments-2.13.0-1  python-pyinotify-0.9.6-11  python-pyocr-0.8.3-1  python-pyopenssl-22.1.0-1
               python-pyparsing-3.0.9-1  python-pyqt5-5.15.7-2  python-pyqt5-sip-12.11.0-1  python-pysmbc-1.0.23-3
               python-pytz-2022.1-1  python-pyxdg-0.28-1  python-rapidfuzz-2.10.2-1  python-reportlab-3.6.11-1
               python-requests-2.28.1-1  python-scikit-learn-1.1.2-1  python-scipy-1.9.3-1  python-setuptools-1:63.4.3-1
               python-shiboken2-5.15.6-1  python-simplebayes-1.5.8-1  python-simplejson-3.17.6-4  python-six-1.16.0-6
               python-soupsieve-2.3.2.post1-1  python-systemd-235-1  python-threadpoolctl-3.1.0-1  python-tomli-2.0.1-1
               python-trove-classifiers-2022.10.19-1  python-typing_extensions-4.4.0-1  python-uc-micro-py-1.0.1-3
               python-urllib3-1.26.12-1  python-validate-pyproject-0.10.1-1  python-webencodings-0.5.1-9
               python-websocket-client-1.4.1-1  python-werkzeug-2.2.2-1  python-wheel-0.37.1-1  python-whoosh-2.7.4-9
               python-wxpython-1:4.1.1-3  python-yaml-6.0-1

Total Download Size:    61.92 MiB
Total Installed Size:  529.69 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 python-pandas-1.4.4-1-x86_64                 10.2 MiB  1210 KiB/s 00:09 [#########################################] 100%
 python-wxpython-1:4.1.1-3-x86_64              8.9 MiB  1072 KiB/s 00:08 [#########################################] 100%
 python-scikit-learn-1.1.2-1-x86_64            6.2 MiB   899 KiB/s 00:07 [#########################################] 100%
 python-babel-2.10.3-1-any                     6.1 MiB  1229 KiB/s 00:05 [#########################################] 100%
 python-pyqt5-5.15.7-2-x86_64                  4.4 MiB  1201 KiB/s 00:04 [#########################################] 100%
 python-pycountry-22.3.5-1-any                 4.0 MiB  1250 KiB/s 00:03 [#########################################] 100%
 dbus-python-1.2.18-3-x86_64                   2.8 MiB  1032 KiB/s 00:03 [#########################################] 100%
 python-reportlab-3.6.11-1-x86_64              2.4 MiB   820 KiB/s 00:03 [#########################################] 100%
 python-pygments-2.13.0-1-any                  2.1 MiB  1296 KiB/s 00:02 [#########################################] 100%
 python-pydantic-1.10.2-1-x86_64            1865.1 KiB  1221 KiB/s 00:02 [#########################################] 100%
 python-pycryptodomex-3.12.0-1-x86_64       1354.7 KiB   923 KiB/s 00:01 [#########################################] 100%
 python-lxml-4.9.1-1-x86_64                 1162.3 KiB   915 KiB/s 00:01 [#########################################] 100%
 python-jedi-0.18.1-1-any                   1032.7 KiB   174 KiB/s 00:06 [#########################################] 100%
 python-rapidfuzz-2.10.2-1-x86_64           1011.9 KiB   801 KiB/s 00:01 [#########################################] 100%
 python-cryptography-38.0.1-1-x86_64         824.4 KiB   208 KiB/s 00:04 [#########################################] 100%
 python-whoosh-2.7.4-9-any                   664.4 KiB   409 KiB/s 00:02 [#########################################] 100%
 python-fabulous-0.4.0-3-any                 584.4 KiB   198 KiB/s 00:03 [#########################################] 100%
 python-joblib-1.2.0-1-any                   406.4 KiB   316 KiB/s 00:01 [#########################################] 100%
 python-werkzeug-2.2.2-1-any                 337.8 KiB   270 KiB/s 00:01 [#########################################] 100%
 python-dnspython-1:2.2.1-1-any              309.0 KiB   200 KiB/s 00:02 [#########################################] 100%
 python-dateutil-2.8.2-4-any                 289.6 KiB   280 KiB/s 00:01 [#########################################] 100%
 python-pyelftools-0.29-1-any                274.5 KiB   369 KiB/s 00:01 [#########################################] 100%
 python-gobject-3.42.2-1-x86_64              254.0 KiB   374 KiB/s 00:01 [#########################################] 100%
 python-chardet-5.0.0-1-any                  227.6 KiB   148 KiB/s 00:02 [#########################################] 100%
 python-cffi-1.15.1-1-x86_64                 222.3 KiB   227 KiB/s 00:01 [#########################################] 100%
 python-jinja-1:3.1.2-2-any                  218.0 KiB   215 KiB/s 00:01 [#########################################] 100%
 python-html5lib-1.1-11-any                  211.5 KiB   171 KiB/s 00:01 [#########################################] 100%
 python-npyscreen-4.10.5-7-any               210.8 KiB   112 KiB/s 00:02 [#########################################] 100%
 python-beautifulsoup4-4.11.1-1-any          204.6 KiB   111 KiB/s 00:02 [#########################################] 100%
 python-pycparser-2.21-3-any                 194.3 KiB   369 KiB/s 00:01 [#########################################] 100%
 python-urllib3-1.26.12-1-any                186.2 KiB   552 KiB/s 00:00 [#########################################] 100%
 python-shiboken2-5.15.6-1-x86_64            177.4 KiB   138 KiB/s 00:01 [#########################################] 100%
 python-yaml-6.0-1-x86_64                    173.1 KiB  85.0 KiB/s 00:02 [#########################################] 100%
 python-parso-1:0.8.3-1-any                  157.9 KiB  67.0 KiB/s 00:02 [#########################################] 100%
 python-click-8.1.3-1-any                    154.8 KiB   167 KiB/s 00:01 [#########################################] 100%
 python-pyparsing-3.0.9-1-any                152.6 KiB   150 KiB/s 00:01 [#########################################] 100%
 python-flask-2.2.2-1-any                    141.3 KiB   207 KiB/s 00:01 [#########################################] 100%
 python-markdown-3.4.1-2-any                 126.9 KiB   355 KiB/s 00:00 [#########################################] 100%
 python-httplib2-0.20.4-1-any.pkg.tar.zst failed to download
 Total (39/82)                                61.9 MiB   579 KiB/s 01:49 [#########################################] 100%
error: failed retrieving file 'python-httplib2-0.20.4-1-any.pkg.tar.zst' from mirrors.manjaro.org : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.

refresh your mirrors:
sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu
and run it again:
sudo pacman -Qqn | grep python | sudo pacman -S -

It seems like there was allot of warnings but everything installed.
I didn’t list everything here.
Let me know what you want to do next.

warning: could not get file information for usr/lib/python3.10/site-packages/yaml/__pycache__/tokens.cpython-310.pyc
warning: could not get file information for usr/lib/python3.10/site-packages/yaml/_yaml.cpython-310-x86_64-linux-gnu.so
warning: could not get file information for usr/lib/python3.10/site-packages/yaml/composer.py
warning: could not get file information for usr/lib/python3.10/site-packages/yaml/constructor.py
warning: could not get file information for usr/lib/python3.10/site-packages/yaml/cyaml.py
warning: could not get file information for usr/lib/python3.10/site-packages/yaml/dumper.py
warning: could not get file information for usr/lib/python3.10/site-packages/yaml/emitter.py
warning: could not get file information for usr/lib/python3.10/site-packages/yaml/error.py
warning: could not get file information for usr/lib/python3.10/site-packages/yaml/events.py
warning: could not get file information for usr/lib/python3.10/site-packages/yaml/loader.py
warning: could not get file information for usr/lib/python3.10/site-packages/yaml/nodes.py
warning: could not get file information for usr/lib/python3.10/site-packages/yaml/parser.py
warning: could not get file information for usr/lib/python3.10/site-packages/yaml/reader.py
warning: could not get file information for usr/lib/python3.10/site-packages/yaml/representer.py
warning: could not get file information for usr/lib/python3.10/site-packages/yaml/resolver.py
warning: could not get file information for usr/lib/python3.10/site-packages/yaml/scanner.py
warning: could not get file information for usr/lib/python3.10/site-packages/yaml/serializer.py
warning: could not get file information for usr/lib/python3.10/site-packages/yaml/tokens.py
:: Processing package changes...
(  1/101) reinstalling dbus-python                                       [#########################################] 100%
(  2/101) reinstalling python                                            [#########################################] 100%
(  3/101) reinstalling python-appdirs                                    [#########################################] 100%
(  4/101) reinstalling python-attrs                                      [#########################################] 100%
(  5/101) reinstalling python-autocommand                                [#########################################] 100%
(  6/101) reinstalling python-pytz                                       [#########################################] 100%
(  7/101) reinstalling python-babel                                      [#########################################] 100%
(  8/101) reinstalling python-soupsieve                                  [#########################################] 100%
(  9/101) reinstalling python-beautifulsoup4                             [#########################################] 100%
( 10/101) reinstalling python-cairo                                      [#########################################] 100%
( 11/101) reinstalling python-certifi                                    [#########################################] 100%
( 12/101) reinstalling python-ply                                        [#########################################] 100%
( 13/101) reinstalling python-pycparser                                  [#########################################] 100%
( 14/101) reinstalling python-cffi                                       [#########################################] 100%
( 15/101) reinstalling python-chardet                                    [#########################################] 100%
( 16/101) reinstalling python-click                                      [#########################################] 100%
( 17/101) reinstalling python-six                                        [#########################################] 100%
( 18/101) reinstalling python-configobj                                  [#########################################] 100%
( 19/101) reinstalling python-cryptography                               [#########################################] 100%
( 20/101) reinstalling python-cssselect                                  [#########################################] 100%
( 21/101) reinstalling python-dateutil                                   [#########################################] 100%
( 22/101) reinstalling python-more-itertools                             [#########################################] 100%
( 23/101) reinstalling python-jaraco.functools                           [#########################################] 100%
( 24/101) reinstalling python-jaraco.context                             [#########################################] 100%
( 25/101) reinstalling python-typing_extensions                          [#########################################] 100%
( 26/101) reinstalling python-pydantic                                   [#########################################] 100%
( 27/101) reinstalling python-inflect                                    [#########################################] 100%
( 28/101) reinstalling python-jaraco.text                                [#########################################] 100%
( 29/101) reinstalling python-ordered-set                                [#########################################] 100%
( 30/101) reinstalling python-pyparsing                                  [#########################################] 100%
( 31/101) reinstalling python-packaging                                  [#########################################] 100%
( 32/101) reinstalling python-tomli                                      [#########################################] 100%
( 33/101) reinstalling python-trove-classifiers                          [#########################################] 100%
( 34/101) reinstalling python-validate-pyproject                         [#########################################] 100%
( 35/101) reinstalling python-setuptools                                 [#########################################] 100%
( 36/101) reinstalling python-distro                                     [#########################################] 100%
( 37/101) reinstalling python-dnspython                                  [#########################################] 100%
( 38/101) reinstalling python-docopt                                     [#########################################] 100%
( 39/101) reinstalling python-fabulous                                   [#########################################] 100%
( 40/101) reinstalling python-markupsafe                                 [#########################################] 100%
( 41/101) reinstalling python-werkzeug                                   [#########################################] 100%
( 42/101) reinstalling python-jinja                                      [#########################################] 100%
( 43/101) reinstalling python-itsdangerous                               [#########################################] 100%
( 44/101) reinstalling python-flask                                      [#########################################] 100%
( 45/101) reinstalling python-getkey                                     [#########################################] 100%
( 46/101) reinstalling python-gobject                                    [#########################################] 100%
( 47/101) reinstalling python-webencodings                               [#########################################] 100%
( 48/101) reinstalling python-html5lib                                   [#########################################] 100%
( 49/101) reinstalling python-httplib2                                   [#########################################] 100%
( 50/101) reinstalling python-idna                                       [#########################################] 100%
( 51/101) reinstalling python-jarowinkler                                [#########################################] 100%
( 52/101) reinstalling python-parso                                      [#########################################] 100%
( 53/101) reinstalling python-jedi                                       [#########################################] 100%
( 54/101) reinstalling python-joblib                                     [#########################################] 100%
( 55/101) reinstalling python-keyutils                                   [#########################################] 100%
( 56/101) reinstalling python-rapidfuzz                                  [#########################################] 100%
( 57/101) reinstalling python-levenshtein                                [#########################################] 100%
( 58/101) reinstalling python-lxml                                       [#########################################] 100%
( 59/101) reinstalling python-systemd                                    [#########################################] 100%
( 60/101) reinstalling python-npyscreen                                  [#########################################] 100%
( 61/101) reinstalling python-urllib3                                    [#########################################] 100%
( 62/101) reinstalling python-requests                                   [#########################################] 100%
( 63/101) reinstalling python-manjaro-sdk                                [#########################################] 100%
( 64/101) reinstalling python-markdown                                   [#########################################] 100%
( 65/101) reinstalling python-uc-micro-py                                [#########################################] 100%
( 66/101) reinstalling python-mdurl                                      [#########################################] 100%
( 67/101) reinstalling python-markdown-it-py                             [#########################################] 100%
( 68/101) reinstalling python-natsort                                    [#########################################] 100%
( 69/101) reinstalling python-numpy                                      [#########################################] 100%
( 70/101) reinstalling python-pandas                                     [#########################################] 100%
( 71/101) reinstalling python-pillow                                     [#########################################] 100%
( 72/101) reinstalling python-pillowfight                                [#########################################] 100%
( 73/101) reinstalling python-wheel                                      [#########################################] 100%
( 74/101) reinstalling python-pip                                        [#########################################] 100%
( 75/101) reinstalling python-psutil                                     [#########################################] 100%
( 76/101) reinstalling python-pybluez                                    [#########################################] 100%
( 77/101) reinstalling python-pycountry                                  [#########################################] 100%
( 78/101) reinstalling python-pycryptodomex                              [#########################################] 100%
( 79/101) reinstalling python-pycups                                     [#########################################] 100%
( 80/101) reinstalling python-pycurl                                     [#########################################] 100%
( 81/101) reinstalling python-pydbus                                     [#########################################] 100%
( 82/101) reinstalling python-pyelftools                                 [#########################################] 100%
( 83/101) reinstalling python-pygments                                   [#########################################] 100%
( 84/101) reinstalling python-pyinotify                                  [#########################################] 100%
( 85/101) reinstalling python-pyocr                                      [#########################################] 100%
( 86/101) reinstalling python-pyopenssl                                  [#########################################] 100%
( 87/101) reinstalling python-pyqt5-sip                                  [#########################################] 100%
( 88/101) reinstalling python-pyqt5                                      [#########################################] 100%
( 89/101) reinstalling python-pysmbc                                     [#########################################] 100%
( 90/101) reinstalling python-pyxdg                                      [#########################################] 100%
( 91/101) reinstalling python-reportlab                                  [#########################################] 100%
( 92/101) reinstalling python-scipy                                      [#########################################] 100%
( 93/101) reinstalling python-threadpoolctl                              [#########################################] 100%
( 94/101) reinstalling python-scikit-learn                               [#########################################] 100%
( 95/101) reinstalling python-shiboken2                                  [#########################################] 100%
( 96/101) reinstalling python-simplebayes                                [#########################################] 100%
( 97/101) reinstalling python-simplejson                                 [#########################################] 100%
( 98/101) reinstalling python-websocket-client                           [#########################################] 100%
( 99/101) reinstalling python-whoosh                                     [#########################################] 100%
(100/101) reinstalling python-wxpython                                   [#########################################] 100%
(101/101) reinstalling python-yaml                                       [#########################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Refreshing PackageKit...

you had there the same warnings as previously… so its very likely that more packages are affected…
try reinstalling some other package, non related to python, like vlc, if you have it installed:
sudo pacman -S vlc
and check if it has also the warnings:

VLC didn’t have any warnings.
I assume I shouldn’t get any warnings reinstalling anything.
I will do some selective reinstalling and then report back here with what I find.

so it was probably related only to python, very interesting…
but yes, do some selective reinstalling of 3-4 packages, and see if everything is ok…

Looks like this went through without an issue.
Should I remove this and go back to optimus or continue with this?

[demo@manjaro Downloads]$ pamac build envycontrol
Preparing...
Cloning envycontrol build files...
Generating envycontrol information...
Checking envycontrol dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  envycontrol  2.1.1-1    AUR


Edit build files : [e] 
Apply transaction ? [e/y/N] y


Building envycontrol...
==> Making package: envycontrol 2.1.1-1 (Sun 30 Oct 2022 01:17:56 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating envycontrol git repo...
==> Validating source files with sha256sums...
    envycontrol ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of envycontrol git repo...
Cloning into 'envycontrol'...
done.
Switched to a new branch 'makepkg'
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
running install
/usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running build
running build_py
creating build
creating build/lib
copying envycontrol.py -> build/lib
running install_lib
creating /var/tmp/pamac-build-demo/envycontrol/pkg/envycontrol/usr
creating /var/tmp/pamac-build-demo/envycontrol/pkg/envycontrol/usr/lib
creating /var/tmp/pamac-build-demo/envycontrol/pkg/envycontrol/usr/lib/python3.10
creating /var/tmp/pamac-build-demo/envycontrol/pkg/envycontrol/usr/lib/python3.10/site-packages
copying build/lib/envycontrol.py -> /var/tmp/pamac-build-demo/envycontrol/pkg/envycontrol/usr/lib/python3.10/site-packages
byte-compiling /var/tmp/pamac-build-demo/envycontrol/pkg/envycontrol/usr/lib/python3.10/site-packages/envycontrol.py to envycontrol.cpython-310.pyc
writing byte-compilation script '/tmp/tmpdphy4n3i.py'
/usr/bin/python /tmp/tmpdphy4n3i.py
removing /tmp/tmpdphy4n3i.py
running install_egg_info
running egg_info
creating envycontrol.egg-info
writing envycontrol.egg-info/PKG-INFO
writing dependency_links to envycontrol.egg-info/dependency_links.txt
writing entry points to envycontrol.egg-info/entry_points.txt
writing top-level names to envycontrol.egg-info/top_level.txt
writing manifest file 'envycontrol.egg-info/SOURCES.txt'
reading manifest file 'envycontrol.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'envycontrol.egg-info/SOURCES.txt'
Copying envycontrol.egg-info to /var/tmp/pamac-build-demo/envycontrol/pkg/envycontrol/usr/lib/python3.10/site-packages/envycontrol-2.1.1-py3.10.egg-info
running install_scripts
Installing envycontrol script to /var/tmp/pamac-build-demo/envycontrol/pkg/envycontrol/usr/bin
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "envycontrol"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: envycontrol 2.1.1-1 (Sun 30 Oct 2022 01:17:59 PM EDT)
==> Cleaning up...

Checking keyring...                                                                                                 [1/1]
Checking integrity...                                                                                               [1/1]
Loading packages files...                                                                                           [1/1]
Checking file conflicts...                                                                                          [1/1]
Checking available disk space...                                                                                    [1/1]
Installing envycontrol (2.1.1-1)...                                                                                 [1/1]
Running post-transaction hooks...
Arming ConditionNeedsUpdate...                                                                                      [1/2]
Refreshing PackageKit...                                                                                            [2/2]
Transaction successfully finished.

and the selective reinstalling was without any errors? …
so if you already installed envycontrol, and want to use only nvidia, so use envycontrol:
sudo envycontrol -s nvidia
and reboot, and finger crossed, that you dont end up with a blackscreen… :sunglasses:

I thought I would reinstall packages as I see errors when doing other installs or updates.
I need to figure out what to reinstall without wasting time installing things I don’t need to.
Here is the result of using the envycontrol

[demo@manjaro Downloads]$ sudo envycontrol -s nvidia
[sudo] password for demo: 
Error: switching directly from integrated to Nvidia mode is not supported
Try switching to hybrid mode first!

what errors do you see?
figuring out whats broken, would probably wasted more time, then just reinstall everything with the command posted above…


hmm, why does it detect that you are on integrated? … you should be on hybrid by default…

sudo envycontrol -s hybrid

I don’t see any errors at the moment.

I set it to hybrid. It asked about power control and I said yes.
I rebooted and tried to change to nvidia and get this:

[demo@manjaro Downloads]$ sudo envycontrol -s nvidia
[sudo] password for demo: 
Error: switching directly from integrated to Nvidia mode is not supported
Try switching to hybrid mode first!

post output from:
envycontrol --query
inxi -G

[demo@manjaro Downloads]$ envycontrol --query
Current graphics mode is: hybrid
[demo@manjaro Downloads]$ inxi -G
Graphics:
  Device-1: Intel CometLake-U GT2 [UHD Graphics] driver: i915 v: kernel
  Device-2: NVIDIA GP108M [GeForce MX250] driver: nvidia v: 520.56.06
  Device-3: Chicony HP Wide Vision FHD Camera type: USB driver: uvcvideo
  Display: x11 server: X.Org v: 21.1.4 driver: X: loaded: modesetting
    dri: iris gpu: i915 resolution: 3840x2160~60Hz
  OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2) v: 4.6 Mesa 22.2.1