Slimbook-Team / slimbook_service

2 stars 2 forks source link

KDE Slimbook V model platform not retrieved correctly #20

Open JLP opened 4 months ago

JLP commented 4 months ago

I have gotten KDE Slimbook V a few days ago and I could not get some function keys to work: Fn+F1 (toggle touchpad) and Fn+F10 - Fn+F12 (power mode change). I installed the Slimbook Service from the repos, since I was told it was needed to make the Fn buttons work. But even after installation, restarting the computer and making sure the service is running the Fn buttons the not work.

I was checking a bit and it looks like the platform for KDE Slimbook V is not detected correctly, since the service log contains this:

May 18 14:20:12 excalibur systemd[1]: Started Slimbook service.
May 18 14:20:13 excalibur python3[1261]: INFO-Slimbook service
May 18 14:20:13 excalibur python3[1261]: INFO-platform:0000
May 18 14:20:13 excalibur python3[1261]: INFO-model:4002
May 18 14:20:13 excalibur python3[1261]: WARNING-Unsupported Slimbook model:
May 18 14:20:13 excalibur python3[1261]: WARNING-Product:[EXCALIBUR-16-AMD7               ]
May 18 14:20:13 excalibur python3[1261]: WARNING-Vendor:[SLIMBOOK               ]

Platform 0x0000 is SLB_PLATFORM_UNKNOWN according to this, and according to the table the correct should be 0x0400 SLB_PLATFORM_Z16. Since the platform is not retrieved correctly then as far as I can see the keyboard thread does not get run and that is maybe why the Fn keys so not work. Unless there is some other hardware enablement or some platform driver missing or something.

manuslimbook commented 4 months ago

Hi Jure. We'll take a look at it. Thanks

Lt-Henry commented 4 months ago

Thanks for that nice issue report. I am currently looking at it. Can you please check what libslimbook version is present on your system?

JLP commented 4 months ago

The packages and versions are: libslimbook1: 1.11.1-1.3 python3-slimbook: 1.11.1-1.2 slimbook-service: 0.6.5-2.2

Lt-Henry commented 4 months ago

Ok so.... I forgot to ask you about operating system. Main issue is (I hope) both libslimbook and python-slimbook must be 1.12.0. I've realized we hadn't them on Suse/Fedora repos and I've just already fixed.

On Ubuntu jammy should be there.

About Excalibur Fn keys. 10,11 and 12 do the job no matter if the slimbook software is there or not. Our software here is only providing some feedback to the user.

Touchpad toggle needs our software to work however, there is no other secret than performing a hid ioctl whenever the key is pressed.

JLP commented 4 months ago

Ok so.... I forgot to ask you about operating system. Main issue is (I hope) both libslimbook and python-slimbook must be 1.12.0. I've realized we hadn't them on Suse/Fedora repos and I've just already fixed.

The distribution is indeed openSUSE Tumbleweed and I am using the Slimbook repositories from https://build.opensuse.org/project/show/home:Slimbook. So I guess the repo only needs the new packages with new version.

About Excalibur Fn keys. 10,11 and 12 do the job no matter if the slimbook software is there or not. Our software here is only providing some feedback to the user.

Aha that might explain why I could not find anything else in the code except monitoring SYSFS path for events and then sending some even over ZeroMQ and could only find one listener which updated the Slimbook tray icon. I thought I missed something.

BTW. Is there any place one can check/verify that pressing the Power Mode keys had any effect and changes something? I could not find anything in dmesg or some other system log that changed when pressing those Fn+F10 - F12 keys. I also could not find any change in the Power Profiles Daemon or CPU frequency scaling governor or in amd_pstate tunables in sysfs. So where could one observe these changes/effects?

Touchpad toggle needs our software to work however, there is no other secret than performing a hid ioctl whenever the key is pressed.

Oh I forgot to mention here I did figure out about how to make Fn+F1 work yesterday, in KDE System Settings → Shortcuts I had to select some strange keyboard combination listed as "Meta+Ctrl+Zenkaku Hankaku" instead of the expected usual "Touchpad Toggle" and now Fn+F1 toggle the touchpad just fine.