Questions and answers from the Slimbook user community

¡Bienvenido al foro de la comunidad!

Si tienes problemas de software, este es tu sitio. Construyamos entre todos un lugar mejor, proporcionando experiencias, información de uso y tips. Si tienes alguna pregunta, procura dar información detallada sobre tu sistema.

Si tienes problemas de hardware, tramita la GARANTÍA AQUÍ, ya que nuestros técnicos no suelen revisar el foro por estar trabajando en reparaciones.

0

RGB Keyboard app not working

Avatar
DaveNascimento

The Slimbook RGB Keyboard crashed on start; I was able to get it running with some fixes to the Python code, but keyboard ignores changes made on the app. Using F6 and F7 to change brightness works, and color is always blue. Manjaro 6.12.64 / KDE / wayland.

CREA15-A8-RTX
Avatar
Discard
5 Answers
0
Avatar
Samanta Sanchez Slimbook
Best Answer

Good morning,

Please show the original trace prior to your changes to see where it crashed

The manjaro repositories are not managed by us, but rather Manjaro maintainers themselves, so it's not as updated as our repositories
If you do wish to have the latest updates you can include our Arch repository to pacman and get them from there

Regards,

Avatar
Discard
0
Avatar
DaveNascimento
Best Answer
Hello Samanta,

The original error trace was:

     Slimbook CREATIVE detected
     Traceback (most recent call last):
       File "/usr/bin/slimbookrgbkeyboard", line 21, in <module>
         slimbookrgbkeyboard.main()
         ~~~~~~~~~~~~~~~~~~~~~~~~^^
       File "/usr/share/slimbookrgbkeyboard/src/slimbookrgbkeyboard.py", line 171, in main
         win = SlimbookRGBKeyboard()
       File "/usr/share/slimbookrgbkeyboard/src/slimbookrgbkeyboard.py", line 66, in __init__
         self.load_main_grid(win_grid)
         ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
       File "/usr/share/slimbookrgbkeyboard/src/slimbookrgbkeyboard.py", line 115, in load_main_grid
         win_grid.attach(libslimbook_backlight.Grid(), 0, 1, 5, 5)
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~^^
       File "/usr/share/slimbookrgbkeyboard/src/libslimbook_backlight.py", line 26, in __init__
         self.read_backlight()
         ~~~~~~~~~~~~~~~~~~~^^
       File "/usr/share/slimbookrgbkeyboard/src/libslimbook_backlight.py", line 172, in read_backlight
         color = int(output,16)
     ValueError: invalid literal for int() with base 16: "/usr/include/c++/15.2.1/bits/stl_vector.h:1263: std::vector<_Tp, _Alloc>::reference std::vector<_Tp,
     _Alloc>::operator[](size_type) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; reference =
     std::__cxx11::basic_string<char>&; size_type = long unsigned int]: Assertion '__n < this->size()' failed."

As for the repository, I've followed the steps detailed in https://slimbook.com/en/blog/guides-2/post/add-the-slimbook-repositories-on-linux-71, but no updates are available on the repository.

Avatar
Discard
0
Avatar
Samanta Sanchez Slimbook
Best Answer

Good morning, DaveNascimento
Make sure you have the QC71 driver installed/loaded, as this is needed for the application to work properly
You can check with `slimbookctl info` if the module is loaded. If the module is not loaded, you either have Secure Boot on(as this kernel driver isn't signed so it can't load with Secure Boot), or you're missing it

Regards,

Avatar
Discard
0
Avatar
DaveNascimento
Best Answer

Hi Samanta,  

Sorry, for the late reply.
The QC71 driver is installed and loaded:
- lsmod shows qc71_laptop
- kernel log: qc71_laptop_module_init: module loaded
- module path: /lib/modules/6.12.64-1-MANJARO/updates/dkms/qc71_laptop.ko.zst

So the module is present; the issue seems to be elsewhere (possibly the RGB app relying on /sys/class/leds/rgb:kbd_backlight/multi_intensity, which isn’t created on the system).

I was able to trigger the keyboard backlight using a shell function, with single-zone, static colors only:

function kbcustom {
    local max=200
    local r=$(( $1 > max ? max : $1 ))
    local g=$(( $2 > max ? max : $2 ))
    local b=$(( $3 > max ? max : $3 ))

    printf "%d\n" "$r" | /usr/bin/sudo /usr/bin/tee /sys/devices/platform/qc71_laptop/kbd_backlight_rgb_red >/dev/null 2>&1
    printf "%d\n" "$g" | /usr/bin/sudo /usr/bin/tee /sys/devices/platform/qc71_laptop/kbd_backlight_rgb_green >/dev/null 2>&1
    printf "%d\n" "$b" | /usr/bin/sudo /usr/bin/tee /sys/devices/platform/qc71_laptop/kbd_backlight_rgb_blue >/dev/null 2>&1
}

Some more info about dependency versions:
- slimbookctl comes from libslimbook → libslimbook 1.20.0-1
- RGB app package: slimbook-rgb-keyboard 0.6.0-1
- Python bindings used by the app: python-slimbook 1.20.0-1

Am I missing something?
Thank you for all the help!

Avatar
Discard
0
Avatar
Samanta Sanchez Slimbook
Best Answer

Good morning, DaveNascimento
The QC driver is in charge of exposing rgb:* to the system, the RGB system was revamped in versions 1.01 of the QC71 module
As mentioned, MANJARO maintains the packages for their distro, you might be in an older QC71 driver version which still exposes the old path 

Check your package version, and if you are in an old version, you might need to either wait for the MANJARO package to be updated or install the version from our Arch repostiories, which is more up to date

Regards,

Avatar
Discard