LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 01-31-2007, 02:39 AM   #1
bennettallan
LQ Newbie
 
Registered: Oct 2006
Distribution: Debian, Slackware
Posts: 2

Rep: Reputation: 0
Cardbus won't stay ejected during suspend


I am using a Cardbus wireless card on my Debian thinkpad. Before suspend to disk I power off the card, but as the system is powering down I see

ACPI: PCI Interrupt ...

and the wireless card comes back on, and stays on while it is suspended, wasting my battery. I am not sure why this is happening.

I have tried disabling acpid before suspending, but that does nothing. Maybe it is the [kacpid] process??

I tried disabling udevd before suspending, thinking it was hotplug that was inserting the card, but that didn't work either.

I also tried unloading the yenta_socket module but rmmod fails because the module is busy. I can't find any processes that are using it, except maybe the [pccardd] process, but I don't know how to kill that process.

I am out of ideas for troubleshooting. Any suggestions?

-Ben

Here is my shutdown script:
Code:
#!/bin/bash

# Suspend to Disk

# suspend eth0 monitor
/etc/init.d/ifplugd suspend

# take down wireless network
/sbin/ifdown --force wlan0

# remove usb modules
/sbin/rmmod uhci_hcd

# disable cardbus
/sbin/pccardctl eject

# suspend
echo -n "disk" > /sys/power/state

# bring back cardbus
/sbin/pccardctl insert

#bring back usb
/sbin/modprobe uhci_hcd

# resume eth0 monitor
/etc/init.d/ifplugd resume

# bring back wireless network
/sbin/ifup wlan0
 
Old 01-31-2007, 04:56 AM   #2
bennettallan
LQ Newbie
 
Registered: Oct 2006
Distribution: Debian, Slackware
Posts: 2

Original Poster
Rep: Reputation: 0
Fixed by unloading pcmcia module then yenta_socket, which disables the pci interrupt.

Missed pcmcia because lsmod said yenta_socket was used by 0 modules for some reason.

Stupid oversight, thanks for reading!

-Ben
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
difference between "suspend to standby" and "suspend to ram" nappaji Linux - Hardware 1 08-23-2006 08:17 PM
how to use my cardbus~~ zyzyis Linux - Hardware 2 11-05-2004 10:06 AM
how to use my cardbus ~ zyzyis Linux - Newbie 3 11-04-2004 05:42 AM
Floppy woes if ejected without umount'ing itsjustme Linux - General 25 08-09-2004 09:33 AM
FC1: New DVDRom not automounted and can not be ejected a000a Linux - Software 0 03-08-2004 01:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 11:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration