Slimbook-Team / slimbookrgbkeyboard

16 stars 3 forks source link

unable to launch /usr/bin/slimbookrgbkeyboard #9

Open oberon-manjaro opened 1 year ago

oberon-manjaro commented 1 year ago
slimbookrgbkeyboard                                                                                                                                                                                                                                                      
/usr/share/slimbookrgbkeyboard/src
Slimbook AMD it is in execution
oberon-manjaro commented 1 year ago

@Lt-Henry do you have any advice on this one?

Lt-Henry commented 1 year ago

The piece of code (present in other slimbook apps) that prevents multiple instances, doesn't work. I can not reproduce your issue (I was aware of it). But funny thing is, I can have two instances of the same app, so that code snippet is more than useless.

I am currently working on some changes on this app in order to support incoming Slimbook Hero device. I expect to release a new version this week. For this release, I am going to get rid off this (there is no real harm of having two instances). In a future release, I will come up with some lock mechanism.

So, just wait a couple of days for a fixed release.

oberon-manjaro commented 12 months ago

Thank you! I just built and installed v0.4.0 , now I get this error:

 /usr/bin/slimbookrgbkeyboard                                                                                                ✔ 
Traceback (most recent call last):
  File "/usr/bin/slimbookrgbkeyboard", line 19, in <module>
    import slimbookrgbkeyboard
  File "/usr/share/slimbookrgbkeyboard/src/slimbookrgbkeyboard.py", line 4, in <module>
    import slimbook
ModuleNotFoundError: No module named 'slimbook'

Is there maybe any new dependency we need to build, too?

oberon-manjaro commented 12 months ago

Ah. Hang on, I guess I also need to update qc71-dkms and slimbook_service ... My current version of qc71 fails to build for all kernels:

==> dkms install --no-depmod slimbook-qc71/0.2.5 -k 6.5.10-1-MANJARO
Error!  Build of qc71_laptop.ko failed for: 6.5.10-1-MANJARO (x86_64)
Make sure the name of the generated module is correct and at the root of the
build directory, or consult make.log in the build directory
/var/lib/dkms/slimbook-qc71/0.2.5/build for more information.
cat /var/lib/dkms/slimbook-qc71/0.2.5/build/make.log                                                                        ✔ 
DKMS make.log for slimbook-qc71-0.2.5 for kernel 6.1.61-1-MANJARO (x86_64)
Fri  3 Nov 16:00:41 CET 2023
make: Nothing to be done for 'all'.
oberon-manjaro commented 12 months ago

Alright. I see we already have latest versions of both slibook_service and qc71-dkms in our repos, but qc71 doesn't build for any kernel. @yochananmarqos can you maybe also have a look at this package and what might be amiss there?

yochananmarqos commented 12 months ago
ModuleNotFoundError: No module named 'slimbook'

Is there maybe any new dependency we need to build, too?

It's missing python-slimbook. I've just created / updated the appropriate packages in the unstable branch.

can you maybe also have a look at this package and what might be amiss there?

I'll take a look.

yochananmarqos commented 12 months ago

Aha! Figured it out. Fixed with slimbook-qc71-dkms 0.3.0-1.

oberon-manjaro commented 12 months ago

Better, but not completely satisfying, yet ... 😜

image

sofar I don't get more than a splash screen ...

yochananmarqos commented 12 months ago

I'll take another look once GitHub stops breaking things...

yochananmarqos commented 12 months ago

GitHub seems to be feeling better now.

@oberon-manjaro Did you see a polkit prompt? It seems you should since it includes polkit rules.

yochananmarqos commented 12 months ago

I tried installing it and also see a blank window as in your screenshot. However, since I don't have any compatible devices, it's a bit hard to debug.

(5/5) installing slimbook-rgb-keyboard                    [------------------------------] 100%
ite8291r3-ctl
ite8291r3_driver installed!
Checking devices
device handle could not be acquired: no suitable device found
clevo_platform set to install.
2023-11-04 16:56:03,624 - <module>:116 - INFO - Config check executed as yochanan
2023-11-04 16:56:03,624 - main:42 - INFO - Checking configuration
2023-11-04 16:56:03,624 - main:44 - INFO - Creating config folder ...
2023-11-04 16:56:03,629 - main:48 - INFO - total 16
drwxrw-rw-   2 yochanan yochanan  4096 Nov  4 16:56 .
drwxr-xr-x 291 yochanan yochanan 12288 Nov  4 16:56 ..
2023-11-04 16:56:03,629 - main:53 - DEBUG - uid=1000 file_uid=1000
2023-11-04 16:56:03,629 - check_config_file:71 - INFO - Checking Slimbookrgbkeyboard's Configuration
2023-11-04 16:56:03,629 - check_config_file:104 - INFO - Creating config file ...