Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > 3rd Party Projects > Projects > Mythbuntu
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Mythbuntu
Discussions for the Mythbuntu project.

 
Thread Tools Display Modes
Old October 3rd, 2007   #1
spoky99
5 Cups of Ubuntu
 
Join Date: Sep 2007
Beans: 28
Smile acpi and mythbakend problem

I'm trying to make work the script for automatic wake-up/shutdown of mythbutu. I follow the ubuntu mythtv howto https://help.ubuntu.com/community/My...tNext/ACPIWake The acpi work (i tryed $ sudo sh -c 'echo "+00-00-00 00:05:00" > /proc/acpi/alarm' and after shutdown the computer they reboot after 5 minute) but when I set the script into mythtv-setup the computer don't estart for recording the tv.
Using one script I understand that the $time variable is write from mythtv only when the sistem goes down at the end of a programmed record, but if I manual shutdown the computer the $time variable isn't write. My local time is set to +1 hours.
I search other faq, but I don't found nothing about this problem
Someone could help me? or could suggest me one faq about this problem?

(excuse me for my bad english ]
Smile )
spoky99 is offline   Reply With Quote
Old October 6th, 2007   #2
superm1
Ubuntu Developer
 
superm1's Avatar
 
Join Date: Oct 2005
Location: Austin, TX
Beans: 2,725
Ubuntu 8.04 Hardy Heron
Re: acpi and mythbakend problem

Quote:
Originally Posted by spoky99 View Post
I'm trying to make work the script for automatic wake-up/shutdown of mythbutu. I follow the ubuntu mythtv howto https://help.ubuntu.com/community/My...tNext/ACPIWake The acpi work (i tryed $ sudo sh -c 'echo "+00-00-00 00:05:00" > /proc/acpi/alarm' and after shutdown the computer they reboot after 5 minute) but when I set the script into mythtv-setup the computer don't estart for recording the tv.
Using one script I understand that the $time variable is write from mythtv only when the sistem goes down at the end of a programmed record, but if I manual shutdown the computer the $time variable isn't write. My local time is set to +1 hours.
I search other faq, but I don't found nothing about this problem
Someone could help me? or could suggest me one faq about this problem?

(excuse me for my bad english ]
Smile )
I have a hunch that the mythtv user isn't able to execute this command due to a permissions issue.

Try this to log in as the mythtv user temporarily:

Code:
sudo -s
su mythtv
Now as the mythtv user try to issue your shutdown commands. You'll get more verbose errors/warnings.
superm1 is offline   Reply With Quote
Old October 7th, 2007   #3
spoky99
5 Cups of Ubuntu
 
Join Date: Sep 2007
Beans: 28
Re: acpi and mythbakend problem

I already resolved this problem during the test (with the visudo I give the permission to mythtv and user to shutdown the computer and execute like a root the script and other thigs)
I try to shutdown the computer from user and mythtv but in each case the $time variable was not set
I try to use also mythshutdown... (I don't know what exatly they do) the computer goes down but... $time was not write

I also miss one information the $time is corectly set only if in the mythtv-setup the date format is started and ended with '' otherwise the $time it contains only the date

now I'm trying to reinstall all the sistem with the timezone set to +0 for don't use the script

Last edited by spoky99; October 7th, 2007 at 07:04 AM..
spoky99 is offline   Reply With Quote
Old November 28th, 2007   #4
chrisork
First Cup of Ubuntu
 
Join Date: Sep 2007
Beans: 5
Ubuntu 8.04 Hardy Heron
Send a message via AIM to chrisork
Re: acpi and mythbakend problem

Hi there,

I've got similar problems. (bad english AND the correct writing of $time)

I used the same How-To. The Box starts when i write the RTC wakeup time manually, but mythbackend doesn't write it.

I use the standart Mythbuntu 7.10 - with Mythwelcome. I changed the MythWakeSet-Script as advised, but i think the $time variable isn't in the correct format.
For testing i changed "Set wakeup time command" in mythtv-setup to "echo $time > my.log"

After the automated shutdown and the manual boot, my.log says: "yyy-11-28T21:57:00"

What to do?

Chris
chrisork is offline   Reply With Quote
Old November 29th, 2007   #5
roseway
5 Cups of Ubuntu
 
roseway's Avatar
 
Join Date: Jun 2007
Beans: 30
Re: acpi and mythbakend problem

I rather suspect that there's a mistake in the section near the end of the document headed "Configure MythBackend". Surely the wakeup time format should start 'yyyy-' not 'yyy-' ?
__________________
Eric
roseway is offline   Reply With Quote
Old November 29th, 2007   #6
chrisork
First Cup of Ubuntu
 
Join Date: Sep 2007
Beans: 5
Ubuntu 8.04 Hardy Heron
Send a message via AIM to chrisork
Re: acpi and mythbakend problem

I solved the problem. I think i messed up the hwclock.sh script. Now it works - without the proposed changes when using mythwelcome.
__________________
____
Mythbuntu 8.04 @ 2.6Ghz P4 1GB RAM Nvidia 5200FX
Ubuntu 8.04 on a Toshiba Satellite 1130 Z31
chrisork is offline   Reply With Quote
Old September 4th, 2008   #7
spoky99
5 Cups of Ubuntu
 
Join Date: Sep 2007
Beans: 28
Re: acpi and mythbakend problem

maybe I found the answer form my problem but I don't know how to solve it.
Searcing one linux-timer I read this inside this article for knoppmyth
(http://www.knoppmythwiki.org/index.p...WakeupToRecord)

Problem Number 3:

If a normal shutdown -h is done, knoppmythbackend does not set the wakeup time. To fix this, you need to shutdown the frontend and set up the backend to shutdown when nothing is attached to it. This is how you must always shut down the computer for the wakeup to work.


when I make the test above I poweroff the computer using the xfce menu's button.
I read that is possible set the backend going down itself if isn't one frontend open but I don't know where is this setting-option.
Maybe that shutdown buttons in the logout menu of mythbuntu still make the correct shutdown first of the frontend and after of the backend, and this one, write-and-set the wake-up time in /proc/acpi/alarm
.
spoky99 is offline   Reply With Quote
Old September 4th, 2008   #8
deadcyclo
First Cup of Ubuntu
 
Join Date: Jul 2008
Beans: 11
Re: acpi and mythbakend problem

Quote:
Originally Posted by spoky99 View Post
I read that is possible set the backend going down itself if isn't one frontend open but I don't know where is this setting-option.
There is no specific setting for it. Just make sure you follow every single step in the guide properly.
Quote:
Originally Posted by spoky99 View Post
Maybe that shutdown buttons in the logout menu of mythbuntu still make the correct shutdown first of the frontend and after of the backend, and this one, write-and-set the wake-up time in /proc/acpi/alarm
.
Nope. you have to have mythbackend shut down for it to work.
deadcyclo is offline   Reply With Quote
Old September 7th, 2008   #9
spoky99
5 Cups of Ubuntu
 
Join Date: Sep 2007
Beans: 28
Re: acpi and mythbakend problem

[quote=deadcyclo;5728468]There is no specific setting for it. Just make sure you follow every single step in the guide properly.

I do it many time, the last time with a linux expert and... the problem was the same. ACPI work fine but the computer resume itself only if go-down itself after a planned record. If I shutdown the computer mythbackend don't write the wakeup time in /proc/acpi/alarm
(my friend test it using a pyton script)

I tried sutdown, poweroff and.. more different way for to "close" the computer. All work for shutdown the computer but no one make write the date & time of wakeup.
My be that I don't understand a banal thing, my english is not good but I read and translate every word in the how-to and I used different how-to for make it work, in the beginning I thunk was a problem of the script that was not good for ubuntu o mythbuntu.. but now I know this was not the problem.
spoky99 is offline   Reply With Quote
Old September 7th, 2008   #10
bmwman
Ubuntu Extra Shot
 
bmwman's Avatar
 
Join Date: Apr 2008
Location: Dulles, VA
Beans: 385
Ubuntu 8.04 Hardy Heron
Re: acpi and mythbakend problem

Quote:
Originally Posted by chrisork View Post
I solved the problem. I think i messed up the hwclock.sh script. Now it works - without the proposed changes when using mythwelcome.
Hello, I'm using the same How To and of coarse I have the same issue. Everything works fine for the test but when the computer actually shuts down it never comes back on. Please post your settings if you figured it out. I spend days fiddling with this thing and still doesn't work. If anyone can help I would really appreciate it.

Here is what I wrote in another thread:
Quote:
This absolutely doesn't make sense to me. Here're my settings
Backend:
Code:

Wakeup time format:: yyyy-MM-ddThh:mm:ss
Set wakeuptime Command: sudo mythshutdown --setwakeup "$time"
Server halt Command: sudo -H mythshutdown --shutdown
Pre Shutdown check-command: mythshutdown --check

Mythwelcome:
Code:

nvram-wakeup Command: /usr/bin/MythWakeSet $time
nvram-wakeup Restart Command:
Command to reboot: sudo -H shutdown -h -r now
Command to shutdown: sudo -H shutdown -h -P now

For testing i put Command to shutdown: in Mythwelcome and I have a recordind scheduled at 4:30pm - an hour ahead.
The results:
Code:

backend@backend:~$ cat /proc/acpi/alarm
2008-09-06 19:43:41

Looks perfect, right? It sets the date and time correctly.

BUT!!! When I put in Mythwelcome instead of the machine shuts off and never comes back on. Of coarse I've tried that hundred times I know it won't turn back on so turn it on manually and check the alarm:
Code:

backend@backend:~$ cat /proc/acpi/alarm
2008-00-00 19:54:52

WTF!! I spent days and it keeps doing it. It works fine for the test but when it acutally shut down, it doesn't set the alarm time properly.

Please help me fix this!
bmwman is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:45 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry