View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 18 posts ] 
Go to page Previous  1, 2

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Dec 31, 2017 9:10 pm 
Offline
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 453
Alright, I've uninstalled and removed the dkms driver and removed dkms altogether. After a reboot followed by a shutdown, Wake On LAN still works.

Code:
sudo ethtool eth0
Settings for eth0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: Symmetric
        Advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        MDI-X: Unknown
        Supports Wake-on: pg
        Wake-on: g
        Current message level: 0x000060e4 (24804)
                               link ifup rx_err tx_err hw wol
        Link detected: yes


"Wake-on: g" represents that it is setup to wake up on magic packets. Thanks for the quick turnaround.


Top
 Profile  
 
PostPosted: Mon Jan 01, 2018 7:58 am 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1095
Location: SC
Ok, thanks. You can change your repos back to release if you want. I am going to let these updates soak on my test systems for a few days and will then push them to release.


Top
 Profile  
 
PostPosted: Sun May 06, 2018 5:54 am 
Offline
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 453
Closing the loop on this, here is the line I added to /usr/LH/bin/mythwelcome-set-alarm.sh
Code:
/home/mythtv/piwol.sh $1


/home/mythtv/piwol.sh contains:
Code:
#!/bin/bash
epoch=$1
pidate="$(/usr/bin/date --d @$epoch '+%H:%M %D')"
echo ${pidate}
ssh pi@192.168.0.205 "/home/pi/clearat.sh"
ssh pi@192.168.0.205 "echo '/home/pi/wol.sh' | at ${pidate}"


192.168.0.205 is my raspberry pi and an ssh key is setup for authentication. The two scripts on the pi are:
/home/pi/clearat.sh
Code:
for i in `atq | awk '{print $1}'`;do atrm $i;done

and /home/pi/wol.sh
Code:
wakeonlan XX:XX:XX:XX:XX:XX
where XX:XX:XX:XX:XX:XX is the MAC address of my LinHES box.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ] 
Go to page Previous  1, 2



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu