I thought I'd try your latest version as in #2085 to see what's new.
It's all be fine except two things.

I think I must have run the setup script wrong (as a user, with sudo),
since sudoers got corrupted and I couldn't use sudo at all.  Fortunately
a search came to the rescue and using 'pkexec visudo' I was able to fix
it.  It turned out that all the new entries had the 'squeezeboxserver'
text missing at the start, so I fixed that.

I have then spent a day going quietly nuts over the wakeup scripts. 
There are currently 3:- spc-wakeup.sh, spc-wakeup.alt.sh, and
spc-wakeup_alt.sh.  I tried each one but have problems with all as far
as I can tell.  I'm on ubuntu 14.04 64 bit if that makes any
difference.

If I set up the wakeup script in the settings, apply and restart LMS,
all is well and I get a message like:


Code:
--------------------
    
  [14-11-02 16:56:46.5343] spc-wakeup.sh (3536) Current wake alarm is set for 
1414974000 (Mon Nov 3 00:20:00 GMT 2014).
  
--------------------


However, if I then reboot I get messages like:


Code:
--------------------
    
  [14-11-02 17:22:08.3002] spc-wakeup.sh (1909) No wake alarm set.
  [14-11-02 17:23:38.1465] spc-wakeup.sh (2024) No wake alarm set.
  
--------------------


I have made the recommended change (from
http://www.mythtv.org/wiki/ACPI_Wakeup#Disable_hwclock_updates) to
/etc/init/hwclock-save.conf to save /sys/class/rtc/rtc0/wakealarm and
restore it after setting the time.

When I look at /sys/class/rtc/rtc0/wakealarm and /proc/driver/rtc after
restarting but before rebooting all is in sync.  After a reboot
/proc/driver/rtc is still OK, but /sys/class/rtc/rtc0/wakealarm is
empty.

If I then manually run the spc-wakeup.sh script I get 'No wake alarm
set' again.  If I run the spc-wakeup.alt.sh script it seems to set it OK
the first time, but it still gets lost after a reboot.

What am I doing wrong?

My hwclock-save.conf file contains:


Code:
--------------------
    
  description   "save system clock to hardware clock"
  
  start on runlevel [06]
  
  task
  
  script
  . /etc/default/rcS
  [ "$UTC" = "yes" ] && tz="--utc" || tz="--localtime"
  [ "$BADYEAR" = "yes" ] && badyear="--badyear"
  ACPITIME=`cat /sys/class/rtc/rtc0/wakealarm`
  exec hwclock --rtc=/dev/rtc0 --systohc $tz --noadjfile $badyear
  echo "$ACPITIME" > /sys/class/rtc/rtc0/wakealarm
  end script
  
--------------------



LMS 7.9 on VortexBox Midi running Xubuntu 14.04, FLACs 16->24 bit,
44.1->192kbps. Wired Touch + EDO, coax to Musical Fidelity M1 CLiC.
Alternatively squeezelite to a bit of home-cooked code and thence to M1
CLiC using a UPNP stream. Wireless Xubuntu 14.04 laptop controls LMS via
Chromium.   Meridian Explorer USB DAC to listen via Squeezelite on
Vortexbox & other PCs as required.  Spare Touch in loft.
------------------------------------------------------------------------
PasTim's Profile: http://forums.slimdevices.com/member.php?userid=41642
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to