MControlCenter icon indicating copy to clipboard operation
MControlCenter copied to clipboard

[Katana GF76 11UC][Arch Linux][6.13.2-arch1-1][syslog][mcontrolcenter-helper] The msi_ec kernel module is not loaded

Open xCEVre opened this issue 1 year ago • 17 comments

floods The msi_ec kernel module is not loaded in the log when the window is open. When it is only in the tray, it does not flood

mcontrolcenter-bin        0.5.0-2
Linux host 6.13.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 08 Feb 2025 18:54:55 +0000 x86_64 GNU/Linux

everything seems to work on Katana GF76 11UC

I will provide information upon request

xCEVre avatar Feb 11 '25 07:02 xCEVre

@xCEVre please copy paste the output of cat /sys/devices/platform/msi-ec/shift_mode

mutchiko avatar Feb 11 '25 08:02 mutchiko

@mutchiko cat: /sys/devices/platform/msi-ec/shift_mode: No such file or directory

UDP modprobe msi_ec

modprobe: ERROR: could not insert 'msi_ec': Operation not supported

xCEVre avatar Feb 11 '25 09:02 xCEVre

@xCEVre seems like you don't have the driver installed, please read the msi-ec page for steps to do a reinstall (uninstall then install); if you have any problems, open an issue there, you'll get more help.

mutchiko avatar Feb 11 '25 10:02 mutchiko

fix:The msi_ec kernel module is not loaded

yay -S msi-ec-dkms-git

new flood) :

11 10:09:21 host mcontrolcenter-helper[271725]: The ec_sys kernel module is loaded

xCEVre avatar Feb 11 '25 10:02 xCEVre

does the app function as it should?

mutchiko avatar Feb 11 '25 10:02 mutchiko

@mutchiko yes, the program worked before (and now), The flood of messages in the log interferes

cat /sys/devices/platform/msi-ec/shift_mode turbo

xCEVre avatar Feb 11 '25 10:02 xCEVre

a message that the module is loaded appears in the log every second

xCEVre avatar Feb 11 '25 10:02 xCEVre

okay, this is good, when the msi-ec driver is load it means that the application is actually working;

the flood is annoying i agree, i will try to fix it when if/when i can,

could you please send a screenshot of the overview page?

mutchiko avatar Feb 11 '25 10:02 mutchiko

Image new module ...

Feb 11 10:16:33 host mcontrolcenter-helper[271910]: The ec_sys kernel module is loaded
Feb 11 10:16:34 host mcontrolcenter-helper[271910]: The ec_sys kernel module is loaded
Feb 11 10:16:35 host mcontrolcenter-helper[271910]: The ec_sys kernel module is loaded
Feb 11 10:16:36 host mcontrolcenter-helper[271910]: The ec_sys kernel module is loaded
Feb 11 10:16:37 host mcontrolcenter-helper[271910]: The ec_sys kernel module is loaded
Feb 11 10:16:38 host mcontrolcenter-helper[271910]: The ec_sys kernel module is loaded
Feb 11 10:16:39 host mcontrolcenter-helper[271910]: The ec_sys kernel module is loaded
Feb 11 10:16:40 host mcontrolcenter-helper[271910]: The ec_sys kernel module is loaded
Feb 11 10:16:41 host mcontrolcenter-helper[271910]: The ec_sys kernel module is loaded
Feb 11 10:16:42 host mcontrolcenter-helper[271910]: The ec_sys kernel module is loaded
Feb 11 10:16:43 host mcontrolcenter-helper[271910]: The ec_sys kernel module is loaded
Feb 11 10:16:44 host mcontrolcenter-helper[271910]: The ec_sys kernel module is loaded
Feb 11 10:16:45 host mcontrolcenter-helper[271910]: The ec_sys kernel module is loaded
Feb 11 10:16:46 host mcontrolcenter-helper[271910]: The ec_sys kernel module is loaded
Feb 11 10:16:47 host mcontrolcenter-helper[271910]: The ec_sys kernel module is loaded
Feb 11 10:16:48 host mcontrolcenter-helper[271910]: The ec_sys kernel module is loaded

