this post was submitted on 03 Jan 2024
211 points (95.7% liked)

Linux

48334 readers
632 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
211
submitted 10 months ago* (last edited 10 months ago) by neidu2@feddit.nl to c/linux@lemmy.ml
 

This is your annual reminder to do a snapshot (timeshift or whatever you prefer) before doing relatively minor changes to your system.

I was supposed to be in bed now, but instead I am stuck troubleshooting xorg refusing to start after an apt-get dist-upgrade.

And as far as friendly reminders go, I should've given myself an unfriendly reminder beforehand, as it's not the first time....

UPDATE: Fuck nvidia 545. All my homies hate nvidia 545. 535 4 lyf!

you are viewing a single comment's thread
view the rest of the comments
[–] palordrolap@kbin.social 4 points 10 months ago

Am on LMDE6 with an ancient Nvidia card. Because I've had to resort to using the Nvidia OEM driver installer (which can be a pain to use), installed Xorg updates lurk quietly until a full reboot at which point they generally cause offloading of GPU tasks to the CPU instead because it hasn't figured things out properly.

Timeshift has been useful at least twice in getting me back to a less stressed system.

I think I have a procedure figured out now though (documented here for posterity even if it helps no-one today):

  1. Make a Timeshift snapshot just in case

  2. Install the pending Xorg update

  3. Reboot so it's fully active

  4. Check to see if GPU tasks are being offloaded to the CPU by doing something graphics intensive and noting temperatures or usage%. If not, a miracle has occurred and continuing isn't needed.

  5. sudo remove the execute permission on /usr/bin/Xorg so that it can't immediately be restarted by subsystems designed to protect the average Mint user from command lines and consoles.

  6. Kill Xorg

  7. Log in through a console, via Ctrl+Alt+F1 or similar if not dumped to one by killing Xorg.

  8. Re-install the Nvidia OEM driver

  9. sudo put the aforementioned execute permission back on

  10. Repeat steps 2 and 3 and hope that this time the GPU is doing the work.

Reboots ought to be replaceable by running specific commands, but I haven't gone deep enough into things to know the right things to do there. Reboots are quick and easy enough.

Obvious intermediate steps include not doing anything else important during this and saving important work before starting.

e.g. did you know it's possible to bookmark all open tabs? Well worth looking into.