this post was submitted on 28 Dec 2023
47 points (92.7% liked)

Linux

48328 readers
589 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

so, I have a weird problem with a Dell Latitude 5285, that's a 2-in-1 with a detachable keyboard akin to the MS Surface Pro 5. it has an i5-7300u, 16 GB LPDDR3 (on-board), 500 GB NVMe, 12.3" 1920x1280 3:2 touch screen.

I got it second-hand, unknown history, without a battery. they're stuck at 400 MHz without one, but Thottlestop in Windows and msr-tools in Linux fix the BD_PROCHOT throttling and the machine performed adequately for months.

I've sourced a replacement battery, removed the patch and my problems started. there's weird screen flickering, looks like bad video ram or a flaky connection. it's intermittent, sometimes it runs without issues for hours, sometimes minutes and sometimes it flickers from the start, so troubleshooting and checking if this or that fixed things takes days.

the artefacts are inconsistent with anything that is or isn't happening (load, temps, etc) or power source. the problem is mostly exacerbated when the battery is full and/or when waking from sleep, it's almost always super glitchy then.

here's a demonstration:

would be great if I could try a different battery or try this one in another device, but don't have that option.

at no point are there ANY glitches on the external display (tried DP-Alt over USB Type-C and HDMI over Dell WD19 Dock), regardless if the internal screen is enabled or not.

so, bad luck - faulty screen or backlight or RAM or something, right?

except, when I unplug the battery (but leave it in place) and connect it to power and reenable the BD_PROCHOT patch - zero glitches! it runs for hours - videos, GPU and CPU stress test, not one hiccup, tear, nothing!

if it were a normal laptop, I'd just leave it be and use it as a desktop. it feels like such a waste with the functional touchscreen though.

what I've tried:

  • different USB Type-C chargers
  • fresh paste on CPU, clean vent
  • latest firmware, tried downgrading, no change
  • memtest passed twice on thorough, all clear
  • internal diagnostics also
  • it never froze or crashed
  • screenshot during glitches doesn't contain them
  • disabling turbo, upping/lowering the max/boost GPU clock, forcing cores offline, limiting max frequencies with TLP
  • the battery isn't deformed and doesn't exert pressure on the screen or any cables; also tried running it with the screen slightly lifted from the case, no change
  • pressing, jerking, wiggling of the internal display cable/connector, no change
  • same issues in Windows 11, Ubuntu 23.04 and Fedora WS 38; rarely but sometimes in BIOS/during boot
  • sadly, can't undervolt the CPU/GPU (Throttlestop FIVER says it's locked) but some MSR writes are apparently OK (like disabling BD_PROCHOT works).

at some point, it had both charger and dock with PD attached at the same time to both USB Type-C ports; it's possible this fried something, although I have no evidence of that.

so, I'm sure this is NOT a linux hardware problem, but I would like to use linux to fix the problem. at this point, I am sure it's defective, whether it's age or physical or manufacturing defect or whatever; but since it definitely works perfectly without the battery, I'm looking for some tweaks that makes it perform with the battery the same as without it.

seriously doubt anyone's seen anything similar but are there any ideas what to look at? what to try?

edit: I'm not asking for free hardware troubleshooting, maybe I haven't expressed myself succintly. what I'd like is some sort of snapshot of all relevant registers with battery working. and then one without. and then have somehow the difference between those two computed, so I can see which setting I need to tweak. would this be doable?

you are viewing a single comment's thread
view the rest of the comments
[–] Rentlar@lemmy.ca 2 points 11 months ago (2 children)

You can try the battery monitoring software then. It would likely be a struggle to try to view the status while the screen flickers but if you can get a log then you can review it when you re-enable the fix.

[–] dingdongitsabear@lemmy.ml 1 points 11 months ago* (last edited 11 months ago) (1 children)

this if from a F38 live image.

idle on battery:

load on battery:

charging idle:

charging load:

battery is (or should be) 7.6V 42Wh. BIOS rates condition as excellent, 92% battery health. no visible deformations, as stated.

naturally, during this whole period the screen didn't flicker once.

[–] Rentlar@lemmy.ca 1 points 11 months ago (1 children)

OK keep monitoring i guess, if its good for now, fingers crossed?

It could be an Amazon quality battery or a combination of many factors... the design voltage of your battery is on the low side which pushes a lot of current to your display and other components. If that display cable is worn or frayed it can have a chance of busting the screen, or in very rare cases spark/catch fire. Inspect it carefully.

[–] dingdongitsabear@lemmy.ml 1 points 11 months ago (1 children)

naturally, it began again after waking from sleep. that's why it's so darn tiresome diagnosing it, you never know if the tweak you've made has any effect, sometimes it works for hours, sometimes it freaks out after seconds.

if the battery is the culprit, shouldn't it stop being a problem when running the device on external power? it's not like it's constantly charging the battery and simultaneously draining it; at least, no laptop I know of does that. and if the display cable is faulty, then it should also have those flickers when running it without battery. that never happens.

[–] conciselyverbose@kbin.social 3 points 11 months ago (1 children)

What if the battery is doing something hinky enough to cause very minor interference and the internal cable is close enough to be affected by it? I'm not super familiar with the low level details of battery tech but I think it could theoretically be possible (though obviously would be stupid rare).

[–] dingdongitsabear@lemmy.ml 2 points 11 months ago* (last edited 10 months ago) (1 children)

hmm, there's an idea. I'll try to shield the cable from the battery with cardboard and aluminium foil.

edit: nah.

[–] conciselyverbose@kbin.social 3 points 11 months ago

It does feel like a pretty long shot, but you've done all the common sense stuff and are into the weeds, so why not throw wild guesses around?