Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Logo LED Toggle for Razer Blade 15 (2019) Advanced #1253

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SMenigat
Copy link

I'm currently using a Razer Blade 15 (2019) Advanced and could not toggle my Logo LEDs via polychromatic.
I followed the steps someone else did for the Mercury model here in #1001 to add support for the 2019 Advanced model as well.

Everything seems to work locally so far.
When I open the popup menu from my tray icon, I can toggle the logo with On or Off under the brightness section. Works fine and as expected.

But when I open the polychromatic controller, I'm getting an error. This is the error message when opening polychromatic-controller:

There was a problem communicating with the daemon for this device.
Exception: org.freedesktop.DBus.Python.FileNotFoundError: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/service.py", line 711, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python3/dist-packages/openrazer_daemon/dbus_services/dbus_methods/deathadder_chroma.py", line 70, in get_logo_active
    with open(driver_path, 'r') as driver_file:
FileNotFoundError: [Errno 2] No such file or directory: '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.2/0003:1532:023A.0004/logo_led_state'

This is how it looks like in the UI then:

image

Is there anything I would need to change to fix this? I'm sorry, I did not have the time to read through the whole codebase 🤦‍♂️

@z3ntu
Copy link
Member

z3ntu commented Sep 26, 2020

Have you actually installed the modified kernel module? The error seems to indicate that you haven't

@z3ntu
Copy link
Member

z3ntu commented Nov 1, 2020

@SMenigat bump

@SMenigat
Copy link
Author

Hi @z3ntu, sorry for the late reply.
I followed the steps described in the Wiki to build & install:

git clone https://github.com/openrazer/openrazer -b TARGET_BRANCH
cd openrazer
sudo apt install debhelper dh-python linux-headers-generic python3-setuptools lsb-release dkms # build dependencies
./scripts/build_debs.sh
sudo dpkg -i ./dist/*.deb

Cant tell if this in fact updates the kernel driver or not. Could you outline how to do that correctly that I'm able to replicate and verify?

I'm sorry, since this is completely new territory for me, I spent some time in trying to figure out how to install the kernel module but did not have success in finding the projects documentation on it.

@z3ntu
Copy link
Member

z3ntu commented Nov 18, 2020

@SMenigat For just the kernel module you can try just running make driver in the root of the repository and then do sudo rmmod razerkbd; sudo insmod ./driver/razerkbd.ko (note, that this might make your keyboard stop working, keep a spare one handy - or reboot the computer if it didn't work) to load the built module.
But otherwise, install the new debs (dkms should rebuild the modules) and then reboot (or do rmmod & modprobe).

If you want to make sure you really have the new modules loaded you can edit driver/razercommon.h:#define DRIVER_VERSION "2.9.0" and this string will be visible with e.g. cat /sys/bus/hid/drivers/razer*/0*/version

@z3ntu
Copy link
Member

z3ntu commented Mar 22, 2021

bump?

@github-actions github-actions bot added the Stale label Aug 10, 2022
@z3ntu z3ntu removed the Stale label Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants