انجمن‌های فارسی اوبونتو

تازه کار => انجمن تازه‌کاران => نویسنده: Zincstudio در 21 بهمن 1399، 03:26 ب‌ظ

عنوان: Hibernate
ارسال شده توسط: Zincstudio در 21 بهمن 1399، 03:26 ب‌ظ
سلام بر شما دوستان عزیز لینوکسی،
از شما که در این عرصه حق اب و گل دارید می پرسم.
من در اوبونتو نمیتونم سیستم رو sleep یا hibernate کنم،
میشه منو راهنمایی کنید؟؟
با تشکر:)
عنوان: پاسخ : Hibernate
ارسال شده توسط: mah_diar در 21 بهمن 1399، 04:14 ب‌ظ
باید درایور گرافیک کارت خود را نصب کنید.
عنوان: پاسخ : Hibernate
ارسال شده توسط: A. Rahmati در 22 بهمن 1399، 07:48 ق‌ظ
می‌توانی sleep کنی. من در لپ‌تاپم وقتی درِ لپ‌تاپ را می‌بندم، خودش می‌رود روی sleep. می‌توانی هم از همانجایی که خاموش می‌کنی، گزینه‌ی suspend را انتخاب کنی.

hibernate سؤالِ من هم هست. اگر کسی می‌داند، من هم ممنون می‌شوم راهنمایی کند.
عنوان: پاسخ : Hibernate
ارسال شده توسط: دانیال بهزادی در 22 بهمن 1399، 05:27 ب‌ظ
sudo systemctl hibernate
عنوان: پاسخ : Hibernate
ارسال شده توسط: A. Rahmati در 24 بهمن 1399، 10:36 ب‌ظ
نقل‌قول
sudo systemctl hibernate

این کار نکرد.

لپ‌تاپم خاموش شد و وقتی روشنش کردم هم همه چیز مثل این بود که تازه روشنش کرده باشم (پنجره‌هایی که باز گذاشته بودم بسته شده بودند).

در ویندوز که امتحان کردم، Hibernate درست کار کرد.
عنوان: پاسخ : Hibernate
ارسال شده توسط: Dragon- در 24 بهمن 1399، 10:50 ب‌ظ
اینجا رو (https://ubuntuhandbook.org/index.php/2017/10/enable-hibernate-ubuntu-17-10/) ببینید. (ممکنه کار نکنه چون برای اوبونتو ۱۷.۱۰ گفته.)
عنوان: پاسخ : Hibernate
ارسال شده توسط: میمو ☕ در 25 بهمن 1399، 06:44 ق‌ظ
می‌تونی، اینجا:
https://extensions.gnome.org/extension/3814/system-action-hibernate/ (https://extensions.gnome.org/extension/3814/system-action-hibernate/)
عنوان: پاسخ : Hibernate
ارسال شده توسط: A. Rahmati در 25 بهمن 1399، 02:49 ب‌ظ
متشکر.

ولی هیچ کدام کار نکرد.

آن افزونه باعث شد دکمه‌ی Hibernate نمایان شود. ولی آن دکمه هم لپ‌تاپ را خاموش می‌کند - مثل sudo systemctl hibernate
زمانی که لپ‌تاپ روشن می‌شود، دیگر پنجره‌هایی که باز بوده وجود نداردند.
عنوان: پاسخ : Hibernate
ارسال شده توسط: دانیال بهزادی در 25 بهمن 1399، 03:30 ب‌ظ
ببینم، مقدار resume درست تنظیم شده توی etc/default/grub و etc/initramfs-tools/initramfs.conf؟
عنوان: پاسخ : Hibernate
ارسال شده توسط: A. Rahmati در 25 بهمن 1399، 04:25 ب‌ظ
من چیزی به نام resume در این دو تا فایل ندیدم.

grub:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

initramfs.conf:
#
# initramfs.conf
# Configuration file for mkinitramfs(8). See initramfs.conf(5).
#
# Note that configuration options from this file can be overridden
# by config files in the /etc/initramfs-tools/conf.d directory.

#
# MODULES: [ most | netboot | dep | list ]
#
# most - Add most filesystem and all harddrive drivers.
#
# dep - Try and guess which modules to load.
#
# netboot - Add the base modules, network modules, but skip block devices.
#
# list - Only include modules from the 'additional modules' list
#

MODULES=most

#
# BUSYBOX: [ y | n | auto ]
#
# Use busybox shell and utilities.  If set to n, klibc utilities will be used.
# If set to auto (or unset), busybox will be used if installed and klibc will
# be used otherwise.
#

BUSYBOX=auto

#
# COMPCACHE_SIZE: [ "x K" | "x M" | "x G" | "x %" ]
#
# Amount of RAM to use for RAM-based compressed swap space.
#
# An empty value - compcache isn't used, or added to the initramfs at all.
# An integer and K (e.g. 65536 K) - use a number of kilobytes.
# An integer and M (e.g. 256 M) - use a number of megabytes.
# An integer and G (e.g. 1 G) - use a number of gigabytes.
# An integer and % (e.g. 50 %) - use a percentage of the amount of RAM.
#
# You can optionally install the compcache package to configure this setting
# via debconf and have userspace scripts to load and unload compcache.
#

COMPCACHE_SIZE=""

#
# COMPRESS: [ gzip | bzip2 | lz4 | lzma | lzop | xz ]
#

COMPRESS=lz4

#
# NFS Section of the config.
#

#
# DEVICE: ...
#
# Specify a specific network interface, like eth0
# Overridden by optional ip= or BOOTIF= bootarg
#

DEVICE=

#
# NFSROOT: [ auto | HOST:MOUNT ]
#

NFSROOT=auto

#
# RUNSIZE: ...
#
# The size of the /run tmpfs mount point, like 256M or 10%
# Overridden by optional initramfs.runsize= bootarg
#

RUNSIZE=10%
عنوان: پاسخ : Hibernate
ارسال شده توسط: دانیال بهزادی در 26 بهمن 1399، 10:09 ق‌ظ
خب پس باید خودت تعریفشون کنی و بندازیشون رو swap. دقیقش رو جست‌وجو کن که باید چه‌طوری بنویسی، چون یه کم گیر داره.