Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Problem with suspend2 and ndiswrapper

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
13 posts • Page 1 of 1
Author
Message
Jykke
Apprentice
Apprentice
Posts: 246
Joined: Fri Mar 31, 2006 3:18 pm

Problem with suspend2 and ndiswrapper

  • Quote

Post by Jykke » Sat Jun 10, 2006 7:25 am

I tried to follow the howtos but I run into initial problems with hibernation.
At the moment I am just trying it on text mode without X.
However when it runs up ndiswrapper is causing some drama.
I tried even running down the net before hibernate - I rmmod ndiswrapper
then hibernate. It powers up ok but it still has tried to autoload ndiswrapper and
this one failed miserably. Afterwards I can't rmmod it again and can't bring the net
up only reboot remains as an option.

Is there a way around this?
I also disabled ndiswrapper from /modules.autoload.d/kernel-2.6 and then
with
killall dhcpcd
rmmod ndiswrapper
hibernate

it went ok afterwards I could modprobe it and start dhcpcd, but I also needed to start all
network services separately.
Top
pem
Guru
Guru
User avatar
Posts: 390
Joined: Sun Aug 29, 2004 12:24 pm
Location: France
Contact:
Contact pem
Website

  • Quote

Post by pem » Sat Jun 10, 2006 8:58 am

Just add that to your /etc/hibernate.conf:

Code: Select all

DownInterfaces wlan0
UpInterfaces wlan0
Registered user #30505
Top
Jykke
Apprentice
Apprentice
Posts: 246
Joined: Fri Mar 31, 2006 3:18 pm

  • Quote

Post by Jykke » Sat Jun 10, 2006 10:43 am

That did not do the trick. I have a problem with loading ndiswrapper

this would be an example:
Starting suspend at Sat Jun 10 11:20:43 CEST 2006
hibernate: [01] Executing CheckLastResume ...
hibernate: [01] Executing LockFileGet ...
hibernate: [01] Executing NewKernelFileCheck ...
hibernate: [10] Executing EnsureSwsusp2Capable ...
hibernate: [11] Executing XHacksSuspendHook1 ...
hibernate: [20] Executing MiscLaunchAuxFunc1 ...
Executing echo "Good night!"...
Good night!
hibernate: [20] Executing ProgramsStop ...
hibernate: [30] Executing ServicesStop ...
* Storing ALSA Mixer Levels ... [ ok ]
* Unloading ALSA ... [ ok ]
* Unloading ALSA modules ... [ ok ]
hibernate: [50] Executing FilesystemsUnmount ...
Unmounting /mnt/store ...
hibernate: [60] Executing NetworkStop ...
* Stopping apache2 ... [ ok ]
* Unmounting network filesystems ... [ ok ]
* samba -> stop: smbd ... [ ok ]
* samba -> stop: nmbd ... [ ok ]
* Stopping sshd ... [ ok ]
* Stopping wlan0
* Bringing down wlan0
* Stopping dhcpcd on wlan0 ... [ ok ]
* Shutting down wlan0 ... [ ok ]
hibernate: [89] Executing SaveKernelModprobe ...
hibernate: [95] Executing XHacksSuspendHook2 ...
hibernate: [97] Executing ChangeToSwsuspVT ...
hibernate: [97] Executing VbetoolSaveState ...
'vbetool' utility not found. Vbetool disabled.
hibernate: [98] Executing Swsusp2ConfigSet ...
hibernate: [99] Executing DoSwsusp2 ...
hibernate: Activating suspend ...
Starting suspend at Sat Jun 10 11:23:00 CEST 2006
hibernate: [01] Executing CheckLastResume ...
hibernate: [01] Executing LockFileGet ...
hibernate: [01] Executing NewKernelFileCheck ...
hibernate: [10] Executing EnsureSwsusp2Capable ...
hibernate: [11] Executing XHacksSuspendHook1 ...
hibernate: [20] Executing MiscLaunchAuxFunc1 ...
Executing echo "Good night!"...
Good night!
hibernate: [20] Executing ProgramsStop ...
hibernate: [30] Executing ServicesStop ...
* Storing ALSA Mixer Levels ... [ ok ]
* Unloading ALSA ... [ ok ]
* Unloading ALSA modules ... [ ok ]
hibernate: [50] Executing FilesystemsUnmount ...
Unmounting /mnt/store ...
hibernate: [60] Executing NetworkStop ...
* Stopping apache2 ... [ ok ]
* Unmounting network filesystems ... [ ok ]
* samba -> stop: smbd ... [ ok ]
* samba -> stop: nmbd ... [ ok ]
* Stopping sshd ... [ ok ]
* Stopping wlan0
* Bringing down wlan0
* Stopping dhcpcd on wlan0 ... [ ok ]
* Shutting down wlan0 ... [ ok ]
hibernate: [89] Executing SaveKernelModprobe ...
hibernate: [95] Executing XHacksSuspendHook2 ...
hibernate: [97] Executing ChangeToSwsuspVT ...
hibernate: [97] Executing VbetoolSaveState ...
'vbetool' utility not found. Vbetool disabled.
hibernate: [98] Executing Swsusp2ConfigSet ...
hibernate: [99] Executing DoSwsusp2 ...
hibernate: Activating suspend ...
hibernate: [97] Executing VbetoolRestoreState ...
hibernate: [97] Executing ChangeFromSwsuspVT ...
hibernate: [91] Executing GentooModulesAutoload ...
Loading modules listed /etc/modules.autoload.d/kernel-2.6
Loading ndiswrapper
Loading evdev
Loading cx88-dvb
Loading saa7134-dvb
hibernate: [89] Executing RestoreKernelModprobe ...
hibernate: [85] Executing XHacksResumeHook2 ...
hibernate: [70] Executing ClockRestore ...
hibernate: [60] Executing NetworkStart ...
* Starting wlan0
* Configuring wireless network for wlan0
* no access points found
* Couldn't find any access points on wlan0
* Failed to configure wireless for wlan0 [ !! ]
hibernate: [30] Executing ServicesStart ...
* Loading ALSA modules ...
* Loading: snd-card-0 ... [ ok ]
* Loading: snd-seq-oss ... [ ok ]
* Loading: snd-pcm-oss ... [ ok ]
hibernate: [20] Executing MiscLaunchAuxFunc2 ...
Executing echo "Good morning!"...
hibernate: [11] Executing XHacksResumeHook1 ...
hibernate: [01] Executing NoteLastResume ... [ ok ]
* Restoring Mixer Levels ... [ ok ]
Good morning!
hibernate: [01] Executing LockFilePut ...
hibernate: [00] Executing RemoveSwsuspProcCruft ...
Resumed at Sat Jun 10 11:23:49 CEST 2006


I have tried everything. I have uncommented blacklisted modules "ndiswrapper" also the whole blacklisted unload.
Autoload modules - everything with and without.

I tried stopping the network and rmmod ndiswrapper - yet in the waking up it get errors.

I noticed that after updating to suspend2-source there is a new message in dmesg:

wlan0 (WE) : Driver using old /proc/net/wireless support, please fix driver !
ndiswrapper (iw_set_tx_power:421): setting tx_power failed (C00000BB)


I don't recall having this in the vanilla-2.15.1 kernel but I might be mistaken.
Top
pem
Guru
Guru
User avatar
Posts: 390
Joined: Sun Aug 29, 2004 12:24 pm
Location: France
Contact:
Contact pem
Website

  • Quote

Post by pem » Sat Jun 10, 2006 11:00 am

ndiswrapper is uncommented under my /etc/hibernate/blacklisted-modules. I use net-wireless/ndiswrapper-1.2-r1 and sys-kernel/suspend2-sources-2.6.16-r8. Which releases are you using?
Registered user #30505
Top
Jykke
Apprentice
Apprentice
Posts: 246
Joined: Fri Mar 31, 2006 3:18 pm

  • Quote

Post by Jykke » Sat Jun 10, 2006 11:09 am

I am using linux-2.6.16-suspend2-r7 and 1.2-r1 ndiswrapper

Do you have LoadModules auto and GentooModulesAutoload?
You probably then have UnLoadBlacklistedModules yes am I right?
Top
pem
Guru
Guru
User avatar
Posts: 390
Joined: Sun Aug 29, 2004 12:24 pm
Location: France
Contact:
Contact pem
Website

  • Quote

Post by pem » Sat Jun 10, 2006 11:14 am

I unload black listed modules but I don't depend on GentooModulesAutoload:

Code: Select all

### modules
# UnloadModules snd_via82cxxx usb-ohci
# UnloadAllModules yes
UnloadBlacklistedModules yes
LoadModules auto
# LoadModulesFromFile /etc/modules

### modules-gentoo
# GentooModulesAutoload yes
Registered user #30505
Top
Jykke
Apprentice
Apprentice
Posts: 246
Joined: Fri Mar 31, 2006 3:18 pm

  • Quote

Post by Jykke » Sat Jun 10, 2006 11:16 am

