LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-31-2022, 05:30 AM   #1
Zorro007
LQ Newbie
 
Registered: Mar 2022
Posts: 2

Rep: Reputation: 0
Question Don’t want Shutdown or Reboot


I am a student and I have 10 to 12 tabs open on chrome, 8 PDFs open on Sumatra PDF in tabbed manner, some folders open to access my notes and PDFs; always open!!!!!

But you know how Windows OS works, frequent updates and shutdown reboot blah blah blah. Even I keep my system always in hibernation. Now I have done some tweaks to postpone updates but still some processes consume RAM CPU and even my Internet Data.

So I will switch to linux but based on most linux users and forums and websites, Linux is not good at Hibernation and Suspend stuff. But I want to use my Linux with all the files open for months without Shutdown and Reboot. There are issues with Suspend what I have seen online or Hibernation. So how can I use my Linux even if it gets shutdown or reboot and I will resume my work from where I left.

Is it fine to use Linux without update, no Shutdown, no Reboot for months??!!!! Only suspend or hibernation !!
You can recommend any stable and reliable distro for a newbie!!
 
Old 04-01-2022, 04:27 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,564
Blog Entries: 19

Rep: Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446
Most people who use Linux on a laptop also use sleep and/or hibernate. I'm not one of them but I'm sure some laptop users here will engage with your worries about hibernation. Remember that to hibernate and recover successfully, you need to set up a swap partition big enough to accommodate the whole of the memory image stored in RAM.

Running Linux for long periods without shutting down or rebooting is very common. It's how servers work after all. They only shut down for maintenance. As to updates, in Linux you update when you want; it's not enforced on you as it is in Windows, and you don't need to reboot afterwards. But I would recommend regular updates (I do mine monthly) for security reasons.

Some people here are chary of recommending a distro because users vary so much in their requirements. But Mint is one often recommended to people in your situation. It's novice-friendly and very good on the sort of firmware that some wifi cards need.
 
1 members found this post helpful.
Old 04-01-2022, 05:01 AM   #3
suramya
Member
 
Registered: Jan 2022
Location: Earth
Distribution: Debian
Posts: 249

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by Zorro007 View Post
Is it fine to use Linux without update, no Shutdown, no Reboot for months??!!!! Only suspend or hibernation !!
You can recommend any stable and reliable distro for a newbie!!
Yup, there is absolutely no issues with keeping a Linux system up and running without rebooting for months. The longest I have gone without rebooting is a little over a year and then also the system was rebooted because I accidentally unplugged the wrong power cable. My current system's uptime is 45 days and counting.

Ubuntu is a good flavor for new comers, though I personally prefer Debian.

- Suramya
 
1 members found this post helpful.
Old 04-01-2022, 06:36 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Welcome to LQ.

Still you may wish to consider bookmarks, the concept of recent documents, and also organizing documents so you have easy recall of them.

Either way you can keep Linux up all the time or have it sleep or hibernate. Not sure that there's specific problems with Linux hibernation and all PCs. Perhaps you should share the system specs and people can assist you further.
 
Old 04-01-2022, 08:03 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,642
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933
My best uptime was about a year and a half.

If you do not select "automatic updates," your system will not reboot. But, most operating-system updates necessarily involve rebooting in order to load the updated kernel into memory.

The best "reboot to ready" that I ever got was somewhere six to eleven seconds.
 
1 members found this post helpful.
Old 04-01-2022, 08:07 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,564
Blog Entries: 19

Rep: Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446
Quote:
Originally Posted by sundialsvcs View Post
But, most operating-system updates necessarily involve rebooting in order to load the updated kernel into memory.
In my experience kernel updates are fairly rare unless you choose a bleeding edge distro like Fedora or Arch. Stick with something like Debian Stable (or LMDE if you want a Mint flavour) and you'll probably only get the odd security update.
 
Old 04-01-2022, 12:00 PM   #7
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 476

Rep: Reputation: 178Reputation: 178
Quote:
Still you may wish to consider bookmarks, the concept of recent documents, and also organizing documents so you have easy recall of them.
+1 . Also, at least with Firefox, it saves the tabs that are open when you restart Firefox. Never used Chrome. Get organized .
 
Old 04-01-2022, 08:14 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,311
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
Building on what rclark said, Firefox has a setting under Edit-->Settings-->General-->Startup, to "restore previous session."

I haven't used that setting (but I might start now on one machine where I pretty much visit the same websites all the time), but I've found that if I reboot without closing Firefox, it will ask whether I want the previous setting restored; I've found the restore works quite nicely.

As for suspend, I suspend my laptop almost every day, unless I have a positive need to reboot it (such as a kernel update), and have not yet encountered an issue. That particularly laptop is running Debian Sid, but I had the same experience with my previous laptop, which was running Mageia when it breathed its last.

Last edited by frankbell; 04-01-2022 at 08:18 PM. Reason: clarity
 
1 members found this post helpful.
Old 04-01-2022, 11:02 PM   #9
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,799
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
I keep several different browsers open full time, and booted full time, with anywhere between tens and hundreds of open tabs in each, except for when rebooting to start a new kernel, or mechanical maintenance. The browsers have no problem remembering the state they were left in when reopened. So too some other apps.

Visit http://distrowatch.com/ to see descriptions of some of the hundreds of distros out there. Note in the summaries that many are derived from other distros, notably Ubuntu being based upon Debian, and Mint being based upon Ubuntu, and therefore a derivation of a derivation.

IMO, until you've picked your favorite DE from among the many choices, you're best off starting with one of the distros that offer to install most or all the DEs together on a single installation[1], to simplify picking a favorite. With multiples installed, it's essentially necessary only to log out and back in to switch among those installed.

[1] No installation media from any distro can hold all DEs, so in most distros it's not possible to install all that are available on initial installation. It may though be possible with some by installing from the Internet. Normally one installs a single DE initially, and adds others after booting to whatever was first installed using the distro's "package management system". These include Apt*, DNF, Pacman, URPM, YUM and Zypper, among others.
 
Old 04-02-2022, 01:09 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Zorro007 View Post
So I will switch to linux but based on most linux users and forums and websites, Linux is not good at Hibernation and Suspend stuff.
This is a complete misinterpretation of what you're seeing.
People only post when they have a problem. The same probably happens when you search for windows suspend hibernate problem.

Linux is very good at hibernation or suspend (I use hibernation).

That said, after a kernel upgrade (and rarely with other packages, too) it is recommended to do a full reboot.

Also see: https://wiki.archlinux.org/title/Suspend_and_Hibernate
 
1 members found this post helpful.
Old 04-02-2022, 04:54 AM   #11
Zorro007
LQ Newbie
 
Registered: Mar 2022
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by suramya View Post
Yup, there is absolutely no issues with keeping a Linux system up and running without rebooting for months. The longest I have gone without rebooting is a little over a year and then also the system was rebooted because I accidentally unplugged the wrong power cable. My current system's uptime is 45 days and counting.

Ubuntu is a good flavor for new comers, though I personally prefer Debian.

- Suramya
Wow, that is awesome!!!
Which distro you are using? and how did you optimise it for using without Shutdown or Reboot?
So you only do suspend or hibernation?? Right??
 
Old 04-02-2022, 11:53 PM   #12
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Rep: Reputation: Disabled
Quote:
Originally Posted by sundialsvcs View Post
My best uptime was about a year and a half
Was that without hibernation or sleep?
 
Old 04-03-2022, 12:45 AM   #13
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by Zorro007 View Post
I am a student and I have 10 to 12 tabs open on chrome, 8 PDFs open on Sumatra PDF in tabbed manner, some folders open to access my notes and PDFs; always open!!!!!

[snip]

So I will switch to linux but based on most linux users and forums and websites, Linux is not good at Hibernation and Suspend stuff.
I've heard those anecdotes. I've only had very infrequent problems with hibernation on my OpenSUSE-based laptop.

Quote:
Is it fine to use Linux without update, no Shutdown, no Reboot for months??!!!! Only suspend or hibernation !!
I can't say anything about months but I've had good luck going weeks without an actual reboot. I tend to not go very long without patching, though, so if the patches require a reboot, I suck it up and reboot after saving my session. (Note: I don't recall whether OpenSUSE was configured to save my session by default or whether I had to enable it. Nice feature, though.) I usually let Firefox (sorry... I only use Chrome for a few sites for work that don't work with anything else) get clobbered by the shutdown. FF tends to recover tabs w/o any problems. Also, when I've had FF go catatonic due to some flaky web page, killing it w/ "pkill -9 firefox" and re-launching it recovers the previously open windows and tabs very nicely. If you're paranoid about losing tabs, though, simply right click, select all tabs, then right-click again, and bookmark all of them into a new "folder". Reloading them from the newly-created bookmarks doesn't take long. You might try and see if that process works for you when running Chrome.

Quote:
You can recommend any stable and reliable distro for a newbie!!
Thank you... don't mind if I do. As I mentioned above, OpenSUSE has worked well for me. And I'm using it on an old Dell Inspiron laptop that still has the MS Vista sticker on it (i.e., it's not a bleeding edge laptop).

Hope this help some...

UPDATE: I forgot to mention that hibernation depends on your having sufficient swap space (at least in size equal to your installed RAM) in order to have somewhere to stash the state of the system when it goes into hibernation. For fun, take a look at the output of "cat /proc/cmdline (noting the "resume=" part of the command line if it exists) and the output of "lsblk -f" and compare the UUID information with what was in the boot command line. I would hazard a guess that the people that report having trouble with hibernation either never created a swap partition when installing Linux or didn't create one large enough for hibernation to work properly. Disk space is pretty cheap nowadays so I create the swap partition... and make it at least 1X the physical RAM.

Again... hope this helps.

Last edited by rnturn; 04-03-2022 at 01:05 AM.
 
Old 04-03-2022, 12:58 AM   #14
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
The problem is that people always forget that Linux can be installed on a huge variety of devices, and compatibility will never be 100% for all of them.(*)

And then they compare that to Windows or MacOS.

Or, in other words, if I bought my Windows preinstalled on my laptop, I would be miffed if hibernation doesn't work.
But try to install Windows yourself on any machine, I dare you!

(*) but even if you experience one of those rare cases, usually there's a fix.
 
Old 04-04-2022, 01:07 AM   #15
suramya
Member
 
Registered: Jan 2022
Location: Earth
Distribution: Debian
Posts: 249

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by Zorro007 View Post
Wow, that is awesome!!!
Which distro you are using? and how did you optimise it for using without Shutdown or Reboot?
So you only do suspend or hibernation?? Right??
I am running Debian (Testing) on both my Desktop and Laptop. The desktop I don't suspend or hibernate, but on the laptop I do that very frequently and so far haven't hit any issues resuming from sleep.

The year+ long uptime was without hibernate or sleep while running Seti@Home 24x7.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Used to shutdown/reboot from CLI but since systemd replaced init "shutdown" cmnd broke? Beagleburt Debian 10 09-24-2019 07:49 PM
what is the default powerstate (e.g. S3,S4,S5) for the command 'shutdown -hP' or 'shutdown -hH' or 'shutdown -h' badbetty Slackware 6 11-12-2017 12:18 AM
FC18: running a command on shutdown (or reboot) before every other shutdown operation P5music Fedora 3 04-23-2013 03:56 PM
Unable to shutdown/reboot server, no shutdown process running dctw Linux - Server 5 03-31-2010 05:46 AM
[FYI] "last -f <old wtmp> -x reboot shutdown" incorrect for last reboot and shutdown catkin Linux - General 1 03-25-2010 11:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration