Hello dear fediverse, I seek out your wisdom, especially in the foss community. I have a VERY particular problem that I decided to come to you all with!

I have a dell xps laptop that will reset the BIOS whenever it dies from battery going to 0%
got the laptop for cheap, it is quite old, I essentially saved it from being ewaste, so I would like to take care of it as best as I can, so "get a new laptop" is not going to fix my problems
Dell got this LOVELY feature where it will "raid" the disks automatically when the bios is reset. Truly lovely feature. The BIOS will also gracefully reset the settings of the laptop and lose my boot partition so I have to manually enter it (I have gotten really good at EFI due to this, but I digress). My two things would be:

1) remove the RAID chip from the mobo to avoid it from trying to do that again, not sure if that would break it completely or how viable that is. I can turn it off in BIOS, sure, but it will go BACK to the setting no matter how I save, truly a feature of "I will fix the computer for you!!!"

2) install libreboot

I am very aware that both options can brick the laptop in question, so please, if anyone has a similar issue and know a better fix or have experience, send help  

Ask for any info and I will let you know in the thread in regards to the laptop

Some hashtags so I hopefully reach the right people:
#linux #opensource #dell #hardwareissues #libreboot #xps13
also, the issue about it recognising boot disks for EFI has been an issue for several distros. I have tried archlinux, kali linux, debian, ubuntu

Could be because I will often swap disks for this particular laptop due to it being my test machine. I am not exactly nice to it.
Update to anyone follow this shit, I have ordered a new battery and it arrives on tuesday!
havent had time to test this out, but I switched the battery out and computer seems happy, now I guess I gotta let the main battery run out and see if my BIOS settings will behave
@mander is your CMOS battery just empty? That obviously still shouldn't reset your boot configuration, but it might be what is triggering this – and replacing the CMOS battery would be a potentially trivial fix
@elkowar yeah, some people have pointed this out to me, so I am going to see if that is the case with the laptop. Hoping that this is it.
@mander nice! Keep us updated ^^
@mander I'd try to fix the root cause of your problem, which I suspect to be the CMOS battery likely depleted (since it's an old machine) causing the BIOS settings to be lost when out of battery.
Some old XPS13 have an actual coin CMOS battery that can be replaced if you disassemble the laptop. More recent models have it integrated in the battery itself, so it'd mean finding another battery :/
@xiaoluoman I am getting some assistance from a hardware friend to check this tonight! and yeah, step 1 is defo to check the cmos. If that fails, I will take more drastic measures

@mander

There's most likely a video on YouTube that tells you where and how to replace the BIOS battery.

This is by far the most practical and less time wasting solution.

Here's a video I found after I noticed you put the laptop model as a hash tag.

https://youtu.be/INpzUl0iI_8

How to force reset bios settings Dell XPS 13 9370 | CMOS battery replacement

YouTube