OpenVZ Forum


Home » General » Support » Getting ACPI Sleep Support working
Getting ACPI Sleep Support working [message #11773] Thu, 05 April 2007 17:07 Go to next message
DigiMan is currently offline  DigiMan
Messages: 11
Registered: April 2007
Junior Member
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.
Re: Getting ACPI Sleep Support working [message #11785 is a reply to message #11773] Fri, 06 April 2007 08:53 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
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
Smile

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.
Re: Getting ACPI Sleep Support working [message #11875 is a reply to message #11785] Tue, 10 April 2007 15:06 Go to previous messageGo to next message
DigiMan is currently offline  DigiMan
Messages: 11
Registered: April 2007
Junior Member
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
Re: Getting ACPI Sleep Support working [message #11948 is a reply to message #11875] Thu, 12 April 2007 12:26 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
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.
Re: Getting ACPI Sleep Support working [message #11954 is a reply to message #11875] Thu, 12 April 2007 14:22 Go to previous messageGo to next message
DigiMan is currently offline  DigiMan
Messages: 11
Registered: April 2007
Junior Member
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.
Re: Getting ACPI Sleep Support working [message #11976 is a reply to message #11954] Fri, 13 April 2007 14:07 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

this is PURE DEBIAN kernel, but not OpenVZ kernel! Please, tell us OpenVZ kernel version... And attach full config of _OpenVZ_ kernel.

Vasily
Re: Getting ACPI Sleep Support working [message #12001 is a reply to message #11976] Fri, 13 April 2007 18:00 Go to previous messageGo to next message
DigiMan is currently offline  DigiMan
Messages: 11
Registered: April 2007
Junior Member
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_AUDIT is not set
# CONFIG_IKCONFIG is not set
# CONFIG_RELAY is not set
CONFIG_INITRAMFS_SOURCE=""
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
# CONFIG_EMBEDDED is not set
CONFIG_UID16=y
CONFIG_TASK_IO_ACCOUNTING=y
CONFIG_SYSCTL=y
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_ALL is not set
# CONFIG_KALLSYMS_EXTRA_PASS is not set
CONFIG_HOTPLUG=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_SHMEM=y
CONFIG_SLAB=y
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_RT_MUTEXES=y
# CONFIG_TINY_SHMEM is not set
CONFIG_BASE_SMALL=0
# CONFIG_SLOB is not set

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not set
# CONFIG_MODVERSIONS is not set
# CONFIG_MODULE_SRCVERSION_ALL is not set
CONFIG_KMOD=y

#
# Block layer
#
CONFIG_LBD=y
# CONFIG_BLK_DEV_IO_TRACE is not set
# CONFIG_LSF is not set

#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
# CONFIG_DEFAULT_AS is not set
# CONFIG_DEFAULT_DEADLINE is not set
CONFIG_DEFAULT_CFQ=y
# CONFIG_DEFAULT_NOOP is not set
CONFIG_DEFAULT_IOSCHED="cfq"

#
# Processor type and features
#
# CONFIG_SMP is not set
CONFIG_X86_PC=y
# CONFIG_X86_ELAN is not set
# CONFIG_X86_VOYAGER is not set
# CONFIG_X86_NUMAQ is not set
# CONFIG_X86_SUMMIT is not set
# CONFIG_X86_BIGSMP is not set
# CONFIG_X86_VISWS is not set
# CONFIG_X86_GENERICARCH is not set
# CONFIG_X86_ES7000 is not set
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
CONFIG_M686=y
# CONFIG_MPENTIUMII is not set
# CONFIG_MPENTIUMIII is not set
# CONFIG_MPENTIUMM is not set
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MEFFICEON is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MGEODEGX1 is not set
# CONFIG_MGEODE_LX is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
# CONFIG_X86_GENERIC is not set
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_L1_CACHE_SHIFT=5
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_X86_PPRO_FENCE=y
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_X86_CMPXCHG64=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_X86_TSC=y
CONFIG_HPET_TIMER=y
CONFIG_HPET_EMULATE_RTC=y
CONFIG_SCHED_VCPU=y
CONFIG_FAIRSCHED=y
CONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not set
CONFIG_X86_UP_APIC=y
CONFIG_X86_UP_IOAPIC=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_X86_IO_APIC=y
CONFIG_NMI_WATCHDOG=y
CONFIG_X86_MCE=y
# CONFIG_X86_MCE_NONFATAL is not set
CONFIG_X86_MCE_P4THERMAL=y
CONFIG_VM86=y
# CONFIG_TOSHIBA is not set
# CONFIG_I8K is not set
# CONFIG_X86_REBOOTFIXUPS is not set
CONFIG_MICROCODE=m
CONFIG_X86_MSR=y
# CONFIG_X86_CPUID is not set

#
# Firmware Drivers
#
# CONFIG_EDD is not set
CONFIG_DELL_RBU=m
CONFIG_DCDBAS=m
# CONFIG_NOHIGHMEM is not set
CONFIG_HIGHMEM4G=y
# CONFIG_HIGHMEM64G is not set
CONFIG_PAGE_OFFSET=0xC0000000
CONFIG_HIGHMEM=y
CONFIG_ARCH_FLATMEM_ENABLE=y
CONFIG_ARCH_SPARSEMEM_ENABLE=y
CONFIG_ARCH_SELECT_MEMORY_MODEL=y
CONFIG_SELECT_MEMORY_MODEL=y
CONFIG_FLATMEM_MANUAL=y
# CONFIG_DISCONTIGMEM_MANUAL is not set
# CONFIG_SPARSEMEM_MANUAL is not set
CONFIG_FLATMEM=y
CONFIG_FLAT_NODE_MEM_MAP=y
CONFIG_SPARSEMEM_STATIC=y
CONFIG_SPLIT_PTLOCK_CPUS=4
# CONFIG_RESOURCES_64BIT is not set
CONFIG_HIGHPTE=y
# CONFIG_MATH_EMULATION is not set
CONFIG_MTRR=y
# CONFIG_EFI is not set
# CONFIG_REGPARM is not set
# CONFIG_SECCOMP is not set
# CONFIG_HZ_100 is not set
# CONFIG_HZ_250 is not set
CONFIG_HZ_1000=y
CONFIG_HZ=1000
# CONFIG_KEXEC is not set
# CONFIG_CRASH_DUMP is not set
CONFIG_PHYSICAL_START=0x100000
CONFIG_COMPAT_VDSO=y
CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y

#
# Power management options (ACPI, APM)
#
CONFIG_PM=y
CONFIG_PM_LEGACY=y
# CONFIG_PM_DEBUG is not set
CONFIG_SOFTWARE_SUSPEND=y
CONFIG_PM_STD_PARTITION=""

#
# 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_X86_PM_TIMER=y
# CONFIG_ACPI_CONTAINER is not set
# CONFIG_ACPI_SBS is not set

#
# APM (Advanced Power Management) BIOS Support
#
# CONFIG_APM is not set

#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set

#
# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
#
CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GOMMCONFIG is not set
# CONFIG_PCI_GODIRECT is not set
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_MMCONFIG=y
# CONFIG_PCIEPORTBUS is not set
# CONFIG_PCI_MSI is not set
# CONFIG_PCI_DEBUG is not set
CONFIG_ISA_DMA_API=y
CONFIG_ISA=y
# CONFIG_EISA is not set
# CONFIG_MCA is not set
# CONFIG_SCx200 is not set

#
# PCCARD (PCMCIA/CardBus) support
#
# CONFIG_PCCARD is not set

#
# PCI Hotplug Support
#
CONFIG_HOTPLUG_PCI=y
# CONFIG_HOTPLUG_PCI_FAKE is not set
CONFIG_HOTPLUG_PCI_COMPAQ=m
# CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM is not set
CONFIG_HOTPLUG_PCI_IBM=m
CONFIG_HOTPLUG_PCI_ACPI=m
# CONFIG_HOTPLUG_PCI_ACPI_IBM is not set
# CONFIG_HOTPLUG_PCI_CPCI is not set
CONFIG_HOTPLUG_PCI_SHPC=m
# CONFIG_HOTPLUG_PCI_SHPC_POLL_EVENT_MODE is not set

#
# Executable file formats
#
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_AOUT=m
# CONFIG_BINFMT_MISC is not set

#
# Networking
#
CONFIG_NET=y

#
# Networking options
#
# CONFIG_NETDEBUG is not set
CONFIG_PACKET=m
CONFIG_PACKET_MMAP=y
CONFIG_UNIX=y
CONFIG_XFRM=y
# CONFIG_XFRM_USER is not set
# CONFIG_NET_KEY is not set
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_ASK_IP_FIB_HASH=y
# CONFIG_IP_FIB_TRIE is not set
CONFIG_IP_FIB_HASH=y
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IP_ROUTE_FWMARK=y
CONFIG_IP_ROUTE_MULTIPATH=y
# CONFIG_IP_ROUTE_MULTIPATH_CACHED is not set
CONFIG_IP_ROUTE_VERBOSE=y
# CONFIG_IP_PNP is not set
CONFIG_NET_IPIP=m
CONFIG_NET_IPGRE=m
# CONFIG_ARPD is not set
CONFIG_SYN_COOKIES=y
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not set
# CONFIG_INET_XFRM_TUNNEL is not set
CONFIG_INET_TUNNEL=m
CONFIG_INET_XFRM_MODE_TRANSPORT=y
CONFIG_INET_XFRM_MODE_TUNNEL=y
CONFIG_INET_DIAG=y
CONFIG_INET_TCP_DIAG=y
# CONFIG_TCP_CONG_ADVANCED is not set
CONFIG_TCP_CONG_BIC=y

#
# IP: Virtual Server Configuration
#
# CONFIG_IP_VS is not set
CONFIG_IPV6=y
# CONFIG_IPV6_PRIVACY is not set
# CONFIG_IPV6_ROUTER_PREF is not set
# CONFIG_INET6_AH is not set
# CONFIG_INET6_ESP is not set
# CONFIG_INET6_IPCOMP is not set
# CONFIG_INET6_XFRM_TUNNEL is not set
# CONFIG_INET6_TUNNEL is not set
CONFIG_INET6_XFRM_MODE_TRANSPORT=y
CONFIG_INET6_XFRM_MODE_TUNNEL=y
# CONFIG_IPV6_TUNNEL is not set
# CONFIG_NETWORK_SECMARK is not set
CONFIG_NETFILTER=y
# CONFIG_NETFILTER_DEBUG is not set
# CONFIG_BRIDGE_NETFILTER is not set

#
# Core Netfilter Configuration
#
# CONFIG_NETFILTER_NETLINK is not set
CONFI
...

Re: Getting ACPI Sleep Support working [message #12005 is a reply to message #12001] Fri, 13 April 2007 19:35 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
As I can see CONFIG_ACPI_SLEEP=y in your .config, so this feature is compiled. So, what's the problem? Smile
Re: Getting ACPI Sleep Support working [message #12007 is a reply to message #12005] Fri, 13 April 2007 20:51 Go to previous messageGo to next message
DigiMan is currently offline  DigiMan
Messages: 11
Registered: April 2007
Junior Member
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.
Re: Getting ACPI Sleep Support working [message #12013 is a reply to message #12007] Sat, 14 April 2007 13:52 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Oh, ok, now I understand your problem. Smile

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.
Previous Topic: Out of socket memory
Next Topic: *SOLVED* Firewall tutorial
Goto Forum:
  


Current Time: Sat Nov 16 23:24:43 GMT 2024

Total time taken to generate the page: 0.03037 seconds