Package Details: optimus-manager 1.5-4

Git Clone URL: https://aur.archlinux.org/optimus-manager.git (read-only, click to copy)
Package Base: optimus-manager
Description: Management utility to handle GPU switching for Optimus laptops
Upstream URL: https://github.com/Askannz/optimus-manager
Licenses: MIT
Conflicts: optimus-manager-git
Provides: optimus-manager
Submitter: Askannz
Maintainer: Askannz
Last Packager: Askannz
Votes: 124
Popularity: 1.08
First Submitted: 2018-11-17 05:42 (UTC)
Last Updated: 2023-07-29 00:30 (UTC)

Pinned Comments

Askannz commented on 2023-06-18 07:37 (UTC)

Announcement about the current state of optimus-manager and the future of its development: https://github.com/Askannz/optimus-manager/issues/543

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 Next › Last »

lipnitsk commented on 2021-12-13 19:41 (UTC) (edited on 2021-12-13 20:00 (UTC) by lipnitsk)

Askannz can you bump the package version to force a rebuild? Re-running makepkg -sri fixed the GUI boot issue for me after the latest system upgrade.

Error details:

Dec 13 11:31:27 hostname lightdm[1793]: Traceback (most recent call last):
Dec 13 11:31:27 hostname lightdm[1793]:   File "/sbin/prime-offload", line 33, in <module>
Dec 13 11:31:27 hostname lightdm[1793]:     sys.exit(load_entry_point('optimus-manager==1.4', 'console_scripts', 'prime-offload')())
Dec 13 11:31:27 hostname lightdm[1793]:   File "/sbin/prime-offload", line 22, in importlib_load_entry_point
Dec 13 11:31:27 hostname lightdm[1793]:     for entry_point in distribution(dist_name).entry_points
Dec 13 11:31:27 hostname lightdm[1793]:   File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 919, in distribution
Dec 13 11:31:27 hostname lightdm[1793]:     return Distribution.from_name(distribution_name)
Dec 13 11:31:27 hostname lightdm[1793]:   File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 518, in from_name
Dec 13 11:31:27 hostname lightdm[1793]:     raise PackageNotFoundError(name)
Dec 13 11:31:27 hostname lightdm[1793]: importlib.metadata.PackageNotFoundError: No package metadata was found for optimus-manager

nimra commented on 2021-12-13 06:20 (UTC)

This seems to be broken and needs manual rebuild after python upgrade to 3.10 in core

porzione commented on 2021-12-01 07:47 (UTC)

@Spekham2013 this is because of changes in mesa-demos pkg

https://github.com/archlinux/svntogit-packages/commit/1c8fcc676eaa3472daaab0070eaa055cb15ef141#diff-3e341d2d9c67be01819b25b25d5e53ea3cdf3a38d28846cda85a195eb9b7203a

Spekham2013 commented on 2021-12-01 07:40 (UTC)

Had problems with optimus-manager switching this morning. For some reason glxinfo wasn't installed. Fixed by installing mesa-utils. Missing dependency?

Askannz commented on 2021-03-01 22:30 (UTC)

Fixed, apologies for the inconvenience.

chepito commented on 2021-03-01 12:09 (UTC)

Can also confirm that the removal of the suggested line fixes the build.

ixevix commented on 2021-03-01 08:24 (UTC)

Can confirm the removal of install -Dm755 config/xsetup-intel.sh "$pkgdir/etc/optimus-manager/xsetup-intel.sh" fixes the build.

siliconmeadow commented on 2021-02-28 21:47 (UTC)

I think Kr1ss and konicks are right. This worked for me:

diff --git a/PKGBUILD b/PKGBUILD
index e95feb4..83033de 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -63,7 +63,6 @@ package() {
   install -Dm644 config/xorg/hybrid-mode/integrated-gpu.conf "$pkgdir/etc/optimus-manager/xorg/hybrid-mode/integrated-gpu.conf"
   install -Dm644 config/xorg/hybrid-mode/nvidia-gpu.conf "$pkgdir/etc/optimus-manager/xorg/hybrid-mode/nvidia-gpu.conf"

-  install -Dm755 config/xsetup-intel.sh "$pkgdir/etc/optimus-manager/xsetup-intel.sh"
   install -Dm755 config/xsetup-nvidia.sh "$pkgdir/etc/optimus-manager/xsetup-nvidia.sh"
   install -Dm755 config/xsetup-hybrid.sh "$pkgdir/etc/optimus-manager/xsetup-hybrid.sh"
   install -Dm755 config/xsetup-integrated.sh "$pkgdir/etc/optimus-manager/xsetup-integrated.sh"

konicks commented on 2021-02-28 11:50 (UTC)

config/xsetup-intel.sh seems to be gone in the actual package but not the PKGBUILD function, please patch it as in it's current form the package is un-buildable

Kr1ss commented on 2021-02-28 09:51 (UTC) (edited on 2021-02-28 10:00 (UTC) by Kr1ss)

I think

install -Dm755 config/xsetup-intel.sh "$pkgdir/etc/optimus-manager/xsetup-intel.sh"

in package()

needs to be removed, as that file has been renamed in the new release.

EDIT/