OpenVZ Forum - RDF feed
type: channel
items: Getting ACPI Sleep Support working
items: Re: Getting ACPI Sleep Support working

Getting ACPI Sleep Support working
type: item
description: Hi, I noticed that by default, the ACPI Sleep support is disabled in the 2.6.18 kernels downloadable from OpenVZ (as well as the Debian repository mentioned in http://wiki.openvz.org/Installation_on_Debian). I'm currently trying to get it working (I do a lot of testing on my laptop which is why I need ACPI Sleep). After downloading the source and running make menuconfig, I couldn't find the option for ACPI Sleep. http://wiki.openvz.org/Kernel_configuration mentions this, but I couldn't find where to enable it. Under ACPI, I didn't find an option to turn on ACPI Sleep. Any ideas? Thanks for your help.
creator: DigiMan
date: 2007-04-05T17:07:09-00:00

Re: Getting ACPI Sleep Support working
type: item
description: Hello, ACPI_SLEEP is enabled there it's possible in OpenVZ configs. Look, for example at http://download.openvz.org/kernel/branches/2.6.18/current/co nfigs/kernel-2.6.18-i686.config.ovz - ACPI_SLEEP is enabled, but there is no ACPI_SLEEP in http://download.openvz.org/kernel/branches/2.6.18/current/co nfigs/kernel-2.6.18-i686-smp.config.ovz The thing is that ACPI_SLEEP depends on (X86 && (!SMP || SUSPEND_SMP)). So, ACPI_SLEEP is only possible on x86 architectures with UP. HTH, Vasily.
creator: Vasily Tarasov
date: 2007-04-06T08:53:57-00:00

Re: Getting ACPI Sleep Support working
type: item
description: Hi, I tried your recommendation but it still doesn't work. Here's the relevant output. Any ideas? Thanks for your help. root@Kano:~$ grep -i ACPI /usr/src/linux-source-2.6.18/.config # Power management options (ACPI, APM) # ACPI (Advanced Configuration and Power Interface) Support CONFIG_ACPI=y CONFIG_ACPI_SLEEP=y CONFIG_ACPI_SLEEP_PROC_FS=y # CONFIG_ACPI_SLEEP_PROC_SLEEP is not set CONFIG_ACPI_AC=m CONFIG_ACPI_BATTERY=m CONFIG_ACPI_BUTTON=m CONFIG_ACPI_VIDEO=y CONFIG_ACPI_HOTKEY=m CONFIG_ACPI_FAN=m # CONFIG_ACPI_DOCK is not set CONFIG_ACPI_PROCESSOR=m CONFIG_ACPI_THERMAL=m CONFIG_ACPI_ASUS=m CONFIG_ACPI_IBM=m # CONFIG_ACPI_IBM_DOCK is not set CONFIG_ACPI_TOSHIBA=m CONFIG_ACPI_BLACKLIST_YEAR=0 # CONFIG_ACPI_DEBUG is not set CONFIG_ACPI_EC=y CONFIG_ACPI_POWER=y CONFIG_ACPI_SYSTEM=y # CONFIG_ACPI_CONTAINER is not set # CONFIG_ACPI_SBS is not set CONFIG_HOTPLUG_PCI_ACPI=m # CONFIG_HOTPLUG_PCI_ACPI_IBM is not set root@Kano:~$ grep -i smp /usr/src/linux-source-2.6.18/.config CONFIG_BROKEN_ON_SMP=y # CONFIG_SMP is not set # CONFIG_X86_BIGSMP is not set CONFIG_X86_FIND_SMP_CONFIG=y
creator: DigiMan
date: 2007-04-10T15:06:38-00:00

Re: Getting ACPI Sleep Support working
type: item
description: Please, post the version of kernel you're trying to compile (complete OpenVZ version) and .config file you're using (with missing ACPI_SLEEP, as you say), and I'll tell you why ACPI_SLEEP is missing. Thank you, Vasily.
creator: Vasily Tarasov
date: 2007-04-12T12:26:45-00:00

Re: Getting ACPI Sleep Support working
type: item
description: Thank you for your reply. The kernel version is: root@deb:# apt-cache policy linux-source-2.6.18 linux-source-2.6.18: Installed: 2.6.18.dfsg.1-12 Candidate: 2.6.18.dfsg.1-12 Instead of uploading the entire .config, I diff'ed it with http://download.openvz.org/kernel/branches/2.6.18/current/co nfigs/kernel-2.6.18-i686.config.ovz since they are basically the same: diff .config kernel-2.6.18-i686.config.ovz 0a1 > # i386 3,4c4,5 < # Linux kernel version: 2.6.18-1-openvz < # Tue Apr 10 11:36:20 2007 --- > # Linux kernel version: 2.6.18-028test017-ovz > # Fri Feb 16 14:45:51 2007 664d664 < # CONFIG_BLK_DEV_JMICRON is not set 750d749 < # CONFIG_SCSI_ARCMSR is not set 930a930 > # CONFIG_DGRS is not set 1234d1233 < # CONFIG_SENSORS_F75375S is not set 1280a1280 > # CONFIG_USB_DABUSB is not set 1416a1417,1418 > # CONFIG_USB_EMI62 is not set > # CONFIG_USB_EMI26 is not set 1573d1574 < # CONFIG_ASFS_FS is not set 1803a1805 > CONFIG_UBC_IO_PRIO=y HTH. Feel free to tell me if you need anything else.
creator: DigiMan
date: 2007-04-12T14:22:06-00:00

Re: Getting ACPI Sleep Support working
type: item
description: Hello, this is PURE DEBIAN kernel, but not OpenVZ kernel! Please, tell us OpenVZ kernel version... And attach full config of _OpenVZ_ kernel. Vasily
creator: Vasily Tarasov
date: 2007-04-13T14:07:30-00:00

Re: Getting ACPI Sleep Support working
type: item
description: Hi, I followed the steps highlighted in http://wiki.openvz.org/Installation_on_Debian for compiling your own kernel ( http://wiki.openvz.org/Installation_on_Debian#or_build_your_ own_kernel-image_.28debian_way.29): user@Kano:~$ apt-cache policy kernel-package linux-source-2.6.18 kernel-patch-openvz libncurses5-dev kernel-package: Installed: 10.068 Candidate: 10.068 Version table: *** 10.068 0 500 http://ftp.debian.org unstable/main Packages 200 http://ftp.debian.org testing/main Packages 100 /var/lib/dpkg/status linux-source-2.6.18: Installed: 2.6.18.dfsg.1-12 Candidate: 2.6.18.dfsg.1-12 Version table: *** 2.6.18.dfsg.1-12 0 500 http://ftp.debian.org unstable/main Packages 200 http://ftp.debian.org testing/main Packages 100 /var/lib/dpkg/status kernel-patch-openvz: Installed: 028.18.1 Candidate: 028.18.1 Version table: *** 028.18.1 0 500 http://ftp.debian.org unstable/main Packages 200 http://ftp.debian.org testing/main Packages 100 /var/lib/dpkg/status libncurses5-dev: Installed: 5.5-5 Candidate: 5.5-5 Version table: *** 5.5-5 0 500 http://ftp.debian.org unstable/main Packages 200 http://ftp.debian.org testing/main Packages 100 /var/lib/dpkg/status My .config is attached below: # # Automatically generated make config: don't edit # Linux kernel version: 2.6.18-1-openvz # Fri Apr 13 16:29:12 2007 # CONFIG_X86_32=y CONFIG_GENERIC_TIME=y CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_SEMAPHORE_SLEEPERS=y CONFIG_X86=y CONFIG_MMU=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_IOMAP=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_DMI=y CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" # # Code maturity level options # CONFIG_EXPERIMENTAL=y CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 # # General setup # CONFIG_LOCALVERSION="" # CONFIG_LOCALVERSION_AUTO is not set CONFIG_SWAP=y CONFIG_SYSVIPC=y CONFIG_IPC_NS=y # CONFIG_POSIX_MQUEUE is not set # CONFIG_BSD_PROCESS_ACCT is not set # CONFIG_TASKSTATS is not set CONFIG_UTS_NS=y # CONFIG…
creator: DigiMan
date: 2007-04-13T18:00:40-00:00

Re: Getting ACPI Sleep Support working
type: item
description: As I can see CONFIG_ACPI_SLEEP=y in your .config, so this feature is compiled. So, what's the problem?
creator: Vasily Tarasov
date: 2007-04-13T19:35:17-00:00

Re: Getting ACPI Sleep Support working
type: item
description: The problem is that when I try to hibernate using the following command (which works fine with my normal kernel): klaptop_acpi_helper --hibernate it tells me: "Your kernel does not appear to have ACPI sleep support. hibernate: Aborting." Even trying to force it fails. I also tried to use uswsusp instead and then rebuilt a new initrd but it still doesn't work.
creator: DigiMan
date: 2007-04-13T20:51:44-00:00

Re: Getting ACPI Sleep Support working
type: item
description: Oh, ok, now I understand your problem. Please, can you do the following: download 2.6.18 vanilla kernel from kernel.org, compile it with your config and then try "klaptop_acpi_helper --hibernate". Thank you, Vasily.
creator: Vasily Tarasov
date: 2007-04-14T13:52:43-00:00