Librem 13 Screen Flicker / crash linked to wifi / kill switch

Out of curiosity - are the surfaces you’re placing your laptop on at these different locations made of different material? Are things worse when on a metal surface vs on a non-conducting surface?

Doesn’t seem to have an impact as far as I can tell. Most of the surfaces are wood tables, and it seems to have problems on some, but not all. Similar to if I carry it while walking (and watching for flicker); it’s fine part of the time, but if I move to certain areas it seems to more frequently have the problem, suggesting to me it is something related to wifi. However, this is a different story from my trackpad problem (which I bet is a ground-related issue as it is sensitive to surface), but that never got any resolution, and I have to keep a USB mouse plugged in. (Librem13 Touchpad unresponsive on table or battery)

If flipping the Wifi kill switch seems to help, have you opened the laptop to look at the wiring for the Wifi module? Do the wires look firmly connected, and not loose/potentially shorting somewhere?

Havn’t opened it up yet, but I may take a look. I am assuming it is not a wiring issue, given how the issue seems somewhat sensitive to wifi signal (described below), but will check if all else fails!

I’m on KDE and I noticed the flickering was almost always when I had the wireless-status-icon menu open. I think what happens when I open the menu is that it scans for available networks. So I attributed it to that.

I did some testing and found that this seems to be the case for me as well. Overall the flicker is somewhat unpredictable, but I have (most of the time) been able to get it to flicker severely and crash if I open up the wifi network selector (“Select Network” option in PureOS). I also found it seems to be especially severe when both scanning for networks on that screen, and also when connected to a certain network in my office environment. I don’t know any of the configurations for the networks, but the point is that it seems sensitive, at least some of the time, to the scanning/connecting to certain networks. At my house I only have one access point (though I broadcast both 5Ghz and 2Ghz, and many other ssid’s are detected from neighbors, but all residential access points I assume) and it flickers occasionally with wifi on, but nothing near as severe as some of the connections and physical locations around my work. Then again, I can stay in the same physical location, on the same network, and get severe flicker at times, but other times it is fine (it seems, randomly, to react for better or worse to sleep-wake cycling, similar to this issue that I also have with the fan/CPU throttling: CPU fan stuck at high speed sometimes).

Thanks for the feedback so far, taylor-williamc & Caliga.

EDIT: To illustrate; ficker was more or less fine in home environment (some flicker on login as is typical, but then stopped). However, after traveling to different physical location (work environment), flicker was severe, causing a crash. After about 8 sleep-wake cycles without improvement, on a 9th it all of the sudden is functioning without issue, despite not moving physically at all.

I noticed the same thing a few times myself, the screen flickers and then the flickering stops. As well, another bug I’ve noticed is the fans. When I let it sleep and close it up, it goes to sleep and all is well. Sometimes though when I open it up and use it, the fans go to full speed and the only way I can get it to stop (I believe it’s the CPU fan but could be others) is by putting it back to sleep or restarting. I know there are fan control software out there but it’s a little worrisome given that it’s brand new. The flickering for me stopped happening and only happened once or twice, but I can confirm that the wifi was active and being used.

Hi. I have a similar issue. In my case I’m not sure but I think it helps to change the angle of the display. And yes, it has something to do with the wireless signal. My amateur guess is it has something to do with the display cable and the antennas in the lower section of the display; maybe bad islation?

This is just a wild guess… I disassembled my Librem 13 and at least there is no apparent damage. However, thanks for bringing this up! I thought I’m the only one with this problem.

In the meantime I’m sure that at least in my case it depends primary on the wifi network I’m connected to. Most of the time I only use my own phone (it’s a GT-I9300) as hotspot and I occasionally see any flickering. But when I connect to the hotspot of my wife’s phone (it’s a Fairphone 2) the flickering is extremely severe and crashes the system (just as you described it in your original post) – almost every time.

The thing is: I don’t move. I sit at the same table and the phones are on the same spot. I get the same signal strength and both networks use the same frequency 2.437 GHz (channel 6). It’s really strange…

I try to make a video of the screen flickering in the next days.

I’ve got the impression, that during the last weeks suddenly my 13v3 startet with Screen flickering. Since yesterday/today - after another software-update - the situation got even worse. Flickering for a minute and eventually the screen slowly died away (from left to right). After directly sending the laptop to sleep and restarting everything’s fine.

1 Like

OK, it took me longer than I thought to make the videos but here they are.

The first and second video show “normal” screen flickering, the third one shows the effect of searching for wifi networks (screen flickering increases).

Video 4 and video 5 show the worst case when after severe screen flickering the screen freezes and goes dark. I just looks like the screen dies. When I watch this process for some time, send the notebook into hibernation and wake it up again, it takes some time for the screen to recover. For several minutes the edges of the screen are brighter than the rest (see this picture).

@veggies Is this the flickering you are seeing or are we talking about different issues?

@mladen Could you please have a look at this. Is this a known problem?

3 Likes

Thanks for the videos, @stefann.

Regarding the flicker, it is very similar to that shown in your videos. Mine tends to vary somewhat randomly in how ‘erratic’ it is (how rapdily and how large the flickers occur), but it looks very much like in the first few videos. Also, when it gets severe and kills the screen, it looks quite similar to video 4 and 5, though most of the time on my end that lock-up / “fade out” happens a bit more rapidly, and seems to totally resolve upon sleep-wake cycle (until the whole flicker cycle starts up again after a minute or two). I havn’t noticed the brightness around the edges after sleep-wake (unless I just havn’t payed attention to them, but in the screenshot they do not seem subtle).

