Running pmOS with Phosh on a PinePhone from a fresh install (today).
Behavior: When phone is locked, power-button is pressed to unlock. The "wifi-status", clock, etc. appears with the "swipe up" arrow in the bottom. When swiped, I get a numeric password prompt. I enter the pin, it does some animation for a while, then goes back to black screen.
When I try to unlock a second time, I see the clock+wifi-thing, but I am unable to swipe up. Touch display seems completely unresponsive, thus I am unable to unlock.
Error reproduced after several hard-reboots, always the same.
Expected behavior: Phone unlocks first time, or gives a "wrong password" message. Upon second try, the swipe works and password-prompt reappears. Upon correct password, phone is unlocked.
I have full SSH access to the phone all the time, and it responds live to calls/SMS.
When I "tab" the black screen it responds and shows the wifi+clock thing. Unsure if this is cased by the touch or the accelerometer picking it up.
Not an actual screenshot, but it looks basically like this just without the card-error
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
That sounds very possible, I build it myself following the dialog. How can I apply the patch? (or alternatively, check if this is in fact the problem?)
The patch is for u-boot. I believe pmbootstrap pull will get the changes to your pmaports repo on your computer, I merged the patch in both the edge and stable pmaport branches a few hours ago..
I'm not sure how you can view the DDR freq on the device, I didn't see anything obvious in /sys. @PureTryOut might know more about that.
You can query apk to see which version of the u-boot package is installed: apk info u-boot-pinephone, it should be u-boot-pinephone-2020.07_git20200803-r1. But that's just the package, and doesn't indicate the version of u-boot flashed to the boot device.. I don't know of a way to query that. You should be able to update/flash the newer u-boot by running this on the phone:
sudo apk updatesudo apk upgrade<verify that the u-boot-pinephone installed is the right version before continuing>sudo update-u-boot
Hmm, in that case, I'm fresh out of ideas. I'm not able to reproduce this on my device. When you ran pmbootstrap init did you select the stable (v20.05) or edge branch?
(gsd-usb-protection:3023): usb-protection-plugin-WARNING **: 20:21:59.724: Error calling USBGuard DBus to change the protection after a screensaver event: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.usbguard1 was not provided by any .service files(phoc:2911): phoc-wlroots-CRITICAL **: 20:22:00.848: [backend/drm/drm.c:364] Failed to page-flip output 'DSI-1': a page-flip is already pending
The last line gets added again and again every time I press the power-button or touch the screen
I built an older version of mesa (20.0.7), similar to what is in the pmaports stable branch (where I didn't hit this issue) and I can still reproduce this.. so at least we can rule out some Mesa regression causing it.
FIWI, I've attached strace to phosh but did not find anything helpful there.
To move forward with this, we could try to guess which package caused the regression or build phosh from source, see if we can reproduce it there, and if we can, debug it with gdb or debug prints to figure out where and why it hangs. src/lockscreen.c and src/lockscreen-manager.c look relevant.
I noticed there's a phosh process that starts as soon as you hit 'unlock', and that if you kill it before the display shuts off again (i.e. over ssh), then it will unlock and you're taken to your phosh 'desktop'. This seems to be really reliable.
pstree shows this errant phosh process is started by phosh
I am running into this issue as well on edge. I suspect it has to do with some pam module as @vknecht suggested. I built an image with pmbootstrap, selected edge, kept most other things vanilla (no extra packages), and ran into this issue on first boot, so I don't think it's a configuration issue.
[Edit] I get this warning in ~/.xsession-errors, which points to a PAM issue as well:
(phosh:5953): phosh-auth-WARNING **: 13:24:55.256: pam_authenticate error Have exhausted maximum number of retries for service
I made a significant discovery thanks to earlier hints about PAM. Phosh starts a background thread to interact with PAM, and it appears that thread is hanging. That's why killing the new thread/process that started after attempting to login would result in phosh unlocking. I've confirmed that this problem started happening with linux-pam 1.4.0 in Alpine by reverting to 1.3.1 (which is also in Alpine stable). With <1.4.0, phosh unlocks as expected. It's only after upgrading to 1.4.0 that it starts misbehaving.
The warning @chiraag-nataraj saw is emitted after pam_authenticate returns, but I've never seen this happen yet on my device.
I found that linux-pam 1.4.0 in Alpine has a patch to pam_sm_authenticate, I don't know if calling pam_authenticate leads somewhere down the line to pam_sm_authenticate, and the patch seems to just be a refactor and nothing functional.