Bonum Certa Men Certa

More Work on Debian 12, UEFI is Trash Part 3: Fixing a Lenovo Restart “Bug”

Reprinted with permission from Ryan Farmer.

More Work on Debian. Purging More Internationalization and Properly Setting Up Software Repositories.



Yesterday, and this morning, I did some more work de-bloating Debian.



In my last post on the subject, I mentioned the input method editors, why they’re useless to me (as a US English user who never enters non-Latin alphabet characters), and how much RAM some of them took (over 100 MB).



Well, it turned out there was more where that came from.



Debian installs every Firefox and LibreOffice language pack as well as LibreOffice Help Packs in every language, and a fourth input method editor that I missed the last time called fcitx. Two versions of it, apparently.



Proposing to Apt that it purge *fcitx* removed the fcitx and fcitx5 packages, a bunch of non-Latin Alphabet font packages that nothing seemed to depend on except for fcitx itself. So I did that and then an apt autoremove to be sure. Making sure along the way that it wasn’t proposing anything stupid, like removing KDE or X11, and it didn’t.



That done, I went into Synaptic Package Manager where I realized there was all this Firefox and LibreOffice internationalization junk.



So I ended up clearing out (purge) over 2 GB of useless (to me) help and language packs for that.



Then I went through all of the installed packages and purged out the task-(non English Language) stuff and the various oddities that I missed the last time around.



Roy Schestowitz says Internationalization is a “feature”. I suppose it is. Debian can’t tell who will use it, but most distributions at least have an installer that removes it from the computer after it copies over the OS image and knows where the user is and how they will use the computer. (Language, locale, etc.)



Is 2 GB a lot of data (on top of what I purged out the other day when I was trying to get input method editors to quit taking 100+ MB of system RAM)?



No, it’s not. Especially on compressed BtrFS. But it just “feels” bloated. I try to leave as much room as possible for MY stuff on my SSD, and this is just another “This feels rather clumsy and ham-fisted.” thing I’ve run into with Debian.



Naturally, I know what I’m doing with Synaptic Package Manager and Apt autoremove and am not going to do something that proposes ruining the system.



If you don’t want to tear things apart, then leave it alone or possibly look into setting up a base system and then layering it with KDE meta-packages.



Then I noticed that the installer didn’t do the best job of setting up my Apt repos.



It only set up “main”. Debian also has “contrib”, “non-free”, and “non-free-firmware”.



So I opened /etc/apt/sources.list in nano, as an administrator, and edited each line to add contrib non-free non-free-firmware after main on each line.



It ended up looking like this:



Debian sources



Technically, I could strip out the commented-out top line and the blank line underneath it and the commented paragraph at the bottom, if I wanted to, but they aren’t doing anything so meh.



Then I ran apt update and it told me there were updated CPU firmware files for AMD and Intel processors.



The Intel one turned out to be a patch for the Downfall vulnerability, and the Debian live installer left things configured so that my firmware packages would never get updates!



After the repositories were set up correctly, and the firmware was no longer being showed as “manually installed” because of lack of a repository, I proceeded to minimize the mess of packages that the Debian installer left marked as “manually installed”.



This was easy.



sudo apt-mark minimize-manual



This proposed a long list of packages that actually got automatically installed with something else. Fixed a few dozen “manual” marks. Didn’t get everything but cleaned up the list a lot.



Finally, I noticed a quirk in my system on reboots.



Sometimes it takes a very long time to reboot, seemingly for no reason. The system will hang for half a minute and the only message it spits out is that the watchdog failed to respond, which turns out to be a red herring.



It turned out that rebooting a PC is a complicated process and there’s several ways to do it, most of which are commented as specific problems with various models. So reboot.c in the Linux source has grown very, very long.



The Linux documentation suggested that there’s, errrm, multiple ways to handle this manually if you have to.



“21.1.5. Rebooting
reboot=b[ios] | t[riple] | k[bd] | a[cpi] | e[fi] [, [w]arm | [c]old]
bios
Use the CPU reboot vector for warm reset
warm
Don’t set the cold reboot flag
cold
Set the cold reboot flag
triple
Force a triple fault (init)
kbd
Use the keyboard controller. cold reset (default)
acpi
Use the ACPI RESET_REG in the FADT. If ACPI is not configured or the ACPI reset does not work, the reboot path attempts the reset using the keyboard controller.
efi
Use efi reset_system runtime service. If EFI is not configured or the EFI reset does not work, the reboot path attempts the reset using the keyboard controller.”

-Kernel documentation


My guess is it defaulted to UEFI (system firmware) interfaces and that didn’t respond, so after half a minute it gave up and started banging on the keyboard controller, which is how you rebooted a PC in the 1980s.



Amusingly, although the UEFI interface appears to be quite, quite broken on the Lenovo ThinkBook 15 ITL Gen2, the ACPI interface DOES work.



The Linux documentation for reboot=acpi and reboot=bios or reboot=uefi says that the fallback is always give up and bang on the keyboard controller.



This resets the CPU and does a cold reboot, and apparently this compatibility interface holdover from Legacy BIOS is the most “guaranteed-to-work” thing that UEFI firmware has 14 years after it became common.



Adding reboot=acpi to the kernel start line consistently seems to resolve the problem and make the machine reboot right away.



According to Debian’s Wiki, the done way to make this persistent after you know it fixes the problem is to add it to the /etc/grub/default file with a text editor (like nano) and then running the update-grub command as the administrative user (with sudo or as root).



In my case, the line GRUB_CMDLINE_LINUX_DEFAULT=”quiet” in /etc/default/grub ends up looking like this:



GRUB_CMDLINE_LINUX_DEFAULT=”reboot=acpi quiet”



Apparently, it’s just yet another “broken UEFI issue”.



Thanks Lenovo. It’s always so nice when these happen.



Another reason to buy a System76 laptop with Coreboot next time.



UEFI can’t even reliably reboot a computer 14 years later.



Yet another reason why UEFI is trash.



It’s not like I never installed any UEFI updates from Lenovo.



The first 13 updates got rolled into the UEFI flash I did before ditching Windows 10 because Linux was “ready” for this hardware.



It’s just more of this “Insyde BIOS” horseshit. Always such a pleasure.



Windows always seems to know exactly how to handle it because, basically, Microsoft and the BIOS vendors get together and “decide what the bugs will be” so Windows always knows what to do.



Is this illegal? Certainly. But good luck ever “proving” the collusion is going on, when it obviously is. They can make sure to shake hands in seedy backroom deals so that anything else you boot on the PC runs into some trouble.



Like that time I found the ACPI “bug” in a Foxconn G33 motherboard, but Windows had the “fix” in XP SP2, which shipped over 3 years prior to the first affected board. ⬆

Recent Techrights' Posts

Microsoft Can PIP Workers (Silent Layoffs) Until Almost Nobody is Left
Microsoft is gradually vanishing
Tech Labeled "Smart" Does Not Make People Smart
People who insist on making everything digital are not advancing progress
Brigading Against Women - Part VII - 'Trolling' Courts and Legal Systems in America and in the UK (Europe) Costs a Lot to Taxpayers
They only attend hearings after being arrested
 
Brigading Against Women - Part VIII - Misogyny Embedded; Like Firm, Like Clients
It's about back doors
Chaos Imminent at Red Hat (This Week)
IBM is 'finishing the job' an ex-IBMer (Ron Hovsepian) did at Novell.
The Cyber Show Says Truth Always Requires a Fight, a Struggle
"Truth-tellers always face struggle and run risk"
Maladministration at the EPO as a Crisis for the EU and for Portugal's Image in Europe
Some time soon we'll publish a long article about what EPO leadership means to Portugal
3 Years of UK Hosting
We commend the webhost for standing firm in the face of misogyny
Gemini Links 28/09/2026: Truncated Sleep, Plain Text, and Slop Problem Kept Out of Geminispace
Links for the day
Links 28/09/2026: "A Growing North Korea Problem" and Independent Journalism as a Lifeline
Links for the day
Links 28/09/2026: Microsoft Chatbot "Giving Extremely Specific Advice to a School Shooter on How to Maximize Casualties", ‘Suicidal Empathy’
Links for the day
Microsoft's Attacks on Courts in the Netherlands Result in GNU/Linux Growing to About 10% There
One core issue that justified this and led to this outcome is Microsoft's interference with the administration of justice
They Create the Conditions for People to Leave, This Way They Don't Call it "Layoffs"
We keep seeing many stories like these
Gemini Links 28/09/2026: Wildfire, DOS, and Backups
Links for the day
European Patent Office (EPO) Series: The Portuguese Talent For Bureaucratic Empire Building
Portugal’s success in securing senior executive appointments at the EUIPO and the EPO is a notable example of how countries seek to strengthen their influence within European intergovernmental institutions
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Sunday, September 27, 2026
IRC logs for Sunday, September 27, 2026
Gemini Links 27/09/2026: Writing Well, Productivity, and a Relaunch in Geminispace
Links for the day
Making This Site More Useful to More People
Search engines (as a concept) are under attack
Exposing Crimes of Americans (From the UK)
We must ensure UK prisons are never misused to punish/silence people who expose crimes in America
Spam and Chatbot Spam in Internet Relay Chat (IRC)
Maintaining one's own IRC network requires some housekeeping, but it's simpler than outsourcing to malicious companies
Search Engine of Techrights Improved for Better Signal-to-Noise Ratio
Our growing community needs more search facilities
Microsoft: We Love Layoffs, We Do Silent Layoffs, More Microsoft Projects/Teams/Studios Confirmed to be Shutting Down
XBox is dying. Piece by piece.
Brigading Against Women - Part VI - On Garrett and Lozza, Defamation, Attempts to Crack My Wife's Accounts, Social Engineering to Try to Take Sites Offline, Subscribing Us to Mountains of SPAM
tried swatting us
Links 27/09/2026: "Provost of Dartmouth Busted Using Hey Hi (AI) Slop for His Own Writing in Newspapers and Academic Journals" and "UK Government Enforcement Reform"
Links for the day
People and Sites Wish a Happy 43th Birthday to GNU (Today)
We've collected some examples
Dejan Panovski Outs linuxize.com as a Slopfarm, Another Site That Sold Out and Became LLM Garbage
From what we can gather, both images and text are slop
A Microsoft Lunduke OS (LCOS) is Not Even in Top 100 in DistroWatch, Microsoft Lunduke Just Games the Numbers Like Linspire Did (and Got 'Banned' for It)
Linspire used to send people to 'its' DistroWatch page to make the illusion of popularity
Links 27/09/2026: Microsoft Fired People a Day After Promotion, "Fragility of Online Journalism"
Links for the day
Brigading Against Women - Part V - SWATTING, Extortion Against Webhosts, and Lawfare Under Sworn Oath (Perjury Also)
Matthew Garrett has no qualm about still collaborating with Lozza
20 Years Later
There's a strong anti-democracy movement brewing in many places
Gemini Links 27/09/2026: Telescopes/Gskyer, Writing for Writing's Sake, and Writing Tools
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Saturday, September 26, 2026
IRC logs for Saturday, September 26, 2026
Gemini Links 26/09/2026: Computer Cases Dreary, Web Drowning in Botspam
Links for the day
Reform UK auditor: Electoral Commission accounts, Companies House accounts, a going concern or not?
Reprinted with permission from Daniel Pocock
European Patent Office (EPO) Series: Temporary Public Office or Permanent Personal Feather-Bed?
there are no visible signs that the Administrative Council has the slightest interest in contemplating a change in leadership at the EPO
Brigading Against Women - Part IV - Death Threats, Threats to Women, and Threats for Pointing Out, Correctly and Based on Hard Evidence, That Garrett and Lozza Talk to Each Other About Me Every Year (for 4 Years)
Brett Wilson LLP too is a toxic manosphere
More GAFAM Layoffs at Apple, Second Time in Weeks (Silent Layoffs Silently Target Older and "More Expensive" Staff)
How many layoffs happen at Apple silently and go unreported or very scarcely reported?
Gemini Links 26/09/2026: Rant About Slop Ruining Crafts (Drowning the Signal With Plagiarism) and "Going Mechanical"
Links for the day
Links 26/09/2026: Microsoft Says Notification Data Breach/Surveillance Hole There by Design, EU Rapidly Dumping Microsoft for Digital Sovereignty
Links for the day
The Former Linux News Site ostechnix.com is LLM Slop
Please do not link to sites that promote and/or spread slop
Links 26/09/2026: Volkswagen Recalling ~50,000 Cars, US Attacks Its Own Media
Links for the day
Making Oneself Obsolete With Slop
Dr. Lemire also puts on display a degree of hypocrisy
Brigading Against Women - Part III - Racism Looms Large, Not Just Sexism
threats from a racist
Microsoft CEO Calls Layoffs "Streamlining" and Says Microsoft Layoffs Are "Great to See"
The lack of honesty here is only to be expected from Microsoft
Media silence deafening as Reform UK on brink of administration
Reprinted with permission from Daniel Pocock
Gemini Links 26/09/2026: Travel, Group Insurance Death Spiral, Stargazing, and Lagrange Meets LLM Slop
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Friday, September 25, 2026
IRC logs for Friday, September 25, 2026