Bug ID 1184671
Summary openrazer drivers aren't automatically rebuilt for new kernel or their own updates
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware x86-64
OS openSUSE Tumbleweed
Status NEW
Severity Normal
Priority P5 - None
Component Kernel
Assignee kernel-bugs@opensuse.org
Reporter iqgrande@gmail.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:87.0) Gecko/20100101
Firefox/87.0
Build Identifier: 

Greetings:

I use some Razer peripherals and, accordingly, have installed some of the Razer
tools for configuring them; the list of items I've installed is below.

* openrazer-daemon
* openrazer-kernel-modules-dkms
* openrazer-meta
* polychromatic
* python3-openrazer 

I, basically, followed the instructions to install it here:
https://software.opensuse.org/download.html?project=hardware%3Arazer&package=openrazer-meta

Anyways, when I update my system, things like the kernel are updated but these
packages are not. I update my system with the following commands.

Code:
{{{
sudo zypper refresh && sudo zypper dup && sudo flatpak update
}}}

I can see it being out of date because my tray applet indicates the daemon is
not working properly and through some sleuthing (see below).

Code:
{{{
> uname -a 
Linux babeltumble 5.11.11-1-default #1 SMP Tue Mar 30 17:57:52 UTC 2021
(dbc4a02) x86_64 x86_64 x86_
64 GNU/Linux
> sudo dkms status 
[sudo] password for root:
openrazer-driver, 3.0.0, 5.11.6-1-default, x86_64: installed
}}}

The only way I've found to get this to update is to do the following.

Code:
{{{
sudo dkms remove -m openrazer-driver -v 3.0.0 -k 5.11.6-1-default
sudo dkms autoinstall
}}}

I am new to openSUSE Tumbleweed and absolutely love it. Is this driver
something I need to continue manually updating or is there a method for it to
automatically update when new kernels are installed? Thank you for any insight
you can provide into this. I did a bunch of searches and couldn't find anything
to discuss this; I apologize if I missed something. 

These drivers were updated recently however the new versions were not
automatically built against the current kernel. This also shows that the
upgrade does not clean up the older version and makes the upgrade more
difficult (see below). So, ultimately, I currently have the 5.11.6-1-default
kernel built with version 3.0.0 of these drivers, while version
5.11.11-1-default of the kernel  and 3.0.1-1.1 of the drivers are actually
installed.

Code:
{{{
> sudo zypper search -s razer 
[sudo] password for root:  
Loading repository data... 
Reading installed packages... 

S  | Name                          | Type       | Version   | Arch   |
Repository 
---+-------------------------------+------------+-----------+--------+---------------------- 
i  | openrazer-daemon              | package    | 3.0.1-1.1 | noarch |
hardware:razer 
i  | openrazer-kernel-modules-dkms | package    | 3.0.1-1.1 | noarch |
hardware:razer 
i+ | openrazer-meta                | package    | 3.0.1-1.1 | noarch |
hardware:razer 
   | openrazer-meta                | srcpackage | 3.0.1-1.1 | noarch |
hardware:razer 
i  | python3-openrazer             | package    | 3.0.1-1.1 | noarch |
hardware:razer 
   | razercfg                      | package    | 0.41-1.9  | x86_64 | Main
Repository (OSS) 
   | razercfg                      | package    | 0.41-1.9  | x86_64 |
openSUSE:Factory 
   | razercfg                      | package    | 0.41-1.9  | x86_64 |
openSUSE:Tumbleweed 
   | razercfg                      | package    | 0.41-1.9  | i586   | Main
Repository (OSS) 
   | razercfg                      | package    | 0.41-1.9  | i586   |
openSUSE:Factory 
   | razercfg                      | package    | 0.41-1.9  | i586   |
openSUSE:Tumbleweed 
   | razergenie                    | package    | 0.9.0-2.6 | x86_64 |
hardware:razer 
   | razergenie                    | package    | 0.9.0-2.6 | i586   |
hardware:razer 
   | razergenie                    | srcpackage | 0.9.0-2.6 | noarch |
hardware:razer 
   | razergenie-debuginfo          | package    | 0.9.0-2.6 | x86_64 |
hardware:razer 
   | razergenie-debuginfo          | package    | 0.9.0-2.6 | i586   |
hardware:razer 
   | razergenie-debugsource        | package    | 0.9.0-2.6 | x86_64 |
hardware:razer 
   | razergenie-debugsource        | package    | 0.9.0-2.6 | i586   |
hardware:razer 

> sudo dkms status 
Error! Could not locate dkms.conf file. 
File: /var/lib/dkms/openrazer-driver/3.0.0/source/dkms.conf does not exist.
}}}


Kind regards,
Anthony 

Reproducible: Always

Steps to Reproduce:
1. Install openrazer-meta stuff on site given in details.
2. When kernel or drivers are updated (i.e., a newer version is installed), the
kernel mod will not be automatically generated with the new items and, as such,
the drivers won't be loaded.
3.
Actual Results:  
The kernel modules are not loaded. 

Expected Results:  
I would've expected these kernel modules to be updated as both the kernel or
the drivers themselves that create them are updated. I am new to openSUSE so I
am perhaps missing something in terms of expectations. 

I think everything is covered in "details".


You are receiving this mail because: