[Nix-dev] How do I enable wake-on-LAN?

Yasuaki Kudo yasu at yasuaki.com
Mon Oct 5 17:38:37 CEST 2015


Hi,

Thank you for your reply – we raised a ticket https://github.com/NixOS/nixpkgs/issues/10237

At Tokyo Nixos Meetup monthly meeting today, Eric and I worked on this and we came up with a temporary fix that involves adding below line in my root crontab.

@reboot /run/current-system/sw/bin/ethtool -s enp2s0 wol g

However, we look forward to the perminant solution 😊

Cheers,
Yasu
Tokyo





From: Alexei Robyn
Sent: Monday, October 5, 2015 5:57 PM
To: nix-dev at lists.science.uu.nl
Subject: Re: [Nix-dev] How do I enable wake-on-LAN?


That line looks fine... have you confirmed you able to manually enable WOL using ethtool? Also, some BIOS' will ignore the OS and revert to their own setting for WOL enable/disable at each boot, so check there as well.
 
 
On Mon, Oct 5, 2015, at 01:05 AM, Joel Moberg wrote:
The manual for configuration options links to the sources. You can look at https://github.com/NixOS/nixpkgs/blob/2702f01ee91b264e623ed762c34f3f2d390b3987/nixos/modules/services/networking/wakeonlan.nix
 
There it looks like powerManagem.enable needs to be true. Other than this I have few ideas, you had WOL enabled on this interface before?
 
On Sun, Oct 4, 2015 at 3:42 PM, <yasu at yasuaki.com> wrote:
Hello,
 
I am trying to enable wake-on-LAN on my PC so I added below line to /etc/nixos/configuration.nix
services.wakeonlan.interfaces = [ { interface = "enp2s0"; method = "magicpacket"; }] ;

However, I think it is still disabled after nixos-rebuild switch  , the status-of Wake-on 'd' for disabled.
What am I doing wrong?

Settings for enp2s0:
Supported ports: [ TP MII ]
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: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes


 
_______________________________________________
nix-dev mailing list
nix-dev at lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev
 
_______________________________________________
nix-dev mailing list
nix-dev at lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev
 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20151006/0ed56eb8/attachment.html 


More information about the nix-dev mailing list