Maui Forums
I can't set wake on g in my nic at startup - Printable Version

+- Maui Forums (https://forums.mauilinux.org)
+-- Forum: Maui Support (https://forums.mauilinux.org/forumdisplay.php?fid=74)
+--- Forum: Plasma Desktop (https://forums.mauilinux.org/forumdisplay.php?fid=84)
+--- Thread: I can't set wake on g in my nic at startup (/showthread.php?tid=24059)



I can't set wake on g in my nic at startup - wonder - 27th October 2016

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-can-i-enable-wake-on-lan-permanently
https://gist.github.com/jevinskie/721245
http://kodi.wiki/view/HOW-TO:Set_up_Wake-on-LAN_for_Ubuntu#cite_note-0

But I can't set defatult wake on g.

Regards.


RE: I can't set wake on g in my nic at startup - wonder - 28th October 2016

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