Sleep mode turn off all apps

hello , i reinstall fedora 39 3 days ago , and now when my computer go to sleep , at wake up after the logging page all the apps which were open are gone.
Would love to find them back at wake up

1 Like

Resuming from suspend shouldn’t close the open apps. At least it is working for me on F40.

Did you by any chance check the output of gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type?

While at it, please also check the output of gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type.

Slight chances that they are set to 'logout' instead of 'suspend'.

thanks for your concern , here are the result of the 2 CLI

luc@fedora39:~$ gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type
'nothing'
luc@fedora39:~$ gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type
'suspend'

OK. Set the value of the first key to ‘suspend’, by running:

gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'

Is there any change?

sorry but how do i do that ? nano thing ?

Just as you did with the previous commands. Run it as regular user in the terminal.

i’m sorry but got small knowledge in command line, should i type :
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type ‘suspend’

Exactly.[1]


  1. You could also install dconf editor, and navigate to the same path as above. ↩︎

luc@fedora39:~$ gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type ‘suspend’
The provided value is outside of the valid range


sorry if i do stupid thing

The simple quotes might have been converted at copy-pasting. Try putting ‘suspend’ between simple quotes.

1 Like

It works with ’ ’ , what i faced also at after waking up was a lost of internet connection with chromium browser
will check if it works now

1 Like

i left my pc for almost 15mn it seems to work as it should , will try one more time later on, but now i need to work with it> I’ll let you know , thanks a lot

left it a 2nd time for 20 mn seems to work ok , thanks a lot

2 Likes

Happy to hear it worked.

it was too easy . Let my computer asleep for one hour this morning and at wake up again pb> I found out at log window as i’m using a imac aluminium keyboard with numeric pad and at the login window numeric pad wasn’t active same when i start my computer . When waking up normaly , numeric pad is already active, than no more app open and no internet ethernet connection as i don’t have wifi on this pc

Are you sure you are still logged in when you wake up the mac, and have not been logged out?

look like i’ve been log out which is strange

Added gnome, suspend-resume

Please provide the system log entries from the time you left the computer unattended this morning. You can run the command journalctl --no-host -S '2024-07-30 08:00:00' and replace the time with the actual time before leaving the computer.

In case the output is too long to post it here, run journalctl --no-host -S '2024-07-30 08:00:00' | fpaste --raw-url and post here the generated link.

It’s also not clear whether you’re using a laptop or desktop. Please post also the output from inxi -Fzxx.

here is the link : https://paste.centos.org/view/raw/b364bddb
desktop

luc@fedora39:~$ inxi -Fzxx
System:
  Kernel: 6.9.11-100.fc39.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.40-14.fc39
  Desktop: GNOME v: 45.8.1 tk: GTK v: 3.24.43 wm: gnome-shell dm: GDM
    Distro: Fedora Linux 39 (Workstation Edition)
Machine:
  Type: Desktop System: Gigabyte product: N/A v: N/A
    serial: <superuser required>
  Mobo: Gigabyte model: X99-UD4-CF v: x.x serial: <superuser required>
    UEFI: American Megatrends v: F24b date: 03/13/2018
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Mobile Mouse MX Anywhere
    2S serial: <filter> charge: 55% (should be ignored) status: discharging
CPU:
  Info: 6-core model: Intel Core i7-5930K bits: 64 type: MT MCP arch: Haswell
    rev: 2 cache: L1: 384 KiB L2: 1.5 MiB L3: 15 MiB
  Speed (MHz): avg: 1200 min/max: 1200/3700 cores: 1: 1200 2: 1200 3: 1200
    4: 1200 5: 1200 6: 1200 7: 1200 8: 1200 9: 1200 10: 1200 11: 1200 12: 1200
    bogomips: 83998
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
Graphics:
  Device-1: NVIDIA GA102 [GeForce RTX 3090] driver: nvidia v: 555.58.02
    arch: Ampere pcie: speed: 2.5 GT/s lanes: 16 ports: active: none
    off: DP-1,DP-2,HDMI-A-1 empty: DP-3 bus-ID: 02:00.0 chip-ID: 10de:2204
  Device-2: Logitech Webcam C270 driver: snd-usb-audio,uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 2-4:3 chip-ID: 046d:0825
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 23.2.7
    compositor: gnome-shell driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa alternate: nv
    gpu: nvidia,nvidia-nvswitch display-ID: :1 screens: 1
  Screen-1: 0 s-res: 4480x2280 s-dpi: 96
  Monitor-1: DP-1 note: disabled pos: top-right model: EIZO NANAO CG247
    res: 1920x1200 dpi: 94 diag: 616mm (24.2")
  Monitor-2: DP-2 mapped: DP-3 note: disabled pos: bottom-r model: FHD
    res: 1920x1080 dpi: 163 diag: 355mm (14")
  Monitor-3: HDMI-A-1 mapped: HDMI-0 note: disabled pos: primary,top-left
    model: BenQ BL3200 res: 2560x1440 dpi: 92 diag: 812mm (32")
  API: OpenGL v: 4.6.0 vendor: nvidia v: 555.58.02 glx-v: 1.4
    direct-render: yes renderer: NVIDIA GeForce RTX 3090/PCIe/SSE2
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: Intel C610/X99 series HD Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8d20
  Device-2: NVIDIA GA102 High Definition Audio driver: snd_hda_intel
    v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 02:00.1 chip-ID: 10de:1aef
  Device-3: Logitech Webcam C270 driver: snd-usb-audio,uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 2-4:3 chip-ID: 046d:0825
  API: ALSA v: k6.9.11-100.fc39.x86_64 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.0.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Intel Ethernet I218-V vendor: Gigabyte driver: e1000e v: kernel
    port: f020 bus-ID: 00:19.0 chip-ID: 8086:15a1
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 3.18 TiB used: 1.67 TiB (52.4%)
  ID-1: /dev/nvme0n1 vendor: Kikwot model: FN955 2TB size: 1.82 TiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 38.9 C
  ID-2: /dev/sda vendor: Samsung model: SSD 850 EVO 1TB size: 931.51 GiB
    speed: 6.0 Gb/s serial: <filter>
  ID-3: /dev/sdb vendor: Samsung model: SSD 840 EVO 500GB size: 465.76 GiB
    speed: 6.0 Gb/s serial: <filter>
Partition:
  ID-1: / size: 1.82 TiB used: 480.92 GiB (25.8%) fs: btrfs
    dev: /dev/nvme0n1p3
  ID-2: /boot size: 973.4 MiB used: 380.6 MiB (39.1%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 19 MiB (3.2%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 1.82 TiB used: 480.92 GiB (25.8%) fs: btrfs
    dev: /dev/nvme0n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 30.0 C mobo: N/A gpu: nvidia temp: 40 C
  Fan Speeds (rpm): N/A gpu: nvidia fan: 0%
Info:
  Memory: total: 64 GiB note: est. available: 62.63 GiB used: 5.25 GiB (8.4%)
  Processes: 750 Power: uptime: 7h 27m wakeups: 1 Init: systemd v: 254
    target: graphical (5) default: graphical
  Packages: pm: flatpak pkgs: 22 Compilers: gcc: 13.3.1 Shell: Bash
    v: 5.2.26 running-in: gnome-terminal inxi: 3.3.34