Package Details: optimus-manager-qt 1.5.1-1

Git Clone URL: (read-only, click to copy)
Package Base: optimus-manager-qt
Description: A Qt interface for Optimus Manager that allows to configure and switch GPUs on Optimus laptops using the tray menu
Upstream URL:
Keywords: Intel Nvidia Optimus Qt
Licenses: GPL3
Submitter: Shatur
Maintainer: Shatur
Last Packager: Shatur
Votes: 30
Popularity: 5.65
First Submitted: 2019-02-27 10:13
Last Updated: 2020-05-16 18:26

Pinned Comments

Shatur commented on 2019-02-27 10:15

If you are using Plasma, it is recommended to replace in PKGBUILD _plasma=false with _plasma=true to use additional KDE API feautures (this also adds additional dependencies).

Latest Comments

1 2 3 Next › Last »

nintendo424 commented on 2020-05-12 00:10

@shatur, it was being hidden by the system tray. Noob mistake on my part. Thank you for your help. :)

Shatur commented on 2020-05-12 00:05

@nintendo424, why do you launch the GUI application with sudo? I think this can be the root of the problem.

Shatur commented on 2019-12-26 10:34

@matterhorn, @gflegar, done!

Shatur commented on 2019-12-25 21:19

@matterhorn, @gflegar, thanks! This is due to the X11 macro conflict and the new Enum that appeared in this version of Qt. I will fix it, stay tuned for updates.

matterhorn commented on 2019-12-25 20:37

@gflegar I too ran into this problem:

g++ -c -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQAPPLICATION_CLASS=QApplication -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Isrc/third-party/singleapplication -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtX11Extras -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtDBus -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtCore -I. -I. -I/usr/lib/qt/mkspecs/linux-g++ -o optimusmanager.o src/optimusmanager.cpp
In file included from /usr/include/X11/Xlib.h:44,
                 from /usr/include/X11/extensions/Xrender.h:28,
                 from /usr/include/X11/extensions/Xrandr.h:33,
                 from src/x11deleters.h:4,
                 from src/optimusmanager.cpp:26:
/usr/include/qt/QtWidgets/qactiongroup.h:64:9: error: expected identifier before numeric constant
   64 |         None,
      |         ^~~~

It seems to be a conflict between the X11 headers (Xlib.h) and QT headers triggered by the order they are included. I managed to work around it with a patch to include all QT headers first, then the project headers that pull in X11, though it might only be necessary to move x11deleters.h:

--- a/src/optimusmanager.cpp    2019-12-25 15:26:34.768692953 -0500
+++ b/src/optimusmanager.cpp    2019-12-25 15:26:56.472464833 -0500
@@ -18,14 +18,6 @@

-#include "optimusmanager.h"
-#include "appsettings.h"
-#include "settingsdialog.h"
-#include "singleapplication.h"
-#include "optimussettings.h"
-#include "x11deleters.h"
-#include "session.h"
 #include <QX11Info>
 #include <QProcess>
 #include <QFileInfo>
@@ -40,6 +32,14 @@
 #include <QSystemTrayIcon>

+#include "optimusmanager.h"
+#include "appsettings.h"
+#include "settingsdialog.h"
+#include "singleapplication.h"
+#include "optimussettings.h"
+#include "x11deleters.h"
+#include "session.h"
 OptimusManager::OptimusManager(QObject *parent)
     : QObject(parent)
     , m_contextMenu(new QMenu)

gflegar commented on 2019-12-25 10:44

I'm getting build errors when trying to update this:

/usr/include/qt/QtWidgets/qactiongroup.h:64:9: error: expected identifier before numeric constant
   64 |         None,
      |         ^~~~

Probably has something to do with the new QT 5.14 release.

dartheian commented on 2019-12-05 17:46

@Shatur I know, maybe something went wrong or those were added after my first try... Now everything works fine :)

Shatur commented on 2019-12-05 12:28

@dartheian, this package already has these dependencies.

dartheian commented on 2019-12-05 11:43

I solved it by installing the 'qt5-base' package explicitly. Same for 'qt5-svg'.

Shatur commented on 2019-12-01 01:30

@indarian, could you open an issue on GitHub with more information about your setup?