One other change I’ve noticed is similar to @ajlok experience. I noticed that for a few months the flickering seemed to have become much less frequent when in my office. Then, seemly out of nowhere, it flared up about a month or so ago and has become even worse than originally. Now, it will be guaranteed to start flicking after a minute or so, and continue until it freezes, almost 100% of the time in that location. As far as I know the network didn’t change, unless the organization made some sort of internal adjustment. Thus, perhaps there was an update-realted change that effected it? Also I can note I do not have any problems (nor have I ever had freezing) at my home network, during any update cycle. Conversely, I have always had problems in certain locations around my workplace (other than office), regardless of update cycle. The point is just to reiterate that it is location and/or network dependent, and there has never been a time when it always flickered or never flickered; just some variance in severity/frequence in some locations

No, they’re not subtle at all… It depends on how long I wait until I send my notebook into sleep mode. The longer I wait the brighter the edges get when I wake it up again and the longer it takes for them to disappear.

One more thing: Not that it seems very likely but i can count out the wireless module as cause for this issue because I can reproduce it with two different modules (for the reason why I replaced the original see my comments here: bug report T23).

I can observe similar flickering and display dropouts with my non-purism computer, Ubuntu 14.04 and 18.04 and an external 4K display.

There is a big open issue at freedesktop.org regarding this and maybe this does affect more computers and GPU chipsets than reported (AMD).

The most probable reason is a new power management feature:

https://bugs.freedesktop.org/show_bug.cgi?id=102646#c25

Just a guess (I am waiting for months now to get a decent fix for that)…

This can be caused by bad drivers indeed, there were some reports that proprietary firmware actually helped. Could you guys test some distro that is not using libre kernel, like Mint, Arch?

1 Like

I have the flickering problem on my Librem 13v2 and have posted to the forum at least twice, once about a year ago, and once recently. I, too, have tried the suggested workarounds, without success. It is very annoying and makes some web content unreadable for me. I see the flickering mostly on certain web pages that are high contrast and have a dark background. Turning WiFi off isn’t really an option for me, as I need it for email access, web access, etc. The Librem 13 is a great laptop except for this problem.

OK, I’ll test the proprietary firmware for our graphics hardware by installing firmware-misc-nonfree on Debian testing and adding the kernel parameter i915.enable_guc=2 to enable GuC and HuC (as described in the Arch Linux wiki).

@mladen Please tell me if you are talking about some other proprietary firmware.

@stefann Any changes?

@all: you might wanna try this: http://devbraindom.blogspot.com/2013/03/eliminate-led-screen-flicker-with-intel.html

Here’s an Arch Linux package to automatize this, just unpack it to / and tweak the /etc/intelpwm.conf : https://cloud.puri.sm/s/imGdSTeMeiwZew7

Please report if it helps.

I’ve got confirmations that the above solution works. Please test and report your findings.

Sorry it took me so long. I’m in my second place of residence and I wasn’t able to reproduce the issue so easily… Here, I can connect to the hotspot of my wife’s phone without any problems… So the original reporter was right: the problem seems to be correlated with physical location and/or wifi signals.

However, I had extremely severe screen flickering today – after I enabled GuC and HuC (see above). So from now on I’m going to test the solution posted by @mladen.

On Debian (testing) it seems like I’m affected by this bug: intel-gpu-tools: Unable to read its own config files due to use-after-free. All register access tools (for example intel_reg read and intel_reg write) fail… Is there an easy workaround?

Sorry, I didn’t find a way to test this… I built intel-gpu-tools as described on the projects website but I’m still affected by the issue mentioned above (intel-gpu-tools is unable to read its own config files). Am I the only one?

After reading a bit about the screen flickering issue caused by low PWM modulation frequencies I get the feeling that this is a completely different issue… @mladen Have you watched the videos I posted?

Btw, please delete or edit the obsolete Troubleshooting entry for Screen Flickering. enable_rc6 is no valid parameter for i915 anymore.

You can list all available module parameters with sudo modinfo i915. Parameter enable_rc6 is not listed there and if you add i915.enable_rc6=0 as kernel boot parameter all you get is this kernel message at boot time:

i915: unknown parameter ‘enable_rc6’ ignored

And then one more thing. To everyone who is trying out different module options (like me) to get rid of screen flickering: At least on a Librem13 v3 it makes no difference if you add the kernel parameter i915.enable_psr=0 because it is set to 0 by default (see this posting for an easy way to find out). modinfo i915 tells me that there’s a “per-chip default” in use, so for our chip the default seems to be 0.

Hi all,

It’s probably unrelated, and I didn’t try any fix mentioned above to see if that changed anything.

Today I have seen my L13v3 screen flicker when I was holding my phone over the laptop, in front of the screen.
I was in conversation using the speaker mode.
That was surprising.

Could that be some kind of EMI sensitivity ?

T.

1 Like

OK, I managed to fix that trivial bug in intel-gpu-tools and tested this. First thing I should mention: The bug is not only trivial but also irrelevant… When I tried sudo intel_reg read 0xC8254 in the beginning I got this:

Error: /usr/share/intel-gpu-tools/registers/gen8_interrupt.txt:1: (‘GEN8_MASTER_IRQ’, ‘0x00044200’, ‘’)
Error: /usr/share/intel-gpu-tools/registers/skylake:1: gen8_interrupt.txt
Warning: reading ‘/usr/share/intel-gpu-tools/registers/skylake’ failed. Using builtin register spec.
BLC_PWM_PCH_CTL2 (0x000c8254): 0x03a903a9 (freq 937, cycle 937)

After fixing the bug I get this:

(0x000c8254): 0x03a903a9 (freq 937, cycle 937)

Writing works as well, so “Using builtin register spec” seems to be good enough. I tried a lot of different PWM frequencies, it never made any difference – the flickering was just the same. @mladen Please remove the “Solution”-mark, I guess we’re back to square one.