This is what I have in dmesg afterwards:

wlan0 (WE) : Driver using old /proc/net/wireless support, please fix driver !
ndiswrapper (iw_set_tx_power:421): setting tx_power failed (C00000BB)
ACPI: PCI interrupt for device 0000:00:06.0 disabled
Suspend2 2.2.5: Swapwriter: Signature found.
Suspend2 2.2.5: Resuming enabled.
Suspend2 2.2.5: Initiating a software suspend cycle.
Pages 9f-ff are Nosave.
Pages 5d0-5d1 are Nosave.
Pages 9f-ff are Nosave.
Pages 5d0-5d1 are Nosave.
Pages 9f-ff are Nosave.
Pages 5d0-5d1 are Nosave.
Suspend2: Compression enabled but no compressor name set.
20%...40%...60%...80%...100%...done.
pnp: Device 00:06 disabled.
ndiswrapper (ndiswrapper_suspend_pci:721): No pnp capabilities for pm (C00000BB); halting
ndiswrapper (set_essid:58): setting essid failed (C0010011)
ACPI: PCI interrupt for device 0000:02:0a.0 disabled
ACPI: PCI interrupt for device 0000:00:02.2 disabled
Pages 9f-ff are Nosave.
Pages 5d0-5d1 are Nosave.
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
PCI: Enabling device 0000:00:02.2 (0000 -> 0002)
ACPI: PCI Interrupt 0000:00:02.2[C] -> Link [LUS2] -> GSI 5 (level, low) -> IRQ 5
PCI: Setting latency timer of device 0000:00:02.2 to 64
usb usb1: root hub lost power or was reset
ehci_hcd 0000:00:02.2: debug port 0
PCI: cache line size of 64 is not supported by device 0000:00:02.2
ehci_hcd 0000:00:02.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
ACPI: PCI Interrupt 0000:00:04.0[A] -> Link [LKLN] -> GSI 3 (level, low) -> IRQ 3
PCI: Setting latency timer of device 0000:00:04.0 to 64
PCI: Setting latency timer of device 0000:00:08.0 to 64
ACPI: PCI Interrupt 0000:00:0b.0[A] -> Link [LSHD] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:0b.0 to 64
ACPI: PCI Interrupt 0000:02:09.0[A] -> Link [LNKB] -> GSI 5 (level, low) -> IRQ 5
ACPI: PCI Interrupt 0000:02:0a.0[A] -> Link [LNKC] -> GSI 5 (level, low) -> IRQ 5
PCI: Setting latency timer of device 0000:02:0a.0 to 64
ndiswrapper: using irq 5
pnp: Device 00:06 activated.
pnp: Failed to activate device 00:09.
pnp: Failed to activate device 00:0a.
20%...40%...<3>ndiswrapper (wrapper_worker_proc:1109): initialization failed: C0000001
60%...80%...100%...done.
Suspend2 debugging info:
- SUSPEND core : 2.2.5
- Kernel Version : 2.6.16-suspend2-r7
- Compiler vers. : 3.4
- Attempt number : 1
- Parameters : 0 32 0 1 0 0
- Overall expected compression percentage: 0.
- Swapwriter active.
Swap available for image: 126509 pages.
- Filewriter inactive.
- I/O speed: Write 57 MB/s, Read 57 MB/s.
ndiswrapper (iw_get_essid:167): getting essid failed (C0010011)
ndiswrapper (iw_get_infra_mode:239): getting operating mode failed (C0010011)
ndiswrapper (iw_get_range:1257): getting bit rates failed: C0010011
ndiswrapper (iw_get_bitrate:439): getting bitrate failed (C0010011)
ndiswrapper (set_packet_filter:999): unable to set packet filter (C0010011)
ndiswrapper (set_multicast_list:434): Unable to set multicast list (C0010011)
ndiswrapper (set_packet_filter:999): unable to set packet filter (C0010011)
ndiswrapper (set_multicast_list:434): Unable to set multicast list (C0010011)
ndiswrapper (set_packet_filter:999): unable to set packet filter (C0010011)
ndiswrapper (iw_get_essid:167): getting essid failed (C0010011)
ndiswrapper (iw_get_infra_mode:239): getting operating mode failed (C0010011)
ndiswrapper (iw_get_range:1257): getting bit rates failed: C0010011
ndiswrapper (iw_get_bitrate:439): getting bitrate failed (C0010011)
ndiswrapper (iw_get_range:1257): getting bit rates failed: C0010011
ndiswrapper (iw_set_tx_power:421): setting tx_power failed (C0010011)
ndiswrapper (set_essid:58): setting essid failed (C0010011)
ndiswrapper (iw_get_infra_mode:239): getting operating mode failed (C0010011)
ndiswrapper (iw_get_range:1257): getting bit rates failed: C0010011
ndiswrapper (set_multicast_list:434): Unable to set multicast list (C0010011)
ndiswrapper (set_packet_filter:999): unable to set packet filter (C0010011)
ndiswrapper (set_packet_filter:999): unable to set packet filter (C0010011)
ndiswrapper (set_multicast_list:434): Unable to set multicast list (C0010011)
ndiswrapper (set_packet_filter:999): unable to set packet filter (C0010011)
ndiswrapper (set_multicast_list:434): Unable to set multicast list (C0010011)
ndiswrapper (set_packet_filter:999): unable to set packet filter (C0010011)
ndiswrapper (iw_get_range:1257): getting bit rates failed: C0010011
ndiswrapper (iw_set_tx_power:421): setting tx_power failed (C0010011)
ndiswrapper (set_essid:58): setting essid failed (C0010011)
ndiswrapper (set_multicast_list:434): Unable to set multicast list (C0010011)
ndiswrapper (set_packet_filter:999): unable to set packet filter (C0010011)
ACPI: PCI Interrupt 0000:00:06.0[A] -> Link [LAUI] -> GSI 5 (level, low) -> IRQ 5
PCI: Setting latency timer of device 0000:00:06.0 to 64
intel8x0_measure_ac97_clock: measured 55581 usecs
intel8x0: clocking to 47500
Top
Jykke
Apprentice
Apprentice
Posts: 246
Joined: Fri Mar 31, 2006 3:18 pm

  • Quote

Post by Jykke » Sat Jun 10, 2006 11:19 am

One idea ... could PCI hotplug option in kernel help - I have it disabled at the moment?
Top
pem
Guru
Guru
User avatar
Posts: 390
Joined: Sun Aug 29, 2004 12:24 pm
Location: France
Contact:
Contact pem
Website

  • Quote

Post by pem » Sat Jun 10, 2006 11:24 am

mine is disabled too. So I don't think the issue comes from here.
Registered user #30505
Top
pem
Guru
Guru
User avatar
Posts: 390
Joined: Sun Aug 29, 2004 12:24 pm
Location: France
Contact:
Contact pem
Website

  • Quote

Post by pem » Sat Jun 10, 2006 11:32 am

Your trail seems interesting.

I think it comes from that:
ndiswrapper (iw_set_tx_power:421): setting tx_power failed (C00000BB)
ACPI: PCI interrupt for device 0000:00:06.0 disabled
...
ndiswrapper (ndiswrapper_suspend_pci:721): No pnp capabilities for pm (C00000BB); halting
Your card is just saying that it doesn't use plug'n pray with power management. So, I guess you could remove PNP support on your kernel (at least the ACPI part) or find a better windows driver that could handle PNP with ACPI.
Registered user #30505
Top
Jykke
Apprentice
Apprentice
Posts: 246
Joined: Fri Mar 31, 2006 3:18 pm

  • Quote

Post by Jykke » Sun Jun 11, 2006 10:29 am

No - that did not help either :( same message
Top
pem
Guru
Guru
User avatar
Posts: 390
Joined: Sun Aug 29, 2004 12:24 pm
Location: France
Contact:
Contact pem
Website

  • Quote

Post by pem » Sun Jun 11, 2006 4:33 pm

OK, so it could be an issue on the Windows' driver that you're using. It does not handle the ACPI event required to power up your card when your system wakes up from hibernation. On my laptop, for example, I don't use the driver that was provided by my manufacturer (COMPAQ). I use this one: http://cmb.phys.cwru.edu/kisner/linux/c ... l5a.tar.gz. It works nicely for my Network controller: Broadcom Corporation BCM4303 802.11b Wireless LAN Controller (rev 02). If your card owns the same chipset, give it a try. I was using the same driver on my former desktop PC with a PCI card (a WMP54G, or something like that).
Registered user #30505
Top
Jykke
Apprentice
Apprentice
Posts: 246
Joined: Fri Mar 31, 2006 3:18 pm

  • Quote

Post by Jykke » Sun Jun 11, 2006 7:42 pm

Unfortunately it's netgear 311 v3 with marvell chipset. Maybe one solution would be just buy a new one
meanwhile I however, was trying to see if I can do it under X and that looked less promising.
Top
Post Reply

13 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy