public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* apm suspend broken in 2.4.10
@ 2001-09-25 22:00 jc
  2001-09-26  8:44 ` Matthias Andree
  2001-09-26  9:21 ` apm suspend broken in 2.4.10 , more info jc
  0 siblings, 2 replies; 20+ messages in thread
From: jc @ 2001-09-25 22:00 UTC (permalink / raw)
  To: linux-kernel

it worked fine with 2.4.9

now with 2.4.10 :

strace apm -s 

...
open("/dev/apm_bios", O_RDWR)           = 3
time([1001455050])                      = 1001455050
sync()                                  = 0
ioctl(3, AGPIOC_RELEASE, 0)             = -1 EAGAIN (Resource temporarily unavailable)
...



^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: apm suspend broken in 2.4.10
  2001-09-25 22:00 apm suspend broken in 2.4.10 jc
@ 2001-09-26  8:44 ` Matthias Andree
  2001-09-26  9:21 ` apm suspend broken in 2.4.10 , more info jc
  1 sibling, 0 replies; 20+ messages in thread
From: Matthias Andree @ 2001-09-26  8:44 UTC (permalink / raw)
  To: linux-kernel; +Cc: jc

On Wed, 26 Sep 2001, jc wrote:

> it worked fine with 2.4.9
> 
> now with 2.4.10 :
> 
> strace apm -s 

Works for me. Post more information about your system. Did you compile
APM? Did the machine show APM related boot log lines? Or did it use ACPI
perhaps?

BTW, please have your Message-ID contain a full domain name and not just
"athena" to avoid collisions.

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: apm suspend broken in 2.4.10 , more info
  2001-09-25 22:00 apm suspend broken in 2.4.10 jc
  2001-09-26  8:44 ` Matthias Andree
@ 2001-09-26  9:21 ` jc
  1 sibling, 0 replies; 20+ messages in thread
From: jc @ 2001-09-26  9:21 UTC (permalink / raw)
  To: linux-kernel; +Cc: jc

[-- Attachment #1: Type: text/plain, Size: 71 bytes --]

attached my dmesg and my kernel conf
the machine is a laptop dell c600

[-- Attachment #2: dmesg --]
[-- Type: text/plain, Size: 5634 bytes --]

Linux version 2.4.10 (root@athena) (gcc version 2.95.4 20010902 (Debian prerelease)) #1 Mon Sep 24 20:39:14 CEST 2001
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000c0000 - 00000000000cc000 (reserved)
 BIOS-e820: 0000000000100000 - 0000000007fec000 (usable)
 BIOS-e820: 0000000007fec000 - 0000000007ff0000 (reserved)
 BIOS-e820: 00000000100a0000 - 0000000010100000 (reserved)
 BIOS-e820: 00000000ffe00000 - 0000000100000000 (reserved)
On node 0 totalpages: 32748
zone(0): 4096 pages.
zone(1): 28652 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/hda6 vga=0x305 mem=130992K
Initializing CPU#0
Detected 697.861 MHz processor.
Console: colour dummy device 80x25
Calibrating delay loop... 1392.64 BogoMIPS
Memory: 126916k/130992k available (958k kernel code, 3688k reserved, 247k data, 192k init, 0k highmem)
Dentry-cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode-cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
CPU: Before vendor init, caps: 0383f9ff 00000000 00000000, vendor = 0
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After vendor init, caps: 0383f9ff 00000000 00000000 00000000
CPU:     After generic, caps: 0383f9ff 00000000 00000000 00000000
CPU:             Common caps: 0383f9ff 00000000 00000000 00000000
CPU: Intel Pentium III (Coppermine) stepping 06
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfc13e, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Discovered primary peer bus 08 [IRQ]
PCI: Using IRQ router PIIX [8086/7110] at 00:07.0
  got res[10000000:10000fff] for resource 0 of Texas Instruments PCI1420
  got res[10001000:10001fff] for resource 0 of Texas Instruments PCI1420 (#2)
Limiting direct PCI/PCI transfers.
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Dell Latitude C600 machine detected. Mousepad Resume Bug workaround enabled.
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.14)
Starting kswapd
vesafb: framebuffer at 0xf8000000, mapped to 0xc8800000, size 8192k
vesafb: mode is 1024x768x8, linelength=1024, pages=9
vesafb: protected mode interface info at c000:6058
vesafb: scrolling: redraw
Console: switching to colour frame buffer device 128x48
fb0: VESA VGA frame buffer device
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
Real Time Clock Driver v1.10e
block: 128 slots per queue, batch=16
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller on PCI bus 00 dev 39
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0x0860-0x0867, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0x0868-0x086f, BIOS settings: hdc:DMA, hdd:pio
hda: IC25N020ATDA04-0, ATA DISK drive
hdc: SAMSUNG CD-ROM SN-124, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 39070080 sectors (20004 MB) w/1806KiB Cache, CHS=2432/255/63
Partition check:
 hda: hda1 hda2 < hda5 hda6 hda7 hda8 hda9 hda10 > hda4
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Found IRQ 11 for device 00:07.2
PCI: Sharing IRQ 11 with 00:03.0
PCI: Sharing IRQ 11 with 00:03.1
PCI: Sharing IRQ 11 with 00:10.0
PCI: Sharing IRQ 11 with 00:10.1
uhci.c: USB UHCI at I/O 0xdce0, IRQ 11
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
uhci.c: :USB Universal Host Controller Interface driver
usb.c: registered new driver usb_mouse
usbmouse.c: v1.6:USB HID Boot Protocol mouse driver
mice: PS/2 mouse device common for all mice
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 192k freed
hub.c: USB new device connect on bus1/1, assigned device number 2
input0: Logitech USB Mouse on usb1:2.0
Adding Swap: 120448k swap-space (priority -1)
reiserfs: checking transaction log (device 03:07) ...
Using r5 hash to sort names
ReiserFS version 3.6.25
reiserfs: checking transaction log (device 03:08) ...
Using r5 hash to sort names
ReiserFS version 3.6.25
reiserfs: checking transaction log (device 03:09) ...
Using r5 hash to sort names
ReiserFS version 3.6.25
reiserfs: checking transaction log (device 03:0a) ...
Using r5 hash to sort names
ReiserFS version 3.6.25
PCI: Found IRQ 11 for device 00:10.0
PCI: Sharing IRQ 11 with 00:03.0
PCI: Sharing IRQ 11 with 00:03.1
PCI: Sharing IRQ 11 with 00:07.2
PCI: Sharing IRQ 11 with 00:10.1
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
00:10.0: 3Com PCI 3c556 Laptop Tornado at 0xd400. Vers LK1.1.16

[-- Attachment #3: config-2.4.10 --]
[-- Type: text/plain, Size: 18643 bytes --]

#
# Automatically generated make config: don't edit
#
CONFIG_X86=y
CONFIG_ISA=y
# CONFIG_SBUS is not set
CONFIG_UID16=y

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y

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

#
# Processor type and features
#
# 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 is not set
CONFIG_MPENTIUMIII=y
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MCYRIXIII is not set
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
# CONFIG_RWSEM_GENERIC_SPINLOCK is not set
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_X86_L1_CACHE_SHIFT=5
CONFIG_X86_TSC=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_PGE=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
# CONFIG_TOSHIBA is not set
# CONFIG_MICROCODE is not set
# CONFIG_X86_MSR is not set
# CONFIG_X86_CPUID is not set
CONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
# CONFIG_MATH_EMULATION is not set
CONFIG_MTRR=y
# CONFIG_SMP is not set
# CONFIG_X86_UP_IOAPIC is not set

#
# General setup
#
CONFIG_NET=y
CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GODIRECT is not set
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_NAMES=y
# CONFIG_EISA is not set
# CONFIG_MCA is not set
CONFIG_HOTPLUG=y

#
# PCMCIA/CardBus support
#
CONFIG_PCMCIA=m
CONFIG_CARDBUS=y
CONFIG_I82365=y
# CONFIG_TCIC is not set
CONFIG_SYSVIPC=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_SYSCTL=y
CONFIG_KCORE_ELF=y
# CONFIG_KCORE_AOUT is not set
# CONFIG_BINFMT_AOUT is not set
CONFIG_BINFMT_ELF=y
# CONFIG_BINFMT_MISC is not set
CONFIG_PM=y
# CONFIG_ACPI is not set
CONFIG_APM=y
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
# CONFIG_APM_DO_ENABLE is not set
# CONFIG_APM_CPU_IDLE is not set
# CONFIG_APM_DISPLAY_BLANK is not set
# CONFIG_APM_RTC_IS_GMT is not set
# CONFIG_APM_ALLOW_INTS is not set
# CONFIG_APM_REAL_MODE_POWER_OFF is not set

#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set

#
# Parallel port support
#
# CONFIG_PARPORT is not set

#
# Plug and Play configuration
#
# CONFIG_PNP is not set
# CONFIG_ISAPNP is not set
# CONFIG_PNPBIOS is not set

#
# Block devices
#
CONFIG_BLK_DEV_FD=y
# CONFIG_BLK_DEV_XD is not set
# CONFIG_PARIDE is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
CONFIG_BLK_DEV_LOOP=m
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_BLK_DEV_INITRD is not set

#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set
# CONFIG_BLK_DEV_MD is not set
# CONFIG_MD_LINEAR is not set
# CONFIG_MD_RAID0 is not set
# CONFIG_MD_RAID1 is not set
# CONFIG_MD_RAID5 is not set
# CONFIG_MD_MULTIPATH is not set
# CONFIG_BLK_DEV_LVM is not set

#
# Networking options
#
CONFIG_PACKET=y
# CONFIG_PACKET_MMAP is not set
CONFIG_NETLINK=y
CONFIG_RTNETLINK=y
# CONFIG_NETLINK_DEV is not set
CONFIG_NETFILTER=y
# CONFIG_NETFILTER_DEBUG is not set
CONFIG_FILTER=y
CONFIG_UNIX=y
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
# CONFIG_IP_PNP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_ARPD is not set
# CONFIG_INET_ECN is not set
CONFIG_SYN_COOKIES=y

#
#   IP: Netfilter Configuration
#
CONFIG_IP_NF_CONNTRACK=m
# CONFIG_IP_NF_FTP is not set
# CONFIG_IP_NF_QUEUE is not set
CONFIG_IP_NF_IPTABLES=m
# CONFIG_IP_NF_MATCH_LIMIT is not set
# CONFIG_IP_NF_MATCH_MAC is not set
# CONFIG_IP_NF_MATCH_MARK is not set
# CONFIG_IP_NF_MATCH_MULTIPORT is not set
# CONFIG_IP_NF_MATCH_TOS is not set
# CONFIG_IP_NF_MATCH_TCPMSS is not set
CONFIG_IP_NF_MATCH_STATE=m
# CONFIG_IP_NF_MATCH_UNCLEAN is not set
# CONFIG_IP_NF_MATCH_OWNER is not set
CONFIG_IP_NF_FILTER=m
# CONFIG_IP_NF_TARGET_REJECT is not set
# CONFIG_IP_NF_TARGET_MIRROR is not set
# CONFIG_IP_NF_NAT is not set
# CONFIG_IP_NF_MANGLE is not set
# CONFIG_IP_NF_TARGET_LOG is not set
# CONFIG_IP_NF_TARGET_TCPMSS is not set
# CONFIG_IP_NF_COMPAT_IPCHAINS is not set
# CONFIG_IP_NF_COMPAT_IPFWADM is not set
CONFIG_IPV6=m

#
#   IPv6: Netfilter Configuration
#
# CONFIG_IP6_NF_IPTABLES is not set
# CONFIG_KHTTPD is not set
# CONFIG_ATM is not set

#
#  
#
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_DECNET is not set
# CONFIG_BRIDGE is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_LLC is not set
# CONFIG_NET_DIVERT is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set
# CONFIG_NET_FASTROUTE is not set
# CONFIG_NET_HW_FLOWCONTROL is not set

#
# QoS and/or fair queueing
#
# CONFIG_NET_SCHED is not set

#
# Telephony Support
#
# CONFIG_PHONE is not set
# CONFIG_PHONE_IXJ is not set
# CONFIG_PHONE_IXJ_PCMCIA is not set

#
# ATA/IDE/MFM/RLL support
#
CONFIG_IDE=y

#
# IDE, ATA and ATAPI Block devices
#
CONFIG_BLK_DEV_IDE=y

#
# Please see Documentation/ide.txt for help/info on IDE drives
#
# CONFIG_BLK_DEV_HD_IDE is not set
# CONFIG_BLK_DEV_HD is not set
CONFIG_BLK_DEV_IDEDISK=y
# CONFIG_IDEDISK_MULTI_MODE is not set
# CONFIG_BLK_DEV_IDEDISK_VENDOR is not set
# CONFIG_BLK_DEV_IDEDISK_FUJITSU is not set
# CONFIG_BLK_DEV_IDEDISK_IBM is not set
# CONFIG_BLK_DEV_IDEDISK_MAXTOR is not set
# CONFIG_BLK_DEV_IDEDISK_QUANTUM is not set
# CONFIG_BLK_DEV_IDEDISK_SEAGATE is not set
# CONFIG_BLK_DEV_IDEDISK_WD is not set
# CONFIG_BLK_DEV_COMMERIAL is not set
# CONFIG_BLK_DEV_TIVO is not set
# CONFIG_BLK_DEV_IDECS is not set
CONFIG_BLK_DEV_IDECD=m
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_BLK_DEV_IDESCSI is not set

#
# IDE chipset support/bugfixes
#
# CONFIG_BLK_DEV_CMD640 is not set
# CONFIG_BLK_DEV_CMD640_ENHANCED is not set
# CONFIG_BLK_DEV_ISAPNP is not set
# CONFIG_BLK_DEV_RZ1000 is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_BLK_DEV_ADMA=y
# CONFIG_BLK_DEV_OFFBOARD is not set
# CONFIG_IDEDMA_PCI_AUTO is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_PCI_WIP is not set
# CONFIG_IDEDMA_NEW_DRIVE_LISTINGS is not set
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_AEC62XX_TUNING is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_WDC_ALI15X3 is not set
# CONFIG_BLK_DEV_AMD74XX is not set
# CONFIG_AMD74XX_OVERRIDE is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_HPT34X_AUTODMA is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_PIIX is not set
# CONFIG_PIIX_TUNING is not set
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_OPTI621 is not set
# CONFIG_BLK_DEV_PDC202XX is not set
# CONFIG_PDC202XX_BURST is not set
# CONFIG_PDC202XX_FORCE is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_VIA82CXXX is not set
# CONFIG_IDE_CHIPSETS is not set
# CONFIG_IDEDMA_AUTO is not set
# CONFIG_IDEDMA_IVB is not set
# CONFIG_DMA_NONPCI is not set
# CONFIG_BLK_DEV_IDE_MODES is not set
# CONFIG_BLK_DEV_ATARAID is not set
# CONFIG_BLK_DEV_ATARAID_PDC is not set
# CONFIG_BLK_DEV_ATARAID_HPT is not set

#
# SCSI support
#
# CONFIG_SCSI is not set

#
# Fusion MPT device support
#
# CONFIG_FUSION is not set
# CONFIG_FUSION_BOOT is not set
# CONFIG_FUSION_ISENSE is not set
# CONFIG_FUSION_CTL is not set
# CONFIG_FUSION_LAN is not set

#
# IEEE 1394 (FireWire) support (EXPERIMENTAL)
#
# CONFIG_IEEE1394 is not set

#
# I2O device support
#
# CONFIG_I2O is not set
# CONFIG_I2O_PCI is not set
# CONFIG_I2O_BLOCK is not set
# CONFIG_I2O_LAN is not set
# CONFIG_I2O_SCSI is not set
# CONFIG_I2O_PROC is not set

#
# Network device support
#
CONFIG_NETDEVICES=y

#
# ARCnet devices
#
# CONFIG_ARCNET is not set
CONFIG_DUMMY=m
# CONFIG_BONDING is not set
# CONFIG_EQUALIZER is not set
# CONFIG_TUN is not set
# CONFIG_ETHERTAP is not set

#
# Ethernet (10 or 100Mbit)
#
CONFIG_NET_ETHERNET=y
# CONFIG_SUNLANCE is not set
# CONFIG_HAPPYMEAL is not set
# CONFIG_SUNBMAC is not set
# CONFIG_SUNQE is not set
# CONFIG_SUNLANCE is not set
# CONFIG_SUNGEM is not set
CONFIG_NET_VENDOR_3COM=y
# CONFIG_EL1 is not set
# CONFIG_EL2 is not set
# CONFIG_ELPLUS is not set
# CONFIG_EL16 is not set
# CONFIG_EL3 is not set
# CONFIG_3C515 is not set
# CONFIG_ELMC is not set
# CONFIG_ELMC_II is not set
CONFIG_VORTEX=m
# CONFIG_LANCE is not set
# CONFIG_NET_VENDOR_SMC is not set
# CONFIG_NET_VENDOR_RACAL is not set
# CONFIG_AT1700 is not set
# CONFIG_DEPCA is not set
# CONFIG_HP100 is not set
# CONFIG_NET_ISA is not set
# CONFIG_NET_PCI is not set
# CONFIG_NET_POCKET is not set

#
# Ethernet (1000 Mbit)
#
# CONFIG_ACENIC is not set
# CONFIG_DL2K is not set
# CONFIG_MYRI_SBUS is not set
# CONFIG_NS83820 is not set
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not set
# CONFIG_SK98LIN is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_PLIP is not set
CONFIG_PPP=m
# CONFIG_PPP_MULTILINK is not set
# CONFIG_PPP_FILTER is not set
CONFIG_PPP_ASYNC=m
# CONFIG_PPP_SYNC_TTY is not set
CONFIG_PPP_DEFLATE=m
CONFIG_PPP_BSDCOMP=m
# CONFIG_PPPOE is not set
# CONFIG_SLIP is not set

#
# Wireless LAN (non-hamradio)
#
# CONFIG_NET_RADIO is not set

#
# Token Ring devices
#
# CONFIG_TR is not set
# CONFIG_NET_FC is not set
# CONFIG_RCPCI is not set
# CONFIG_SHAPER is not set

#
# Wan interfaces
#
# CONFIG_WAN is not set

#
# PCMCIA network device support
#
# CONFIG_NET_PCMCIA is not set

#
# Amateur Radio support
#
# CONFIG_HAMRADIO is not set

#
# IrDA (infrared) support
#
# CONFIG_IRDA is not set

#
# ISDN subsystem
#
# CONFIG_ISDN is not set

#
# Old CD-ROM drivers (not SCSI, not IDE)
#
# CONFIG_CD_NO_IDESCSI is not set

#
# Input core support
#
CONFIG_INPUT=y
# CONFIG_INPUT_KEYBDEV is not set
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_EVDEV is not set

#
# Character devices
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_SERIAL=y
# CONFIG_SERIAL_CONSOLE is not set
# CONFIG_SERIAL_EXTENDED is not set
# CONFIG_SERIAL_NONSTANDARD is not set
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=128

#
# I2C support
#
# CONFIG_I2C is not set

#
# Mice
#
# CONFIG_BUSMOUSE is not set
CONFIG_MOUSE=y
CONFIG_PSMOUSE=y
# CONFIG_82C710_MOUSE is not set
# CONFIG_PC110_PAD is not set

#
# Joysticks
#
# CONFIG_INPUT_GAMEPORT is not set
# CONFIG_INPUT_NS558 is not set
# CONFIG_INPUT_LIGHTNING is not set
# CONFIG_INPUT_PCIGAME is not set
# CONFIG_INPUT_CS461X is not set
# CONFIG_INPUT_EMU10K1 is not set
# CONFIG_INPUT_SERIO is not set
# CONFIG_INPUT_SERPORT is not set

#
# Joysticks
#
# CONFIG_INPUT_ANALOG is not set
# CONFIG_INPUT_A3D is not set
# CONFIG_INPUT_ADI is not set
# CONFIG_INPUT_COBRA is not set
# CONFIG_INPUT_GF2K is not set
# CONFIG_INPUT_GRIP is not set
# CONFIG_INPUT_INTERACT is not set
# CONFIG_INPUT_TMDC is not set
# CONFIG_INPUT_SIDEWINDER is not set
# CONFIG_INPUT_IFORCE_USB is not set
# CONFIG_INPUT_IFORCE_232 is not set
# CONFIG_INPUT_WARRIOR is not set
# CONFIG_INPUT_MAGELLAN is not set
# CONFIG_INPUT_SPACEORB is not set
# CONFIG_INPUT_SPACEBALL is not set
# CONFIG_INPUT_STINGER is not set
# CONFIG_INPUT_DB9 is not set
# CONFIG_INPUT_GAMECON is not set
# CONFIG_INPUT_TURBOGRAFX is not set
# CONFIG_QIC02_TAPE is not set

#
# Watchdog Cards
#
# CONFIG_WATCHDOG is not set
# CONFIG_INTEL_RNG is not set
# CONFIG_NVRAM is not set
CONFIG_RTC=y
# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
# CONFIG_SONYPI is not set

#
# Ftape, the floppy tape device driver
#
# CONFIG_FTAPE is not set
# CONFIG_AGP is not set
# CONFIG_DRM is not set

#
# PCMCIA character devices
#
# CONFIG_PCMCIA_SERIAL_CS is not set

#
# Multimedia devices
#
# CONFIG_VIDEO_DEV is not set

#
# File systems
#
# CONFIG_QUOTA is not set
# CONFIG_AUTOFS_FS is not set
# CONFIG_AUTOFS4_FS is not set
CONFIG_REISERFS_FS=y
# CONFIG_REISERFS_CHECK is not set
# CONFIG_ADFS_FS is not set
# CONFIG_ADFS_FS_RW is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_BFS_FS is not set
CONFIG_FAT_FS=m
# CONFIG_MSDOS_FS is not set
# CONFIG_UMSDOS_FS is not set
CONFIG_VFAT_FS=m
# CONFIG_EFS_FS is not set
# CONFIG_JFFS_FS is not set
# CONFIG_CRAMFS is not set
# CONFIG_TMPFS is not set
# CONFIG_RAMFS is not set
CONFIG_ISO9660_FS=m
CONFIG_JOLIET=y
# CONFIG_MINIX_FS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_NTFS_FS is not set
# CONFIG_NTFS_RW is not set
# CONFIG_HPFS_FS is not set
CONFIG_PROC_FS=y
# CONFIG_DEVFS_FS is not set
# CONFIG_DEVFS_MOUNT is not set
# CONFIG_DEVFS_DEBUG is not set
CONFIG_DEVPTS_FS=y
# CONFIG_QNX4FS_FS is not set
# CONFIG_QNX4FS_RW is not set
# CONFIG_ROMFS_FS is not set
CONFIG_EXT2_FS=y
# CONFIG_SYSV_FS is not set
# CONFIG_UDF_FS is not set
# CONFIG_UDF_RW is not set
# CONFIG_UFS_FS is not set
# CONFIG_UFS_FS_WRITE is not set

#
# Network File Systems
#
# CONFIG_CODA_FS is not set
CONFIG_NFS_FS=m
CONFIG_NFS_V3=y
# CONFIG_ROOT_NFS is not set
# CONFIG_NFSD is not set
# CONFIG_NFSD_V3 is not set
CONFIG_SUNRPC=m
CONFIG_LOCKD=m
CONFIG_LOCKD_V4=y
CONFIG_SMB_FS=m
CONFIG_SMB_NLS_DEFAULT=y
CONFIG_SMB_NLS_REMOTE="cp850"
# CONFIG_NCP_FS is not set
# CONFIG_NCPFS_PACKET_SIGNING is not set
# CONFIG_NCPFS_IOCTL_LOCKING is not set
# CONFIG_NCPFS_STRONG is not set
# CONFIG_NCPFS_NFS_NS is not set
# CONFIG_NCPFS_OS2_NS is not set
# CONFIG_NCPFS_SMALLDOS is not set
# CONFIG_NCPFS_NLS is not set
# CONFIG_NCPFS_EXTRAS is not set

#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not set
CONFIG_MSDOS_PARTITION=y
CONFIG_SMB_NLS=y
CONFIG_NLS=y

#
# Native Language Support
#
CONFIG_NLS_DEFAULT="cp850"
# CONFIG_NLS_CODEPAGE_437 is not set
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
CONFIG_NLS_CODEPAGE_850=m
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1251 is not set
CONFIG_NLS_ISO8859_1=m
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not set
CONFIG_NLS_ISO8859_15=m
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not set
CONFIG_NLS_UTF8=m

#
# Console drivers
#
CONFIG_VGA_CONSOLE=y
CONFIG_VIDEO_SELECT=y
# CONFIG_MDA_CONSOLE is not set

#
# Frame-buffer support
#
CONFIG_FB=y
CONFIG_DUMMY_CONSOLE=y
# CONFIG_FB_RIVA is not set
# CONFIG_FB_CLGEN is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
CONFIG_FB_VESA=y
# CONFIG_FB_VGA16 is not set
# CONFIG_FB_HGA is not set
CONFIG_VIDEO_SELECT=y
# CONFIG_FB_MATROX is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VIRTUAL is not set
CONFIG_FBCON_ADVANCED=y
# CONFIG_FBCON_MFB is not set
# CONFIG_FBCON_CFB2 is not set
# CONFIG_FBCON_CFB4 is not set
CONFIG_FBCON_CFB8=y
# CONFIG_FBCON_CFB16 is not set
# CONFIG_FBCON_CFB24 is not set
# CONFIG_FBCON_CFB32 is not set
# CONFIG_FBCON_AFB is not set
# CONFIG_FBCON_ILBM is not set
# CONFIG_FBCON_IPLAN2P2 is not set
# CONFIG_FBCON_IPLAN2P4 is not set
# CONFIG_FBCON_IPLAN2P8 is not set
# CONFIG_FBCON_MAC is not set
# CONFIG_FBCON_VGA_PLANES is not set
# CONFIG_FBCON_VGA is not set
# CONFIG_FBCON_HGA is not set
# CONFIG_FBCON_FONTWIDTH8_ONLY is not set
CONFIG_FBCON_FONTS=y
# CONFIG_FONT_8x8 is not set
CONFIG_FONT_8x16=y
# CONFIG_FONT_SUN8x16 is not set
# CONFIG_FONT_SUN12x22 is not set
# CONFIG_FONT_6x11 is not set
# CONFIG_FONT_PEARL_8x8 is not set
# CONFIG_FONT_ACORN_8x8 is not set

#
# Sound
#
CONFIG_SOUND=m
# CONFIG_SOUND_BT878 is not set
# CONFIG_SOUND_CMPCI is not set
# CONFIG_SOUND_EMU10K1 is not set
# CONFIG_MIDI_EMU10K1 is not set
# CONFIG_SOUND_FUSION is not set
# CONFIG_SOUND_CS4281 is not set
# CONFIG_SOUND_ES1370 is not set
# CONFIG_SOUND_ES1371 is not set
# CONFIG_SOUND_ESSSOLO1 is not set
# CONFIG_SOUND_MAESTRO is not set
CONFIG_SOUND_MAESTRO3=m
# CONFIG_SOUND_ICH is not set
# CONFIG_SOUND_RME96XX is not set
# CONFIG_SOUND_SONICVIBES is not set
# CONFIG_SOUND_TRIDENT is not set
# CONFIG_SOUND_MSNDCLAS is not set
# CONFIG_SOUND_MSNDPIN is not set
# CONFIG_SOUND_VIA82CXXX is not set
# CONFIG_MIDI_VIA82CXXX is not set
# CONFIG_SOUND_OSS is not set
# CONFIG_SOUND_TVMIXER is not set

#
# USB support
#
CONFIG_USB=y
# CONFIG_USB_DEBUG is not set

#
# Miscellaneous USB options
#
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set

#
# USB Controllers
#
CONFIG_USB_UHCI_ALT=y
# CONFIG_USB_OHCI is not set

#
# USB Device Class drivers
#
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_BLUETOOTH is not set
# CONFIG_USB_STORAGE is not set
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set

#
# USB Human Interface Devices (HID)
#
# CONFIG_USB_HID is not set
# CONFIG_USB_KBD is not set
CONFIG_USB_MOUSE=y
# CONFIG_USB_WACOM is not set

#
# USB Imaging devices
#
# CONFIG_USB_DC2XX is not set
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_SCANNER is not set
# CONFIG_USB_MICROTEK is not set

#
# USB Multimedia devices
#
# CONFIG_USB_IBMCAM is not set
# CONFIG_USB_OV511 is not set
# CONFIG_USB_PWC is not set
# CONFIG_USB_SE401 is not set
# CONFIG_USB_DSBR is not set
# CONFIG_USB_DABUSB is not set

#
# USB Network adaptors
#
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_CATC is not set
# CONFIG_USB_CDCETHER is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_USBNET is not set

#
# USB port drivers
#
# CONFIG_USB_USS720 is not set

#
# USB Serial Converter support
#
# CONFIG_USB_SERIAL is not set

#
# USB misc drivers
#
# CONFIG_USB_RIO500 is not set

#
# Bluetooth support
#
# CONFIG_BLUEZ is not set

#
# Kernel hacking
#
# CONFIG_DEBUG_KERNEL is not set

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: apm suspend broken in 2.4.10
@ 2001-09-27  0:29 Alex Cruise
  2001-09-27 20:36 ` Randy.Dunlap
  0 siblings, 1 reply; 20+ messages in thread
From: Alex Cruise @ 2001-09-27  0:29 UTC (permalink / raw)
  To: 'linux-kernel@vger.kernel.org'

Mine displays a similar failure, except my strace shows:

  ioctl(3, APM_IOC_SUSPEND, 0 ) = -1 EAGAIN (Resource temporarily
unavailable)

I also noticed (as reported by a previous poster) that whether you pass
"apm=on" or "apm=off" to the kernel, apm gets disabled.  When you don't
specify a setting, it's enabled.  I had a look at the arch/i386/kernel/apm.c
in 2.4.10 though, and it seemed to make sense.

--
Alex Cruise - Programmer, Iconoclast, Opinionated Bastard.
GCS/P v3.1a: d- s+:+ C++++$ UF++ UL++ P--- L++ E++ W++ N+ K w-- O- M 
PS++ PE- Y+ PGP-- t+@ 5- X-- R !tv b++ DI++ D++ G e* h--- r+++ y+++ 

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: apm suspend broken in 2.4.10
  2001-09-27  0:29 apm suspend broken in 2.4.10 Alex Cruise
@ 2001-09-27 20:36 ` Randy.Dunlap
  0 siblings, 0 replies; 20+ messages in thread
From: Randy.Dunlap @ 2001-09-27 20:36 UTC (permalink / raw)
  To: Alex Cruise; +Cc: 'linux-kernel@vger.kernel.org', jcb, Alan, sfr

[-- Attachment #1: Type: text/plain, Size: 639 bytes --]

Alex Cruise wrote:
> 
> Mine displays a similar failure, except my strace shows:
> 
>   ioctl(3, APM_IOC_SUSPEND, 0 ) = -1 EAGAIN (Resource temporarily
> unavailable)
> 
> I also noticed (as reported by a previous poster) that whether you pass
> "apm=on" or "apm=off" to the kernel, apm gets disabled.  When you don't
> specify a setting, it's enabled.  I had a look at the arch/i386/kernel/apm.c
> in 2.4.10 though, and it seemed to make sense.

Verified here.
APM doesn't install if apm=on or apm=off is used in 2.4.10.

Here's a small patch for it.  With this patch, apm thread,
/proc/apm, misc apm_bios device etc. are created.

~Randy

[-- Attachment #2: apmonoff.patch --]
[-- Type: text/plain, Size: 662 bytes --]

--- linux/arch/i386/kernel/apm.c.org	Mon Sep 17 22:52:35 2001
+++ linux/arch/i386/kernel/apm.c	Thu Sep 27 13:15:33 2001
@@ -1672,7 +1672,7 @@
 		apm_info.realmode_power_off = 1;
 	/* User can override, but default is to trust DMI */
 	if (apm_disabled != -1)
-		apm_info.disabled = 1;
+		apm_info.disabled = apm_disabled;
 
 	/*
 	 * Fix for the Compaq Contura 3/25c which reports BIOS version 0.1
@@ -1699,8 +1699,7 @@
 	}
 
 	if (apm_info.disabled) {
-		if(apm_disabled == 1)
-			printk(KERN_NOTICE "apm: disabled on user request.\n");
+		printk(KERN_NOTICE "apm: disabled on user request.\n");
 		return -ENODEV;
 	}
 	if ((smp_num_cpus > 1) && !power_off) {

^ permalink raw reply	[flat|nested] 20+ messages in thread

* RE: apm suspend broken in 2.4.10
@ 2001-09-27 21:03 Alex Cruise
  2001-09-27 22:17 ` Randy.Dunlap
  0 siblings, 1 reply; 20+ messages in thread
From: Alex Cruise @ 2001-09-27 21:03 UTC (permalink / raw)
  To: 'Randy.Dunlap'; +Cc: 'linux-kernel@vger.kernel.org'

From: Randy.Dunlap [mailto:rddunlap@osdlab.org]

> Verified here.
> APM doesn't install if apm=on or apm=off is used in 2.4.10.
> 
> Here's a small patch for it.  With this patch, apm thread,
> /proc/apm, misc apm_bios device etc. are created.

Thanks... apm=on works now, but APM functionality itself still suffers from
the same failure as before (Resource temporarily unavailble.)

I should mention that before your patch, /dev/misc/apm_bios, /dev/apm_bios
and /proc/apm were already being created by the driver; it's going through
the motions but not delivering the goods.

-0xe1a


^ permalink raw reply	[flat|nested] 20+ messages in thread

* RE: apm suspend broken in 2.4.10
@ 2001-09-27 21:07 Alex Cruise
  0 siblings, 0 replies; 20+ messages in thread
From: Alex Cruise @ 2001-09-27 21:07 UTC (permalink / raw)
  To: 'Randy.Dunlap'; +Cc: 'linux-kernel@vger.kernel.org'

I should, however, mention that "apm --standby" seems to work as expected.
It's only the "suspend" option that says "Resource temporarily unavailable."

-0xe1a

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: apm suspend broken in 2.4.10
  2001-09-27 21:03 Alex Cruise
@ 2001-09-27 22:17 ` Randy.Dunlap
  2001-09-28  9:12   ` jc
  0 siblings, 1 reply; 20+ messages in thread
From: Randy.Dunlap @ 2001-09-27 22:17 UTC (permalink / raw)
  To: Alex Cruise; +Cc: 'linux-kernel@vger.kernel.org'

Alex Cruise wrote:
> 
> From: Randy.Dunlap [mailto:rddunlap@osdlab.org]
> 
> > Verified here.
> > APM doesn't install if apm=on or apm=off is used in 2.4.10.
> >
> > Here's a small patch for it.  With this patch, apm thread,
> > /proc/apm, misc apm_bios device etc. are created.
> 
> Thanks... apm=on works now, but APM functionality itself still suffers from
> the same failure as before (Resource temporarily unavailble.)
> 
> I should mention that before your patch, /dev/misc/apm_bios, /dev/apm_bios
> and /proc/apm were already being created by the driver; it's going through
> the motions but not delivering the goods.
> 
> -0xe1a

{little-endian n[iy]bbles ?}


Sounds like our 2.4.10's are different then.  :)
Without this patch, mine didn't create /proc/apm, register as a
misc device, or create the kapmd-idle kernel thread.
Must be a distro thingy.

Return of EAGAIN from the SUSPEND ioctl means that
send_event() failed, which means that some device driver
didn't want suspend to happen...which means that some
device driver got changed. :(

What was the last working kernel AFAUK (for this APM stuff)?

~Randy

^ permalink raw reply	[flat|nested] 20+ messages in thread

* RE: apm suspend broken in 2.4.10
@ 2001-09-27 23:56 Alex Cruise
  2001-09-28  0:10 ` Randy.Dunlap
  2001-09-28  0:52 ` Alan Cox
  0 siblings, 2 replies; 20+ messages in thread
From: Alex Cruise @ 2001-09-27 23:56 UTC (permalink / raw)
  To: 'Randy.Dunlap'; +Cc: 'linux-kernel@vger.kernel.org'

From: Randy.Dunlap [mailto:rddunlap@osdlab.org]

> > -0xe1a
> {little-endian n[iy]bbles ?}

It's just the closest I can get to my own name in hex. ;)

> Sounds like our 2.4.10's are different then.  :)

It's possible... I got mine from kernel.org, applied the preemptible-kernel
and ext3fs patches, and  compiled with RH's "kgcc" 

> Without this patch, mine didn't create /proc/apm, register as a
> misc device, or create the kapmd-idle kernel thread.
> Must be a distro thingy.

Did you have apm=on set before, or nothing at all?  Here's what I've seen so
far:

In all cases, I've got apm compiled into the kernel, not a module.

- With 2.4.10, Before your patch, with no apm= option in the kernel command
line, APM in general works, but suspend doesn't.  When I append apm=on or
apm=off to my kernel command line, APM is disabled.
- With 2.4.10, After applying your patch, apm=on no longer disables APM, but
suspend still doesn't work.

> Return of EAGAIN from the SUSPEND ioctl means that
> send_event() failed, which means that some device driver
> didn't want suspend to happen...which means that some
> device driver got changed. :(

Just for fun, I tried removing all of my loaded 2.4.10 modules one by one,
and attempting 'apm --suspend' in between, and still had the same problem
when I got down to the bare minimum (ext3 and jbd)

> What was the last working kernel AFAUK (for this APM stuff)?

I just checked, and the RH-compiled 2.4.9-0.5 doesn't suspend either.  It
appears to suffer from the same "apm=on" command-line bug too.  I'm gonna go
try the 2.4.7 from RH's "Roswell" beta now.

-0xe1a

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: apm suspend broken in 2.4.10
  2001-09-27 23:56 Alex Cruise
@ 2001-09-28  0:10 ` Randy.Dunlap
  2001-09-28  0:52 ` Alan Cox
  1 sibling, 0 replies; 20+ messages in thread
From: Randy.Dunlap @ 2001-09-28  0:10 UTC (permalink / raw)
  To: Alex Cruise; +Cc: 'linux-kernel@vger.kernel.org'

Alex Cruise wrote:
> 
> From: Randy.Dunlap [mailto:rddunlap@osdlab.org]
> 
> > Sounds like our 2.4.10's are different then.  :)
> 
> It's possible... I got mine from kernel.org, applied the preemptible-kernel
> and ext3fs patches, and  compiled with RH's "kgcc"
> 
> > Without this patch, mine didn't create /proc/apm, register as a
> > misc device, or create the kapmd-idle kernel thread.
> > Must be a distro thingy.
> 
> Did you have apm=on set before, or nothing at all?  Here's what I've seen so
> far:

I have "apm=on apm=debug".

> In all cases, I've got apm compiled into the kernel, not a module.

Same here.

> - With 2.4.10, Before your patch, with no apm= option in the kernel command
> line, APM in general works, but suspend doesn't.  When I append apm=on or
> apm=off to my kernel command line, APM is disabled.
> - With 2.4.10, After applying your patch, apm=on no longer disables APM, but
> suspend still doesn't work.
> 
> > Return of EAGAIN from the SUSPEND ioctl means that
> > send_event() failed, which means that some device driver
> > didn't want suspend to happen...which means that some
> > device driver got changed. :(
> 
> Just for fun, I tried removing all of my loaded 2.4.10 modules one by one,
> and attempting 'apm --suspend' in between, and still had the same problem
> when I got down to the bare minimum (ext3 and jbd)
> 
> > What was the last working kernel AFAUK (for this APM stuff)?
> 
> I just checked, and the RH-compiled 2.4.9-0.5 doesn't suspend either.  It
> appears to suffer from the same "apm=on" command-line bug too.  I'm gonna go
> try the 2.4.7 from RH's "Roswell" beta now.

OK, thanks for testing that.

I suspect that it's something like a single driver change (not apm,
but PM-support in a driver).  How many I/O-device drivers do you
use?  Would it be difficult to try to isolate which one may be
faulty?

~Randy

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: apm suspend broken in 2.4.10
  2001-09-27 23:56 Alex Cruise
  2001-09-28  0:10 ` Randy.Dunlap
@ 2001-09-28  0:52 ` Alan Cox
  2001-09-28  9:09   ` jc
  1 sibling, 1 reply; 20+ messages in thread
From: Alan Cox @ 2001-09-28  0:52 UTC (permalink / raw)
  To: Alex Cruise
  Cc: 'Randy.Dunlap', 'linux-kernel@vger.kernel.org'

> It's possible... I got mine from kernel.org, applied the preemptible-kernel
> and ext3fs patches, and  compiled with RH's "kgcc" 

Don't build later 2.4.x with egcs-1.1.2. At least some of the network
drivers stop working mysteriously with < gcc 2.95.3, RH 2.96-74+ or 
gcc 3.0

Its not the cause of the APM problem but be aware of it

^ permalink raw reply	[flat|nested] 20+ messages in thread

* RE: apm suspend broken in 2.4.10
@ 2001-09-28  1:50 Alex Cruise
  2001-09-28 22:05 ` Randy.Dunlap
  0 siblings, 1 reply; 20+ messages in thread
From: Alex Cruise @ 2001-09-28  1:50 UTC (permalink / raw)
  To: 'Randy.Dunlap'; +Cc: 'linux-kernel@vger.kernel.org'

From: Randy.Dunlap [mailto:rddunlap@osdlab.org]

> > I'm gonna go try the 2.4.7 from RH's "Roswell" beta now.
> OK, thanks for testing that.

2.4.7 has the apm=on bug and won't suspend either... I'm beginning to
suspect that something else is afoot, but I might as well try 2.4.2... 

Funny, with 2.4.2, "apm=on" seems to work as expected, and the first time I
tried "apm --suspend", the screen blanked but nothing else appeared to
happen.  When I hit a key, the suspend command appeared to still be running.
I switched to a different vc and did a "ps ax", it looked like it was  stuck
in the middle of trying to unmount an smbfs filesystem.

Next time I booted up, I umounted the smbfs system and did an "apm
--suspend" that appears to have shut everything down... And when I hit the
power button, it comes up again, albeit with an incredibly dim screen (a
common problem on this Dell Latitude C600).

So, from the point of view of my laptop, something important seems to have
changed between 2.4.2 and 2.4.7.

> I suspect that it's something like a single driver change (not apm,
> but PM-support in a driver).  How many I/O-device drivers do you
> use?  Would it be difficult to try to isolate which one may be
> faulty?

How would I find out what driver(s) might be vetoing my suspend request?

Here's the complete list of modules which might typically be loaded at boot:

3c59x
smbfs
lns_cp437
vfat
fat
ide-cd
cdrom
md
usb-uhci
usbcore
maestro3
sound
soundcore
ac97_codec
r128
agpgart
usb-uhci
usbcore

-0xe1a

^ permalink raw reply	[flat|nested] 20+ messages in thread

* RE: apm suspend broken in 2.4.10
@ 2001-09-28  3:03 Alex Cruise
  0 siblings, 0 replies; 20+ messages in thread
From: Alex Cruise @ 2001-09-28  3:03 UTC (permalink / raw)
  To: 'Randy.Dunlap'; +Cc: 'linux-kernel@vger.kernel.org'

The plot thickens!  Here's what I did:

In kernel/pm.c, at around line 242, I inserted these lines:

	if (status) {
		// inserted by awc

		printk( "awc: APM Suspend vetoed by: \n");
		printk( "  type = %d", dev->type );
		printk( " id = %d", dev->id );
		printk( " callback = %d", dev->callback );
		printk( " data = %d", dev->data );
		printk( " flags = %d", dev->flags );
		printk( " state = %d", dev->state );
		printk( " prev_state = %d\n", dev->prev_state );
	
		// we now return to your regularly scheduled kernel...

...and after compiling, installing, rebooting and entering "apm --suspend"
at a vc, I found this in syslog:

Sep 27 19:39:09 onus kernel: awc: APM Suspend vetoed by: 
Sep 27 19:39:09 onus kernel:   type = 1 id = 1104151299 callback =
-1072064644 data = 0 flags = 0 state = 0 prev_state = 0

1104151299 is 0x41D00303, which if you consult your include/linux/pm.h
(PM_SYS_DEV = 1, PM_SYS_KBC = 0x41d00303), would seem AFAICT to indicate
that it's the keyboard driver--or something upstream of it--who's vetoing my
suspend.  Am I crazy?

Obviously, apart from the final CR after typing "apm --suspend", I'm not
touching the keyboard before it fails.  I tried asking KLaptop (the KDE
power applet) to suspend using the mouse, and I found exactly the same debug
output repeated in syslog.

-0xe1a

^ permalink raw reply	[flat|nested] 20+ messages in thread

* RE: apm suspend broken in 2.4.10
       [not found] <6B90F0170040D41192B100508BD68CA1015A81B2@earth.infowave.co m>
@ 2001-09-28  3:31 ` Lewin A.R.W. Edwards
  0 siblings, 0 replies; 20+ messages in thread
From: Lewin A.R.W. Edwards @ 2001-09-28  3:31 UTC (permalink / raw)
  To: Alex Cruise, 'Randy.Dunlap'
  Cc: 'linux-kernel@vger.kernel.org'


>Sep 27 19:39:09 onus kernel: awc: APM Suspend vetoed by:
>Sep 27 19:39:09 onus kernel:   type = 1 id = 1104151299 callback =
>-1072064644 data = 0 flags = 0 state = 0 prev_state = 0
>
>1104151299 is 0x41D00303, which if you consult your include/linux/pm.h
>(PM_SYS_DEV = 1, PM_SYS_KBC = 0x41d00303), would seem AFAICT to indicate
>that it's the keyboard driver--or something upstream of it--who's vetoing my
>suspend.  Am I crazy?

Maybe something to do with A20 switching?


-- Lewin A.R.W. Edwards
Embedded Engineer, Digi-Frame Inc.
Work: http://www.digi-frame.com/
Tel (914) 937-4090 9am-6:30pm M-F ET
Personal: http://www.larwe.com/ http://www.zws.com/



^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: apm suspend broken in 2.4.10
  2001-09-28  0:52 ` Alan Cox
@ 2001-09-28  9:09   ` jc
  2001-09-28 10:05     ` Keith Owens
  0 siblings, 1 reply; 20+ messages in thread
From: jc @ 2001-09-28  9:09 UTC (permalink / raw)
  To: 'linux-kernel@vger.kernel.org'

On vendredi 28 septembre, 2001 à 01:52:40 +0100, Alan Cox wrote:
> Don't build later 2.4.x with egcs-1.1.2. At least some of the network
> drivers stop working mysteriously with < gcc 2.95.3, RH 2.96-74+ or 
> gcc 3.0
> 
> Its not the cause of the APM problem but be aware of it


how could i get the list of files that changed between 2.4.9 and 2.4.10
concerning apm ?

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: apm suspend broken in 2.4.10
  2001-09-27 22:17 ` Randy.Dunlap
@ 2001-09-28  9:12   ` jc
  0 siblings, 0 replies; 20+ messages in thread
From: jc @ 2001-09-28  9:12 UTC (permalink / raw)
  To: 'linux-kernel@vger.kernel.org'

> 
> What was the last working kernel AFAUK (for this APM stuff)?
> 
2.4.9

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: apm suspend broken in 2.4.10
  2001-09-28  9:09   ` jc
@ 2001-09-28 10:05     ` Keith Owens
  0 siblings, 0 replies; 20+ messages in thread
From: Keith Owens @ 2001-09-28 10:05 UTC (permalink / raw)
  To: jc; +Cc: 'linux-kernel@vger.kernel.org'

On Fri, 28 Sep 2001 11:09:23 +0200, 
jc <jcb@jcb.yi.org> wrote:
>how could i get the list of files that changed between 2.4.9 and 2.4.10
>concerning apm ?

diff -urN -I '$[ABD-Z].*\$' 2.4.9 2.4.10 > /var/tmp/patch-2.4.9-2.4.10
rm -rf /var/tmp/patches
split_patch /var/tmp/patch-2.4.9-2.4.10

Look through /var/tmp/patches for files and directories related to apm.
split_patch is

#!/usr/bin/perl -w
$out = "";
while (<>) {
	next if (/^Only/);
	next if (/^Binary/);
	if (/^diff/ || /^Index/) {
		if ($out) {
			close OUT;
		}
		(@out) = split(' ', $_);
		shift(@out) if (/^diff/);
		$out = pop(@out);
		$out =~ s:/*usr/:/:;
		$out =~ s:/*src/:/:;
		$out =~ s:^/*linux[^/]*::;
		$out =~ s:\(w\)::;
		next if ($out eq "");
		$out = "/var/tmp/patches/$out";
		$dir = $out;
		$dir =~ s:/[^/]*$::;
		print STDERR "$out\n";
		system("mkdir -p $dir");
		open(OUT, ">$out") || die("cannot open $out");
	}
	if ($out) {
		print OUT $_;
	}
}


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: apm suspend broken in 2.4.10
  2001-09-28  1:50 Alex Cruise
@ 2001-09-28 22:05 ` Randy.Dunlap
  0 siblings, 0 replies; 20+ messages in thread
From: Randy.Dunlap @ 2001-09-28 22:05 UTC (permalink / raw)
  To: Alex Cruise; +Cc: 'linux-kernel@vger.kernel.org'

Alex Cruise wrote:
> 
> 2.4.7 has the apm=on bug and won't suspend either... I'm beginning to
> suspect that something else is afoot, but I might as well try 2.4.2...
> 
> Funny, with 2.4.2, "apm=on" seems to work as expected, and the first time I
> tried "apm --suspend", the screen blanked but nothing else appeared to
> happen.  When I hit a key, the suspend command appeared to still be running.
> I switched to a different vc and did a "ps ax", it looked like it was  stuck
> in the middle of trying to unmount an smbfs filesystem.
> 
> Next time I booted up, I umounted the smbfs system and did an "apm
> --suspend" that appears to have shut everything down... And when I hit the
> power button, it comes up again, albeit with an incredibly dim screen (a
> common problem on this Dell Latitude C600).
> 
> So, from the point of view of my laptop, something important seems to have
> changed between 2.4.2 and 2.4.7.
> 
> > I suspect that it's something like a single driver change (not apm,
> > but PM-support in a driver).  How many I/O-device drivers do you
> > use?  Would it be difficult to try to isolate which one may be
> > faulty?
> 
> How would I find out what driver(s) might be vetoing my suspend request?
> 
> Here's the complete list of modules which might typically be loaded at boot:
> 
> 3c59x
> smbfs
> lns_cp437
> vfat
> fat
> ide-cd
> cdrom
> md
> usb-uhci
> usbcore
> maestro3
> sound
> soundcore
> ac97_codec
> r128
> agpgart
> usb-uhci
> usbcore


Unload some of these (that you don't really need to run)
and try "apm -s".

If that fails, unload some more of them and try again...

That would at least narrow down the search for us.

~Randy

^ permalink raw reply	[flat|nested] 20+ messages in thread

* RE: apm suspend broken in 2.4.10
@ 2001-09-28 22:30 Alex Cruise
  2001-09-28 22:31 ` Randy.Dunlap
  0 siblings, 1 reply; 20+ messages in thread
From: Alex Cruise @ 2001-09-28 22:30 UTC (permalink / raw)
  To: 'Randy.Dunlap'; +Cc: 'linux-kernel@vger.kernel.org'

From: Randy.Dunlap [mailto:rddunlap@osdlab.org]
 
> > Here's the complete list of modules which might typically 
> > be loaded at boot:
> > [ ad nausaeum ]

> Unload some of these (that you don't really need to run)
> and try "apm -s".
> If that fails, unload some more of them and try again...
> That would at least narrow down the search for us.

I already tried that... Maybe my message didn't get through :)  

>AC> Just for fun, I tried removing all of my loaded 2.4.10 modules one by
one,
>AC> and attempting 'apm --suspend' in between, and still had the same
problem
>AC> when I got down to the bare minimum (ext3 and jbd)

Anyway, it looks like something keyboard- or A20-related is vetoing my
suspend request.  Did you get my "the plot thickens" message?  It's not
appearing in the lkml archives, maybe it got lost last night.

-0xe1a

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: apm suspend broken in 2.4.10
  2001-09-28 22:30 Alex Cruise
@ 2001-09-28 22:31 ` Randy.Dunlap
  0 siblings, 0 replies; 20+ messages in thread
From: Randy.Dunlap @ 2001-09-28 22:31 UTC (permalink / raw)
  To: Alex Cruise; +Cc: 'linux-kernel@vger.kernel.org'

> > Unload some of these (that you don't really need to run)
> > and try "apm -s".
> > If that fails, unload some more of them and try again...
> > That would at least narrow down the search for us.
> 
> I already tried that... Maybe my message didn't get through :)
> 
> >AC> Just for fun, I tried removing all of my loaded 2.4.10 modules one by
> one,
> >AC> and attempting 'apm --suspend' in between, and still had the same
> problem
> >AC> when I got down to the bare minimum (ext3 and jbd)
> 
> Anyway, it looks like something keyboard- or A20-related is vetoing my
> suspend request.  Did you get my "the plot thickens" message?  It's not
> appearing in the lkml archives, maybe it got lost last night.

I saw the keyboard message, and someone else's A20 reference.
Not one from you IIRC.

~Randy

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2001-09-28 22:34 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-25 22:00 apm suspend broken in 2.4.10 jc
2001-09-26  8:44 ` Matthias Andree
2001-09-26  9:21 ` apm suspend broken in 2.4.10 , more info jc
  -- strict thread matches above, loose matches on Subject: below --
2001-09-27  0:29 apm suspend broken in 2.4.10 Alex Cruise
2001-09-27 20:36 ` Randy.Dunlap
2001-09-27 21:03 Alex Cruise
2001-09-27 22:17 ` Randy.Dunlap
2001-09-28  9:12   ` jc
2001-09-27 21:07 Alex Cruise
2001-09-27 23:56 Alex Cruise
2001-09-28  0:10 ` Randy.Dunlap
2001-09-28  0:52 ` Alan Cox
2001-09-28  9:09   ` jc
2001-09-28 10:05     ` Keith Owens
2001-09-28  1:50 Alex Cruise
2001-09-28 22:05 ` Randy.Dunlap
2001-09-28  3:03 Alex Cruise
     [not found] <6B90F0170040D41192B100508BD68CA1015A81B2@earth.infowave.co m>
2001-09-28  3:31 ` Lewin A.R.W. Edwards
2001-09-28 22:30 Alex Cruise
2001-09-28 22:31 ` Randy.Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox