Qt6 not found
When i try to run mcontrolcenter i receive the error message:
mcontrolcenter: /lib/x86_64-linux-gnu/libQt6Core.so.6: version `Qt_6.8' not found (required by mcontrolcenter)
I'm on Ubuntu and I have installed libqt6widgets6t64
@marcoferr99 I totally feel you!
Dear dmitry-s93, Dear mutchiko,
I'm sure I speak for the entire Linux/MSI community using your application when I say that we want to thank you from the bottom of our hearts for all you've done. What you and the community have created is such a huge help. Please consider adding a donation tab/button inside the app or providing information on GitHub for users to donate.
To that end, I'd like to point out an issue with the latest v0.5.0 release, which requires Qt 6.8. Even the latest Ubuntu 24.04 LTS (as verified by running 'dpkg -l | grep qt') uses Qt6.4. This is causing problems for most users.
Installing libqt6widgets6 / qt6-base does not have any effect since it would install Qt6.4 (even for Ubuntu 24.04/Linux Mint 22.0/22.1) ... not even to mention Debian :)
Please consider updating the latest release, making it work with Qt 6.X, but please let the app not specifically require Qt 6.8.
Sidenote: Those using eCryptfs (to encrypt their home directories) who download qt-everywhere-src-6.8.X.tar.xz will encounter additional problems during ./configure / cmake --build . --parallel, due to a hard byte limit of 143 imposed by eCryptfs on file names. This can be overcome by copying the .tar.xz into the /root directory (not using eCryptfs). After installation, Qt 6.8 will be located in /usr/local/Qt-6.8.X/, but this won't help MControlCenter to start. Users then need to install patchelf or set LD_LIBRARY_PATH to get MControlCenter 0.5.0 working with the newly installed Qt 6.8.
'sudo patchelf --set-rpath /usr/local/Qt-6.8.X/lib /bin/mcontrolcenter'
Its a total pain in the a** for normal or even slightly advanced users to get Qt6.8 installed on their system. Qt is one of the main components for the OS to run. I've spend almost a day to get this working and now that it is, it claims "ec_sys" module not found even tho it does work and find "ec_sys" if I downgrade to MControlCenter 0.4.1.
Does v0.5.0 really require Qt 6.8? Wouldn't it work with Qt 6.4?. Please reconsider this "it has to be the latest version of Qt 6.8" approach (...) and make it work out of the box for Ubuntu 24.04 / Linux Mint 22.0/22.1 users.
PS: When starting MControlCenter via the GUI and Qt 6.8 is not yet installed, no error message will be displayed. Only those running it via the terminal will come to know about the problem being an older version of Qt. Adding a "Qt 6.X not found" error popup via the GUI, when not starting the app via the terminal, would help many users understand what is actually going on.
Thanks for your time and consideration, and thank you again for your application!
Please allow us to donate to your project.
Hello, I have the same issue on Ubuntu 24.04. I ended up building it myself, but most options are grayed out. Only battery is really working. I can activate Cooler boost from the context-menu but not from the program itself. On the msi_ec page only "Keyboard backlight intensity" is marked as non-functional. Device is Delta 15 A5EFK and my Kernel is 6.11.0-21-generic.
To build the sourcecode i installed those packages: qt6-base-dev qt6-tools-dev Then i did cmake on the MControlCenter-0.5.0 folder.
msi_ec is installed and ec_sys with write_support=1 is activated. Could it be that i missed something else and that's why my options are grayed out? Is it because my QT6 is version 6.4 and not 6.8?
Kind regards
@tschoerns can you send screenshots of the app?
did you check if the driver supports your device? did you try it out before installing MCC?
I'm not so sure how i would test that. The files in /sys/devices/platform/msi-ec/ seem to work as intended. For example: when i write "on" in cooler_boost, the cooler boosts. As i mentioned, in the supported device list my laptop is listed as supported.
okay, you tested the driver and it's working; now tell me, how did you build the app from source?
did you execute the scripts from the scripts folder? maybe you downloaded Qt installer from the internet?
i downloaded the sourcode, unzipped it and ran "cmake MControlCenter-0.5.0". it threw an error twice because if the two missing packages i mentioned earlier. Once it build, i ran "cmake --build ." thats pretty much it. It was my first time using cmake so i am not sure if i was supposed to change the sourcecode in any way. QT6 i installed from the default ubuntu repository (apt install libqt6widgets6t64)
okay, to build and install the app correctly:
make sure the app is completely closed (check if there is a sys tray icon and close it)
go to the downloaded source code
open the scripts folder
open a terminal inside the folder, then run these scripts in order
1- build
2- create installer
if things went well, you should see a compressed file (send it here please),
4- extract it. 5- open a terminal inside the new folder 6- run the UNINSTALL script as sudo, it might fail. thats fine 7- run the INSTALL script as sudo, the last line should be a confirmation that the install was successful. 8- check your apps, McontrolCenter should be there
i followed each step but unfortunately the result are the same. The controls are grayed out. i attach the zip the create installer script created. Could be the Issue the QT6 6.4 version?
Could be the Issue the QT6 6.4 version?
this causes other issues, but the build you sent worked fine for me, minus the messed up pages.
i need you to close the app completely (from sys tray also) and then open a terminal and type mcontrolcenter, open the app's main page, return to the terminal and send the output
There is no output at all. Not even when i switch between the tabs.
this leaves me no choice. downaload, extract, run the UNinstaller then the installer. open the app from the terminal like you did before
which brings us back to square one: mcontrolcenter: /lib/x86_64-linux-gnu/libQt6Core.so.6: version `Qt_6.9' not found (required by mcontrolcenter)
maybe you send the source and i build it on my machine?
i will upstream the code when i finish working on it (in a week or two), then you can build it and see if the grey controls persists, and if it is not fixed i will need you to keep testing until we get it fixed.
you need to know that if you build the app on your system this means it is not a Qt6 issue anymore, the good news is that i changed somethings that might resolve your issue.
the only solution i can give you right now is using distros that offer up to date packages like fedora/ fedora KDE and opensuse tumbleweed, or maybe arch if you feel comfortable.
Alright, thank you very much for your effort. I will wait and happily test the new build when it is ready.
@tschoerns please build this version from source: https://github.com/mutchiko/MControlCenter/tree/main, open an issue there if you have any problems/questions
@mutchiko i did and it definitely improved:
The functions that are available do work as expected.
@tschoerns go to the about page and take a screen shot
this is weird, why don't you have performance mode selection?
that is a good question. i thought it might be because i disabled smart shift in the bios but enabling it does not change it. Might be something else i changed in the bios.
i know what is the problem, i'll send you a fix later, as for now, why did you disable smartshift? what other options did you modify in the bios?
i disabled smartshift because i was hoping to get better performance in a CPU heavy game. Other than that i did some undervolting. Maybe some other things but i honestly don't remember.
okay, you need to enable smartshift since it is directly linked to the performance selection you see in the MCC (but it's not the reason why it was greyed out).
i will explain more later, for now, download this driver, first uninstall THEN install: https://github.com/mutchiko/msi-ec/tree/Delta_15_shiftmode_fix
reboot and check MCC again.
yep, looks good so far
@tschoerns switch between super battery/high performance, pay attention to fan noise/keyboard lights and tell me what you see
i did some testing and can confirm it works wonderful. Benchmarks show a clear difference between super battery and performance. also the fans finally go all the way up to 150%. so far they stopped at 100% Keyboard lights are controlled by OpenRGB so no difference there. (i think the Delta 15 was "special" when it came to keyboard lights)
how did you undervolt your laptop?
in bios. i think it was called vdd18 voltage