xCEVre avatar Feb 11 '25 10:02 xCEVre

thanks for the screenshot.

i know about log problem; i will fix it when i can. any other problems you have?

mutchiko avatar Feb 11 '25 10:02 mutchiko

I'm waiting for a patch)

There is a graphic flaw. The text does not fit.

LANG=ru_RU.UTF-8

Image

xCEVre avatar Feb 11 '25 10:02 xCEVre

if you have shorter text that can be used it would be really helpful

mutchiko avatar Feb 11 '25 10:02 mutchiko

as for the flooding, it seems like i found the source

mutchiko avatar Feb 11 '25 10:02 mutchiko

perhaps the following text option will work:

163 chars:

echo -n 'Максимальная производительность требует больше энергии и охлаждения' |wc
      0       7     128

orig:

echo -n 'Максимальная производительность за счет увеличения тепловыделения и энергопотребления' |wc
      0       8     163

problematic part of the text:

echo  'энергопотребления' |wc
      1       1      35
echo -n 'энергопотребления' |wc
      0       1      34

xCEVre avatar Feb 11 '25 10:02 xCEVre

i think the problem is with the "high performance" text being extra long next to the explanation, maybe we can make it say "max performance"?

also, the "current fan mode" text is kind of long, maybe we can just say "fan mode" or something similar

mutchiko avatar Feb 11 '25 11:02 mutchiko

1.the text will become larger

high->высокая

echo -n 'high performance'|wc
      0       2      16
echo -n 'высокая производительность'|wc
      0       2      51

VS

max->максимальная

echo -n 'max performance'|wc
      0       2      15
echo -n 'максимальная производительность'|wc
      0       2      61

2.in Russian locations it is better to make a "cooler" mode EN OK

echo -n 'fan mode'|wc
      0       2       8

RU:

fan -> [вентилятор]а it is better to use the word "cooler" ([кулер]а) for RU localization

echo -n 'режим вентилятора'|wc
      0       2      33
echo -n 'режим кулера'|wc
      0       2      23

xCEVre avatar Feb 11 '25 11:02 xCEVre

@xCEVre you can directly contribute your translation updates by following the steps in the readme

mutchiko avatar Feb 13 '25 08:02 mutchiko

@xCEVre i fixed the log flooding issue in https://github.com/mutchiko/MControlCenter/tree/main?tab=readme-ov-file , could you please follow the steps fro building from source and test?

mutchiko avatar Apr 08 '25 21:04 mutchiko

@mutchiko

  1. no more flooding in syslog.
  2. when starting, there are no more messages in the console and syslog.
  3. when expanding from the tray:
qt.svg: link #g16615 is undefined!
qt.svg: link #g16615 is undefined!
qt.svg.draw: The requested buffer size is too big, ignoring
qt.svg.draw: The requested buffer size is too big, ignoring
qt.svg.draw: The requested buffer size is too big, ignoring
qt.svg.draw: The requested buffer size is too big, ignoring
  1. When i click on any of the tabs, the following appears in the console:
qt.svg.draw: The requested buffer size is too big, ignoring
qt.svg.draw: The requested buffer size is too big, ignoring
qt.svg.draw: The requested buffer size is too big, ignoring
qt.svg.draw: The requested buffer size is too big, ignoring
  1. When i click on the battery tab, the addition to 4. appears in console:
qt.svg: link #g16615 is undefined!
  1. after the first press, it no longer writes to the console (it only writes the first time)

xCEVre avatar Apr 08 '25 22:04 xCEVre

@xCEVre please send a screenshot of the about page

mutchiko avatar Apr 08 '25 22:04 mutchiko

Image

xCEVre avatar Apr 08 '25 22:04 xCEVre

@xCEVre what desktop environment and what icon theme do you use?

mutchiko avatar Apr 08 '25 22:04 mutchiko

xfce4

xfconf-query -c xsettings -p /Net/IconThemeName

elementary

yay -Qs elementary

local/elementary-icon-theme 8.1.0-1 (pantheon)
    Named, vector icons for elementary OS

yay -Si elementary-icon-theme

Репозиторий          : extra
Название             : elementary-icon-theme
Версия               : 8.1.0-1
Описание             : Named, vector icons for elementary OS
Архитектура          : any
URL                  : https://github.com/elementary/icons
Лицензии             : GPL3
Группы               : pantheon
Предоставляет        : Нет
Зависит от           : hicolor-icon-theme
Доп. зависимости     : Нет
Конфликтует с        : Нет
Заменяет             : Нет
Размер загрузки      : 2,69 MiB
Установленный размер : 31,59 MiB
Сборщик              : Maxime Gauduin <[email protected]>
Дата сборки          : Чт 02 янв 2025 16:32:42
Проверен             : SHA-256  Подпись


xCEVre avatar Apr 08 '25 22:04 xCEVre

@xCEVre could you please check if you have the qt6-svg package installed?

mutchiko avatar Apr 08 '25 22:04 mutchiko

yay -Qs qt6-svg local/qt6-svg 6.9.0-1 (qt6) Classes for displaying the contents of SVG files

xCEVre avatar Apr 08 '25 22:04 xCEVre

yes, please install and restart MCC, and check for errors again

mutchiko avatar Apr 08 '25 22:04 mutchiko

I ran what I collected from the source code /home/test/MControlCenter/scripts/E/MControlCenter-0.5.1-bin/app result: last log above

downloaded version from AUR: here is the log

Call failed: No such method 'hasBatteryMode' in interface 'BeardOverflow.msi_ec' at object path '/msi_ec' (signature '')
Call failed: No such method 'hasBatteryMode' in interface 'BeardOverflow.msi_ec' at object path '/msi_ec' (signature '')

xCEVre avatar Apr 08 '25 23:04 xCEVre

you are going in the wrong direction, mcc isn't just a binary, it has a helper that runs in the background, when you installed from AUR you only replaced the graphical interface, but the helper stayed from the version you built.

let's focus on the branch i made, did you try to install qt6-svg and test again?

mutchiko avatar Apr 08 '25 23:04 mutchiko

1.qt6-svg was installed before MControlCenter was built. 2.I killed all mcontrolcenter-helper processes 3.I launched the helper

4: strace -ffff -e execve ./mcontrolcenter

execve("./mcontrolcenter", ["./mcontrolcenter"], 0x7ffde9125958 /* 35 vars */) = 0
strace: Process 17829 attached
strace: Process 17830 attached
qt.svg: link #g16615 is undefined!
qt.svg: link #g16615 is undefined!
qt.svg.draw: The requested buffer size is too big, ignoring
qt.svg.draw: The requested buffer size is too big, ignoring
qt.svg.draw: The requested buffer size is too big, ignoring
qt.svg.draw: The requested buffer size is too big, ignoring

and with strace -ffff -e file ./mcontrolcenter

