11-16-2020, 10:38 AM
Ha, awesome to hear that it works on the PinePhone! I have not bought one of those yet, but if I did I would probably try the same thing. Nice work acid andy!
A few updates after testing my "stable" 5.6.19 images (above) for a while.
1) You need to make sure that your user is in the gpio group for the LCD brightness script to work right. I think I forgot to mention that in the main post.
2) Sometimes, for unknown reasons, if the X server goes to sleep, it does not come back on fully. The backlight comes on, but the display never kicks back on. I get a backlit black screen. I have to leave it for a long time for this to happen, and it does not happen all the time. A temporary workaround is to run the command:
as a startup command in whatever DE/WM you are using (in my case, JWM). This keeps the display from going to sleep at all. That command might be overkill, perhaps only one or the other options is needed. But this way, I can manually lock my screen or start a blank screensaver with a key shortcut and it comes back on every time reliably now. So, the 5.6.19 kernel does not play well with X and energy star settings, or something like that. I did not have this issue with the 5.5.19 kernel that I upgraded from, but it seems like a simple-enough bug to workaround, so I have not investigated any further. Nothing is showing up in Xorg.0.log at least.
If anyone has a better fix, I would love to hear it.
Other than those two points, this 5.6.19 "stable" image has been working nicely for me. YMMV, as always.
A few updates after testing my "stable" 5.6.19 images (above) for a while.
1) You need to make sure that your user is in the gpio group for the LCD brightness script to work right. I think I forgot to mention that in the main post.
2) Sometimes, for unknown reasons, if the X server goes to sleep, it does not come back on fully. The backlight comes on, but the display never kicks back on. I get a backlit black screen. I have to leave it for a long time for this to happen, and it does not happen all the time. A temporary workaround is to run the command:
Code:
xset s off -dpms
as a startup command in whatever DE/WM you are using (in my case, JWM). This keeps the display from going to sleep at all. That command might be overkill, perhaps only one or the other options is needed. But this way, I can manually lock my screen or start a blank screensaver with a key shortcut and it comes back on every time reliably now. So, the 5.6.19 kernel does not play well with X and energy star settings, or something like that. I did not have this issue with the 5.5.19 kernel that I upgraded from, but it seems like a simple-enough bug to workaround, so I have not investigated any further. Nothing is showing up in Xorg.0.log at least.
If anyone has a better fix, I would love to hear it.
Other than those two points, this 5.6.19 "stable" image has been working nicely for me. YMMV, as always.