[Bug 1184671] New: openrazer drivers aren't automatically rebuilt for new kernel or their own updates
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671 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: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671#c3
--- Comment #3 from Anthony Agelastos
Please recheck with the latest 3.0.1-2.1, at least dkms works properly now on Fedora.
I installed that version very recently so it is working (I uninstalled the old and installed the new... when you install it "fresh" it works). The true test is when the kernel is updated for me to see if it breaks. Once there's a kernel update, I'll report if it was rebuilt successfully or not. Thank you for your help. Please let me know if you have any questions, comments, or concerns. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671#c4
--- Comment #4 from Anthony Agelastos
(In reply to Luca Weiss from comment #2)
Please recheck with the latest 3.0.1-2.1, at least dkms works properly now on Fedora.
I installed that version very recently so it is working (I uninstalled the old and installed the new... when you install it "fresh" it works). The true test is when the kernel is updated for me to see if it breaks. Once there's a kernel update, I'll report if it was rebuilt successfully or not. Thank you for your help. Please let me know if you have any questions, comments, or concerns.
Greetings: Something happened and if I upgrade it will break Steam. I have an item into the Forums to understand how to proceed (see https://forums.opensuse.org/showthread.php/554038-Steam-breakage-due-to-libv...). Once I know how to upgrade without breaking stuff, I can do an upgrade and then we can see if the right thing happens through a kernel update. I apologize for the delay. Kind regards, Anthony -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671#c5
--- Comment #5 from Anthony Agelastos
Please recheck with the latest 3.0.1-2.1, at least dkms works properly now on Fedora.
It doesn't look like it worked. See below (I am running different kernel version than what dkms shows.
sudo dkms status [sudo] password for root: openrazer-driver, 3.0.1, 5.12.0-2-default, x86_64: installed
uname -a Linux babeltumble 5.12.2-1-default #1 SMP Fri May 7 18:05:46 UTC 2021 (6fcec30) x86_64 x86_64 x86_64 GNU/Linux
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671#c6
--- Comment #6 from Anthony Agelastos
(In reply to Luca Weiss from comment #2)
Please recheck with the latest 3.0.1-2.1, at least dkms works properly now on Fedora.
It doesn't look like it worked. See below (I am running different kernel version than what dkms shows.
sudo dkms status [sudo] password for root: openrazer-driver, 3.0.1, 5.12.0-2-default, x86_64: installed
uname -a Linux babeltumble 5.12.2-1-default #1 SMP Fri May 7 18:05:46 UTC 2021 (6fcec30) x86_64 x86_64 x86_64 GNU/Linux
Purely for reference, I do the following when I notice it needs to be re-done. If there's a better way in the interim, then please let me know. {{{ sudo zypper rm `rpm -qa "openrazer-kernel-modules-dkms*"` sudo zypper in openrazer-meta polychromatic }}} -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671#c7
Tycho Kirchner
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671#c8
--- Comment #8 from Luca Weiss
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671#c9
--- Comment #9 from Tycho Kirchner
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671#c10
--- Comment #10 from Anthony Agelastos
{{{ sudo zypper rm `rpm -qa "openrazer-kernel-modules-dkms*"` sudo zypper in openrazer-meta polychromatic }}}
When I do the manual re-installation (the first step), I do see the following messages. Are these normal/expected? {{{
sudo zypper rm `rpm -qa "openrazer-kernel-modules-dkms*"` [sudo] password for root: Reading installed packages... Resolving package dependencies...
The following 5 packages are going to be REMOVED: openrazer-daemon openrazer-kernel-modules-dkms openrazer-meta polychromatic python3-openrazer 5 packages to remove. After the operation, 3.7 MiB will be freed. Continue? [y/n/v/...? shows all options] (y): (1/5) Removing openrazer-meta-3.0.1-2.2.noarch ...............................................[done] (2/5) Removing polychromatic-0.3.12-10.1.noarch ..............................................[done] (3/5) Removing python3-openrazer-3.0.1-2.2.noarch ............................................[done] (4/5) Removing openrazer-daemon-3.0.1-2.2.noarch .............................................[done] (5/5) Removing openrazer-kernel-modules-dkms-3.0.1-2.2.noarch ................................[done] Additional rpm output: -------- Uninstall Beginning -------- Module: openrazer-driver Version: 3.0.1 Kernel: 5.13.2-1-default (x86_64) ------------------------------------- Status: Before uninstall, this module version was ACTIVE on this kernel. razerkbd.ko.xz: - Uninstallation - Deleting from: /lib/modules/5.13.2-1-default/kernel/drivers/hid/ rmdir: failed to remove 'kernel/drivers/hid': Directory not empty - Original module - No original module was found for this module on this kernel. - Use the dkms install command to reinstall any previous module version. /sbin/dkms: line 2055: echo: write error: Broken pipe /sbin/dkms: line 1999: echo: write error: Broken pipe /sbin/dkms: line 2057: echo: write error: Broken pipe razermouse.ko.xz: - Uninstallation - Deleting from: /lib/modules/5.13.2-1-default/kernel/drivers/hid/ rmdir: failed to remove 'kernel/drivers/hid': Directory not empty - Original module - No original module was found for this module on this kernel. - Use the dkms install command to reinstall any previous module version. /sbin/dkms: line 2055: echo: write error: Broken pipe /sbin/dkms: line 1999: echo: write error: Broken pipe /sbin/dkms: line 1999: echo: write error: Broken pipe /sbin/dkms: line 2057: echo: write error: Broken pipe razerkraken.ko.xz: - Uninstallation - Deleting from: /lib/modules/5.13.2-1-default/kernel/drivers/hid/ rmdir: failed to remove 'kernel/drivers/hid': Directory not empty - Original module - No original module was found for this module on this kernel. - Use the dkms install command to reinstall any previous module version. /sbin/dkms: line 2055: echo: write error: Broken pipe /sbin/dkms: line 1999: echo: write error: Broken pipe /sbin/dkms: line 1999: echo: write error: Broken pipe /sbin/dkms: line 1999: echo: write error: Broken pipe /sbin/dkms: line 2057: echo: write error: Broken pipe razeraccessory.ko.xz: - Uninstallation - Deleting from: /lib/modules/5.13.2-1-default/kernel/drivers/hid/ rmdir: failed to remove 'kernel/drivers/hid': Directory not empty - Original module - No original module was found for this module on this kernel. - Use the dkms install command to reinstall any previous module version. /sbin/dkms: line 2055: echo: write error: Broken pipe /sbin/dkms: line 1999: echo: write error: Broken pipe /sbin/dkms: line 1999: echo: write error: Broken pipe /sbin/dkms: line 1999: echo: write error: Broken pipe /sbin/dkms: line 1999: echo: write error: Broken pipe /sbin/dkms: line 2057: echo: write error: Broken pipe depmod....depmod.... .. DKMS: uninstall completed. }}} -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671#c11
--- Comment #11 from Anthony Agelastos
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671#c12
--- Comment #12 from Anthony Agelastos
I also installed openSUSE TW on a laptop with the openrazer drivers and it looks like those drivers are being updated automatically. I am not sure what the difference is between that and my desktop (the one that exhibits the problem). Are there some checks we can do to ensure that `dkms` is setup properly on my troubled machine (or that the directory structure and contents are all what they should be)?
I was mistaken about this. The latest updates to openSUSE TW on the laptop had it to where these drivers were not rebuilt and I am back to uninstalling/reinstalling. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671
http://bugzilla.opensuse.org/show_bug.cgi?id=1184671#c13
Martin Wilck
participants (1)
-
bugzilla_noreply@suse.com