Results 1 to 5 of 5

Thread: Maintaining power to P2P1 Network Card After Shutdown

  1. #1
    Join Date
    Dec 2015
    Beans
    61

    Maintaining power to P2P1 Network Card After Shutdown

    I am trying too implement wake on lan on a Dell Inspiron 15r (5521) laptop. I believe that the laptop is indeed receiving the packets (at least when it is on), but I think that the network card is not maintaining power after the system has been shutdown by running:
    Code:
    sudo shutdown -h now
    I am able to wake the laptop up from sleep (suspend mode). Is there a way to ensure that the NIC will have power once the system is shutdown?

  2. #2
    Join Date
    Jun 2014
    Beans
    1,207

    Re: Maintaining power to P2P1 Network Card After Shutdown

    Try answer #6 here:

    http://www.linuxquestions.org/questi...utdown-841960/

    which suggests running this command (assuming your network card is eth0):

    Code:
    ethtool -s eth0 wol g
    "Then tell the machine to shutdown and then hit it with a WOL packet and see if it wakes up. If that solves your problem then put that ethtool command somewhere it will get run automatically such as /etc/init.d/halt.local" - not sure if halt.local is the right place for Ubuntu, however...

  3. #3
    Join Date
    Dec 2015
    Beans
    61

    Re: Maintaining power to P2P1 Network Card After Shutdown

    Yeah, I've already done that. Fortunately for me, my machine has that set by default. I think the problem is that the card isn't being powered once it's off.

  4. #4
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    10,046
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Maintaining power to P2P1 Network Card After Shutdown

    Install acpitool and post:

    Code:
    sudo apt-get install acpitool
    acpitool -w
    Use the -W switch to keep power to the part of the bus that your network card is attached to.

    Laptops are tricky, since they are not designed for this Use Case. Typically WoL only works when the computer is put to sleep, not powered off. Some Dell PowerEdge servers will do either Boot-on-Lan or Wake-on-Lan if the network card is enabled (using the "g" switch), BIOS WoL is turned on, and you don't loose power. Sometimes the network card needs to set to "g" mode during each boot since some cards don't keep the setting in flash RAM. To accomplish this, put the ethtool commands in /etc/rc.local so the network card gets set to "g" mode during each boot.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  5. #5
    Join Date
    Dec 2015
    Beans
    61

    Re: Maintaining power to P2P1 Network Card After Shutdown

    Here's the output:
    Code:
       Device       S-state   Status   Sysfs node
      ---------------------------------------
      1. P0P1         S0    *disabled
      2. EHC1         S0    *enabled   pci:0000:00:1d.0
      3. XHC          S0    *enabled   pci:0000:00:14.0
      4. RP01         S3    *disabled  pci:0000:00:1c.0
      5. RP02         S0    *disabled  pci:0000:00:1c.1
      6. PEG0         S4    *disabled
      7. PEGP         S4    *disabled
      8. PEG1         S4    *disabled
      9. PEG2         S4    *disabled
      10. PEG3        S4    *disabled
      11. LID0        S3    *enabled   platform:PNP0C0D:0
    The ethernet card is p2p1 though, and I don't see it listed there. The laptop does seem to retain the "g" setting as it is set to "g" any time I check, even after reboots. Should I still put the ethtool commands in /etc/rc.local?

    I called Dell to find out if this was possible. It seems there's no way to set the laptop to keep power to the network card after an S5 shutdown. Such functionality is only available in their enterprise systems. The fact that you can wake from sleep mode is the best work around I can find.
    Last edited by howefield; January 11th, 2016 at 10:33 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •