Maui Forums

Full Version: I can't set wake on g in my nic at startup
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi.
If type:
sudo ethtool enp4s0
I have this:
Quote:Settings for enp4s0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: No
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: pg
Wake-on: d
Current message level: 0x000000ff (255)
drv probe link timer ifdown ifup rx_err tx_err
Link detected: yes
My nic support wake on g, but by default are in "d".
I have configured BIOS for wake up.

If I type:
sudo -s ethtool enp4s0 wol g
Is set to g.
But when restart computer again, is set to d.

In my older distro (same tower and same nic) by default are in g.

I try differents methods for set to g in startup, but not works, for example, this:
http://askubuntu.com/questions/47918/how...ermanently
https://gist.github.com/jevinskie/721245
http://kodi.wiki/view/HOW-TO:Set_up_Wake...ite_note-0

But I can't set defatult wake on g.

Regards.
I can solved with this:

1.- sudo nano /etc/init.d/wakeup.sh
2.- #!/bin/bash
ethtool -s eth0 wol g
3.-sudo chmod a+x /etc/init.d/wakeup.sh
4.-sudo update-rc.d wakeup.sh defaults

Note: eth0 = Name of the nic, in my case: enp4s0