/srv/irclogs.ubuntu.com/2020/08/25/#ubuntu+1.txt

=== halvors1 is now known as halvors
=== halvors1 is now known as halvors
=== kinghat5 is now known as kinghat
alichtmanHey, I've got a really weird issue that popped up for me today. I turned my monitor on when I got up this morning and got a black screen. Couldn't revive it or enter any keystrokes to do anything, so I powered off the computer with the power switch. I restarted and (applied some pending updates I'd installed) now can not type all the characters on my keyboard in chat apps like Discord or Signal. Otherwise everything 21:42
alichtmanworks fine. Where do I even start debugging this?21:42
alichtmanThe original cause of the crash was an Xorg page allocation failure21:42
alichtmannot sure that's relevant though21:42
alichtmanI was in #ubuntu and it was pointed out to me that those are both electron apps21:43
Bashing-omalichtman: Xorg does control the keyboard - maybe re-install xorg ?21:44
alichtmanthat seems scary lmao21:44
alichtmanmy gut reaction is to not do that21:44
alichtman$ sudo apt reinstall xorg and then restart?21:45
alichtmanOr should I just restore from a backup?21:45
Bashing-omalichtman: Mihght be good to ask the package manager what it thinks of the overall situation - ; sudo apt -f install ; sudo dpkg -C ' to preclude inconsisyent packages.21:46
alichtman0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.21:47
alichtmanHere's my uname -a: Linux arctic 5.6.14-050614-generic #202005200733 SMP Wed May 20 07:38:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux21:48
Bashing-om!info linux-image-generic21:48
ubottulinux-image-generic (source: linux-meta): Generic Linux kernel image. In component main, is optional. Version 5.4.0.26.32 (groovy), package size 2 kB, installed size 17 kB21:48
tomreynthat's an outdated mainline build21:48
alichtmanShould I update the kernel?21:49
tomreynonly if you weant things to work and not have unfixed security vulnerabilities.21:49
alichtman:)21:50
alichtmansudo apt-get dist-upgrade is the command I should run?21:50
tomreynwhat did you run to get this kernel image?21:50
tomreynyou can't get this through apt, you must have gotten it manually.21:51
alichtmanI had a lot of issues with the original kernel so I had to install a newer (then) kernel with this: https://github.com/pimlie/ubuntu-mainline-kernel.sh21:51
alichtmanGPU driven, mainly21:51
alichtmanThis was me: https://askubuntu.com/questions/1240879/rx-5500-xt-ubuntu-20-10-instability-crashing-drmamdgpu-dm-commit-planes-cons21:52
tomreynso use this script to install the current non rc kernel21:52
tomreynand do so regularly, after removing all but the latest two kernel images.21:53
tomreynwith mainline builds, you're pretty much on your own, the same goes for ubuntu versions which are in development.21:54
alichtmanHow do I get on the "update my kernel whenever a new stable kernel is released" train?21:54
tomreynread the github readme for the script.21:55
tomreyni'm assuming by "stable kernel" you're referring to a non-rc mainline kernel build21:55
alichtmanNo, I know how to use the script. I just didn't want to have to use it in the first place. How do normal Ubuntu users keep their kernel up to date (and how do I get my system back to a point where I don't have to worry about this?)21:56
alichtmanI would make some different decisions about setting up my system now than I did a few months ago21:56
alichtmanI was just inexperienced (not that I really know what I'm doing fully now, either)21:57
tomreynthe latest supported kernel version in groovy is a 5.4 kernel (other than oem, which i think is 5.6)21:57
alichtmanI'm running the 5.6.14 kernel, so I'm not outdated21:57
alichtmanI'm ahead of the current release, right?21:57
tomreynif that's too old for your hardware then running mainline for now may be the right thing to do. alternatively, you could consider using a PPa, such as the oibf or padoka ppa21:58
tomreyn*oibaf21:58
tomreynyou're running a higher kernel version than the default kernel in grovy21:58
alichtmanCorrect21:58
alichtmanI had an AMD gpu that kept acting up21:58
tomreynthe higher version does not mean that it is a more recent build21:59
alichtmanand bumping up to a newer kernel was suggested21:59
alichtmanOh?21:59
tomreynyour kernel image was built on May 20 07:38:05 UTC 202021:59
alichtmanright21:59
tomreynchances are that the default groovy kernel image was built later than that22:00
alichtmanAren't the versions reproducible? I was under the impression that a 5.4 build on day X and a 5.4 build on day Y should be identical22:00
tomreynthis can matter for security, and for backported patches22:00
alichtmanright22:01
tomreyn5.4 is a major and minor version number, but kernel versions consist of three numbers.22:01
alichtmangotcha, I didn't consider the patch number22:02
tomreynif you look at https://www.kernel.org/ you'll see the latest mainline kernel versions for all trees the kernel developers support22:02
alichtmanso the right course of action here is to grab which kernel?22:02
alichtmanI don't want to paste a wall of text but the available versions to me are everything up to v5.8.022:03
alichtmanThe list is pulled from kernel.ubuntu.com22:04
tomreynhttps://kernel.ubuntu.com/~kernel-ppa/mainline/22:04
tomreyn5.8.3 is the latest22:04
alichtmanyes, I misread the output22:05
alichtman5.8.3 is the latest I can install22:05
alichtmanI should do that?22:05
alichtmanalso thank you for helping me through this22:05
alichtmanI know I've asked a lot of basic sysadmin questions22:06
tomreynyou have four options i can think of: (a) keep updating to the latest mainline kernel builds until groovy provides a default kernel image which has at least the version you need; (b) try the grooxy default kernel again, hoping that hardware support for your hardware has been backported (not very likely); (c) try the linux-oem kernel, which i think is at 5.6, but this kernel is a bit dodgy; (d) see if you can get a recent kernel, Xorg, and 22:07
tomreynmesa/graphics driver from one of the PPAs I mentioned, oibaf or padoka.22:07
alichtmanHere's my final hardware for reference: https://pcpartpicker.com/b/cdDxFT22:07
tomreyni think the last one may serve you best22:07
alichtmanthe Nvidia card I have now is pretty stable22:08
alichtmanunlike the AMD one I had before22:08
alichtmanso I might be ok with a default kernel?22:08
tomreynoh you have an nvidia? i thought you said you had an amdgpu driven one22:08
alichtmanI did, and then got rid of it22:08
alichtmanbecause I couldn't use my computer22:08
tomreynwith nvidia, option d does not apply22:09
tomreynand with nvidia, i cannot help22:09
alichtmanyeah, because I don't need mesa (pretty sure)22:09
alichtmanI'm leaning towards the groovy default kernel22:10
tomreynthere's a 'graphics-drivers' ppa, which might help you withnvidia22:10
alichtmanI never actually tried the default kernel with my nvidia card22:10
alichtmanto the best of my memory22:10
alichtmanI'm going to grab some dinner but I haven't found the right version to run yet, just searching online. Is it bad to install 5.8.3?22:16
alichtmanWhat do you recommend running?22:16
tomreynwith nvidia, you'll probably do best with the default kernel image, things will likely break on newer ones.22:20
alichtmanso that would be 5.4.0.26.3222:36
alichtmanAlso why do you say that things will break on the newer ones?22:42
alichtmanI was under the impression that newer kernels were backwards compatible. I have an RTX 2060, which isn't "bleeding edge"22:43
tomreynnvidia drivers target specific kernel version ranges, they need to be patched by nvidia to support newer kernel versions which go through abi changes, especially when the nvidia drivers make use of internal abis (which they should not, since those aren't guaranteed to be stable).22:45
alichtmanMakes sense.22:45
tomreynunlike those of other hardware manufacturers, and even other nvidia drivers, nvidia graphics drivers are proprietary, so no one but nvidia can make them compatible to newer kernel versions.22:46
alichtmanThat was why I bought an AMD card, but I couldn't get it to work22:46
alichtmanMight've just had a dud card, I dunno22:47
tomreynsome of the graphics cards amd released during the past years took a long time to get stable on linux, for late driver support.22:47
tomreynin some cases over a year.22:48
tomreynbut at least they're trying22:48
tomreynothers would work fine pretty soon after the hardware hit the shops, given a current kernel22:48
alichtmanI think I'm in that last category22:49
alichtmanI have a 2060 which seems to be well supported22:49
alichtmanespecially now22:49
alichtmanand I've had no real GPU issues with this card22:49
alichtmanjust this weird typing issue on electron apps22:49
alichtmanAnd also VSCode22:50
alichtmanyeah this has to be an electron issue22:50
alichtmanSo.... what do I do from here?22:51
alichtmanOption 1. Restore from TimeShift backup and hope this doesn't happen again. 2. Upgrade / downgrade kernel to ______22:52
alichtman3. Reinstall electron maybe? I already reinstalled Discord and that didn't fix the issue22:53
alichtmantomreyn: Ok, so I noticed somehting weird and think I might have fixed it. The screen reader option was enabled (and I've never enabled it). I disabled it and now I can use Discord normally. Same for VSCode and Signal23:03
alichtmanI am SO confused23:04
alichtmananyways, fixed now23:11
alichtmanI posted my solution on askubuntu in case anyone else runs into this problem23:11
tomreynglad you worked it out.23:16
alichtmanhaha me too23:21
alichtmanthanks for all the help23:21
alichtmanI really appreciate it23:22

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!