[mythtv-users] ACPI wakeup reset

Michelle Dupuis support at ocg.ca
Mon Jul 16 22:57:54 UTC 2007


Ok...I'm getting closer.  My testing was as root, so now I'm testing as
mythtv user.  My mythtv setup has this as the shutdown script:
sudo sh -c 'echo $time > /proc/acpi/alarm' 

However, when I try (logged in as mythtv) to run the above (with a real date
time)I get:
bash: /proc/acpi/alarm: Permission denied

So...I checked my /etc/sudoers and I see these two lines (which should allow
the mythtv user to access acpi/alarm):
Cmnd_Alias MYTHDORA
/usr/share/mythdora/dorabackup,/usr/share/mythdora/mythdorasetup.pl,/sbin/se
rvice,/bin/mount,/bin/chmod,/bin/umount,/sbin/chkconfig,/usr/share/mythdora/
killbackend.sh,/usr/bin/k9copy,/usr/bin/wlassistant,/proc/acpi/alarm
ALL ALL=(ALL) NOPASSWD: MYTHDORA

Why would I still get a password prompt when mythtv user is trying to write
to /proc/acpi/alarm ?

Thanks,
MD
> -----Original Message-----
> From: mythtv-users-bounces at mythtv.org 
> [mailto:mythtv-users-bounces at mythtv.org] On Behalf Of David Watkins
> Sent: Monday, July 16, 2007 6:23 PM
> To: Discussion about mythtv
> Subject: Re: [mythtv-users] ACPI wakeup reset
> 
> On 16/07/07, Michelle Dupuis <support at ocg.ca> wrote:
> > > -----Original Message-----
> > > From: mythtv-users-bounces at mythtv.org 
> > > [mailto:mythtv-users-bounces at mythtv.org] On Behalf Of 
> David Watkins
> > > Sent: Monday, July 16, 2007 5:44 PM
> > > To: Discussion about mythtv
> > > Subject: Re: [mythtv-users] ACPI wakeup reset
> > >
> > > On 16/07/07, Michelle Dupuis <support at ocg.ca> wrote:
> > > >
> > > >
> > > > I've been playing with ACPI wakeup and now have it working from 
> > > > the command line.  Of course, I've wiped out the time Myth had
> > > written to
> > > > the alarm, so I now need to reset it.
> > > >
> > > > Is there a way to force Myth to rewrite the wakeup time to
> > > the ACPI?
> > > > Will it automatically update after the next record cycle?
> > >
> > > Normally it's updated as part of the mythbackend shutdown script.
> > >
> > > >As well, the original wakeup time  had stars in it 
> ("-**-12") but I
> > > can't find what they mean.
> > >
> > > They might mean 'every month'.  Some BIOS allow you to specify 
> > > wakeup month, day and time;  some day and time; and some only the 
> > > time.
> > > _______________________________________________
> > > mythtv-users mailing list
> > > mythtv-users at mythtv.org
> > > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> > >
> >
> > I tried a normal shutdown, but the acpi time did not change.  I 
> > checked my setup, and there is no myth shutdown script set in the 
> > mythtv-setup settings.
> >
> > Should I set it to something?
> 
> What do you mean by a normal shutdown?  You have to enable 
> shutdown on idle in mythtv-setup.  Then when mythtv detects 
> that it is idle it first runs the shutdown script that you 
> configure and then issues the halt command.
> 
> If you have wakeup working from the command line then use 
> that command as the shutdown script.  You have to configure 
> the pattern for the time parameter that gets inserted.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users



More information about the mythtv-users mailing list