انجمنهای فارسی اوبونتو
تازه کار => انجمن تازهکاران => نویسنده: Zincstudio در 21 بهمن 1399، 03:26 بظ
-
سلام بر شما دوستان عزیز لینوکسی،
از شما که در این عرصه حق اب و گل دارید می پرسم.
من در اوبونتو نمیتونم سیستم رو sleep یا hibernate کنم،
میشه منو راهنمایی کنید؟؟
با تشکر:)
-
باید درایور گرافیک کارت خود را نصب کنید.
-
میتوانی sleep کنی. من در لپتاپم وقتی درِ لپتاپ را میبندم، خودش میرود روی sleep. میتوانی هم از همانجایی که خاموش میکنی، گزینهی suspend را انتخاب کنی.
hibernate سؤالِ من هم هست. اگر کسی میداند، من هم ممنون میشوم راهنمایی کند.
-
sudo systemctl hibernate
-
sudo systemctl hibernate
این کار نکرد.
لپتاپم خاموش شد و وقتی روشنش کردم هم همه چیز مثل این بود که تازه روشنش کرده باشم (پنجرههایی که باز گذاشته بودم بسته شده بودند).
در ویندوز که امتحان کردم، Hibernate درست کار کرد.
-
اینجا رو (https://ubuntuhandbook.org/index.php/2017/10/enable-hibernate-ubuntu-17-10/) ببینید. (ممکنه کار نکنه چون برای اوبونتو ۱۷.۱۰ گفته.)
-
میتونی، اینجا:
https://extensions.gnome.org/extension/3814/system-action-hibernate/ (https://extensions.gnome.org/extension/3814/system-action-hibernate/)
-
متشکر.
ولی هیچ کدام کار نکرد.
آن افزونه باعث شد دکمهی Hibernate نمایان شود. ولی آن دکمه هم لپتاپ را خاموش میکند - مثل sudo systemctl hibernate
زمانی که لپتاپ روشن میشود، دیگر پنجرههایی که باز بوده وجود نداردند.
-
ببینم، مقدار resume درست تنظیم شده توی etc/default/grub و etc/initramfs-tools/initramfs.conf؟
-
من چیزی به نام 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%
-
خب پس باید خودت تعریفشون کنی و بندازیشون رو swap. دقیقش رو جستوجو کن که باید چهطوری بنویسی، چون یه کم گیر داره.