03-22-2020, 12:37 AM
So it appears there's a problem when upgrading from older kernels to something around 5.5 or later. The symptom is that when you boot the new kernel, the screen is very dim, possibly appearing completely black.
The problem seems to be that with the older kernels, screen brightness was on a 8-bit 0-to-255 scale, and the newer kernels use a 12-bit 0-to-4095 scale. So the reasonably bright "224" (for example) brightness that you had with the old kernel becomes a rather dim "224" with the new kernel.
It seems that this issue occurs with a few different distributions' kernel packages. I'm not sure if any distributions have any fixes (maybe a transition script) built into their kernel packages.
My current thinking is that the best approach (for individual users) is to verify that your Fn-F1 and Fn-F2 are working for adjusting your screen brightness before upgrading the kernel. Then when you boot your new kernel and you can't read the screen you can use them to turn up the backlight. I neglected to do this.
A hackish approach could be to poke at the files in /sys/class/backlight/edp-backlight/ (you could do this via SSH if you can't adjust brightness via the keyboard/trackpad/screen)
The problem seems to be that with the older kernels, screen brightness was on a 8-bit 0-to-255 scale, and the newer kernels use a 12-bit 0-to-4095 scale. So the reasonably bright "224" (for example) brightness that you had with the old kernel becomes a rather dim "224" with the new kernel.
It seems that this issue occurs with a few different distributions' kernel packages. I'm not sure if any distributions have any fixes (maybe a transition script) built into their kernel packages.
My current thinking is that the best approach (for individual users) is to verify that your Fn-F1 and Fn-F2 are working for adjusting your screen brightness before upgrading the kernel. Then when you boot your new kernel and you can't read the screen you can use them to turn up the backlight. I neglected to do this.
A hackish approach could be to poke at the files in /sys/class/backlight/edp-backlight/ (you could do this via SSH if you can't adjust brightness via the keyboard/trackpad/screen)