[pid 17919] readlink("/tmp", 0x7fff2b136660, 1023) = -1 EINVAL (Недопустимый аргумент)
[pid 17919] readlink("/tmp", 0x7fff2b1367e0, 1023) = -1 EINVAL (Недопустимый аргумент)
[pid 17919] access("/tmp/MControlCenter", F_OK) = 0
[pid 17919] unlink("/tmp/MControlCenter") = 0
[pid 17919] readlink("/tmp", 0x7fff2b136660, 1023) = -1 EINVAL (Недопустимый аргумент)
[pid 17919] openat(AT_FDCWD, "/usr/lib/qt6/plugins/accessiblebridge", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (Нет такого файла или каталога)
[pid 17919] openat(AT_FDCWD, "/home/test/MControlCenter/scripts/E/MControlCenter-0.5.1-bin/app/accessiblebridge", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (Нет такого файла или каталога)

(OPEN FROM TRAY)

[pid 17945] openat(AT_FDCWD, "/usr/lib/qt6/plugins/iconengines/libqsvgicon.so.avx2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Нет такого файла или каталога)
[pid 17945] access("/usr/lib/qt6/plugins/iconengines/libqsvgicon.so.avx2", F_OK) = -1 ENOENT (Нет такого файла или каталога)
[pid 17945] openat(AT_FDCWD, "/usr/lib/qt6/plugins/iconengines/libqsvgicon.so", O_RDONLY|O_CLOEXEC) = 13
[pid 17945] openat(AT_FDCWD, "/usr/share/icons/hicolor/scalable/status/battery-low.svg", O_RDONLY|O_CLOEXEC) = 13
[pid 17945] statx(13, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID|STATX_SUBVOL, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=32654, ...}) = 0
[pid 17945] statx(13, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID|STATX_SUBVOL, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=32654, ...}) = 0
[pid 17945] openat(AT_FDCWD, "/dev/tty", O_RDONLY|O_CLOEXEC) = 14
qt.svg: link #g16615 is undefined!
[pid 17945] openat(AT_FDCWD, "/usr/share/icons/hicolor/scalable/status/battery-low.svg", O_RDONLY|O_CLOEXEC) = 13
[pid 17945] statx(13, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID|STATX_SUBVOL, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=32654, ...}) = 0
[pid 17945] statx(13, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID|STATX_SUBVOL, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=32654, ...}) = 0
qt.svg: link #g16615 is undefined!
[pid 17945] openat(AT_FDCWD, "/usr/share/fonts/TTF/DejaVuSans-Bold.ttf", O_RDONLY) = 13
[pid 17945] access("/usr/share/icons/hicolor/48x48/status/input-keyboard.png", F_OK) = 0
[pid 17945] statx(AT_FDCWD, "/usr/share/icons/hicolor/48x48/status/input-keyboard.png", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID|STATX_SUBVOL, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=1381, ...}) = 0
[pid 17945] openat(AT_FDCWD, "/usr/share/icons/hicolor/48x48/status/input-keyboard.png", O_RDONLY|O_CLOEXEC) = 13
[pid 17945] statx(13, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID|STATX_SUBVOL, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=1381, ...}) = 0
[pid 17945] statx(13, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID|STATX_SUBVOL, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=1381, ...}) = 0
[pid 17945] statx(13, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID|STATX_SUBVOL, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=1381, ...}) = 0
[pid 17945] statx(13, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID|STATX_SUBVOL, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=1381, ...}) = 0
[pid 17945] statx(13, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID|STATX_SUBVOL, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=1381, ...}) = 0
[pid 17945] statx(13, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID|STATX_SUBVOL, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=1381, ...}) = 0
[pid 17945] openat(AT_FDCWD, "/usr/share/icons/hicolor/scalable/status/computer.svg", O_RDONLY|O_CLOEXEC) = 13
[pid 17945] statx(13, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID|STATX_SUBVOL, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=331235, ...}) = 0
[pid 17945] statx(13, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID|STATX_SUBVOL, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=331235, ...}) = 0
[pid 17945] openat(AT_FDCWD, "/usr/share/icons/hicolor/scalable/status/computer.svg", O_RDONLY|O_CLOEXEC) = 13
[pid 17945] statx(13, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID|STATX_SUBVOL, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=331235, ...}) = 0
[pid 17945] statx(13, "", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT|AT_EMPTY_PATH, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID|STATX_SUBVOL, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=331235, ...}) = 0
qt.svg.draw: The requested buffer size is too big, ignoring
qt.svg.draw: The requested buffer size is too big, ignoring
qt.svg.draw: The requested buffer size is too big, ignoring
qt.svg.draw: The requested buffer size is too big, ignoring

xCEVre avatar Apr 08 '25 23:04 xCEVre

you have an interesting way of looking at things, and i tried to replicate what you did, i still couldn't get any errors about qt.svg whatsoever.

could you try to change your icons set? maybe it has invalid icons that need to be used by the app

mutchiko avatar Apr 09 '25 08:04 mutchiko