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

Alexei Robyn shados at shados.net
Mon Oct 5 10:57:04 CEST 2015


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/20151005/a2313cdc/attachment.html 


More information about the nix-dev mailing list