![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
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 |
|
|
#1 |
|
5 Cups of Ubuntu
![]() Join Date: Sep 2007
Beans: 28
|
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 ) |
|
|
|
|
|
#2 | |
|
Ubuntu Developer
![]() Join Date: Oct 2005
Location: Austin, TX
Beans: 2,725
Ubuntu 8.04 Hardy Heron
|
Re: acpi and mythbakend problem
Quote:
Try this to log in as the mythtv user temporarily: Code:
sudo -s su mythtv |
|
|
|
|
|
|
#3 |
|
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.. |
|
|
|
|
|
#4 |
|
First Cup of Ubuntu
![]() |
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 |
|
|
|
|
|
#5 |
|
5 Cups of Ubuntu
![]() 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 |
|
|
|
|
|
#6 |
|
First Cup of Ubuntu
![]() |
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 |
|
|
|
|
|
#7 |
|
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 . |
|
|
|
|
|
#8 | |
|
First Cup of Ubuntu
![]() Join Date: Jul 2008
Beans: 11
|
Re: acpi and mythbakend problem
Quote:
Nope. you have to have mythbackend shut down for it to work. |
|
|
|
|
|
|
#9 |
|
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. |
|
|
|
|
|
#10 | ||
|
Ubuntu Extra Shot
![]() Join Date: Apr 2008
Location: Dulles, VA
Beans: 385
Ubuntu 8.04 Hardy Heron
|
Re: acpi and mythbakend problem
Quote:
Here is what I wrote in another thread: Quote:
|
||
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|