On Thu, Mar 13, 2025 at 10:02:48PM GMT, Jonathan Gray wrote:

> On Wed, Mar 12, 2025 at 03:14:59PM +0100, Marcus Glocker wrote:
> > On Sun, Mar 09, 2025 at 11:44:10AM GMT, Marcus Glocker wrote:
> > 
> > > On Sat, Mar 08, 2025 at 09:05:50AM GMT, Marcus Glocker wrote:
> > > 
> > > > On Sun, Mar 02, 2025 at 08:08:28PM GMT, Marcus Glocker wrote:
> > > > 
> > > > > On Sun, Mar 02, 2025 at 02:58:20PM GMT, Jonathan Gray wrote:
> > > > > 
> > > > > > On Sat, Mar 01, 2025 at 06:43:17PM +0100, Marcus Glocker wrote:
> > > > > > > >Synopsis:        ThinkPad X1 screen turns occasionally black
> > > > > > > >Category:        video inteldrm
> > > > > > > >Environment:
> > > > > > >   System      : OpenBSD 7.6
> > > > > > >   Details     : OpenBSD 7.6-current (GENERIC.MP) #14: Sat Mar  1 
> > > > > > > 14:53:36 CET 2025
> > > > > > >                    
> > > > > > > ha...@x1.nazgul.ch:/sys/arch/amd64/compile/GENERIC.MP
> > > > > > > 
> > > > > > >   Architecture: OpenBSD.amd64
> > > > > > >   Machine     : amd64
> > > > > > > >Description:
> > > > > > >   In X11, the screen of my ThinkPad X1 will occasionally turn 
> > > > > > > black.
> > > > > > >   The only way to recover, is to switch to console, and back to 
> > > > > > > X11.
> > > > > > >   After that, follwing lines are printed on the console:
> > > > > > > 
> > > > > > >   drm_gem_plane_helper_prepare_fb: explicit fence not handled
> > > > > > >   drm_gem_plane_helper_prepare_fb: explicit fence not handled
> > > > > > 
> > > > > > what are you running in X when this happens?
> > > > > 
> > > > > Basically not much.  I run WindowMaker with some docker apps, two
> > > > > xterms, and xconsole.  The issue so far appeared when the machine
> > > > > was idle.  First I thought the issue is triggered by the hardware
> > > > > screen saver, but that got activated a few times today, and the issue
> > > > > didn't re-appear yet.
> > > > > 
> > > > > I have currently no idea how to trigger the issue, since it appears
> > > > > very intermittently.  For example, today the machine was used the
> > > > > entire day, with some long idle periods in between, and the issue
> > > > > didn't re-appear yet.
> > > > > 
> > > > > > try this:
> > > > > 
> > > > > Thanks for the diff.  But based on my above explanation it's pretty
> > > > > hard to find out whether the diff makes a difference.  Maybe I can 
> > > > > find
> > > > > out a pattern over time.
> > > > 
> > > > Just for the notes, since it just happened again;  The system was idle
> > > > when it happened for like 2h.  Then pressed a key to remove the hardware
> > > > screen safer, screen remained black.  Switched to console 1, there was
> > > > no new message there.  Switched back to X on F5, console message
> > > > appeared:
> > > > 
> > > >         drm_gem_plane_helper_prepare_fb: explicit fence not handled     
> > > >  
> > > >         drm_gem_plane_helper_prepare_fb: explicit fence not handled
> > > > 
> > > > Maybe I just apply your diff, and see if still happens within the next
> > > > few days/weeks.
> > > 
> > > Got it again today morning, just after a few minutes X idle.  I'm
> > > running with your diff now.  Also added two printfs in the 'if' branch,
> > > to see when which one gets entered.
> > 
> > Issue not appeared again since running with it starting on Sunday, and
> > working daily with the laptop.  I think your diff helps ...
> 
> thanks, committed

Cool, and thanks as well for the patch!

Reply via email to