Latest Ubuntu 24.04 kernel makes mouse pointer position wrong in any Qt text edit
-
On the off chance anyone might have a suggestion, or experience this. It is the most annoying "glitch" ever... :(
Full details are in https://askubuntu.com/questions/1563901/latest-kernel-6-17-0-14-generic-breaks-mouse-click-in-text. Briefly, I use Ubuntu 24.04 running inside VirtualBox. The Qt is the 6.4.2 which shipped with 24.04. All my developing has been fine for two years.
As of today they upgraded the Ubuntu kernel from 6.14 to 6.17. Now when I am either text editing in Creator, or in, say, a
QPlainTextEditin a Qt program of mine, the mouse cursor position for all clicks, drags etc. is "off" by about one line. Clicking in a line selects or puts the I-beam cursor into the same position on the line above. It seems to be related to the exact position of the pixel clicked. Whatever it is, it is quite different from up until yesterday. As a present/short-term workaround I have made grub revert to the last kernel, 6.14, and all is well there. But that won't be available for much longer.Trying various texty-editory applications (such as gedit or PyCharm) I believe this apparently only affects Qt ones (like Creator or my own), I think non-Qt ones do not show this problem. So what in the world in a kernel update could affect Qt text/editing but not others?? I think I saw the update included e.g. new "mesa" drivers, is that possible?
For a while I can use the older 6.14 kernel. But if & when at some point I get upgraded that will disappear from the Ubuntu repo. And I will be left with an Ubuntu which is simply unusable for any Qt development.... :@
Any thoughts at all as to what in Qt but not elsewhere could be affected?
-
Further to my https://askubuntu.com/questions/1563901/latest-kernel-6-17-0-14-generic-breaks-mouse-click-in-text, that is now receiving other responses & posts with the same issue. Kernel 6.17 does not have its mouse work correctly/as it used to when inside any Qt application --- your own or Creator or kate etc.
We will have to wait to see where the problem lies, i.e. will a future kernel version be altered to make it work again or does a fault requiring a change lie inside Qt's code? For now I will mark this as the solution and hope for a future resolution....
-
Hi,
Do you also see this in Kate ?
6.17 is also breaking things with Nvidia drivers that are not even a year old... -
Hi,
Do you also see this in Kate ?
6.17 is also breaking things with Nvidia drivers that are not even a year old... -
@SGaist said in Latest Ubuntu 24.04 kernel makes mouse pointer position wrong in any Qt text edit:
Do you also see this in Kate ?
What/who is "Kate"? :)
@JonB KDE's versatile editor :-)
-
Hi,
Do you also see this in Kate ?
6.17 is also breaking things with Nvidia drivers that are not even a year old...@SGaist said in Latest Ubuntu 24.04 kernel makes mouse pointer position wrong in any Qt text edit:
Do you also see this in Kate ?
Yes! I installed the Ubuntu repo one via apt install, which is how I stick to all things Qt. I noticed that kate turns out to be Qt5: it is version 23.08.5, built against Qt 5.15.13. All my stuff is the 24.04-supplied Qt 6.4.2. So the problem is independent of the Qt version, but nonetheless seems to affect only Qt applications from what I can tell. Any ideas what this could be about?
At https://askubuntu.com/questions/1563901/latest-kernel-6-17-0-14-generic-breaks-mouse-click-in-text I have received one suggestion:
Try uninstalling
linux*6.17*andlinux-*-hwe*then installinglinux-image-genericI don't know what this is about, and I have never had to do anything like this in the past. I may try it. So long as it does not destroy and lock me out of the Ubuntu because of my VirtualBox host/client, which for all I know won't play right with some different kernel, and I don't want to lose it over this....
-
@SGaist said in Latest Ubuntu 24.04 kernel makes mouse pointer position wrong in any Qt text edit:
Do you also see this in Kate ?
Yes! I installed the Ubuntu repo one via apt install, which is how I stick to all things Qt. I noticed that kate turns out to be Qt5: it is version 23.08.5, built against Qt 5.15.13. All my stuff is the 24.04-supplied Qt 6.4.2. So the problem is independent of the Qt version, but nonetheless seems to affect only Qt applications from what I can tell. Any ideas what this could be about?
At https://askubuntu.com/questions/1563901/latest-kernel-6-17-0-14-generic-breaks-mouse-click-in-text I have received one suggestion:
Try uninstalling
linux*6.17*andlinux-*-hwe*then installinglinux-image-genericI don't know what this is about, and I have never had to do anything like this in the past. I may try it. So long as it does not destroy and lock me out of the Ubuntu because of my VirtualBox host/client, which for all I know won't play right with some different kernel, and I don't want to lose it over this....
@JonB said in Latest Ubuntu 24.04 kernel makes mouse pointer position wrong in any Qt text edit:
I don't know what this is about
It is a suggestion to downgrade the kernel to the original one (instead of the latest hwe update).
-
@JonB said in Latest Ubuntu 24.04 kernel makes mouse pointer position wrong in any Qt text edit:
I don't know what this is about
It is a suggestion to downgrade the kernel to the original one (instead of the latest hwe update).
@jsulm
Ah, right. Well, the previous (hwe?) 6.14 is working fine, so I might as well stick with that, at least for now? But I know at next update that will disappear. And as soon as I accept some update it will presumably move to the latest (>= 6.17) and I will be stuck, because the 6.14 will have been removed. Maybe the "generic" will remain available? -
@jsulm
Ah, right. Well, the previous (hwe?) 6.14 is working fine, so I might as well stick with that, at least for now? But I know at next update that will disappear. And as soon as I accept some update it will presumably move to the latest (>= 6.17) and I will be stuck, because the 6.14 will have been removed. Maybe the "generic" will remain available? -
Further to my https://askubuntu.com/questions/1563901/latest-kernel-6-17-0-14-generic-breaks-mouse-click-in-text, that is now receiving other responses & posts with the same issue. Kernel 6.17 does not have its mouse work correctly/as it used to when inside any Qt application --- your own or Creator or kate etc.
We will have to wait to see where the problem lies, i.e. will a future kernel version be altered to make it work again or does a fault requiring a change lie inside Qt's code? For now I will mark this as the solution and hope for a future resolution....
-
J JonB has marked this topic as solved on