optimus-manager: Optimus manager crashes when system upgrades to python 3.9
After system upgrade, on Arch optimus manager crashes, so any GUI is not working. I needed to reinstall optimus-manager to get it working again. Its becouse Arch upgraded to python 3.9 and optimus manager doesnt know it, and looks at 3.8 libraries.
Im sharing this becouse there can by other issues with this problem, when only whots needed is reintall. Maybe push a update to avoid that? Also journalctl -xe, or dmesg didnt show anything related to this. a bit strange. But the status of services says the problem.
journalctl -u optimus-manager -xe:
gru 02 21:38:27 ArchSzybet python3[855]: /usr/bin/python3: Error while finding module specification for 'optimus_manager.hooks.post_da> gru 02 21:38:27 ArchSzybet systemd[1]: optimus-manager.service: Control process exited, code=exited, status=1/FAILURE ░░ Subject: Proces jednostki zakończył działanie ░░ Defined-By: systemd ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel ░░ ░░ Proces ExecStopPost= należący do jednostki optimus-manager.service zakończył działanie. ░░ ░░ Kod wyjścia procesu: „exited”, jego stan wyjścia: 1.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 30 (8 by maintainers)
Please rebuild the package from the AUR. It will then use Python 3.9 instead of Python 3.8. I faced this same error, and rebuilding the package fixed it.
Credits: LIN_X42’s comment on the AUR page for optimus-manager.
I had to chroot into my system, disable lightdm, and update the system to be able to get xorg working properly. Once I could log into a graphical session, I reinstalled optimus manager, cleaned up stale system config files (optimus-manager --clean) and then enabled lightdm again. This worked for me.
This seems to affect all AUR packages that depend on the AUR. I wrote a little script to update all of these pacakges (not just optimus-manager). This way you don’t have to rebuild a bunch of AUR packages that don’t need to be rebuilt:
I might write a hook to do this automatically, I’ll comment here again if that works out
Thx for getting back.
yay -R optimus-manager; yay -S optimus-manager
does not actually rebuild the package. It uninstalls it and reinstalls the old package from your pacman cache.I think
yay
has a--rebuild
flag or something similar though. Not really sure what it exactly is, because I’m not a yay user. Might also be--cleanbuild
, check the docs.I used
yay -R optimus-manager
followed byyay -S optimus-manager
, when installing I chose to recompile everything from source, which yay does by removing the cached version and by reinstalling.Now my computer seems to be in Intel mode. I can read the GPU temperature sensor but
nvidia-settings
is not working.This is the log of optimus manager (which is similar to the one posted above):
This log makes no sense as there are no processes holding the GPU and I have manually and successfully ran:
> sudo modprobe -r nvidia_drm nvidia_modeset nvidia_uvm nvidia
To be honest, I’d like to know how to help with this because this tool is incredibly helpful to me and I thank the developer for all the work!
found this after 2hours of debugging. I was suspecting Xorg for no GUI or diplay after update but it was Optimus. Automatic rebuild or some other fixes will be appreciated.
It took me a few days to figure out why updating (a whole bunch of stuff including) python broke my entire system. It would be pretty cool if this didn’t happen in the future.