powerbook power-off and 2.6.13-rc[3,4]
Quoted 6 lines · Johannes Berg
Quoted 2 lines · Antonio-M. Corbi Bellot
Has anyone observed this behaviour (
O.S. halt ok but _no_ power-off at the end) with these new '-rc' kernels?Yes. I haven't looked for the cause yet though.
I found that if you comment the
device_suspend(PMSG_SUSPEND);
line in kernel/sys.c, in the kernel_power_off() function, then it works again, but I haven't had the time to look further.
I've put LKML in CC: in case this rings someone's bell.
Stelian.
Signature · 1 line
Stelian Pop <[email protected]>
Hi!
Quoted 5 lines
Quoted 5 lines · Antonio-M. Corbi Bellot
Quoted 3 lines
Has anyone observed this behaviour (
O.S. halt ok but _no_ power-off at the end) with these new '-rc' kernels?
Quoted 8 lines
Quoted 1 line
Yes. I haven't looked for the cause yet though.
I found that if you comment the
device_suspend(PMSG_SUSPEND);line in
kernel/sys.c, in thekernel_power_off()function, then it works again, but I haven't had the time to look further.I've put LKML in CC: in case this rings someone's bell.
Can you try without USB? With USB but without experimental CONFIG_USB_SUSPEND?
Pavel
Signature · 1 line
teflon -- maybe it is a trademark, but it should not be.
Quoted 2 lines · Pavel Machek
Can you try without USB?
Not really. The keyboard is USB, and there's no PS/2 connector. I guess I maybe could do it via a timer, unload the modules and then have it shut down afterwards...
Quoted 4 lines
With USB but without experimental
CONFIG_USB_SUSPEND?
I don't have USB_SUSPEND enabled, IIRC (don't have the PB with me, but I'm pretty sure I checked this yesterday. If you don't hear back, assume it wasn't enabled)
johannes
Quoted 7 lines · Johannes Berg
Quoted 2 lines · Pavel Machek
Can you try without USB?
Not really. The keyboard is USB, and there's no PS/2 connector. I guess I maybe could do it via a timer, unload the modules and then have it shut down afterwards...
I'll build a kernel without USB and drive the laptop over the net and see what happens.
Quoted 7 lines
Quoted 4 lines
With USB but without experimental
CONFIG_USB_SUSPEND?I don't have
USB_SUSPENDenabled, IIRC (don't have the PB with me, but I'm pretty sure I checked this yesterday. If you don't hear back, assume it wasn't enabled)
I don't have USB_SUSPEND enabled.
Stelian.
Signature · 1 line
Stelian Pop <[email protected]>
Quoted 10 lines · Stelian Pop
Quoted 7 lines
Quoted 2 lines · Pavel Machek
Can you try without USB?
Not really. The keyboard is USB, and there's no PS/2 connector. I guess I maybe could do it via a timer, unload the modules and then have it shut down afterwards...
I'll build a kernel without USB and drive the laptop over the net and see what happens.
Without CONFIG_USB the poweroff still hangs, and this time the panel goes completly white with dark spots appearing all over it (kinda scary btw). A 5 seconds press on the power button force it to power off.
This is on a 2.6.13-rc4, and I'm attaching the .config in case it matters.
Stelian.
Signature · 1 line
Stelian Pop <[email protected]>
CONFIG_MMU=yCONFIG_GENERIC_HARDIRQS=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_HAVE_DEC_LOCK=yCONFIG_PPC=yCONFIG_PPC32=yCONFIG_GENERIC_NVRAM=y CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y CONFIG_EXPERIMENTAL=yCONFIG_CLEAN_COMPILE=yCONFIG_BROKEN_ON_SMP=yCONFIG_INIT_ENV_ARG_LIMIT=32CONFIG_LOCALVERSION=""CONFIG_SWAP=yCONFIG_SYSVIPC=yCONFIG_SYSCTL=yCONFIG_HOTPLUG=yCONFIG_KOBJECT_UEVENT=yCONFIG_KALLSYMS=yCONFIG_PRINTK=yCONFIG_BUG=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_EPOLL=yCONFIG_SHMEM=yCONFIG_CC_ALIGN_FUNCTIONS=0CONFIG_CC_ALIGN_LABELS=0CONFIG_CC_ALIGN_LOOPS=0CONFIG_CC_ALIGN_JUMPS=0CONFIG_BASE_SMALL=0CONFIG_MODULES=yCONFIG_MODULE_UNLOAD=yCONFIG_OBSOLETE_MODPARM=yCONFIG_MODVERSIONS=yCONFIG_MODULE_SRCVERSION_ALL=yCONFIG_KMOD=y
CONFIG_6xx=yCONFIG_PPC_FPU=yCONFIG_ALTIVEC=yCONFIG_TAU=yCONFIG_CPU_FREQ=yCONFIG_CPU_FREQ_TABLE=yCONFIG_CPU_FREQ_STAT=y CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=y CONFIG_CPU_FREQ_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_ONDEMAND=y CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y CONFIG_CPU_FREQ_PMAC=yCONFIG_PM=yCONFIG_PPC_STD_MMU=yCONFIG_PPC_MULTIPLATFORM=yCONFIG_PPC_CHRP=yCONFIG_PPC_PMAC=yCONFIG_PPC_PREP=yCONFIG_PPC_OF=yCONFIG_PPCBUG_NVRAM=yCONFIG_HIGHMEM=yCONFIG_HZ_250=yCONFIG_HZ=250CONFIG_PREEMPT_NONE=yCONFIG_SELECT_MEMORY_MODEL=yCONFIG_FLATMEM_MANUAL=yCONFIG_FLATMEM=yCONFIG_FLAT_NODE_MEM_MAP=yCONFIG_BINFMT_ELF=yCONFIG_PROC_DEVICETREE=yCONFIG_PREP_RESIDUAL=yCONFIG_PROC_PREPRESIDUAL=yCONFIG_CMDLINE_BOOL=y CONFIG_CMDLINE="console=ttyS0,9600 console=tty0 root=/dev/sda2" CONFIG_SOFTWARE_SUSPEND=yCONFIG_PM_STD_PARTITION=""CONFIG_SECCOMP=yCONFIG_ISA_DMA_API=yCONFIG_GENERIC_ISA_DMA=yCONFIG_PCI=yCONFIG_PCI_DOMAINS=yCONFIG_PCI_LEGACY_PROC=yCONFIG_PCCARD=yCONFIG_PCMCIA=yCONFIG_PCMCIA_LOAD_CIS=yCONFIG_PCMCIA_IOCTL=yCONFIG_CARDBUS=yCONFIG_YENTA=yCONFIG_PCCARD_NONSTATIC=y CONFIG_HIGHMEM_START=0xfe000000 CONFIG_LOWMEM_SIZE=0x30000000 CONFIG_KERNEL_START=0xc0000000 CONFIG_TASK_SIZE=0x80000000 CONFIG_BOOT_LOAD=0x00800000CONFIG_NET=yCONFIG_PACKET=yCONFIG_UNIX=yCONFIG_INET=yCONFIG_IP_MULTICAST=yCONFIG_IP_FIB_HASH=yCONFIG_TCP_CONG_BIC=yCONFIG_NETFILTER=yCONFIG_IP_NF_CONNTRACK=yCONFIG_IP_NF_FTP=yCONFIG_IP_NF_IRC=yCONFIG_IP_NF_IPTABLES=yCONFIG_IP_NF_MATCH_LIMIT=y CONFIG_IP_NF_MATCH_IPRANGE=yCONFIG_IP_NF_MATCH_MAC=yCONFIG_IP_NF_MATCH_PKTTYPE=y CONFIG_IP_NF_MATCH_MARK=y CONFIG_IP_NF_MATCH_MULTIPORT=y CONFIG_IP_NF_MATCH_TOS=yCONFIG_IP_NF_MATCH_RECENT=yCONFIG_IP_NF_MATCH_ECN=yCONFIG_IP_NF_MATCH_DSCP=yCONFIG_IP_NF_MATCH_AH_ESP=y CONFIG_IP_NF_MATCH_LENGTH=yCONFIG_IP_NF_MATCH_TTL=yCONFIG_IP_NF_MATCH_TCPMSS=y CONFIG_IP_NF_MATCH_HELPER=y CONFIG_IP_NF_MATCH_STATE=yCONFIG_IP_NF_MATCH_OWNER=y CONFIG_IP_NF_MATCH_ADDRTYPE=y CONFIG_IP_NF_MATCH_REALM=yCONFIG_IP_NF_MATCH_SCTP=y CONFIG_IP_NF_MATCH_COMMENT=y CONFIG_IP_NF_MATCH_HASHLIMIT=yCONFIG_IP_NF_FILTER=yCONFIG_IP_NF_TARGET_REJECT=y CONFIG_IP_NF_TARGET_LOG=yCONFIG_IP_NF_NAT=yCONFIG_IP_NF_NAT_NEEDED=y CONFIG_IP_NF_TARGET_MASQUERADE=y CONFIG_IP_NF_TARGET_REDIRECT=yCONFIG_IP_NF_NAT_IRC=yCONFIG_IP_NF_NAT_FTP=yCONFIG_IP_NF_MANGLE=yCONFIG_IP_NF_ARPTABLES=yCONFIG_IP_NF_ARPFILTER=yCONFIG_NET_CLS_ROUTE=yCONFIG_BT=yCONFIG_BT_L2CAP=yCONFIG_BT_RFCOMM=yCONFIG_BT_RFCOMM_TTY=yCONFIG_BT_HIDP=yCONFIG_STANDALONE=yCONFIG_PREVENT_FIRMWARE_BUILD=yCONFIG_FW_LOADER=yCONFIG_BLK_DEV_LOOP=yCONFIG_BLK_DEV_RAM=yCONFIG_BLK_DEV_RAM_COUNT=16 CONFIG_BLK_DEV_RAM_SIZE=8192CONFIG_BLK_DEV_INITRD=yCONFIG_INITRAMFS_SOURCE=""CONFIG_CDROM_PKTCDVD=mCONFIG_CDROM_PKTCDVD_BUFFERS=8CONFIG_IOSCHED_NOOP=yCONFIG_IOSCHED_AS=yCONFIG_IDE=yCONFIG_BLK_DEV_IDE=yCONFIG_BLK_DEV_IDEDISK=yCONFIG_BLK_DEV_IDECD=yCONFIG_BLK_DEV_IDEPCI=yCONFIG_IDEPCI_SHARE_IRQ=yCONFIG_BLK_DEV_GENERIC=yCONFIG_BLK_DEV_IDEDMA_PCI=yCONFIG_IDEDMA_PCI_AUTO=yCONFIG_BLK_DEV_IDE_PMAC=y CONFIG_BLK_DEV_IDE_PMAC_ATA100FIRST=y CONFIG_BLK_DEV_IDEDMA_PMAC=yCONFIG_BLK_DEV_IDEDMA=yCONFIG_IDEDMA_AUTO=yCONFIG_SCSI=yCONFIG_SCSI_PROC_FS=yCONFIG_BLK_DEV_SD=yCONFIG_CHR_DEV_SG=yCONFIG_SCSI_MULTI_LUN=yCONFIG_SCSI_CONSTANTS=yCONFIG_SCSI_FC_ATTRS=yCONFIG_SCSI_QLA2XXX=yCONFIG_IEEE1394=yCONFIG_IEEE1394_OUI_DB=y CONFIG_IEEE1394_EXTRA_CONFIG_ROMS=y CONFIG_IEEE1394_CONFIG_ROM_IP1394=y CONFIG_IEEE1394_OHCI1394=m CONFIG_IEEE1394_VIDEO1394=mCONFIG_IEEE1394_SBP2=y CONFIG_IEEE1394_SBP2_PHYS_DMA=y CONFIG_IEEE1394_DV1394=mCONFIG_IEEE1394_RAWIO=mCONFIG_IEEE1394_CMP=mCONFIG_IEEE1394_AMDTP=mCONFIG_ADB=yCONFIG_ADB_PMU=yCONFIG_PMAC_APM_EMU=yCONFIG_PMAC_BACKLIGHT=yCONFIG_INPUT_ADBHID=yCONFIG_MAC_EMUMOUSEBTN=yCONFIG_THERM_ADT746X=yCONFIG_NETDEVICES=yCONFIG_TUN=mCONFIG_NET_ETHERNET=yCONFIG_MII=yCONFIG_SUNGEM=yCONFIG_NET_RADIO=yCONFIG_NET_WIRELESS=yCONFIG_PPP=mCONFIG_PPP_ASYNC=mCONFIG_PPP_DEFLATE=mCONFIG_PPP_BSDCOMP=mCONFIG_NETCONSOLE=mCONFIG_NETPOLL=yCONFIG_NET_POLL_CONTROLLER=yCONFIG_INPUT=yCONFIG_INPUT_MOUSEDEV=yCONFIG_INPUT_MOUSEDEV_PSAUX=y CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 CONFIG_INPUT_EVDEV=yCONFIG_VT=yCONFIG_VT_CONSOLE=yCONFIG_HW_CONSOLE=yCONFIG_SERIAL_8250=mCONFIG_SERIAL_8250_CS=mCONFIG_SERIAL_8250_NR_UARTS=4CONFIG_SERIAL_CORE=mCONFIG_UNIX98_PTYS=yCONFIG_NVRAM=yCONFIG_GEN_RTC=yCONFIG_GEN_RTC_X=yCONFIG_AGP=yCONFIG_AGP_UNINORTH=yCONFIG_I2C=yCONFIG_I2C_CHARDEV=yCONFIG_I2C_ALGOBIT=yCONFIG_I2C_KEYWEST=yCONFIG_HWMON=yCONFIG_FB=yCONFIG_FB_CFB_FILLRECT=yCONFIG_FB_CFB_COPYAREA=yCONFIG_FB_CFB_IMAGEBLIT=yCONFIG_FB_SOFT_CURSOR=yCONFIG_FB_MACMODES=yCONFIG_FB_MODE_HELPERS=yCONFIG_FB_TILEBLITTING=yCONFIG_FB_OF=yCONFIG_FB_RADEON=yCONFIG_FB_RADEON_I2C=yCONFIG_DUMMY_CONSOLE=yCONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=yCONFIG_LOGO=yCONFIG_LOGO_LINUX_CLUT224=yCONFIG_SOUND=yCONFIG_SND=yCONFIG_SND_TIMER=yCONFIG_SND_PCM=yCONFIG_SND_SEQUENCER=yCONFIG_SND_OSSEMUL=yCONFIG_SND_MIXER_OSS=yCONFIG_SND_PCM_OSS=yCONFIG_SND_SEQUENCER_OSS=yCONFIG_SND_POWERMAC=yCONFIG_USB_ARCH_HAS_HCD=yCONFIG_USB_ARCH_HAS_OHCI=yCONFIG_EXT3_FS=yCONFIG_EXT3_FS_XATTR=yCONFIG_EXT3_FS_POSIX_ACL=yCONFIG_JBD=yCONFIG_FS_MBCACHE=yCONFIG_FS_POSIX_ACL=yCONFIG_MINIX_FS=mCONFIG_INOTIFY=yCONFIG_DNOTIFY=yCONFIG_ISO9660_FS=mCONFIG_JOLIET=yCONFIG_ZISOFS=yCONFIG_ZISOFS_FS=mCONFIG_UDF_FS=mCONFIG_UDF_NLS=yCONFIG_FAT_FS=mCONFIG_MSDOS_FS=mCONFIG_VFAT_FS=mCONFIG_FAT_DEFAULT_CODEPAGE=437 CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" CONFIG_PROC_FS=yCONFIG_PROC_KCORE=yCONFIG_SYSFS=yCONFIG_TMPFS=yCONFIG_TMPFS_XATTR=yCONFIG_TMPFS_SECURITY=yCONFIG_RAMFS=yCONFIG_HFS_FS=mCONFIG_HFSPLUS_FS=yCONFIG_CRAMFS=yCONFIG_NFS_FS=mCONFIG_NFS_V3=yCONFIG_LOCKD=mCONFIG_LOCKD_V4=yCONFIG_NFS_COMMON=yCONFIG_SUNRPC=mCONFIG_PARTITION_ADVANCED=yCONFIG_MAC_PARTITION=yCONFIG_MSDOS_PARTITION=yCONFIG_NLS=yCONFIG_NLS_DEFAULT="iso8859-1" CONFIG_NLS_CODEPAGE_437=mCONFIG_NLS_CODEPAGE_850=mCONFIG_NLS_CODEPAGE_1250=mCONFIG_NLS_ISO8859_1=mCONFIG_NLS_ISO8859_15=mCONFIG_NLS_UTF8=yCONFIG_CRC_CCITT=mCONFIG_CRC32=yCONFIG_LIBCRC32C=mCONFIG_ZLIB_INFLATE=yCONFIG_ZLIB_DEFLATE=mCONFIG_DEBUG_KERNEL=yCONFIG_MAGIC_SYSRQ=yCONFIG_LOG_BUF_SHIFT=14CONFIG_BOOTX_TEXT=y
Hi!
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 2 lines · Pavel Machek
Can you try without USB?
Not really. The keyboard is USB, and there's no PS/2 connector. I guess I maybe could do it via a timer, unload the modules and then have it shut down afterwards...
Quoted 6 lines
Quoted 2 lines
I'll build a kernel without USB and drive the laptop over the net and see what happens.
Without
CONFIG_USBthe poweroff still hangs, and this time the panel goes completly white with dark spots appearing all over it (kinda scary btw). A 5 seconds press on the power button force it to power off.
Yep, looks like screen burning, right? So it is different kind of hang => USB has some problem but there's another one, too?
Quoted 2 lines
This is on a 2.6.13-rc4, and I'm attaching the .config in case it matters.
Could you try inserting printks to see where it hangs? Aha, with display turned off that is not going to be funny.
Pavel
Signature · 1 line
Boycott Kodak -- for their patent abuse against Java.
Quoted 10 lines · Pavel Machek
Hi!
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 2 lines · Pavel Machek
Can you try without USB?
Not really. The keyboard is USB, and there's no PS/2 connector. I guess I maybe could do it via a timer, unload the modules and then have it shut down afterwards...
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
I'll build a kernel without USB and drive the laptop over the net and see what happens.
Without
CONFIG_USBthe poweroff still hangs, and this time the panel goes completly white with dark spots appearing all over it (kinda scary btw). A 5 seconds press on the power button force it to power off.Yep, looks like screen burning, right?
Exactly.
Quoted 2 lines
So it is different kind of hang
=> USB has some problem but there's another one, too?
Seems that this is the case, yes.
Quoted 5 lines
Quoted 2 lines
This is on a 2.6.13-rc4, and I'm attaching the .config in case it matters.
Could you try inserting printks to see where it hangs? Aha, with display turned off that is not going to be funny.
Unfortunately I won't have time to debug this right now (I leave on vacation tomorrow), so somebody else will have to do it (and no, it is not going to be funny to do this without display, serial port, buzzer etc)
Stelian.
Signature · 1 line
Stelian Pop <[email protected]>
Quoted 7 lines · Stelian Pop
Quoted 6 lines · Johannes Berg
Quoted 2 lines · Antonio-M. Corbi Bellot
Has anyone observed this behaviour (
O.S. halt ok but _no_ power-off at the end) with these new '-rc' kernels?Yes. I haven't looked for the cause yet though.
I have observed this too, but only on an SMP (dual-core) machine, using 2.6.13-rc4 or 2.6.13-rc4-mm1.
If the USB controller drivers (ohci_hcd, ehci_hcd) are not loaded, the machine is powered off normally. Otherwise, it is not.
Greets,
Rafael
Signature · 3 lines
- Would you tell me, please, which way I ought to go from here? - That depends a good deal on where you want to get to. -- Lewis Carroll "Alice's Adventures in Wonderland"