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

Bluetooth and Wi-Fi on Gym Equipment Can Endanger Several Parties
Joy oh joy! Give us more "smart" things
Microsoft Silent Layoffs This Month (PIPs and More "Buyouts", Driving Out the Workforce), According to Insiders
They know it's happening because they see it and fellow workers talk about it, even if the media keeps mum
Omarchy is Already Dying
Same as the life cycle of slopfarms
A Vortex of Beacons (or "Bluetooth Everywhere" Vision)
If someone (or someones) calls you paranoid for taking about "beacon"-like functionality, there will be no lack of authoritative citations (e.g. Web links) they can be provided to prove them wrong
 
What I Learned in London
some ministers still help us in our fight for press freedom in the UK
WordPress is Bloatware and Bloated Software Guarantees Security Incidents
This site turns 20 in about 11 or 12 weeks from now and it was never cracked, not even when it ran WordPress
Too Many Chiefs (or Chefs) at IBM, They Don't Know How to Run a Company (With a 100+ Year or Century-Old Brand Recognition Advantage)
It seems like a consensus opinion; some line managers or middle managers are too selfish or self-deceiving
Clacton's Election Was a 'Show Election'
At least some people squeezed out some "free press" out of this charade [...] That the media kept boosting parodies as the alternative/s to the bigot is a topic we wrote about a great deal over the past 3 weeks
Windows is Burning
Windows is the "burning platform" of the year
Gemini Links 15/08/2026: Stress, Jetlag, and GPU Hype (Waste of Energy for Amusement, Fake 'Currencies', and Now for Mass Plagiarism)
Links for the day
Links 15/08/2026: XBox Rotting Further, "France’s Top Court Strikes Down Ban on Social Media for Children"
Links for the day
SLAPP Censorship - Part 150 Out of 200: Always Independently Verify What People Claim to Be (or Find Yourself in a Jason Arday-Type Moment/Dilemma)
I'm not a cardiologist and Garrett was never a security expert
Links 15/08/2026: "There Is No A.I." (Slop Plagiarism Isn't Intelligence) and Its "Impact on the Environment Is Absolutely Horrifying"
Links for the day
Gemini Links 15/08/2026: Gratitudes, "Microflier" Drones, and Literate Programming
Links for the day
IBM's PIPs and RAs (Layoffs) Going on, Interns as 'Scabs'
It seems like a consensus (also in Reddit, we took a quick look)
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Friday, August 14, 2026
IRC logs for Friday, August 14, 2026
Gemini Links 14/08/2026: Slower Internet, Logging Off Made Easy, and Human Code
Links for the day
Links 14/08/2026: "Mystery of Dark Oxygen", People Despise Slop, and Backlash Grows Against Fake Currencies (Energy-Wasting Scam Like Slop)
Links for the day
Free Publicity
They say there's no such thing as "bad press" or that every publicity is good publicity, sometimes free publicity
Farage's fears, media hijacked by-election, what really happened in Clacton
Reprinted with permission from Daniel Pocock
It's Friday. A Ton of People Departing From IBM and Red Hat.
A mere subset of people who announce this in public at Microsoft's LinkedIn
GNU/Linux and ChromeOS Beyond 11%
Combined with ChromeOS, it's already past and beyond 11%
Chatbots/LLMs Are the Next "Clown Computing", Pure Hype, a Serious Mistake
Programs that scan text and emit something similar (but full of errors)
Links 14/08/2026: Slop 'Music' Causing Problems, Slop Data Centre Contractor Unpaid (Massive Debt), and The Cyber Show Says We're "Colonised By Wankers"
Links for the day
Fake Growth of Social Control Media is Misleading
nowadays people look for alternatives - ones not controlled by MElon, CPC, and Kapo-Berg
statCounter: Windows Down to All-Time Low of 25%, Android Leads the Pack, GNU/Linux About to Leapfrog Apple, Overtaking MacOS
The situation was very different in past years
Microsoft's Mass Layoffs (Including 'Voluntary' Secret Layoffs) Take Their Toll on Seattle
How much longer can they hide their crises?
Planet Fedora ("Fedora People") is Just IBM Staff, Former IBM Staff, and LLM Slop
this is what Fedora boils down to now
Explanation of What Will Happen to Red Hat (and Other Acquired Companies) After August
In short, a lot will be scuttled; history shows it happens over and over again
SLAPP Censorship - Part 149 Out of 200: It Took a Long Time to Show What Jason Arday (at Cambridge) and Harvey Weinstein (in Hollywood) Really Were
Really bad when society endures abuse because the abusers silence their exposers
Gemini Links 14/08/2026: 32-bit RISC-V and BlackBerry
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Thursday, August 13, 2026
IRC logs for Thursday, August 13, 2026
'Voluntary' Layoffs (a Form of Silent Layoffs): Microsoft Global Voluntary Separation Agreement (GVSA) in August 2026 and September 2026
Today and yesterday
Microsoft Sees Windows on Fire, Pours Gasoline Over It
The latest move from Microsoft defies logic
Racing Towards "Woman Zero"
They don't seem to value women
The Legacy of Gerstner (Rapid Destruction) Continues at IBM
They say IBM never recovered from Gerstner, who instead of saving the companies (IBM and others he claims credit for) set up a collision course of rapid shrinkage
Counters in Clacton Commence in 3 Hours at Clacton Leisure Centre
Even a few hundreds of votes for Pocock would be considered a great success
Swiss army to attack 2,900 domain name owners? Cult of ETH Zurich & Debian
Reprinted with permission from Daniel Pocock
IBM's Bluewashing of Confluent Carries on, More Layoffs Coming, Same Likely Applicable to Red Hat
September 30 is a day before this next phase of bluewashing at Red Hat
Headlines About Microsoft and Ransomware, But They're "SPONSORED FEATURES" at The Register MS
The Register MS habitually publishes LLM slop too
Links 13/08/2026: K-pop Suicide Due to Social Control Media, Legal Problems for Facebook Over Safety
Links for the day
'Cancel Culture' Isn't About Empathy, It's About Making Good People Homeless
Seeing what they did to RMS, remember that those "concern trolls" are about everything other than ethics and morals
Daniel Pocock in The Nerve
Lots of publicity owning to the enrollment
Why Support Daniel Pocock
Our readers who come from IBM and the EPO are certainly familiar with the tactics of censorship and what that sort of censorship leads to
SLAPP Censorship - Part 148 Out of 200: The Manosphere
Those people don't just threaten our national sovereignty, press, democracy etc. They also endanger women everywhere.
Gemini Links 13/08/2026: Health, Partial Eclipse Sketches, and Guilelessness
Links for the day
GNU/Linux Reaches 10% "Market Share" in statCounter
As of this morning
15% of IBM Marked for Potential Termination, PIPs are the "New Layoffs" (or RAs) at IBM
IBM is a dying company, but it does not want the press to say this or for people to understand that
Links 13/08/2026: "The Rise of the Measles-Industrial Complex" and Spotify Curbs Slop
Links for the day
Daniel Pocock on Australia's 9News (Nine Entertainment)
This gives visibility to software and technology issues
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Wednesday, August 12, 2026
IRC logs for Wednesday, August 12, 2026