Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Issue after upgrade to kernel 5.10.0-21 amd64

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
ticojohn
Posts: 1284
Joined: 2009-08-29 18:10
Location: Costa Rica
Has thanked: 21 times
Been thanked: 44 times

[Solved] Issue after upgrade to kernel 5.10.0-21 amd64

#1 Post by ticojohn »

I upgrade to the new kernel (5.10.0-21 amd64) on Sunday(Jan. 22, 2023) and have encountered an issue when trying to terminate Kodi (19). Normally I would click on the close icon and select Exit from the menu. However clicking on the Exit menu item does not cause the program to exit, and in fact the mouse becomes non-functional. The alternative method of closing Kodi by pressing Ctrl End also does not function. The only way to close Kodi is to use the Task Manager to terminate Kodi. If I boot using the previous kernel (5.10.0-20) everything functions as expected. I have looked at journalctl and don't even see the PID for Kodi so I am kind of stumped as to what to look for. I have also looked at dmesg and see nothing there that would indicate a problem.The keyboard and mouse function correctly for all of the other applications I use so it would seem to be something specific with Kodi and kernel 5.10.0-21. Any suggestions would be appreciated. In the meantime I will boot using the previous kernel.

By the way, I am running xfce with lightdm.

SOLUTION: Not the fault of the new kernel. See my last post for the solution.
Last edited by ticojohn on 2023-02-01 18:54, edited 1 time in total.
I am not irrational, I'm just quantum probabilistic.

User avatar
ticojohn
Posts: 1284
Joined: 2009-08-29 18:10
Location: Costa Rica
Has thanked: 21 times
Been thanked: 44 times

Re: Issue after upgrade to kernel 5.10.0-21 amd64

#2 Post by ticojohn »

I have done some further investigating and find that the problem is also occurring with previous kernels 5.10.0-19 and 5.10.0-20. I have another system, an Intel NUC, that has NOT had the kernel updated and that system is not experiencing any problems. So I am left with concluding that something in the latest kernel update is the source of the problem.

When I look at journalctl I see something that may be of interest

Code: Select all

Jan 26 11:44:47 DebianB systemd[1763]: Stopped Multimedia Service.
Jan 26 11:44:47 DebianB systemd[1763]: Stopped target Basic System.
Jan 26 11:44:47 DebianB systemd[1763]: Stopped target Paths.
Jan 26 11:44:47 DebianB systemd[1763]: Stopped target Sockets.
Jan 26 11:44:47 DebianB systemd[1763]: Stopped target Timers.
Jan 26 11:44:47 DebianB systemd[1763]: dbus.socket: Succeeded.
Jan 26 11:44:47 DebianB systemd[1763]: Closed D-Bus User Message Bus Socket.
Jan 26 11:44:47 DebianB systemd[1763]: dirmngr.socket: Succeeded.
Jan 26 11:44:47 DebianB systemd[1763]: Closed GnuPG network certificate management daemon.
Jan 26 11:44:47 DebianB systemd[1763]: gpg-agent-browser.socket: Succeeded.
Jan 26 11:44:47 DebianB systemd[1763]: Closed GnuPG cryptographic agent and passphrase cache (access for web browsers).
Jan 26 11:44:47 DebianB systemd[1763]: gpg-agent-extra.socket: Succeeded.
Jan 26 11:44:47 DebianB systemd[1763]: Closed GnuPG cryptographic agent and passphrase cache (restricted).
Jan 26 11:44:47 DebianB systemd[1763]: gpg-agent-ssh.socket: Succeeded.
Jan 26 11:44:47 DebianB systemd[1763]: Closed GnuPG cryptographic agent (ssh-agent emulation).
Jan 26 11:44:47 DebianB systemd[1763]: gpg-agent.socket: Succeeded.
Jan 26 11:44:47 DebianB systemd[1763]: Closed GnuPG cryptographic agent and passphrase cache.
Jan 26 11:44:47 DebianB systemd[1763]: pipewire.socket: Succeeded.
Jan 26 11:44:47 DebianB systemd[1763]: Closed Multimedia System.
Jan 26 11:44:47 DebianB systemd[1763]: pk-debconf-helper.socket: Succeeded.
Jan 26 11:44:47 DebianB systemd[1763]: Closed debconf communication socket.
Jan 26 11:44:47 DebianB systemd[1763]: Removed slice User Application Slice.
Jan 26 11:44:47 DebianB systemd[1763]: Reached target Shutdown.
Jan 26 11:44:47 DebianB systemd[1763]: systemd-exit.service: Succeeded.
Jan 26 11:44:47 DebianB systemd[1763]: Finished Exit the Session.
We can see that a signal was issued to close the Multimedia session, but it doesn't close. Anybody have any helpful ideas?
I am not irrational, I'm just quantum probabilistic.

User avatar
ticojohn
Posts: 1284
Joined: 2009-08-29 18:10
Location: Costa Rica
Has thanked: 21 times
Been thanked: 44 times

Re: Issue after upgrade to kernel 5.10.0-21 amd64

#3 Post by ticojohn »

Now it's getting even more interesting. I find that the first time I try to exit from Kodi it exits normally. If I launch Kodi again during the same session I am not able to exit from Kodi. However, if I log out, or restart the system, then the next time I launch Kodi I am able to exit properly.

By the way, when I try to get help from Kodi they tell me that since I am using Debian they can't, or won't, help me due to Debian making mods to the Kodi code. :roll:
I am not irrational, I'm just quantum probabilistic.

CwF
Global Moderator
Global Moderator
Posts: 2625
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 190 times

Re: Issue after upgrade to kernel 5.10.0-21 amd64

#4 Post by CwF »

ticojohn wrote: 2023-01-26 19:10 By the way, when I try to get help from Kodi they tell me that since I am using Debian they can't, or won't, help me due to Debian making mods to the Kodi code
This rings a bell back when I looked at Kodi. I didn't care for the all-in-one approach anyway and prefer working with mpv. What functionality do you need to replace Kodi?

User avatar
ticojohn
Posts: 1284
Joined: 2009-08-29 18:10
Location: Costa Rica
Has thanked: 21 times
Been thanked: 44 times

Re: Issue after upgrade to kernel 5.10.0-21 amd64

#5 Post by ticojohn »

CwF wrote: 2023-01-26 19:54 This rings a bell back when I looked at Kodi. I didn't care for the all-in-one approach anyway and prefer working with mpv. What functionality do you need to replace Kodi?
MPV is fine for watching videos from a DVD, or something that you have downloaded. Kodi gives me the ability to stream content (movies, tv shows, documentaries, etc.) from the internet (there are many free and legal sites). And I have been using Kodi without issues for about 8 years, so I personally think it is a good home theater program.

As to the problem of Kodi not responding when I select Exit, I have found a workaround. As I use Xfce, it turns out that I can issue a start xkill with the ctrl+alt+esc sequence. That then changes the mouse pointer to an X and I can then kill the process.

Having said that, I would still like to find out what happened with the kernel upgrade that would cause this problem.
I am not irrational, I'm just quantum probabilistic.

CwF
Global Moderator
Global Moderator
Posts: 2625
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 190 times

Re: Issue after upgrade to kernel 5.10.0-21 amd64

#6 Post by CwF »

ticojohn wrote: 2023-01-26 20:34 Having said that, I would still like to find out what happened with the kernel upgrade that would cause this problem.
Yes, that is strange, I wouldn't expect any connection without hardware involved. That's why I ask what functionality. MPV does do all that, and I use it with hardware tuners - which could be more kernel dependent. My piecemeal approach has been reliable.

User avatar
ticojohn
Posts: 1284
Joined: 2009-08-29 18:10
Location: Costa Rica
Has thanked: 21 times
Been thanked: 44 times

Re: Issue after upgrade to kernel 5.10.0-21 amd64

#7 Post by ticojohn »

Something very strange has happened; the problem seems to have gone away for awhile and the returned. How strange.
I am not irrational, I'm just quantum probabilistic.

CwF
Global Moderator
Global Moderator
Posts: 2625
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 190 times

Re: Issue after upgrade to kernel 5.10.0-21 amd64

#8 Post by CwF »

Have you tried launching from a terminal. I can't say you would get a better log of what's happening but it would provide an extra kill option, and maybe reveal some window manager, or whatever odd interaction?

User avatar
sunrat
Administrator
Administrator
Posts: 6382
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 115 times
Been thanked: 456 times

Re: Issue after upgrade to kernel 5.10.0-21 amd64

#9 Post by sunrat »

What version of Kodi are you using? There's a newer one in Backports. You could also try a backports kernel.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
ticojohn
Posts: 1284
Joined: 2009-08-29 18:10
Location: Costa Rica
Has thanked: 21 times
Been thanked: 44 times

Re: Issue after upgrade to kernel 5.10.0-21 amd64

#10 Post by ticojohn »

CwF wrote: 2023-01-29 15:32 Have you tried launching from a terminal. I can't say you would get a better log of what's happening but it would provide an extra kill option, and maybe reveal some window manager, or whatever odd interaction?
Yes, I have launched from a terminal with the same results. And I haven't seen any error messages when launched from a terminal. It is somewhat strange but I can sometimes launch Kodi three or four times and not see the problem. And I have yet to see the issue on my Intel NUC. It only seems to happen on the desktop machine.
I am not irrational, I'm just quantum probabilistic.

User avatar
ticojohn
Posts: 1284
Joined: 2009-08-29 18:10
Location: Costa Rica
Has thanked: 21 times
Been thanked: 44 times

Re: Issue after upgrade to kernel 5.10.0-21 amd64

#11 Post by ticojohn »

sunrat wrote: 2023-01-30 02:10 What version of Kodi are you using? There's a newer one in Backports. You could also try a backports kernel.
It is Kodi 19.1. Yes, I saw that there is a newer version, 19.4 I believe, in backports. I'm wondering if that version of Kodi would likely require, or work best with, the kernel from backports. I'll need to read up on how to install something from backports (I already have backports in the sources list).
I am not irrational, I'm just quantum probabilistic.

User avatar
ticojohn
Posts: 1284
Joined: 2009-08-29 18:10
Location: Costa Rica
Has thanked: 21 times
Been thanked: 44 times

Re: Issue after upgrade to kernel 5.10.0-21 amd64

#12 Post by ticojohn »

sunrat wrote: 2023-01-30 02:10 What version of Kodi are you using? There's a newer one in Backports. You could also try a backports kernel.
Okay, before installing from backports I want to do a little sanity check to verify that I am doing it correctly.
Here is what I found. Is this correct?

Code: Select all

$ sudo apt install -t bullseye-backports kodi

Code: Select all

$ sudo apt install -t stretch-backports linux-image-amd64
I would probably start by installing just Kodi, and if the new version works without error I wouldn't necessarily need to install the kernel.

But one other thing comes to mind. I wonder if the kodi addons I have installed will work with 19.4. I suspect they will but it's just something else for me to think about.
I am not irrational, I'm just quantum probabilistic.

User avatar
sunrat
Administrator
Administrator
Posts: 6382
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 115 times
Been thanked: 456 times

Re: Issue after upgrade to kernel 5.10.0-21 amd64

#13 Post by sunrat »

ticojohn wrote: 2023-01-30 19:14 Okay, before installing from backports I want to do a little sanity check to verify that I am doing it correctly.
Here is what I found. Is this correct?

Code: Select all

$ sudo apt install -t bullseye-backports kodi

Code: Select all

$ sudo apt install -t stretch-backports linux-image-amd64
That's correct except stretch should be bullseye, but I would recommend installing a specific kernel first rather than the metapackage. If you install linux-image-amd64 from backports you won't get automatic upgrades for the stock kernel any more.
Find the latest kernel:

Code: Select all

apt list linux-image-6*
which shows the current latest is linux-image-6.0.0-0.deb11.6-amd64
then (as root or sudo):

Code: Select all

apt install -t bullseye-backports linux-image-6.0.0-0.deb11.6-amd64
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
ticojohn
Posts: 1284
Joined: 2009-08-29 18:10
Location: Costa Rica
Has thanked: 21 times
Been thanked: 44 times

Re: Issue after upgrade to kernel 5.10.0-21 amd64

#14 Post by ticojohn »

sunrat wrote: 2023-01-30 21:17
That's correct except stretch should be bullseye, but I would recommend installing a specific kernel first rather than the metapackage. If you install linux-image-amd64 from backports you won't get automatic upgrades for the stock kernel any more.
Find the latest kernel:

Code: Select all

apt list linux-image-6*
which shows the current latest is linux-image-6.0.0-0.deb11.6-amd64
then (as root or sudo):

Code: Select all

apt install -t bullseye-backports linux-image-6.0.0-0.deb11.6-amd64
Thanks for the feedback. Yes, I had copied that command and forgot to change stretch to bullseye. Thanks for pointing that out.

Interestingly I updated Kodi to 19.4 and there was no change in the behavior. Also, I upgraded the kernel on my Intel NUC to 5.10.0-21 and it does not appear to affect Kodi the same way as on my desktop machine. So I wonder if there is something else going on. Maybe something running in the background or possibly a hardware issue. I'll need to do a lot more investigating.
I am not irrational, I'm just quantum probabilistic.

User avatar
sunrat
Administrator
Administrator
Posts: 6382
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 115 times
Been thanked: 456 times

Re: Issue after upgrade to kernel 5.10.0-21 amd64

#15 Post by sunrat »

ticojohn wrote: 2023-01-31 15:07Interestingly I updated Kodi to 19.4 and there was no change in the behavior. Also, I upgraded the kernel on my Intel NUC to 5.10.0-21 and it does not appear to affect Kodi the same way as on my desktop machine. So I wonder if there is something else going on. Maybe something running in the background or possibly a hardware issue. I'll need to do a lot more investigating.
You need to look for error messages then. Run kodi from a terminal to see if any are shown. Check journalctl and ~/.xsession-errors etc.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
ticojohn
Posts: 1284
Joined: 2009-08-29 18:10
Location: Costa Rica
Has thanked: 21 times
Been thanked: 44 times

Re: Issue after upgrade to kernel 5.10.0-21 amd64

#16 Post by ticojohn »

sunrat wrote: 2023-01-31 21:00 You need to look for error messages then. Run kodi from a terminal to see if any are shown. Check journalctl and ~/.xsession-errors etc.
I checked journalctl, kodi logs and the .xsession-errors logs and found nothing to indicate the problem. But then I started thinking (it was about time I started!). I recently installed a new addon to Kodi on my desktop machine. I removed that addon and things appear to now be working correctly. So the reason I didn't see the problem on the NUC is that the problematic addon was not installed on the NUC.

So even though your suggestions didn't lead directly to resolving the problem I want to thank you for your help @sunrat. Your suggestions did get me to start using my head for something other than a place to grow hair. :lol:
I am not irrational, I'm just quantum probabilistic.

Post Reply