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

NVIDIA Down About 30% in 5 Weeks, When Does the Media Call It "Bubble" Rather Than Frame It as Sex Scandal?
they'll find a way to blame "China"
“Losing Huang Would Introduce a Lot of Uncertainty"
Huang won't last much longer
Intercontinental Brigading - Part XXXXV - The Brand (and Reputation)
"Russell Brand sentenced to 10 years and six months for rape and sexual assault"
Protestants at the EPO Fight On, Rising in Opposition to and Against Corruption, Also Against GAFAM
Don't say we didn't warn you...
 
Gemini Links 10/11/2026: Running, Tektronix, and "Smallnet Information Services Zig Port"
Links for the day
Corporations Don't Lose 2 Trillion Dollars in 'Value' Over a 'Dick Story', This is an Overvaluation and Belated Correction
Nvidia is down, down, down again
Intercontinental Brigading - Part XXXXVI - Attempts to Kill Critics
"Epstein contacted Cambridge academics about research funding"
Links 10/11/2026: "50 Years of Project Censored" and NVIDIA's Collapse Continues
Links for the day
Surreal Times
NVIDIA's shares fell 27% in 5 weeks
Links 10/11/2026: "Jensen Huang Could Face $81 Billion Divorce Bill" and "Nvidia Shareholders sue Jensen Huang"
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Monday, November 09, 2026
IRC logs for Monday, November 09, 2026
Gemini Links 10/11/2026: Open Problem in Computer Science Due to Bloat and "Queueing Nine Hours for an iPhone"
Links for the day
GNU/Linux Rose to 6% as Laptop/Desktop Operating System in Azerbaijan
In the past two weeks the average measure as seen by Clownflare is 5.7%
Microsoft Will Pay $11,742 USD for Workers to Leave
11 lakh Indian Rupees
Since Records Began 18 Months Ago, statCounter Saw Chatbot Usage Falling Sharply
Chatbots are not becoming more popular and the commercial world is having second thoughts
Losing Their 'Faith' in Slop
Are leather jackets becoming a "signal" of "cheating on the wife"?
Boosters of Non-reciprocal Licensing Are Just Trying to Cancel Richard Stallman (RMS) and His Baby, GNU
If only they liked freedom as much as they love Microsoft (or Microsoft's GitHub, which is proprietary and unsafe)
Gemini Links 09/11/2026: Zephyr, Wireless Planet, and Old E-mail
Links for the day
IBM: From Illegal NDAs to Illegal Secret Settlements (Money in Exchange for Promise Not to Sue)
Insiders also explain why RAs may come weeks from now [...] IBM has marked 40,000 workers it wishes to get rid of
When Some Footage Causes Your 'Company' to Lose Almost Half a Trillion Dollars in 'Value' in a Few Minutes Your Company is Fictionally Valued
stock slips 8% because the CEO cheats on the wife
Links 09/11/2026: 'Humanitarian' Putin Knocks 600,000 Civilians Off the Grid, Eminem’s Publisher Sues Suno
Links for the day
Like Crooked Politicians, The Register MS is Selling "Dinners" (Access, Sponsors)
Talk about "hey hi".
The Register MS is Not Objective Regarding "AI", It's Paid by Pushers of the Pyramid Scheme (including Nvidia)
Some time soon we'll name some companies that pay millions to The Register MS in order to cement their role in the house of cards (while it lasts)
GAFAM Moribund
A lot of what we say about Microsoft in respect to debt is equally applicable to the rest of GAFAM
NVIDIA as a Scam Company Run by Scammers Who Fake Demand for Their Waste of Energy (Subsidising GPU Sales for Use Cases That Don't Exist)
First they targeted gamers, then fake 'currencies' (which turned out to be a bust), now it's slop (obfuscation of plagiarism using brute force and fusion) [...] We're quite glad that Huang publicly broadcasts how untrustworthy he is
Links 09/11/2026: Nvidia CEO Jensen Huang Cheats on Wife With A Suspected Chinese Spy, "400,000 Russians Killed in Battle Since 2022 Invasion"
Links for the day
Zero Tolerance for Slop
very few sites that dabbled in slop ended up well off (for it)
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Sunday, November 08, 2026
IRC logs for Sunday, November 08, 2026
Gemini Links 09/11/2026: "The Blue Wave Won't Save Us" and "Discoverability Is Only Solved If You Can Be Discovered"
Links for the day
IBM 'Robbery': No More Car Allowance in the UK, Severance Shredded, CEO Pay Up 51% in One Year While Thousands Laid Off in Secret
Why does a CEO reward himself so much when the company does so badly?
Digitalisation Is Not Inevitable or Unavoidable
Nor inescapable
Gemini Links 08/11/2026: "Back", Zot, and Information Overload
Links for the day
Intercontinental Brigading - Part XXXXIV - Why the Swatting Failed
After that we only ever heard from or spoke to cops when we invited them to our home to collect evidence
“Concerned Microsoft Workers” Say “Working at Microsoft Has Become Joyless and Demoralizing.” (That's What Microsoft Wants, More Will Leave That Way)
Many Microsoft employees are going to leave
The Register MS is Losing Hundreds of Thousands of Pounds a Year While Directors Pay Themselves Hundreds of Thousands of Pounds a Year in Dividends
they take money from slop pushers and have clearly compromised some journalistic standards in the process
GNU/Linux Measured at 7.4% in the UK This Weekend: Clownflare Radar
I hope that one day GNU/Linux will be everywhere here
Never a One-Person Project
Just because I'm the main "public face" of the site (who takes all the insults and SLAPPs) doesn't mean I deserve all the credit
“I Always Expect to Lose. I Fight Anyway, and Sometimes I Win.” — Richard Stallman
To change the world meaningfully people must think big
Stop Looking for News About "Layoffs", Layoffs Are Over (They've Been Rebranded)
To properly assess the status quo we need other yardsticks
Links 08/11/2026: Bosses Who Were Forcing Their Workers to Use Slop Change Mind, "Rapper RBX Files Ninth Circuit Appeal in Fraud-Focused Class Action Lawsuit Against Spotify"
Links for the day
Links 08/11/2026: Why Vikings Stayed in Iceland and "TikTok Accused Of Promoting Sex Industry To Young Girls"
Links for the day
Gemini Links 08/11/2026: "Before Sunrise" and LLM Scrapers Versus Self-Hosting (or Web in General)
Links for the day
Intercontinental Brigading - Part XXXXIII - Weaponising Cops in Another Continent (Europe), Knowing They Cannot Come to Your Home in America, While Threatening Women
This year it culminated in death threats
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Saturday, November 07, 2026
IRC logs for Saturday, November 07, 2026