LinHES Forums http://forums.linhes.org/ |
|
ACPI Wakeup Broken in R8.5? http://forums.linhes.org/viewtopic.php?f=21&t=24705 |
Page 2 of 2 |
Author: | knappster [ Sun Dec 31, 2017 9:10 pm ] |
Post subject: | Re: ACPI Wakeup Broken in R8.5? |
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. |
Author: | brfransen [ Mon Jan 01, 2018 7:58 am ] |
Post subject: | Re: ACPI Wakeup Broken in R8.5? |
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. |
Author: | knappster [ Sun May 06, 2018 5:54 am ] |
Post subject: | Re: ACPI Wakeup Broken in R8.5? |
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.
|
Author: | knappster [ Sat Mar 30, 2019 7:14 am ] |
Post subject: | Re: ACPI Wakeup Broken in R8.5? |
My pi is on Wi-Fi and the router locked up last night and so my machine did not wake. Coincidentally I saw a resolution on the mythtv forums just last night, but I cannot seem to get it to work. https://forum.mythtv.org/viewtopic.php? ... fdd#p14943 Their resolution is for ubuntu, but I tried making the same change in grub and updating with Code: # grub-mkconfig -o /boot/grub/grub.cfg But hpet still shows as an available clocksource. Any tips on how to completely disable hpet to test if it fixes my wakeup issues? Are there any concerns with disabling it? |
Author: | knappster [ Sun Mar 31, 2019 3:26 pm ] |
Post subject: | Re: ACPI Wakeup Broken in R8.5? |
On boot up I checked the kernel parameters and noticed it missing my additions. I entered them manually and ran the mythwelcome-test-wakeup.sh and it woke up as it should. Looking more deeply I see that the grub menu item for the default LinHES launcher is contained in Code: /etc/grub.d/09_mythvantge_runit_grub I think the change to the /etc/default/grub file is ignored because the menu item is not in 10_linux So I have modified the line in it and re-ran Code: # grub-mkconfig -o /boot/grub/grub.cfg Now it appears to be honoring the kernel parameters that I wanted: Code: $ cat /proc/cmdline BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=2d4db0d0-59dd-4b83-a93b-9fe98a9e8e23 ro quiet hpet=disable tsc=unstable splash udev.log-priority=3 loglevel=3 init=/sbin/runit Is there anything that I can do to make this persistent across upgrades? |
Author: | brfransen [ Sun Mar 31, 2019 3:55 pm ] |
Post subject: | Re: ACPI Wakeup Broken in R8.5? |
There isn't a way to keep your change persistent right now. I am thinking that the boot lines in /etc/grub.d/09_mythvantge_runit_grub could pull in a var from /etc/default/grub. I am guessing that wasn't done because of the risk of a bad command in /etc/default/grub could make the system not boot. |
Author: | knappster [ Sun Mar 31, 2019 5:32 pm ] |
Post subject: | Re: ACPI Wakeup Broken in R8.5? |
No worries. If I get some time I will investigate further. Maybe I can force it after bootup or just before shutdown. It is satisfying just to have this working again. I will try to keep an eye on it during upgrades. |
Author: | brfransen [ Mon Apr 01, 2019 7:55 am ] |
Post subject: | Re: ACPI Wakeup Broken in R8.5? |
To clarify you can make it persistent across boot by modifying the lines in /etc/grub.d/09_mythvantge_runit_grub and running the grub-mkconfig command. It won't be persistent across updates to the LinHES-config package. |
Page 2 of 2 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |