作者: DIY2018 時間: 2024-12-10 17:30 標題: ubuntu wake on lan問題
有部舊機底板係EP45-UD3LR,用開win11,
wol s5 state係冇問題,一直可以用"ether-wake -i br0 xx:xx:......"開機
近來因為win11 24h2唔再support,諗住轉下ubuntu,裝完發覺用ether-wake一定要加broadcast(-b)
先可以踢醒部機,因為我用asus router所以remote只可以"ether-wake -i br0 xx:xx:......"
後來還原返win11就可以wake了
會唔會有個llan driver有bug?
作者: jwong2k04 時間: 2024-12-10 19:00
第一次見 Wake on Lan 同 OS 有關聯
作者: arschmitohren 時間: 2024-12-11 00:53
- sudo nano /lib/systemd/system/wakeonlan.service
- [Unit]
- Description=Enable Wake On Lan
- [Service]
- Type=oneshot
- ExecStart=/usr/sbin/ethtool -s <DEVICENAME> wol g
- [Install]
- WantedBy=basic.target
- sudo systemctl enable wakeonlan.service
作者: DIY2018 時間: 2024-12-11 16:34
已經係wol g
問題係一定要 broadcast magic packet 先可以wake
via HKEPC Reader for Android
作者: arschmitohren 時間: 2024-12-11 17:03
本帖最後由 arschmitohren 於 2024-12-11 17:40 編輯
要擺佢落service每次開機oneshot, 其他distro都係類似
- sudo ethtool "<DEVICE NAME>" | grep "Wake-on"
作者: DIY2018 時間: 2024-12-11 18:01
我的setting:
cat /etc/systemd/system/wol-enable.service
[Unit]
Description=Enable Wake-up on LAN
[Service]
Type=oneshot
ExecStart=/sbin/ethtool --change enp4s0 wol g
[Install]
WantedBy=basic.target
Settings for enp4s0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
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
Advertised FEC modes: Not reported
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
Link partner advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Auto-negotiation: on
master-slave cfg: preferred slave
master-slave status: slave
Port: Twisted Pair
PHYAD: 0
Transceiver: external
MDI-X: Unknown
Supports Wake-on: pumbg
Wake-on: g
Link detected: yes
作者: arschmitohren 時間: 2024-12-11 18:05
本帖最後由 arschmitohren 於 2024-12-11 18:11 編輯
我的setting:
cat /etc/systemd/system/wol-enable.service
Description=Enable Wake-up on LAN
[Ser ...
DIY2018 發表於 2024-12-11 18:01
已經係 Wake-on: g, 咁可能ubuntu問題
因為windows正常wol到
有冇試過撞下呢d settings?
https://imgur.com/LA6tC3I
我自己係用default
冇開port, 平時vpn入router再wake著部機
作者: arschmitohren 時間: 2024-12-11 18:20
有關聯呀, 唔淨止bios要set, os度都有wol settings
試過新nic driver做唔到wol要裝番舊版
24h2唔得都可能係nic driver累事

