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

European Patent Office (EPO) Series: Legal Concerns and Suspicions of Irregularities
complaints submitted to OLAF
GAFAM and IBM Dying in Massive Debt, Hence the Mass Layoffs (Increasingly Silent Layoffs That the Media Fails to Mention)
the integrity of this economy is only as good as its leaders or those who govern the market
SLAPP Censorship - Part 134 Out of 200: What "Majority Rules" Tell Us About the Litigant
we press on with this series
 
Datacentre 'Boom' Sceptics Aren't Luddites, They Recognise a Threat to Human Survival (Not Limited to Climate Change)
Archaeologists very well know that no species will survive forever
Microsoft's Claims Are Based on a Big Lie
the bubble is coming to its hard limits
Don't Lose Sight of the Impact of "End of 10" (Vista 10)
GNU/Linux has taken off fast
Microsoft's Debt Continues to Steadily Increase, Not Counting Hundreds of Billions in Secret/Hidden Debt
The mass layoffs will carry on, maybe labelled LITE
IBM is Circling Down the Drain, the 'Growth' Comes From Beancounting Tricks and Salary Cuts
IBM was down 2.17% yesterday
Microsoft's "Headcount" Distracts From How Big a Cull It Had This Month
It also speaks of numbers "[a]s of June 30" though the "buyouts" were effective July 1 and since then well over 10,000 workers have vanished
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Thursday, July 30, 2026
IRC logs for Thursday, July 30, 2026
Gemini Links 31/07/2026: Music, Journaling, and Longing
Links for the day
More Fake News From (and for) IBM, Nobody Ever Held Accountable for Fraud
Companies that turn a blind eye to their own corruption end up recruiting more corrupt people and sacking those who object to the corruption
Links 30/07/2026: Smol Document Server and More PalmOS-ing
Links for the day
Links 30/07/2026: Microsoft Refuting Its Own Slop Hype and "Amazon Is Gutting Its Hey Hi (AI) Division" (GAFAM Bubble)
Links for the day
Today The Register MS Published "AI" Spam and Fake Article by "Senior Technical Marketing Engineer"
unethical practices
Cult inquiry parliament leak fallout
Reprinted with permission from Daniel Pocock
Techrights Will Always Protect Sources
Our #1 priority is sources
The Era of Silence
So stay silent, remain hidden
TheLayoff.com Deletes Comment That Called IBM's Previous CEO, Ginni Rometty, "Gin 'n Tonic"
It is hard to believe the comment was deleted for being a duplicate (in another thread)
The Mainstream Media Continues to Overlook or Intentionally Ignore Hundreds of Billions in Hidden/Secret Microsoft Debt
the issue is that Microsoft's crisis is a lot greater and broader than this
Overshoot Day Sites That Contribute to the Problem
Some of these are not even accessible (at all) without JavaScript
Microsoft May Have Gotten Rid of 8% of Its Workforce This Month
It's hard to know what's really going on because there's no transparency due to NDAs
Links 30/07/2026: "Age of Irrationality", Google Losing Money, and "House of Ellison is on the Brink"
Links for the day
Gemini Links 30/07/2026: Homeworlds Notes and Manuscript Submitted
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Wednesday, July 29, 2026
IRC logs for Wednesday, July 29, 2026
As Expected, Facebook Collapses, Microsoft Hides Massive Debt
GAFAM is a giant mountain of debt
At The Register MS "PARTNER CONTENT" Means Company Writing Fake Articles About Itself and Its Own Products
At The Register MS, content-farming has become a thing
Staff of EPO Cautions Against Unlawful Weaponisation of PIPs Against Industrial Actions That Protest Corruption
PIP-like sanctions against anybody who does not toe the line of Cocaine King?
IBM, Running Out of Things It Can Sell, is Selling Software Patents
IBM is not just pathetic; it's actively harmful because it lobbies for software patents and spreads software patents around
Gemini Links 29/07/2026: Star Trek, Retirement, and ODEs in GNU Octave
Links for the day
Links 29/07/2026: "BuzzFeed Lays Off 33 Percent of Remaining Staff" (Trying LLM Slop Some More), Scam Altman Mocked by the Media
Links for the day
GNOME Curated and Censored by IBM (Under the Guise of "Code of Conduct")
Felipe Borges (IBM) has just posted a follow-up
Digital Mass Surveillance as a Hallmark of Failed Societies
"small leap forward in tech ethics"
I Found a Typo, Don't Vote!
Social control media isn't good at adding any meaningful signal
Jeremy Sands Explained the Harms of Codes of Conduct
next week the 500th show milestone [is reached]
Tonight's Earnings Report From Microsoft and Facebook ('Meta') Will be Faked Because They Hide Almost a Trillion Dollars in Debt
The US economic system is only as honest as the people who govern it
The Vacuum Syndrome
Parables help
The Only Old People Who Can Survive IBM Are the CEO and His Circle of Enablers
very similar to what's happening at the EPO
The 'Church' of Moglen/Stallman
'reunion' with Eben Moglen
Microsoft Layoffs Aren't Done Ahead of the Need to Tell Shareholders About "Efficiency" (Tonight)
Microsoft layoffs won't be "Done" until what's left of Microsoft is "None"
Microsoft Lacks Growth. Ahead of 'Results' The UK's Competition and Markets Authority (CMA) Finds Merit in Allegations Slop is Microsoft's Excuse for Price Hikes (Piggybacking Vendor Lock-in).
At this stage it's not hard to see why many nations gravitate away from Microsoft
Parliament leaks confidential cult inquiry witness contact list (COFG Victoria)
Reprinted with permission from Daniel Pocock
Troll-Feeding is Time-Wasting
in social control media
WordPress is Technical Debt
There are a number of technical tasks underway and maybe some testing (this coming weekend or later)
Will Red Hat Still Exist in 2027 or Just Become a "Brand" at IBM?
Whistleblowers told us IBM was laying off about 500 Red Hat engineers earlier this year
Call for IBM Whistleblowers
If you work for IBM and have something material (like balance sheets) to prove financial misconduct, please try to 'touch base' and establish a secure communication channel we can both use
EPO Series on EU and Pan-European Corruption, Vote-Rigging, Extending Beyond the EPO Itself
By Saturday it will be August already, so we'll start preparing for Rianne's birthday
SLAPP Censorship - Part 133 Out of 200: Lies by Omission
As usual, the other side wants people to ignore how much they lost
European Patent Office (EPO) Series: Streamlining the Decision-Making Process
Negrão was one of 17 applicants for the position but he somehow managed to end up as the sole candidate on the shortlist prepared by the Management Board in June 2020
Links 29/07/2026: "Hugging Face Has a Deepfake Nudes Problem" and "$1.5B Anthropic Copyright Infringement Ruling" (Plagiarism is Not "Training")
Links for the day
Comments on Today's Judgment
It hopefully helps clarify what actually happened
Microsoft Has Fallen to #3 in Singapore
There are many technically talented people in Singapore or overseas workers who lodge in Singapore
Thank You, Andy
Burnham and "Tech Rights"
Solicitors Regulation Authority (SRA) Inaction and Incompetence - Part II - 77 Messages Sent, Did Not Even Investigate or Examine Any of the Actual Evidence (British Taxpayers' Money Wasted)
SRA has become known (even notorious) for inaction
Inevitable Politics
In technology, provided the work you do has growing impact (we served almost 2 million requests yesterday), things will inevitably become more political - whether you like it or not does not matter
Not Only "Loonies Take on Farage"
pretending that the opposition to the right wing is "Loonies"
Brigading Against Women - Part I - Bypassing the Legal System by Threatening Companies in Another Continent
In the next part we'll begin to connect Lozza's online activities (and court activities) to those of Garrett
IBM is Trying to Turn Debt (Borrowed Money) Into Fake Growth and It'll Worsen Matters
they put in their balance sheets a fake "growth" in something that does not even exist
Microsoft Relies on Misleading Narrative of Studios Going 'Independent'; in Reality There Are Mass Layoffs in Them
This is not a good narrative for Microsoft
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Tuesday, July 28, 2026
IRC logs for Tuesday, July 28, 2026
Gemini Links 29/07/2026: Arosa, Tired Tuesday, and Constellation Browser
Links for the day