LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-09-2016, 04:01 PM   #1
robo731
LQ Newbie
 
Registered: Jan 2016
Posts: 6

Rep: Reputation: Disabled
Wake on Lan: Maintaining Power to Network Card After Shutdown


I am trying to implement wake on lan on a Dell Inspiron 15r (5521) laptop running Ubuntu Server. 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). Also, there is no option in the BIOS for wake on lan. I have contacted Dell though, and they told me that it should still work. I believe that the card is connected via PCI. Is there a way to ensure that the NIC will have power once the system is shutdown?
 
Old 01-10-2016, 07:50 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Welcome to LQ!

Please install ethtool if you don't already have it.
Then tell us the outputs of the following commands
Code:
sudo  ethtool  eth0 | grep -i Wake
cat  /sys/class/net/eth0/device/power/wakeup
 
Old 01-10-2016, 09:18 AM   #3
robo731
LQ Newbie
 
Registered: Jan 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
I already have it. In my case it's p2p1 though, not eth0. Here's the output of the first command:
Code:
        Supports Wake-on: pumbg
        Wake-on: g
Here's the output of the second:
Code:
enabled
 
Old 01-10-2016, 09:35 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
These results look good.

But WOL also needs to be enabled in the BIOS, I know you said
Quote:
here is no option in the BIOS for wake on lan
but I think you might need to look harder: it might be called "PCI Power up", "Allow PCI wake up event" or "Boot from PCI/PCI-E". according to the useful WOL archwiki here

Please take another look in your BIOS settings, make changes one at a time, keeping notes.

You'll probably know you have the right setting when you can see a light next to your ethernet socket even when the machine is "powered off".

Also, on my system, I have to be root when I send the WOL magic packet. Otherwise, it just doesn't work.
 
Old 01-10-2016, 09:57 AM   #5
robo731
LQ Newbie
 
Registered: Jan 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
Unfortunately, I don't think the option exists in the BIOS for this machine. It's running InsydeH20 Setup Utility, the version is A14. Here is a list of the 5 menus and the options therein:
  1. Main
    • System Time
    • System Date
    • *various greyed out info*
  2. Advance
    • Intel(R)SpeedStep
    • Virtualization
    • Integrated NIC
    • USB Emulation
    • USB Wake Support
    • Sata Operation
    • Adapter Warnings
    • Function Ket Behavior
    • Miscellaneous Devices
      • External USB Ports
      • USB Debug
  3. Security
    • Admin Password
    • System Password
    • HDD Password
    • Password Change
    • Computrace
  4. Boot
    • LEGACY BOOT: (greyed out)
    • UEFI BOOT:
    • Secure Boot
    • Load Legacy Option Rom
    • Boot List Option
    • Add Boot Option
  5. Exit

When I looked up InsydeH20, I saw a lot of links about "unlocking hidden settings." Threads like that didn't seem too promising though.

Since it's a laptop, there is no light by the port unfortunately.

Needing to be root is interesting, but I am sending the magic packets from a Windows system and it worked from sleep mode. So that probably isn't it.

Last edited by robo731; 01-10-2016 at 09:58 AM.
 
Old 01-10-2016, 10:13 AM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
InsydeH20
Ugggh! I had that BIOS once, and struggled with it. It seemed to hate linux. It was on a Sony.

Anyway I see a useful setting under USB wake support. Try enabling that. It might also power your NIC
Anything under "Integrated NIC"?

Boot.... "Boot list option"?

"load legacy option ROM"? - I am pretty sure you have to disable "secure boot" for this to be enable-able.

Quote:
Since it's a laptop, there is no light by the port unfortunately.
It's there on my laptop (Lenovo, I have learned).
 
Old 01-10-2016, 11:54 AM   #7
robo731
LQ Newbie
 
Registered: Jan 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
I've tried USB Wake Support. Unfortunately, it didn't help, it's only for mouse and keyboard, etc...

There's no sub-menu for Integrated NIC. It can either be enabled or disabled. I have it set to enabled.

Unfortunately, it doesn't look like there's a light, it's a dell though, not a Lenovo.

I feel like there must be a way to keep the NIC powered after a shutdown. If it's working in sleep mode, that must mean that the NIC is powered in sleep mode. Is there a way to modify some power settings or power states such that the NIC will still have power after a shutdown?
 
Old 01-10-2016, 04:09 PM   #8
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Sorry we aren't making much progress.

As far as I can remember, the last time I encountered an InsydeH20 BIOS I set it to boot to "legacy boot", but getting it to do this was quite difficult as that BIOS hides settings unless you know some magic keystrokes, which I have, of course, now forgotten. That Sony laptop went to the dump some years ago.

It's stupid, I know.

Maybe a search on linux InsydeH20 wake on lan BIOS or similar will help you.

I am running Debian 8 on most of my PCs. Maybe try booting a live-CD of that and see if that works for your WOL needs.

Best wishes.
 
Old 01-10-2016, 07:52 PM   #9
robo731
LQ Newbie
 
Registered: Jan 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
It's okay. I really appreciate your help. No one else has really responded on any other forums.

The option to do legacy boot is available in my BIOS. It is not currently enabled however. Would that somehow help with WOL?

There are various modded BIOS available to unlock all the settings in InsydeH20 BIOS. I'm going to make a thread on Bios-mods to see if any of these mods would reveals setting helpful for WOL.
 
Old 01-10-2016, 09:00 PM   #10
robo731
LQ Newbie
 
Registered: Jan 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-11-2016, 02:45 AM   #11
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Thanks for the follow-up.
It looks like wake from sleep is the only option that is available to you.
 
Old 02-15-2016, 04:08 PM   #12
thinman
LQ Newbie
 
Registered: Feb 2016
Posts: 10

Rep: Reputation: Disabled
Question

i would like to know if these would work both for Ubuntu and Linux Lite?



i'm planning to do on it as i'm interested to learn about the network stuff
 
Old 04-24-2018, 04:16 PM   #13
WSmart
Member
 
Registered: Oct 2009
Posts: 34

Rep: Reputation: 0
ERP reset

I had this issue with a RTL8111 chip on a ga-970 mainboard where the network adapter lost power in power down. Mine also didn’t have power in suspend. I finally resolve it by toggling the bios ERP feature which explicitly says it will disable wol when enabled. It wasn’t enabled, but enabling it toggled some of the other options and wol started working as it should after I toggled ERP back to disable and once again enabled PME wakeup. One thing to look for is you should see an activity light on the modem for that machine, if the Ethernet still has power.

Be real, be sober.

Last edited by WSmart; 04-24-2018 at 04:18 PM. Reason: Note: Just posting for reference.
 
  


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
[SOLVED] Automatic Shutdown of Multiple Servers on One LAN in Case of Power Failure polinux Linux - Server 4 03-30-2012 09:18 AM
[SOLVED] Wake on Lan doesn't work after Linux shutdown allanwiese Linux - General 8 12-30-2010 08:33 AM
How does Wake-On-Lan response to the power down? lchxr Linux - Networking 3 11-09-2008 05:11 PM
wake on lan magic packet does not wake. albean Linux - Networking 1 06-30-2007 03:57 PM
Wake on Lan - Link on b4 power up, No Link light after shutdown? Mark007 Linux - Networking 0 11-20-2004 08:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:19 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