date int64 1,220B 1,719B | question_description stringlengths 28 29.9k | accepted_answer stringlengths 12 26.4k | question_title stringlengths 14 159 |
|---|---|---|---|
1,390,858,111,000 |
Problem description
I am trying to get the audio to work correctly in my Linux installation. However, every time the audio signal goes to zero, even for only about half a second, and when it comes back up, I hear a click/pop from my speakers. This is most obvious when listening to sources without constant background n... |
In the end, I did not find a satisfactory answer, and there seems to be no good solution for my case, possibly because of the automation in the AVR. It is still unclear why the PS4 is capable of keeping the signal alive, but at least the following does the same:
/usr/bin/play -qn synth sin 10 gain -191
It is below bo... | Cracks and pops in HDMI audio output in linux (Debian) |
1,390,858,111,000 |
I bought a new dell laptop ( inspiron 15 3000 series ) with 2 gb nvidia geforce 117m. It shipped with ubuntu 14.04. That was very choppy and slow. I installed nvidia 346.47 ( from the nvidia website). This caused my lightdm to stop working.
Next time i tried the same thing and my screen froze. I did a hard reboot and... |
Finally I got it working for both screens. I didnt read the xorg log carefully enough. Noveau was being loaded along with nvidia and intel drivers. And it might be that the priority for noveau was higher.
I did a complete uninstall of noveau and didnt install any driver apart form nvidia-340. That makes ubuntu graphi... | Ubuntu (14.10, 14.04) Graphics rendering issues with nvidia 331, 346 when using two screens at once (built in and external) |
1,390,858,111,000 |
My employers want to try to send a video signal from a laptop in their storage room to a tv they have mounted in the dining room (restaurant). There is no HDMI output from this laptop (Toshiba Satellite running Trisquel), so they bought a USB-HDMI adapter. I'm looking at the adapter's packaging now, which confirms t... |
Took the device home with me to continue testing it. Looks like the video component is a separate device:
ryan@pocketwee:~$ lsusb -v
[snip]
Bus 002 Device 002: ID 1d5c:2000
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB ... | USB/HDMI adapter detected only as audio adapter |
1,390,858,111,000 |
I can tell my programs to output to either HDMI or the headphone jack just fine, but is there a way to create a virtual device in asound.conf that outputs to both simultaneously?
This config comes very close to working but it creates a sort of pulsing noise on the headphone jack.
pcm.internal {
type hw
card 1
de... |
So apparently the settings and pipeline above are essentially good, and if you go to the ALSA forums they'll recommend something like the above, but a matching rate on your outputs is something that must be considered in addition.
pcm.internal {
type hw
card 1
device 0
rate 48000
}
pcm.hdmi_hw {
type hw
c... | How do I create an ALSA virtual device that outputs to both HDMI and headphone jack? |
1,390,858,111,000 |
I'm using Arch Linux on a small HTPC called an Xtreamer, which has an Nvidia GT218/ION graphics card and HDMI out. My television is an Orion DL40-71BK (manual, note everything's in Japanese).
HDMI video output works fine on some settings, for example 1440x900 and 1280x720, and xrandr shows many modes without any X11 ... |
Thanks to brm's comment and reading the xrandr man page, I figured out what the issue was. There were two problems:
First, I'd always used xrandr's -s option, which specifies size, rather than the newer --mode option. This almost always works anyway, and in this case switching to xrandr --output HDMI-0 --mode 1920x108... | How can I get 1080p to work on my TV with HDMI using xrandr? |
1,390,858,111,000 |
The EDID sent by my monitor when directly connected to my graphic card is ok, I dumped it in /lib/firmware/edid/viewsonic.bin.
I want to access my monitor through a KVM-switch, an HDMI-audio-extractor and an HDMI splitter. With that setup, the EDID received by my computer is broken, and even the UEFI can't detect my s... |
I got an answer on IRC from #intel-gfx on freenode.
The problem is that i915 module as well as others are calling the drm_(do_)get_edid which ignores the edid firmware given to the drm_kms_helper.
There exists a patch for linux (I applied it to linux 4.12 with minor conflict resolution) to change that behavior. It req... | How to force HDMI audio (intel card) to be enabled despite receiving broken EDID |
1,390,858,111,000 |
I have a GIGABYTE GA-H170N-WIFI motherboard which I'd like to use as a basis for home audio system. It has got two HDMI outputs and 5.1 analog audio output.
The question is, how do I find out how many independent audio channels does the sound card/subsystem support? Can I really have 8 independent audio channels per H... |
According to the codec information, you have 3 converter nodes (which accept a digital data stream) of 8 channels each, and 3 pin nodes (which are connected to the graphic card to embed the sound stream into HDMI).
So your hardware is indeed capable of 8 channels per HDMI plus 6 channels analog (unless the HDA soundca... | How many audio channels does my sound card have? |
1,517,636,397,000 |
Context: Debian/testing on a ASRock B450 with Ryzen 2200G, HDMI monitor.
I can set the default audio sink either via /etc/pulse/default.pa or manually with this command:
pacmd set-default-sink alsa_output.pci-0000_38_00.1.hdmi-stereo-extra1
However, once the monitor enters standby mode, the default gets reset to the i... |
Ok, what happens is the following:
Each port of a sink has an "available" state, and putting the HDMI monitor into standby puts the port state into "not available".
The default sink can also be thought as fallback sink: It's the sink that gets used of Pulseaudio can't assign a valid sink to an application using the s... | re-set xfce4-pulseaudio-plugin default after HDMI monitor standby |
1,517,636,397,000 |
My laptop's display has native resolution of 1366x768, and I connect it to my TV which has 1920x1080i. My problem is that the only supported resolution for cloning is 640x480, which happens to be the only resolution that is supported by both the TV and the laptop's display.
But on Windows, I've noticed that cloning wo... |
Finally I made it work using this line:
xrandr --output HDMI1 --off
xrandr --output HDMI1 --auto --scale-from 1366x768
Note that --auto is needed, though I don't know why.
| Clone monitor on HDMI without changing laptop display resolution |
1,517,636,397,000 |
I am using CentOS 7.9 and I have Asus H110M-E (which has built-in audio and video) and GeForce GT 710 video card with the driver installed via yum:
(1/4): nvidia-x11-drv-470.103.01-1.el7_9.elrepo.x86_64.rpm ... |
You need to actually select the output. Under Pulseaudio, you can do this with pavucontrol for applications, even if the application itself doesn't support it.
| No Audio From HDMI? |
1,517,636,397,000 |
Everything used to work until recently. Now, whenever I connect my HDMI monitor to my laptop nothing happens. Running xrandr doesn't show the HDMI output. Can anyone help out? I've been trying to fix this for the last 3 hours. I even reinstalled unity but that didn't work.
I'm on 14.04 ubuntu.
Any help is appreciate... |
Ok, after a sleepless night of googling and trying things out (like reinstalling unity and the x drivers), I decided to try out Intel's approach. Apparently they officially support linux and they have a graphics driver installer (link below). After downloading and installing everything started working again.
I'm in U... | hdmi not showing up in xrandr |
1,517,636,397,000 |
I have tried to use a hub with hdmi port that connects to the USB-C port of my computer but this one doesn't work.
Checking other similar threads on Internet (and here), I see that the problem is probably that the USB-C port in question does not support video output (the hub itself has USB ports and they work properly... |
Finally, my laptop's USB-C doesnt support Video output, and it seems that it cannot be demonstrated by software, just going to the hardware manufacturer.
Therefore I had to install a USB 3.0 to HDMI adapter that supports displaylink drivers and install it to get a second external monitor.
| How can I find out if the USB-C port on my laptop has video output (for adapter USB-C - HDMI)? |
1,517,636,397,000 |
I've tried this :
https://wiki.archlinux.org/index.php/xrandr#Permanently_adding_undetected_resolutions
Here I was advised on the Debian IRC channel to change the path of the config file to: /etc/X11/xorg.conf.d instead of /etc/X11/xorg.conf.d/10-monitor.conf as per the ArchWiki.
However, the person who was helping me... |
In Debian, the default directory that contains xorg.conf files is indeed /usr/share/X11/xorg.conf.d/. This would be the correct location to place custom X settings.
Here is the configuration file you need to force a specific resolution (and have none other to choose from!). Save it in /usr/share/X11/xorg.conf.d/10-mon... | Can't set the resolution to 1080 on a VGA to HDMI adapter on Debian 10 (Thinkpad X220) |
1,517,636,397,000 |
I'm running Ubuntu 18.04 on an MSI GE63 Stealth 8RE, with an NVIDIA GTX 1060. There's a good amount of screen tearing when watching videos, and I found several sources online telling me that creating a file in /etc/modprobe.d/ with options nvidia_drm modeset=1 would resolve the issue.
Lo and behold, it did! No more sc... |
I fixed the issue!! I switched from using GDM3 to LightDM, rebooted, and I no longer have the issue of not being able to connect to external monitors. I tested on both DisplayPort and HDMI external monitors. It also happened to fix a problem I'd been having with external monitors not being recognized as viable audio s... | HDMI not showing in xrandr after nvidia modeset=1 |
1,517,636,397,000 |
I have a machine installed with OpenELEC and I'd like to use the motherboard line input (jack) and redirect sound through the HDMI link. All the other jacks from the motherboard will be unused.
I tried playing with alsamixer (booting the machine with a LiveCD since OpenELEC has no ALSA mixer application) but all I can... |
Well obviously you can do it by running a program that reads audio from a capture device and writes it to the HDMI output (potentially through pulseaudio, so you can mix other sounds with it).
I don't have any specific suggestion for you about what program to look for, sorry.
I think it's unlikely that two different c... | Can ALSA output sound from a motherboard jack input line to HDMI? |
1,517,636,397,000 |
Observation:
I switch on a Linux box
Boot loader displays its output on screen
Boot starts with first output messages
Screen goes blank, and never comes back on.
Note: this is about the console, NOT about X11.
I keep running into the same problem, on a variety of hardware (x86, ARM) with different video connectors (... |
It works if I add
video=LVDS-1:d
to the kernel parameters.
| How does the Linux kernel initialize console graphics? |
1,396,909,704,000 |
I've got an ATI Radeon (not sure exact card; forgot to write it down when I left this morning; will update when I get back) and it is connected to an LG IPS237L 23" IPS LED monitor.
As you can seen in the xrandr output below, the resolution is currently set to 1920x1080. The monitor's information panel indicates this ... |
Discovered this question:
https://askubuntu.com/questions/219044/ati-proprietary-driver-over-underscan-setting-ignored-after-reboot
Looks like it was just an underscan issue. Running the following as root:
aticonfig --initial #if you haven't already setup your xorg.conf for ATI
aticonfig --set-pcs-val=MCIL,DigitalHD... | Blurry image between Radeon / DVI-to-HDMI / LG LCD monitor |
1,396,909,704,000 |
I recently brought home a 1440p HDMI 60 Hz monitor. However, on Ubuntu and Fedora it has problems displaying correctly. Some images of the problem are here: https://i.sstatic.net/szawh.jpg
Initially, I had Fedora installed, and thought it was a Fedora problem. Then, I wanted to try Ubuntu, figuring the VGA drivers mig... |
I came up with a solution, though I'd love some expanded input on whether this is an acceptable long term solution.
I followed the screenshot here:
Which I found from the debugging Wayland page Using both GNOME Classic and GNOME on Xorg allowed me to correctly run the HDMI monitor at 1440p. I could back switch into t... | Why does my 1440p HDMI monitor only display correctly when running from the bootable USB? |
1,396,909,704,000 |
I am posting this question up mostly because after years (yes, years - cf. [this post][1], for example) of living with this frustration, I finally solved this yesterday and would like to spare others this frustration.
I mainly use Firefox for my browsing needs, but at some point I ran into not being able to watch vide... |
Further investigation led me to find that if I launched pulseaudio before launching Chrome, I could get sound coming out of my TV via the HDMI connection. Strange.
No amount of tweaking the .asoundrc fixed this issue, where I had previously added:
defaults.pcm.card 0
defaults.ctl.card 0
To fix the problem, but this w... | No sound from Firefox or Chrome HTML5 videos, but flash works (alsa) |
1,396,909,704,000 |
I'm trying to play some audio through HDMI to a sound system (https://www.amazon.com/dp/B09H5GJCML). On the back of the speakers, by the HDMI-shaped hole, it says "ARC". I'm driving it with a laptop running arch linux, XFCE4, and pulse audio. When I plug in HDMI and set the speaker to "ARC" mode, pavucontrol shows the... |
ARC = Audio Return Channel. It is used to allow transferring audio in the opposite direction to the main signal, i.e. if you are using HDMI to transfer a signal (audio, video or both) from device A to B, ARC could be used to transfer audio from B to A.
For example, you might have an ARC-capable home theatre amplifier ... | Archlinux HDMI Audio-Only Output Unplugged Unavailable |
1,396,909,704,000 |
I finally found out how to make my Pop!_OS recognize my HDMI for audio. (basically I'm using an ASUS laptop with a 1060 hooked with a monitor, everything was fine except for the HDMI audio output not displaying on the audio output list)
I followed this guide and it works flawlessly, but every time I reboot my machin... |
You can delete the folder if you installed the module with sudo make install.
See https://bugs.freedesktop.org/show_bug.cgi?id=75985#c33:
I can confirm that kernel module, posted by Maik Freudenberg [Comment 27], is working fine on my system. Thank you for the fix. The HDMI audio device now works as it should.
The st... | How do I set this HDMI output fix permanent? |
1,396,909,704,000 |
I have an Intel card, and it appears that it is not possible to just stream audio and no video. So is there a way to just activate the port and send a dummy video signal to have audio working? I do not want to extend my desktop on the additional screen.
|
You can set up a second X display for the HDMI output. This will still use up video RAM and display it, but it will be separate from your primary desktop, so your desktop stays on your monitor and doesn't extend to the additional screen. I've set this up on my Intel integrated graphics with an /etc/X11/xorg.conf file ... | Activate HDMI output without using as desktop |
1,396,909,704,000 |
I have a RPi that is running videos with omxplayer and outputting to my tv. HDMI video and audio out work just fine, but I would additionally like to stream only the audio to my network (via RTP or other means) so I can connect other devices in different rooms and continue listening -- like a LAN radio broadcast of so... |
You need Pulseaudio to stream audio over LAN
you would need to install Pulseaudio and:
Pulseaudio Volume Control (pavucontrol) for sound levels and routing audio streams
Pulseaudio Preferences (paprefs) for streaming
Multicast/RTP tab to configure for RTP sender or reciever
Simultaneous Output tab to get audio playing... | How do I capture RPi’s hdmi audio output and stream it to LAN |
1,396,909,704,000 |
I have a very strange issue with my Arch Linux install.
When a HDMI cable is connected to my graphic card (a GTX 970), my PC won't boot, it only shows a black screen, but it will start if the HDMI cable is disconnected.
If I plug in the HDMI cable while Arch runs, the PC freezes.
I have the same issue if I use the ... |
The problem came from GDM, so I move the custom config and re-install it with :
sudo systemctl disable gdm
sudo pacman -R gdm
sudo pacman -S gdm
sudo mv /etc/gdm/custom.conf /etc/gdm/custom.conf.old
sudo systemctl enable gdm
| Arch PC freezes when third screen connects |
1,538,883,631,000 |
After installing Antergos with KDE everything is working fine (as far as I can tell) except my HDMI monitor doesn't work. Instead of rendering anything properly it displays whatever the first image that appears on it is but broken into lines with black lines in between.
I have an NVidia GPU and I think it's Optimus (I... |
For future readers with a similar problem: the fix that worked for me is here.
The solution here of adding acpi_osi=! acpi_osi="Windows 2009" to the kernel parameters both allowed the reinstalled nouveau drivers to finish booting and the nvidia drivers to work at all.
| HDMI output broken after Antergos install |
1,538,883,631,000 |
Installed Kali Linux on my Alienware M17 laptop;
laptop monitor was working
connected to an external monitor via HDMI, configured the external monitor as the primary, laptop monitor as secondary; all were working initially
used xrandr command to dim laptop monitor; laptop monitor stopped working, while external moni... |
I upgraded my video card driver to Nvidia and the problem has been solved, now I am happily running Kali Linux with my laptop monitor and my external monitor.
| Alienware laptop monitor stopped working after connecting to an external monitor, Kali Linux OS |
1,538,883,631,000 |
I installed Ubuntu 16.04 on an ASUS Z450LA laptop with Intel HD5500 graphics (no dedicated graphics card) and am using MATE as my desktop environment.
I had to rebuild the kernel with this patch to fix an issue with the touchpad not working upon waking up from suspend, if this matters.
The problem is that the system f... |
After a while testing, I came to the conclusion that the problem is not the HDMI; the problem is Chrome anything that uses OpenGL.
As a workaround, run Chrome with --disable-gpu in the command line.
| System freezes completely while using HDMI |
1,538,883,631,000 |
Is it possble to use a HDMI card with OpenBSD? I have a home server but at the moment I have only a TV with an HDMI entry. I would like to use OpenBSD.
|
It depends on the chip on your card.
Support for Intel and Radeon is quite good: quoting one of the developers from a recent mailing list thread:
If you're after acceleration for now it is <= Haswell for
Intel (excluding Bay Trail) or <= Northern Islands for Radeon.
See also the relevant man pages: intel(4) and rade... | It is possible to use a HDMI card with OpenBSD |
1,538,883,631,000 |
I use the cmus console music player through ssh on a device with OSMC (Kodi, based on Debian Jessie) installed. My problem is that the sound is played to the HDMI, and I want to play music to the jack output.
I tried to use alsamixer, amixer, aplay, etc... but these are not installed and sudo apt-get install alsamixer... |
This 2018 article explains how you can dynamically switch the audio output between hdmi and analogue on a Raspberry Pi. From the command line use
amixer cset numid=3 2
for hdmi and
amixer cset numid=3 1
for analogue. This information is no longer in the current version of that page, so may no longer work. The May 2... | Set audio output using command line |
1,538,883,631,000 |
Pulseaudio murdered my last Audigy 2 soundcard, it did this because it kept turning the PCM to maximum volume on the sound card, and it kept changing the audio levels automatically every time i switched audio application - e.g. from a Firefox youtube video to Audacious. It was an old card anyway and the caps were gett... |
The onboard Realtek and NVidia GPU both use module snd_hda_intel and the device you want as default uses module snd_usb_audio
The slots option can fix the card order so snd_usb_audio takes the first slot (card 0)
Edit /etc/modprobe.d/alsa-base.confand replace the options added in the question with this:
options snd sl... | Disabling onboard sound so that I can use ASUS Strix Soar as default sound card |
1,538,883,631,000 |
Ubuntu minimal 20.04 LTS running on OdroidXU4. So no desktop environment.
root@odroid:~# cat /proc/asound/cards
0 [OdroidXU4 ]: Odroid-XU4 - Odroid-XU4
Odroid-XU4
1 [Device ]: USB-Audio - USB PnP Sound Device
C-Media Electronics Inc. USB PnP Sound Device at usb-xhci-hcd... |
If you run Pulseaudio anyway, don't mess with the ALSA settings (which say to use Pulseaudio for ALSA-only applications), instead use pavucontrol or pacmd to set the default sink and/or the sink of a specific application in Pulseaudio.
Pulseaudio has a database that will assign the same sink to an application the next... | 2nd usb audio card - unable to set as default on OdroidXU4 - application still uses hdmi sound |
1,538,883,631,000 |
I am trying to configure dual monitors on a custom built machine with an Intel i7-7700K CPU, a NVIDIA 1080-Ti GPU, and a CentOS 7 operating system. I have no problem booting with the primary monitor connected to the DVI port, but activating the secondary monitor with the HDMI port has been a struggle. After reading th... |
Open a command terminal and then run 'sudo nvidia-settings' . This should open up the nvidia setup application where you can fix your video settings to support multiple monitors and then reboot and you should be up and running.
| How to configure multiple monitors with DVI and HDMI connections with CentOS 7 |
1,538,883,631,000 |
I have a really broken up computer, the LCD screen is internally cracked and the WiFi doesn't work. I have a live Ubuntu CD that I wanted to try, to see if I like Ubuntu as much as Debian on other devices. I put the live CD in and it worked and booted the Ubuntu terminal.
The problem with this is that the computer wo... |
I used a virtual machine to run the disk.
| Can you display terminal via hdmi |
1,538,883,631,000 |
When I plug my Raspberry Pi to my TV (which supports SimpLink, or respectively CEC) the TV automatically turns on from standby. This is due to the fact that the Raspberry Pi also supports CEC: http://www.raspberrypi.org/archives/1839
I would like to see this working with my HTPC aswell. It runs Debian Wheezy - the HDM... |
Based on the specifications at the link you provided, I don't believe this motherboard has CEC support. It's a fairly new standard, especially to the PC world..
You might try looking at http://www.pulse-eight.com/store/products/104-usb-hdmi-cec-adapter.aspx for an alternate solution. I haven't tried the device as of... | use CEC with my TV |
1,538,883,631,000 |
After some struggle, I got systemctl suspend working with my Nvidia graphics card; only that when machine resumes, the monitor is blank. Yet I discovered that if I unplug the HDMI cable and plug it in again, it recovers and the image is back.
Now I wonder if I could run a command that does the same as the manual unplu... |
In X11 xset dpms force off ; xset dpms force on might fix it.
In wayland, you might be able to do something with swayidle but I haven't tried it.
| How to simulate the plugging and unplugging of an HDMI cable through software? |
1,538,883,631,000 |
I'm on Dell Latitude 3420; it came with pre-installed Ubuntu 20.04.
I am dual booting with Devuan Chimeara
uname -a
Linux devuan-Latitude 5.10.0-22-amd64 #1 SMP Debian 5.10.178-3 (2023-04-22) x86_64 GNU/Linux
I am able to connect to the external TV display; but no sound in the external TV display.
The HDMI sound out... |
The following config change in /etc/modprobe.d/alsa-base.conf (at the end of this file) did the trick:
snd-hda-intel dmic_detect=0
So, the HDMI sound output is solved. Hurray!!
Thanks to the guys at Official Devuan Forum, especially delgado.
| HDMI sound output not coming |
1,307,362,518,000 |
When a Linux system hibernates and resumes from hibernation, I think that the kernel needs to know that it's resuming, not booting. Otherwise, the kernel will start the usual boot process, and will not load the swapped data. How does the kernel know it's resuming?
At first, I thought that GRUB (or another boot loader)... |
Hibernation works by using a swap partition¹ to swap out all processes' memories, the kernel state, finally save some state of CPU and possibly other devices, then power off. On the way, it notes in the swap partition that this is a hibernation image.
Resuming from hibernation works by telling the kernel to try resumi... | How does the kernel know it's resuming from hibernation, not booting? |
1,307,362,518,000 |
Based on various sources I have cobbled together ~/.config/systemd/user/screenlock.service:
[Unit]
Description=Lock X session
Before=sleep.target
[Service]
Environment=DISPLAY=:0
ExecStart=/usr/bin/xautolock -locknow
[Install]
WantedBy=sleep.target
I've enabled it using systemctl --user enable screenlock.service. B... |
sleep.target is specific to system services. The reason is, sleep.target is not a magic target that automatically gets activated when going to sleep. It's just a regular target that puts the system to sleep – so the 'user' instances of course won't have an equivalent. (And unfortunately the 'user' instances currently ... | How to run systemd user service to trigger on sleep (aka. suspend, hibernate)? |
1,307,362,518,000 |
When a computer goes into hibernation mode, it saves the contents of the RAM into the swap space so that it can resume exactly where it left off when it powers back on.
So, what if you are currently using more memory than you have RAM. In this case, some data that would otherwise be in RAM is saved to swap.
An exam... |
That depends on the implementation of hibernation. Even if you restrict the question to Linux, the implementation has evolved over time.
First, consider that some of the RAM is used for disk caches. This doesn't need to be moved to the swap as it can be reloaded from the disk after the system resumes. On a system with... | What happens to data in swap when your computer hibernates? |
1,307,362,518,000 |
I recently upgraded my kernel from 3.16.4 (Debian jessie) to 4.9.0 (Debian stretch).
Everything was fine, until I tried to "Hibernate" (suspend to disk).
When I use Hibernate option in LXDE, it appears to hibernate. I can hear the disk spindle ticking and writing data. But the problems appears when resuming from hiber... |
The issue is due to a conflict between hibernate and kASLR on x86-32. This can be solved by disabling kASLR with the nokaslr kernel boot option. x86-64 is not affected.
For Grub this can be done by editing /etc/default/grub and adding nokaslr to the boot options, e.g.:
GRUB_CMDLINE_LINUX_DEFAULT="quiet nokaslr"
Then r... | Hibernation resume fail on linux kernel 4.9.0, Debian 9 |
1,307,362,518,000 |
I think that Sleep/Suspend to RAM is just saving session to RAM, therefore entering sleep and restoring very quickly, but in case of total battery drain the session is lost as the machine shuts down by power failure.
In Hibernation, the session data active in RAM is saved on the HDD (I think swap partition is needed... |
As I was expecting a quick answer which didn't came, I have subjected an older laptop to a rough test intended to provide the answer:
I have opened a text document, written something and, without saving the document, entered hybrid sleep with the command systemctl hybrid-sleep. At this point the LED beside the power b... | Is hybrid-sleep effective in case of battery drain (restoring session and open programs)? |
1,307,362,518,000 |
I'm currently on Linux Mint 19.1 and it uses swap file by default instead of swap partition. Everything including suspend works fine. But resume after hibernation is not working. I have following configuration in my /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=38c97b08-a1d5-44b5-9e96-afca1359... |
I have followed many tutorials and none of them seems to work. Sadly, this is caused by a regression in recent kernel versions and there is already an active bug report on launchpad.
hibernation (freezes on resume) since 4.13.0-25.29
It's more than a year now since the the bug was reported and no fix or workarounds t... | Hibernation not working on Linux Mint 19 |
1,307,362,518,000 |
For many years I set up my Linux machines with no swap, as they had enough memory to do what I needed and I would rather a process get killed if it used too much memory, instead of growing larger and larger and quietly slowing everything down.
However I found out I required swap in order to use hibernate on a laptop, ... |
Is there some way I can tell Linux to use a given swap partition for hibernation only, and not to use it for swapping during normal operation?
Remove or comment the corresponding line from /etc/fstab. Example on my system
$ grep swap /etc/fstab
/dev/mapper/NEO--L196--vg-swap_1 none swap sw ... | Hibernate to a swap partition without using it as actual swap space |
1,307,362,518,000 |
using linux. I know you can do an @reboot cronjob. I want to do an equivalent thing but instead of running at reboot, running after my computer awakens from suspend. Is that possible?
|
Depends on your distro and/or your destop enviroment, without this info i cant tel much, only that each dispo/desktop enviroment handle it on other ways.
like you see the way for ubuntu is nearly complete different how debian handle this.
Ubuntu solution https://askubuntu.com/questions/226278/run-script-on-wakeup
Debi... | cronjob at resume from suspend |
1,307,362,518,000 |
My Wi-Fi will not work after suspending but WILL work after hibernating.
I've tried a couple things and have had some luck so I'll post what I've done and the effects I've seen.
$ sudo lshw
description: Notebook
product: HP ENVY 14 Notebook PC (J9L59UA#ABA)
vendor: Hewlett-Packard
version: 096C1200144... |
According to Webupd8 you need to edit /etc/pm/config.d/unload_modules configuration file by adding the following line :
SUSPEND_MODULES="$SUSPEND_MODULES <kernel_module_used_by_the_interface>"
In your case the kernel module in use is iwlwifi :
SUSPEND_MODULES="$SUSPEND_MODULES iwlwifi"
then edit your 10_resume_wifi ... | Mint 17.3 Wi-Fi does not work after resuming from suspension |
1,307,362,518,000 |
Suppose I have two different Linux installations A and B, both using the same swap partition.
As I understand, running A or B will cause no problems with swap as only one of them is using it at a given time. However, if I boot A, hibernate, then boot B, swap is being used by both (A in a passive form, but data is ther... |
The question is: Will the hibernated system survive after this?
If system B uses the swap space, which you might as well presume it will, then I really doubt system A will be able to reboot from hibernation successfully, and the consequences may be bad if it does.
If not, will the memory be corrupted or will A jus... | Can swap be shared safely while hibernating? |
1,307,362,518,000 |
This question is a more specific "subquestion" of the one about side effects when two distros share a swap partition.
What will actually happen if I install two Linux distributions on my machine with shared swap partition, hibernate in one, and boot into the other? Will the other figure out that the swap data is inva... |
It will use the swap partition, (especially) if it has an fstab entry for it.
However your problem is not only with the swap partition, but also with all other filesystem partitions. You're not allowed to mount any of them as long as they're still mounted by the hibernated system.
Only one OS is allowed to mount a fil... | How will hibernation work in two Linux installations sharing a swap partition? |
1,307,362,518,000 |
In my fresh install of Linux Mint 16 with MATE, I have no hibernate option in the Power Manager; only suspend and shutdown.
In the Quit menu I have hibernate as an option. Also sudo pm-hibernate works from the command line.
Any suggestions of how to enable hibernate in the Power Manager? I want to hibernate when the l... |
Edit this file: /var/lib/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
eg.: sudo gedit /var/lib/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
Add this content:
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActiv... | No hibernate option in power manager on Mint 16 MATE |
1,307,362,518,000 |
I have installed fresh Fedora 32 Workstation from official .iso image. So far everything works except hibernation. The laptop hibernates without any error and turns off. But when I turn it on it starts like after reboot instead of restoring the previous state.
# cat /proc/cmdline
BOOT_IMAGE=(hd0,msdos1)/vmlinuz-5.7.6... |
I found solution that solves the problem but I'm not sure if this is correct one.
If
$ sudo lsinitrd -m | grep 'resume'
returns nothing then there is lack of resume module in initrd. To insert it temporarily do:
$ sudo dracut -vf -a resume
and check again with use of previous command. If it returns 'resume' then tr... | Wake up from hibernation causes reboot instead of resume |
1,307,362,518,000 |
I am running XUbuntu 16.04 with kernel 4.4.0-116-generic (but the same goes for earlier versions) and 16 GB of RAM. I am using a "traditional" hard drive (no SSD) and my swappiness is 0 (RAM is rarely full).
I have been experiencing the following with hibernation : hibernation proper takes less than 2 minutes, but res... |
I think your experiences are very common for the hibernation aka. suspend-to-disk, especially when using a rotating disk.
From the kernel documentation, there is a workaround mentioned which seems to be related to the idea of the link you have posted. If I got it right, this would just empty the swap at once instead o... | Why does resume from hibernation take 10 minutes and how to avoid this? |
1,307,362,518,000 |
A while back, I set up hibernation on my Linux system. It's been working really well, up until tonight when I installed another hard disk, which shuffled the device node names around. So now on boot I get a message saying something to the effect of (I didn't write down the exact wording) couldn't stat /dev/sda3 and as... |
Basically, your original /etc/uswsusp.conf was written by the scripts invoked by dpkg while installing uswsusp. To see the script, check /var/lib/dpkg/info/uswsusp.config.
To update it semi-automatically, use:
dpkg-reconfigure uswsusp
Or, edit it by hand and then use:
update-initramfs -u
I would sincerely encourage ... | Where is hibernation resume getting the device node from? |
1,307,362,518,000 |
I was trying to hibernate my Fedora 27 system temporarily using a swap file and failed. Answers in the following question also say that a dedicated swap partition must be used to hibernate the system and a swap file won't work.
Why does Linux use a swap partition rather than a file?
I'm using an ext3 file system in w... |
As said here (link provided by @don_crissti), the system must locate the swap file's header, but in order to do this the filesystem that contains the swap file must be mounted, and a journaled filesystem (as ext3 is) cannot be mounted during resume from disk.
Quoting from the document:
In order to use a swap file w... | Why can't a file as swap be used for hibernation in Linux? |
1,307,362,518,000 |
When I boot with a resume=.. option to the kernel and an initrd built with a -h option, userland tools (say, batti) offer me the choice of hibernation; when I boot without them it does not.
Where is the fact that I have a system capable of hibernate/resume exposed for these tools to find that out? (This is on Slackwar... |
One way to do this is via the /sys/power interface. The usual way to induce hibernation (used by various higher level tools) is to write to a couple of the fields there:
echo shutdown > /sys/power/disk
echo disk > /sys/power/state
I believe the first one sets the methodology and the second one triggers the change.1 ... | Where is the ability to hibernate exposed on Linux? |
1,307,362,518,000 |
I try to give a behavior to a closing lid of a laptop following this rules:
When the lid is closed:
After 1m, it should be screenlocked ;
After 10m, it should be suspended ;
After 15m, it should be shutdown.
So, I make the following script:
#!/bin/bash
USER=fauve
sleep 1m
# set screensaver
su -c "$HOME/.loca... |
in short: you can't. At least not in software. When you put your computer in suspend, it's suspended. Software like sleep (or more precisely, the systick or timer that tells your kernel to wake up the task after a given time) simply won't run.
So, only thing here is a hardware solution. Your laptop needs to have some ... | How can I suspend|hibernate for certain time |
1,307,362,518,000 |
On OpenSUSE 12.1 x86_64, Gnome 3.2 . I want to remove the suspend and hibernate options from the Gnome (Shell) menu as
suspend makes no sense IMO for a desktop
hibernate has a slight tendency to lock up
I've found that I should configure these privileges using polkit. I've dropped a file named 90-disable-suspend.con... |
The directory /etc/polkit-1/localauthority.conf.d is reserved for configuration files.
You should put your file in a subdirectory of /var/lib/polkit-1/localauthority and with extension .pkla. The directory /etc/polkit-1/localauthority should be ok too, but can be modified by updagraded/installed packages, so better t... | Removing supend and hibernate privileges |
1,307,362,518,000 |
The existing question how to run a user script after systemd wakeup? already has answers that allow running scripts after wakeup from sleep. However, the solutions provided to that question require hardcoding user.
How to create a script that is automatically run by all currently logged graphical desktop sessions? (Th... |
On resume you could enumerate logged in X.org users and run whatever you need for them. There are many solutions of how to get the list of currently logged in users but most of them are outdated and may not work in modern Linux distros, including: w, who and last, e.g. w and who return nothing on my Fedora 36 machine.... | How to run X programs automatically after wakeup from S3 sleep (suspend) or S4 sleep (hibernation)? |
1,307,362,518,000 |
uswsusp, which is used for hibernation, presents latest in the old stable, but has gone in Bullseye (the current stable). What is it replaced with?
|
It wasn’t replaced: its removal request says
It's dead upstream and also no longer properly maintained in Debian.
Nowadays, the kernel provided suspend and hibernate functionality is
preferred and should be used instead.
In Debian 11, you should use the suspend features in your desktop environment, or systemctl susp... | uswsusp package has gone in Debian Bullseye |
1,307,362,518,000 |
I installed the latest stable 64bit Crunchbang backport. When I tried to hibernate it last night, it rebooted into the locked state - when I logged back in all my windows/apps were as they were again.
Two things:
How do I get Crunchbang to hibernate? hibernate works in my Windows7 partition. Crunchbang is installed ... |
Crunchbang did exactly what hibernate is meant to do.
Hibernate writes the contents of your RAM to the disk and shuts the machine down. When you power your machine up again it detects that there is a RAM image file stored on disk and loads the contents of the RAM image back into RAM.
You need to enter your password be... | Crunchbang hibernate rebooted system? |
1,488,202,671,000 |
After each hibernation process I get a corrupted root filesystem. My setup is a LUKS encrypted root and swap partition on LVM. I use a GPG encrypted key for the root filesystem and a unencrypted key file on the root partition for swap decryption. The initramfs is generated by genkernel with
genkernel --lvm --luks --gp... |
I use a GPG encrypted key for the root filesystem and a unencrypted
key file on the root partition for swap decryption.
Does that mean you have to mount the root filesystem in order to be able to decrypt swap? If so, this could likely be the cause of your problems. You're not allowed to access (write) filesystems ... | Corrupt Filesystem after Hibernation |
1,488,202,671,000 |
I have a ThinkPad X230T with Debian testing installed. As the title says, it only boots every other time.
What I mean by this is that I turn it on, I work with it normally, and then I either shut it down or hibernate it. The next time it won't boot. I will press the power button (or open the lid) and both the power an... |
Are you using the BIOS defaults? If not, can you try resetting them?
Are you getting any beeps during start-up (successful or otherwise), running, or shutdown? See page 34 of that manual for beep codes.
One thing I believe could cause this is a device not responding to the power-on self test (POST) in time. BIOSes som... | My Thinkpad X230T only boots on alternate tries |
1,488,202,671,000 |
Situation :
I have installed two Linux Mints OSs on my computer, I'm using the first one for normal use (Browsing, Watching Movies, ...), I use the second one for my programming work, So I always hibernate the second one, to do not lose my opened windows (More than 15 windows).
Problem :
So my problem is after hiberna... |
As you know, when you hibernate it saves the contents of memory (most of it) to the swap partition. It sounds like that this partition is shared between the two OS instances.
A possible solution could be using a swap file for the one you want to hibernate (assuming you don't want to create another swap partition). The... | Stop Linux from using swap |
1,488,202,671,000 |
I tried two methods to enable hibernation.
First method was invoking
systemctl hibernate
under root. The second was to use Frippery Shut Down Menu.
In both cases the system will eventually show me a black screen with some error message and it does not hibernate. I have the latest updates installed. I believe this ... |
You may find that hibernation is not enabled by default in fedora's grub.cfg and/or fstab.
You need to have a large enough swap partition and an entry for it in /etc/fstab.
e.g.
UUID=da673383-0c15-4b6c-9eab-0d7e425b7d05 swap swap defaults 0 0
And you need to set the resume option for linu... | Howto make hibernation work under Fedora 19 |
1,488,202,671,000 |
I am using RHEL6 and I don't see a hibernate option for it. Doesn't RHEL6 have a hibernate option?
I tried pm-hibernate from command line but it said:
PM: Cannot find swap device, try swapon -a
I tried swapon -a
then I again tried pm-hibernate and it showed the same message again.
PS: I don't have a swap partition... |
In order to hibernate, the system has to have somewhere on the disk to write the data that is in RAM to save it from extermination when the power goes out. There are other ways to do it, but not distros use the swap space for hibernation so as not to run into space problems on the hard drive. There is a kernel paramet... | How to hibernate a RHEL6 machine? |
1,488,202,671,000 |
My current config is Windows-11 (required for my job) and Ubuntu 21.10 dual-booting on an HP Probook G10. Since I have to have secure-boot to run Win-11, I have to live without hibernation on Linux (really really difficult).
I realize that hibernation is now officially disabled when secure-boot is enabled on all pre-... |
The lockdown LSM module is what disables hibernation, and there is a kernel compile flag for this called CONFIG_LOCK_DOWN_IN_EFI_SECURE_BOOT, set it to no and it won't enable lockdown in when EFI secure booted.
| Patching the kernel to allow hibernation with secure-boot enabled |
1,488,202,671,000 |
I have Linux Fedora 20, with Gnome classic desktop. When I power down, via the "Power Down" icon on the top bar, everything shuts down, and everything is gone when I power up again, although I can recover web pages using History in my browser. I would like, if I choose, to have the session restored totally and exactly... |
As root user, and since Fedora 20 uses systemd the more appropiated way to do this is through the hibernate target:
systemctl hibernate
If you want to do this as normal user, you could use sudo and add the following line on /etc/sudoers through the visudo command:
user hostname =NOPASSWD: /usr/bin/systemctl hibernate... | Linux Fedora: can I preserve what I am doing so that everything will be restored when I power up again |
1,488,202,671,000 |
I've been trying to get hibernation to work, and am having problems. The system seems to go into hibernation just fine, but when I try to restore from disk, the process stops just after a message saying "Image restoration successful". This is before I'm able to switch to a new tty. Ctrl-alt-del works. SysRq co... |
I've observed the same problem, also on Ubuntu 12.04. After resuming, the system is displaying a text mode console and looks frozen, but magic SysRq responds.
I've found that Alt+SysRq+E (which kills all the programs on the current virtual console) works for me. This doesn't kill any of my programs, it's only killing ... | Resume from hibernate fails after image restoration |
1,488,202,671,000 |
Here is what happened:
I used the Laptop and accessed some data on my usb stick. Then I closed the Laptop putting the system into sleep mode. The USB-Stick was still plugged in. After the laptop was completely in sleep I removed the Stick (the light was off, so it must have been without power). I woke up the laptop to... |
Before you do anything to the USB-stick, you should make an image of it:
dd bs=4k of=stick.img if=/dev/disk/by-id/usb-JetFlash_Transcend_4GB_QTMFKJQQ-0\:0
Then you put your stick safely away and use the stick.img file to do your fiddling, instead of destroying more data.
Are there important files on it? Check http://... | How to restore a Fat32 filesystem under Linux |
1,488,202,671,000 |
When I try to hibernate with systemctl hibernate, the unit systemd-hibernate.service enters failed state and I get the following entries in my journal:
Feb 09 14:18:14 pike systemd[1]: Starting Sleep.
Feb 09 14:18:14 pike systemd[1]: Reached target Sleep.
Feb 09 14:18:14 pike systemd[1]: Starting Hibernate...
Feb 09 1... |
I had to disable UEFI Secure Boot because I needed to use VirtualBox. Incidentally, this also enabled standby. I can now systemctl hibernate and systemctl hybrid-sleep.
| F20 Unable to hibernate, /sys/power/disk disabled |
1,488,202,671,000 |
I have recently installed Debian 12 amd64 on a Lenovo IdeaPad 100s. There seem to be a problem with the laptop lid, in paricular I do not find where the behaviour the system should take is set.
In xfce-power-manager gui I have set to "Do nothing". Still when I close the lid the system goes to hibernation. After I reop... |
It's often useful to see what
archlinux has on the
subject. It links to
xfce and the
xfce4-power-manager, and we can then see the
buglist.
One of them sounds
similar:
suspending by closing the lid freezes graphics after resuming
using "When laptop lid is closed" = "Suspend"
... "Lock screen when system is going to sl... | How to control laptop lid behaviour in Debian 12 in XFCE |
1,488,202,671,000 |
I'm using Debian-Jessie, when I set my laptop to hibernate mode some processes would be suspended as expected, but after I start it again "pulseaudio" process don't work anymore and when I try to play some music or video using any media player like VLC, SMPlayer, etc. they crash!
I checked pulseaudio status as current... |
Just found the answer, this problem comes from pulseaudio feature called "auto spawning process"
each time pulseaudio daemon stops working and there is no process, it will try to automatically spawn a process, so we need to stop it by the following way:
cp /etc/pulse/client.conf ~/.config/pulse/
vim ~/.config/pulse/cl... | pulseaudio stops working after hibernation |
1,488,202,671,000 |
I was running sfill on a mount point on my laptop and had forgotten to switch on the power, so when the battery ran down the laptop hibernated (I know I should perhaps disable hibernate and I probably will).
On restart top shows sfill as status D (uninterruptible sleep) and %CPU 0.3 to 0.7, %MEM 0.0, but sounds like t... |
Yes the process is still running but it is in uninterruptable sleep (state D) waiting on I/O. This means that process is stuck waiting for the disk and is unlikely to recover.
The best thing to do is wait and see if the process "wakes up" once the laptop has started everything back up. The only other thing to do is re... | Is a process still running after hibernate? |
1,488,202,671,000 |
I set up my ASUS X551-CA laptop for hibernating. When tested hibernation, it worked but after a longer period (more than 10 minutes) the system resumes and instantly reboots with file system warnings of the journals. dmesg gave no useful informations, only informs about a succesful resume. The os is Arch Linux with ke... |
When hibernating, there are various ways to "wake up" the system , in addition to the normal power button ; Eg LAN or USB.
[[ Check https://wiki.archlinux.org/index.php/Wake-on-LAN & https://askubuntu.com/questions/61708/automatically-sleep-and-wake-up-at-specific-times ]]
After it wakes up, kernel may have detected a... | Why reboots the system after a long hibernation? |
1,488,202,671,000 |
I'm using Debian Jessie with systemd. In the past I've used an acpid script that let's my computer hibernate when the battery is 5% or below.
In an attempt to make a replacement for that I've made this udev rule (as the described here in the Arch wiki):
$ cat /etc/udev/rules.d/99-lowbat.rules
SUBSYSTEM=="power_supply... |
The path you used for systemctl is wrong. systemctl is in /bin/, not /usr/bin/ (this is Debian/Ubuntu specific).
| Auto-hibernate with udev rule |
1,488,202,671,000 |
In X I've used the following script (from here) to lock the computer with i3lock each time pm-suspend or pm-hibernate are invoked.
/etc/pm/sleep.d/00screensaver-lock:
#!/bin/sh
# 00screensaver-lock: lock workstation on hibernate or suspend
username=andreas
userhome=/home/$username
export XAUTHORITY="$userhome/.X... |
This simple script does the trick:
#!/bin/sh
case "$1" in
hibernate|suspend)
/usr/bin/vlock -ans &
;;
thaw|resume)
;;
*) exit $NA
;;
esac
| Locking console when computer suspends/hibernates |
1,488,202,671,000 |
Is there any way to make my PC hibernate when I press the power button? Obviously when I press this button somewhere some signal is sent. Can it be intercepted to enable my PC to hibernate?
|
You probably (could) use acpid (check via ps aux | grep acpid). Then have a look at this article in the ArchWiki explaining how to use pm-utils to extend acpid to easily achieve whatever effect you'd like when some hardware button is pressed.
If, however, you use GNOME, there other (also GUI) ways, see this comprehen... | How do I hibernate my PC when I press the power button |
1,488,202,671,000 |
This morning I did something stupid. On my Debian 8 I ran apt-get update and apt-get upgrade. In the middle of the unpacking and installation of the updates (approx 500MB) I had to leave fast. As a habit I tend to hibernate my system and sadly I did it this time too.
Now when I try to boot my system right after the OS... |
You need to try to make that update finish.
If you have Live CD/DVD/USB boot into that, then try {blkid | more} to list all your {UUID=xxxxxxxx.xxxxxxxxxxx.xxxxxxxx.xxxxxxxx} numbers. It's strange that update messes that data up. See whether UUID value matches the previous one (it should).
Then connect to internet an... | Failing to boot followed by initframs prompt after hibernating during update |
1,488,202,671,000 |
Does anyone use swap?
what is your swapiness value? Mine are 60
$ cat /proc/sys/vm/swappiness
I use hibernation. It worked but slow to load when wake-up.. If I tune swappiness from 60 to 10. Does this setting will make wake up from hibernation faster?
Currently using Fedora Gnome 23 with kernel 4.4.9
|
You need swap to properly hibernate, which means save the current state of the system to disk, power off the computer, then resume the previous state.
However you don't need a swap partition/file to suspend the system, the difference here is in this case, the kernel will only turn off non-essential devices of the comp... | Can lower swappiness speed up wake-up from hibernate? |
1,488,202,671,000 |
I'm using Arch Linux, and with this in my fstab for mounting my Windows partition:
/dev/sda2 /media/windows ntfs-3g josh,exec 0 0
it panics and goes into emergency mode on boot. I turned off FastBoot, as several articles have suggested, but while Windows doesn't go into hibernation, it still seems to be locking... |
Alright, after running powercfg /h off it mounts correctly now
| Mounting Windows 8.1 partition in fstab fails even when FastBoot is turned off |
1,672,937,318,000 |
I have a laptop with the latest version of Linux Mint. I set up a swap partition and running pm-hibernate works normally (shuts down and resumes when booting). However, in Power Management settings "When the battery is critically low" hibernation is not an option.
I looked at the Python config program (/usr/share/ci... |
i just dealt with enabling hibernation on my Linux Mint 19.3 Cinnamon setup.
A) I first followed this tuto, https://www.reddit.com/r/linuxmint/comments/93ta9u/enable_hibernation_in_linux_mint_19_tara/
NOTE: Be sure you have SWAP partition which is big enough.
1.) Create file with name "com.ubuntu.enable-hibernate.pkl... | Enable hibernation in Power Management? |
1,672,937,318,000 |
Problem: I hibernate the computer at night and my cat wakes it by stepping on the keyboard. Yes, hibernate a.k.a. suspend to disk, with systemctl hibernate. Not suspend to ram. I used to think that, once completed, hibernation would be indistinguishable from a normal shutdown but apparently that's not the case since t... |
There's some background on ACPI states in the kernel doc.
Since the keyboard is presumably a usb device, if it cannot be disabled, you can try to disable the controller.
As well as /sys/bus/usb/devices/,
there are also devices listed in pseudo file /proc/acpi/wakeup that you can disable. These tend to be on the mother... | Disable wake on usb after hibernation |
1,672,937,318,000 |
Using Debian wheezy graphical install I want to ensure I have enough swap space to hibernate, what are the simplest steps to achieve this?
|
I want to ensure I have enough swap space to hibernate, what are the simplest steps to achieve this?
You'll want at least as much swap space as you have RAM. I'd recommend 50% more if you are used to using most of your memory, since while I have not found any official number, I seem to recall it refusing to work oc... | Setting up linux with enought swap space to hibernate |
1,672,937,318,000 |
Debian 11 bullseye
I know there are 1008 threads on hibernation only in Unix&Linux. However, I could not find the answer to my problem.
I cannot SSH my PC when it is logged out. I suspect this is because it is in suspension/hibernation.
If I am logged in, the PC does not go to hibernation/suspension (disabled in setti... |
Ok, I think I found the answer
-Using settings will only change the behavior while the account is logged in
Then, there is the login screen or greeter session
To change the setting in the greeter session, and in gnome, edit the file:
/etc/gdm3/greeter.dconf-defaults
In this file, there is the configuration:
# Auto... | hibernation or suspension during system logged out prevent form network connection ssh |
1,672,937,318,000 |
I have a script that verifies the battery level using acpi and if it's below certain threshold it should lock the machine and hibernate. The script is executed every minute using crontab
The problem is that the machine gets locked but never hibernates.
The script:
#!/bin/sh
acpi -b | awk -F'[,:%]' '{print $2, $3}' | {... |
I have found a solution. Apparently the problem was in the polkit package that defines the policies for users to shutdown, reboot, suspend, hibernate, etc
As I had no rule file in /etc/polkit-1/rules.d the default is not to allow users to hibernate or suspend the machine while a user is logged in (I believe the proble... | `systemctl hibernate` not executed on crontab script |
1,672,937,318,000 |
I am having a problem with my laptop (HP Elitebook 8570w) -- whenever I close the screen and it goes into sleep/suspend/hibernation mode (take your pick on the name of this feature). When I reopen the laptop lid and the session comes back up, everything is fine EXCEPT that the xfce4-panel does not draw correctly (it ... |
This is the only post I have seen mentioning this specific issue. I also had the problem with the corruption of the XFCE panel in Xubuntu 14.04 after suspending by closing the lid of my laptop. Once I opened the lid, the panel was always corrupted - often just black. The desktop looked OK but if I opened files, the va... | XUbuntu 14.04 - Why does my XFCE panel (xfce4-panel) become corrupted after sleep/suspend is resumed? |
1,672,937,318,000 |
After making some changes to my swap space, namely deleting and recreating swap space, my Kubuntu 11.10 has lost hibernate functionality. Although the button has returned, hibernating only appears to be working superficially until you try to resume the system - but instead of resuming you find it is restarting.
swapo... |
Maybe you missed this?
"Making the swap partition work for hibernate (optional)", third subsection in this Ubuntu community help site. I think it's just what you need, telling the resume part of initramfs where swap is (via GRUB).
| How to re-enable hibernate in Kubuntu 11.10? |
1,672,937,318,000 |
I have a Fedora 32 system and it works fine but when I suspend/hibernate the system when it back to online the network is unreachable.
$ ip a show enp3s0
2: enp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 08:62:66:27:58:6f brd ff:ff:ff:ff:ff:ff
... |
I solved the problem by deleting the network file configuration and recreate it again with network gui tool.
Regards
| Network doesn't works after hibernate/suspend system |
1,672,937,318,000 |
Theoretical question, but for example, is it possible to hibernate on a laptop and boot into that image on a desktop which could have otherwise identical configuration in terms of distro/config files.
The practical application for this would be to transfer all running programs from a laptop to a desktop for greater pe... |
This is indeed possible through the magic of virtualization. See, for example
https://www.usenix.org/legacy/event/hotos09/tech/full_papers/kozuch/kozuch_html/index.html
and
https://en.wikipedia.org/wiki/Live_migration
which contains a list of virtual machine managers that support live migration.
| Transfer running instance of OS to another machine |
1,672,937,318,000 |
My machine (ThinkPad x230) hangs on wake up from s2disk or s2ram after a recent aptitude safe-upgrade.† The hang looks like a blank screen with a blinking cursor in the upper right after loading data pages completes.
Confirmed the same behavior after sudo hibernate, sudo pm-hibernate, and echo disk | sudo tee /sys/pow... |
Found a solution that works:
sudo blkid and copy your swap UUID to clipboard
sudo vim /boot/grub/menu.lst, search for resume= and add resume=UUID=xxxxx-xxxxx-xxx-xxxx-xxxx
update grub with sudo update-grub
That worked once and never again. Still looking.
Update: My problems went away once I switched from Linux ker... | debian testing hangs on wakeup from s2disk / hibernate |
1,391,839,012,000 |
I'm using Debian 6 (Squeeze) and I happened to hibernate my laptop today. After hibernation everything was very slow (a lot of disk accesses... most likely page faults, I guess) but this is a usual behaviour in my case.
My usual fix to this situation is rebooting. However, this time I rebooted and GNOME never came bac... |
It seemed to be a video driver issue. Reinstalling fglrx driver fixed this.
| Unable to start GNOME after hibernation |
1,391,839,012,000 |
Is there an application that will set an audible alarm when the battery goes low on a centos 6 IBM 430 machine?
Details of the problem here:
I have set it hibernate when battery is low. However, it does not hibernate possibly because most of the time I am working in a full screen windows VM that prevents it from going... |
A quick google throws this up:
Check your battery status from the command line
A suggestion might be to parse out the percentage remaining of the battery charge, and play a sound when it falls to a certain low water mark/threshold. You could then run this from cron/at every few minutes or so. Very rudimentary but...... | any utility on centos 6 to sound an alarm when power is low |
1,391,839,012,000 |
It's a laptop from 2010 that has been running XP, Debian 9, Windows 10 and now this new Debian 12 system, and only in this last one it shows this problem: sometimes it resumes ok from suspend or hibernation, but sometimes it hangs a few seconds after resuming.
It's weird because it's not totally stalled for a while: c... |
This seems to be working fine for a couple of days:
The main problem is that I can't check logs as the crash makes it impossible to write to the log file, so in cases like this one should tail -f /var/log/syslog in a Terminal window and leave that window at the front so you can read it when it crashes. Another option ... | Debian 12 system randomly hangs after suspend or hibernation |
1,391,839,012,000 |
I'm on Slackware current usingd elogind, I can sleep and hibernate only using sudo from terminal.
With the old good pm-utils I had only to edit the 10-enable-suspend.rules, make init 3 && init 4 and I can hibernate as user.
Now I make those steps
a)copying the two polkit rules
cp /usr/share/polkit-1/rules.d/10-enable-... |
Solution found.
a)I have created 3 files, one for brightness, one for suspend, one for hibernate
/etc/polkit-1/rules.d/88-suspend.rules
/etc/polkit-1/rules.d/88-hibernate.rules
/etc/polkit-1/rules.d/89-backlight.rules
b) the contents of files: I assign to the group power the possibility to decrease brightness, suspen... | Slackware and elogind: how to enable suspend and hibernate for power user? |
1,391,839,012,000 |
I have a dell inspiron 6000 laptop running debian testing lxde. I can't figure out how to disable hibernation once the lid is closed. Do I modify the systmd files or the lib/systemd/systemd-sleep <hybrid-sleep/hibernate> command?
|
I found the answer. It is to edit the conf. file in /etc/systemd/logind.conf as described in How to disable auto suspend when I close laptop lid?
| Disabling hibernation in debian testing (lxde) |
1,391,839,012,000 |
My Ubuntu 13.10 installation does not hibernate, no matter what I do. Although I have Tuxonice and enough swap space to cover the real RAM, it still doesn't work.
Is the problem specific to Ubuntu or to the machine? If it's the former, I'd try to install a different Linux dist, otherwise I'd give up.
Update: VGA comp... |
Try putting this in a script:
#!/bin/bash
sync
echo shutdown > /sys/power/disk
echo disk > /sys/power/state
and run it as root (su root, for which you need a root password, you may also be able to use sudo -i with your own password). I've noticed with, e.g., KDE, that the various shutdown options do not all work fo... | My Ubuntu doesn't hibernate |
1,391,839,012,000 |
I've read that hibernation often causes trouble in Linux environments, e.g. system fails to wake-up or freezes and sometimes even refuses booting after reset. I really like the idea of hibernating the system into a zero-power state, especially for traveling. But I don't wanna hurt my system's stability. So I'm wonderi... |
Try it (when you have all files saved).
The problem is that not all hardware is (fully) supported, or Ubuntu doesn't know much about some devices (if it is save to switch them off). There are two main classes of problems: not all devices can be set to hibernation (e.g. often some external devices, and Ubuntu doesn't k... | Is it risky to use hibernation in Ubuntu? |
1,391,839,012,000 |
Running $ systemctl hibernate shows login screen after a few seconds in Debian bullseye and GNOME desktop.
Can someone help identify the issue?
$ free -m
total used free shared buff/cache available
Mem: 15755 3449 9848 954 2457 10981
Swa... |
The solution is to increase swap space 1 2, albeit it is not everyone who advice doing so, and although how much is not that clear. One way to increase swap.
| how to interprete log/journal after failed hibernation |
1,391,839,012,000 |
Consider that I'm using two users at distinct times on my PC. They both need ram that causes swapping if I switch from one to the other.
One solution is to log-out of one user and then log-in to (Gnome|KDE|xfce|...) the other and hope that everything is restored. This seems time-consuming to check all opened correctly... |
No. It does not work that way. Hibernating is working on a hardware level, not session.
If you are bothered by manually starting applications - auto-start them. All modern WM has ability to auto-start application, and majority of application have ability to restore its last working state.
The probable solution could b... | Can we hibernate only users' graphical sessions |
1,391,839,012,000 |
I have my Linux installed on a portable SSD, so I can switch devices (laptop at home, desktop in office) easily and don't need to consider any syncronization problems. This is called Linux To Go.
It's quite nice already, but could it be even better?
To switch devices during a work flow, I must exit all applications (g... |
I don't think hibernation across different devices can possibly work unless the devices are exactly the same in terms of HW configuration (CPU, GPU, RAM, storage, peripherals) and even in this case it's far from certain.
There used to be a project called CryoPID which allowed to save the image of a running application... | How to hibernate Linux To Go to disk and restore it on a different device? |
1,391,839,012,000 |
I don't know why, but until recently this command no longer works:
root# exec systemctl suspend
The system does try to suspend, with the screen even momentarily going off, but then it comes right back to the login prompt, so something is preventing suspension.
The system is a laptop with it's lid always closed (it's ... |
I think this is an issue with the 470 nvidia driver. I am experiencing the same problem under Fedora 34 with the driver from RPMFusion. Uninstalling the driver fixes the issue, but it's not really ideal. I tried downgrading to the 465 driver, but it left my laptop such that it wouldn't boot, even into single user mo... | Fedora-33: This suddenly does not work: "root# exec systemctl suspend" |
1,391,839,012,000 |
I am using Manjaro, and out of the box hibernation was not working, so I made some changes to fstab, mkinitcpio and grub and it worked but after sometime it doesn't hibernate and instead locks the screen, even though after a restart it works fine and yes I have made the swap twice the size of my RAM. Please help I cou... |
How you can fix it...
sudo swapoff -a
sudo /sbin/mkswap /dev/sd##(swap)
sudo swapon -a
In /etc/fstab add:
UUID=[UUID_of_the_swap_partition] none swap defaults 0 0
In /etc/default/grub add:
resume=UUID=[UUID_of_the_swap_partition] to GRUB_CMDLINE_LINUX
In /etc/mkinitcpio.conf add:
resume to HOOKS (after udev) sudo... | Hibernate not working |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.