I'm running Redhat 6.0 with a 2.2.10 kernel compiled with APM support
on a Quantex H-1331 laptop.  I am using APM version 3.0beta4. 
Suspending (with "apm -s") works fine, as far as I can tell, but when I
try to resume my session, my display is totally munged with light and
dark streaks running vertically across my 1024x768 TFT laptop screen.  I
can vaguely make out my previous desktop state through the haze, but
when I try to manipulate the 
windows, nothing responds, so I assume that the kernel is crashing.  
I have set my APMD_OPTIONS to:

"-p 10 -w 5 -W -s /etc/sysconfig/presuspend -r
/etc/sysconfig/postsuspend"

Here is what I am doing in the two scripts:

presuspend:

        /sbin/cardctl suspend
        /sbin/rmmod opl3
        /sbin/rmmod uart401
        /sbin/rmmod cs4232
        /sbin/rmmod ad1848
        /sbin/rmmod sound
        /sbin/rmmod soundcore

postsuspend:

        sbin/cardctl resume

Here is various configuration info:

Section "Device"
     Identifier "MagicGraph NM2160"
     VendorName "Unknown"
     BoardName  "Unknown"
     Chipset    "NM2160"
#    IOBase     0xfea00000
#    MemBase    0xfd000000
    VideoRam    2048
#    DacSpeed   90
#    Option     "linear"
#    Option     "nolinear"
#    Option     "sw_cursor"
#    Option     "hw_cursor"
#    Option     "no_accel"
#    Option     "intern_disp"
#    Option     "extern_disp"
#    Option     "mmio"
#    Option     "no_mmio"
#    Option     "lcd_center"
#    Option     "no_stretch"
    # Insert Clocks lines here if appropriate
EndSection

Section "Screen"
    Driver      "svga"
    # Use Device "Generic VGA" for Standard VGA 320x200x256
    #Device      "Generic VGA"
    Device      "MagicGraph NM2160"
    Monitor     "My Monitor"
    Subsection "Display"
        Depth       16
        # Omit the Modes line for the "Generic VGA" device
        Modes       "1024x768"
        ViewPort    0 0
    EndSubsection
EndSection

           CPU0       
  0:     705626          XT-PIC  timer
  1:      29580          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
 10:      44407          XT-PIC  serial
 11:          4          XT-PIC  i82365
 12:      24282          XT-PIC  PS/2 Mouse
 13:          1          XT-PIC  fpu
 14:      36576          XT-PIC  ide0
 15:         88          XT-PIC  ide1
NMI:          0

cs4232                  2408   0  (unused)
uart401                 5904   0  [cs4232]
ad1848                 15824   0  [cs4232]
opl3                   11208   0  (unused)
sound                  56332   0  [cs4232 uart401 ad1848 opl3]
soundcore               2148   6  [sound]
ppp                    19884   2  (autoclean)
slhc                    4268   0  (autoclean) [ppp]
serial_cs               3696   0  (unused)
3c575_cb               17736   1 
cb_enabler              2104   2  [3c575_cb]
ds                      5740   2  [serial_cs cb_enabler]
i82365                 22256   2 
pcmcia_core            39720   0  [serial_cs cb_enabler ds i82365]

 0: Crystal audio controller
 1: Crystal audio controller
 4: cascade

0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
0280-02ff : cb_enabler
0300-0303 : MPU-401 UART
0376-0376 : ide1
0388-038b : Yamaha OPL3
03c0-03df : vga+
03e8-03ef : serial_cs
03f6-03f6 : ide0
03f8-03ff : serial(auto)
0530-0533 : Crystal audio controller
fcf0-fcf7 : ide0
fcf8-fcff : ide1

/proc/apm     
1.9 1.2 0x03 0x01 0x03 0x09 99% 198 min

cardctl config
Socket 0:
  Vcc = 5.0, Vpp1 = 0.0, Vpp2 = 0.0
  Interface type is memory and I/O
  IRQ 10 is exclusive, level mode, enabled
  Speaker output is enabled
  Function 0:
    Config register base = 0xff80
      Option = 0x5f, status = 0x08, pin = 0000
    I/O window 1: 0x03e8 to 0x03ef, 8 bit
Socket 1:
  Vcc = 3.3, Vpp1 = 3.3, Vpp2 = 3.3
  Interface type is cardbus
  IRQ 3 is exclusive, level mode, enabled
  Function 0:
    I/O window 1: 0x0280 to 0x02ff, 32 bit

Linux version 2.2.10 ([EMAIL PROTECTED]) (gcc version egcs-2.91.66
19990314/Linux (egcs-1.1.2 release)) #6 Fri Jun 18 18:28:08 PDT 1999
Detected 232113218 Hz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 231.01 BogoMIPS
Memory: 79548k/81920k available (872k kernel code, 408k reserved, 1052k
data, 40k init)
CPU: Intel Pentium II (Deschutes) stepping 00
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.35 (19990512) Richard Gooch ([EMAIL PROTECTED])
PCI: PCI BIOS revision 2.10 entry at 0xfda13
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Enabling I/O for device 00:3a
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
Starting kswapd v 1.5 
parport0: PC-style at 0x378 [SPP,ECP,ECPPS2]
Detected PS/2 Mouse Port.
Serial driver version 4.27 with no serial options enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
pty: 256 Unix98 ptys configured
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.9)
PIIX4: IDE controller on PCI bus 00 dev 39
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xfcf0-0xfcf7, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xfcf8-0xfcff, BIOS settings: hdc:pio, hdd:pio
hda: TOSHIBA MK4006MAV, ATA DISK drive
hdc: TOSHIBA CD-ROM XM-1702BC, ATAPI CDROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: TOSHIBA MK4006MAV, 3909MB w/0kB Cache, CHS=993/128/63, UDMA
hdc: ATAPI 24X CD-ROM drive, 128kB Cache
Uniform CDROM driver Revision: 2.55
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
Partition check:
 hda: hda1 hda2 < hda5 hda6 >
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 40k freed
Adding Swap: 108828k swap-space (priority -1)
Linux PCMCIA Card Services 3.0.11
  kernel build: 2.2.10 unknown
  options:  [pci] [cardbus] [apm]
Intel PCIC probe: 
  TI 1131 PCI-to-CardBus at bus 0 slot 4, mem 0x68000000, 2 sockets
    host opts [0]: [pci + serial irq] [no pci irq] [lat 168/176] [bus
32/34]
    host opts [1]: [pci + serial irq] [no pci irq] [lat 168/176] [bus
35/37]
    ISA irqs (scanned) = 3,4,7,10,11 status change on irq 11
cs: IO port probe 0x1000-0x17ff: clean.
cs: IO port probe 0x0100-0x04ff: excluding 0x220-0x22f 0x300-0x307
0x378-0x37f 0x388-0x38f 0x4d0-0x4d7
cs: IO port probe 0x0a00-0x0aff: clean.
3c59x.c:v0.99H 11/17/98 Donald Becker
http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html
cs: cb_config(bus 35): vendor 0x10b7, device 0x5157
  fn 0 bar 1: io 0x280-0x2ff
  fn 0 bar 2: mem 0xa0021000-0xa002107f
  fn 0 bar 3: mem 0xa0020000-0xa002007f
  fn 0 rom: mem 0xa0000000-0xa001ffff
cs: cb_enable(bus 35)
  bridge io map 0 (flags 0x21): 0x280-0x2ff
  bridge mem map 0 (flags 0x1): 0xa0000000-0xa0021fff
vortex_attach(bus 35, function 0, device 5157)
eth0: 3Com 3CCFE575 Cyclone CardBus at 0x280,  00:10:4b:7c:9d:9d, IRQ 3
eth0: CardBus functions mapped a0020000->c5832000
  8K byte-wide RAM 5:3 Rx:Tx split, MII interface.
  MII transceiver found at address 0, status 7809.
  Enabling bus-master transmits and whole-frame receives.
cs: memory probe 0xa0000000-0xa0ffffff: excluding 0xa0000000-0xa00fffff
tty02 at 0x03e8 (irq = 10) is a 16550A
ad1848/cs4248 codec driver Copyright (C) by Hannu Savolainen 1993-1996
VFS: Disk change detected on device ide1(22,0)
tty_io.c: process 684 (minicom) used obsolete /dev/cua2 - update
software to use /dev/ttyS2
ad1848/cs4248 codec driver Copyright (C) by Hannu Savolainen 1993-1996
CSLIP: code copyright 1989 Regents of the University of California
PPP: version 2.3.7 (demand dialling)
PPP line discipline registered.
registered device ppp0
tty_io.c: process 694 (pppd) used obsolete /dev/cua2 - update software
to use /dev/ttyS2
YM3812 and OPL-3 driver Copyright (C) by Hannu Savolainen, Rob Hooft
1993-1996
ad1848/cs4248 codec driver Copyright (C) by Hannu Savolainen 1993-1996

Reply via email to