View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 32 posts ] 
Go to page 1, 2, 3  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Jul 20, 2008 5:32 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1995
Location: /dev/null
Intro
This page describes the steps needed to get ACPI Wakeup running in conjunction with Mythwelcome on your KM R5.5 box. Together they will automatically boot your machine prior to a scheduled recording and then shutdown your machine when not in use after a specified time thus saving power and insuring you never miss a show. This of course assumes RTC wakeup alarms are supported in the BIOS of your motherboard. You'll be hard pressed to find a modern motherboard that doesn't support this option. I'm using an old A7N8X-VM that's from 2003 and it works on it.

Using Mythwelcome
As I mentioned, the scripts that drive the shutdown/startup work in conjunction with Mythwelcome which maybe unfamiliar to some users. Here is my nickel tour of mythwelcome:

Image

As you can see, mythwelcome shows lots of relevent info including, the current date/time, the current status of the box (idle, recording, flagging commericial, transcoding, etc.), the next scheduled recording, and when it will occur, and in this case a countdown until it shuts the machine off. It also lets you know if there are any conflicts (although this isn't depicted in the screenshot above), and may display additional info that I haven't seen too.

Aside from starting the frontend like the only button shows, you can also hit the menu button (the M key on the keyboard) if you want to lock the auto shutdown featyre so that the box is up indefinitely (or at least until you unlock it), manually force a mythfilldatabase, manually force a shutdown, or simply exit to the KM desktop.

Image

To me, that lock feature is little redundant since all you need to do is leave your frontend running and none of the auto shutdown stuff will happen -- remember auto shutdown only happens when mythwelcome is running. Therefore, when you're ready to power down the box, simply exit out to mythwelcome it'll shut the machine down assuming:

1) No shows are queued to record in the time you specify (read on for this setting).
2) The count down timer reaches 0 (again you specify an idle time to shutdown).
3) No frontend boxes are connected.
4) No jobs are in progress (commercial flagging, transcoding, etc.).

More importantly, it will automatically power on your machine before a queued program is due to record (you specify how far in advance it waits to turn on).

As #3 above states, mythwelcome is smart enough to know if other frontend machines on your network are hitting the backend server; in this case, it will not shutdown unless the frontend machine(s) is finished using the backend (i.e. you shut it down or exit mythfront-end on that machine). If you leave a frontend connected and idle, the mythwelcome will NOT shut the backend machine down.

Credit Where Credit is Due
Nearly all the content below came from this wiki page. A little bit came from mythtv.org wiki too. I know that some people like to see highly detailed writeups with screenshots and as some of you know, writing these sorts of documents "HOWTOs" is my way of giving back to the KM community.

Testing ACPI Wakeup Before Modifying Your KM Box
Assuming you have a functional KM install (guide was written and tested with R5.5), test your computer's ability to boot without modifiying anything with one exception. Cesman recently posted the following in tjc's R5.5 Hints:

cesman wrote:
Slight boobery on my part...
Code:
update-rc.d acpid start 12 2 3 4 5 . stop 88 0 1 6 .
Do this as root and acpid will work. If your BIOS/motherboard supports it, when you press the power button, the system will work off appropriately.


Prior to executing that, my PC would not wakeup. Therefore, go ahead and do it.

Code:
 # update-rc.d acpid start 12 2 3 4 5 . stop 88 0 1 6 .


Then test the mythwelcome wakeup on your machine:
Code:
$ mythwelcome-test-wakeup.sh


Which should return:
Code:
Computer set to start in 4 minutes
Execute the following command
shutdown -h now


Now manually issues the shutdown command it instructed you to do and wait the 4 minutes.

Code:
$ sudo shutdown -h now


If the box doesn't turn on automatically, there are a number of reasons why it might not work. Have a look at both of the wiki pages I mentioned in the top of the post (particularly the mythtv.org wiki page, in a section entitled, "Fussy BIOS.")

If it continues to fail depsite your efforts, your hardware might not support this and you can consider using the alternative nvram-wakeup method described on this wiki page.

Enable Mythwelcome
After you complete these steps, your box will boot to Mythwelcome. From there you can start the frontend. For the ACPI wakeup to work, you must exit your frontend and allow mythwelcome to handle everything including manually shutting down your box. If you manually enter a shutdown command, or shutdown the box from the frontend menu, you risk the machine not booting automatically (this depends on whether or not your recording schedule has changed since the last time the shutdown scripts ran).

To setup mythwelcome, simply modify your .fluxbox/apps so that mythwelcome starts:

Code:
$ nano /home/mythtv/.fluxbox/apps


Comment out the current line that reads "[startup] {mythfrontend}" simply by putting a number sign (#) in front of it. Now under that line, type the following, "[startup] {mythwelcome}" and save the file (ctrl-x).

Here is what that section in mine looks like for your reference:

Code:
#[startup] {mythfrontend}
[startup] {mythwelcome}


Now we'll configure mythwelcome via this command:
Code:
 $ mythwelcome --setup


Make the following changes so it looks like this and then exit:

Code:
Command to Set Wakeup Time: /usr/local/bin/mythwelcome-set-alarm.sh --settime $time
Wakeup Time Format: time_t
nvram-wakeup Restart Command: <<<LEAVE IT BLANK>>>
Command to reboot: /sbin/reboot
Command to shutdown: /sbin/poweroff
Command to run Xterm: xterm
Command to start the Frontend: /usr/bin/mythfrontend


Image

For reference, you'll find the default R5.5 values at the end of this post in case you want to revert to them.

Reconfigure Mythtv to use MythWelcome

First exit your frontend, stop your backend, and run mythtv-setup:

Code:
# /etc/init.d/mythtv-backend stop
$ mythtv-setup


Now to go General>5th page and configure as follows:

Code:
Wakeup time format: yyyy-MM-dd:hh:mm
Command to set Wakeup Time: /usr/bin/mythshutdown --setwakeup $time
Server Halt Command: sudo /usr/bin/mythshutdown --shutdown
Pre-shutdown Check Command: /usr/bin/mythshutdown --check


Image

Blank out your Startup command.
I recommend that you leave the checkbox for "Block shutdown before client connected" UNCHECKED. If you check it, and your box automatically boots up, it WILL NOT shutdown until you start the frontend. This can be a pain if you're on vacation or away from your home for several days as the box will stay up. Just know that you should give the Idle time before shutdown setting a larger number in case you boot the box, then get distracted and are unable to enter the frontend before it shutsdown.

The next three settings can be whatever you like. These are just what I'm using. Consider your startup before record time carefully if you haven't modified your file system on your /myth partition. Every 30 times your system boots, a disk check is forced via fsck. Depending on the size of your drive, this can take a while. Before I switched my /myth to XFS, this check took 15-20 minutes on my 500 gig partition. Take this into account when selecting a wake up time, you might lose the first 5-20 minutes of your program!

What's XFS you ask? See these threads:

XFS: How and Why - Create an XFS partition
How to Defragment XFS Partitions and Keep Them That Way
XFS Maintenance - Read if You're New to XFS (teaches you how to use xfs_repair which is like fsck for XFS)

Again, for your reference, you'll find the default R5.5 values at the end of this post in case you want to revert to them. Save the settings and exit mythtv-setup.

Restart the backend and restart X to insure that mythwelcome starts using this command:

Code:
# /etc/init.d/myth-backend start
$ pkill xinit


If everything worked right, your machine should have restarted X and you should see Mythwelcome.

That's it, enjoy!

Appendix

As promised here are the out-of-the-box settings:

Image
Image

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Last edited by graysky on Mon Sep 08, 2008 2:39 pm, edited 8 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 21, 2008 1:45 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 695
Location: Germany
Nice walkthrough!

I put a link on the wiki back to here for people who prefer more details and screenshots.

Allen

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 07, 2008 7:14 pm 
Offline
Joined: Thu Feb 23, 2006 8:59 pm
Posts: 19
Just a minor typo: under where you stop the backend, it should say mythtv-backend stop, not myth-backend stop.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 08, 2008 2:39 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1995
Location: /dev/null
kofila wrote:
Just a minor typo: under where you stop the backend, it should say mythtv-backend stop, not myth-backend stop.


Fixed, thanks!

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
PostPosted: Sun Jan 17, 2010 7:50 am 
Offline
Joined: Wed Jan 13, 2010 9:39 am
Posts: 19
Tried this with R6, but got a problem. Mythwelcome works well and auto shutdown, but computer doesnt boot for a scheduled recording.

graysky wrote:
Code:
$ mythwelcome-test-wakeup.sh


Which should return:
Code:
Computer set to start in 4 minutes
Execute the following command
shutdown -h now
^That worked just fine and computer boots to fronted (set it to boot there automatically from "i" options).
Should this work at all on R6? Is there some settings I need to change to get it working?

Gonna try one thing found on forums. Changing --setwakeup to --settime.
http://knoppmyth.net/phpBB2/viewtopic.p ... cpi+wakeup


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 17, 2010 8:30 am 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
I ran across this problem a while ago. The shutdown file is wrong. If you look for mythwelcome on the LinHES flyspray you'll find the correct script.

Lets see: Ah here it its

Chris

_________________
Version:R8
Intel C2D 7400, Nvidia 5600 via HDMI to Samsung B37B650TW (PAL), Asus P5QL-E mobo, 4Gb PC6400 DDR2 ram, Samsung Spinpoint 500 Gb & 1Tb drive, Nova-HD-S2 (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 17, 2010 11:41 am 
Offline
Joined: Wed Jan 13, 2010 9:39 am
Posts: 19
So I just put the scripts on the right folder (usr/LH/bin?) and change the settings? Did that, but didnt work really right. Mythwelcome didn't autoshutdown when there was something scheduled (time till scheduling was bigger than time set in the settings). The clock just stops at 10 seconds for a minute or something like that and then starts it again. When theres nothing scheduled it works just fine. I tried to schedule a show and shutdown from mythtvs menu but computer didnt boot up for recording. Did I do something wrong?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 17, 2010 12:57 pm 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
That should have been it - as long as you followed the instructions exactly.

The location and the correct commands are inside the file you downloaded (commented out at the beginning of the file). Use them rather than the instructions above as they might be different.

The other option I thought you might want to try is run a full system upgrade using pacman, as this issue has been closed by cecil. Which may well iron out your problem with mythwelcome.

_________________
Version:R8
Intel C2D 7400, Nvidia 5600 via HDMI to Samsung B37B650TW (PAL), Asus P5QL-E mobo, 4Gb PC6400 DDR2 ram, Samsung Spinpoint 500 Gb & 1Tb drive, Nova-HD-S2 (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 17, 2010 2:53 pm 
Offline
Joined: Wed Jan 13, 2010 9:39 am
Posts: 19
^Ye I took the commands from the file like it was told on the other read or flyspray comments. Ill try that full system upgrade.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 17, 2010 2:59 pm 
Offline
Joined: Wed Jan 13, 2010 9:39 am
Posts: 19
Turns out I already upgraded system earlier and looks like theres nothing to upgrade. Any other ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 18, 2010 3:19 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 695
Location: Germany
If the countdown starts, stops and then restarts, it might be that something is causing the prechecks to fail before shutdown.

I suggest you try running mythwelcome from the command line with the verbose option (mythwelcome -v all) and see what the output is.

The other place to look is the backend log file, but I would try the mythwelcome verbose output first.

Allen

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 18, 2010 10:17 am 
Offline
Joined: Wed Jan 13, 2010 9:39 am
Posts: 19
alien wrote:
I suggest you try running mythwelcome from the command line with the verbose option (mythwelcome -v all) and see what the output is.
OKey. I dont understand anything about it so here you go :
Code:
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
2010-01-18 17:52:03.734 DPMS is disabled.
2010-01-18 17:52:03.741 Empty LocalHostName.
2010-01-18 17:52:03.741 Using localhost value of mythtv
2010-01-18 17:52:03.756 New DB connection, total: 1
2010-01-18 17:52:03.762 Connected to database 'mythconverg' at host: localhost
2010-01-18 17:52:03.763 Closing DB connection named 'DBManager0'
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
2010-01-18 17:52:03.765 Primary screen 0.
2010-01-18 17:52:03.766 Connected to database 'mythconverg' at host: localhost
2010-01-18 17:52:03.767 Using screen 0, 1280x1024 at 0,0
2010-01-18 17:52:03.799 MSqlQuery: SELECT data FROM settings WHERE value = 'Lang
uage' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.801 MSqlQuery: SELECT data FROM settings WHERE value = 'GuiV
idModeResolution' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.802 MSqlQuery: SELECT data FROM settings WHERE value = 'GuiV
idModeRefreshRate' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.803 MSqlQuery: SELECT data FROM settings WHERE value = 'GuiV
idModeRefreshRate' AND hostname IS NULL;
2010-01-18 17:52:03.806 MSqlQuery: SELECT data FROM settings WHERE value = 'GuiV
idModeForceAspect' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.808 MSqlQuery: SELECT data FROM settings WHERE value = 'GuiV
idModeForceAspect' AND hostname IS NULL;
2010-01-18 17:52:03.810 MSqlQuery: SELECT data FROM settings WHERE value = 'Disp
laySizeResolution' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.811 MSqlQuery: SELECT data FROM settings WHERE value = 'Disp
laySizeResolution' AND hostname IS NULL;
2010-01-18 17:52:03.812 MSqlQuery: SELECT data FROM settings WHERE value = 'Disp
laySizeWidth' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.814 MSqlQuery: SELECT data FROM settings WHERE value = 'Disp
laySizeWidth' AND hostname IS NULL;
2010-01-18 17:52:03.815 MSqlQuery: SELECT data FROM settings WHERE value = 'Disp
laySizeHeight' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.816 MSqlQuery: SELECT data FROM settings WHERE value = 'Disp
laySizeHeight' AND hostname IS NULL;
2010-01-18 17:52:03.818 MSqlQuery: SELECT data FROM settings WHERE value = 'TVVi
dModeResolution' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.819 MSqlQuery: SELECT data FROM settings WHERE value = 'TVVi
dModeRefreshRate' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.821 MSqlQuery: SELECT data FROM settings WHERE value = 'TVVi
dModeForceAspect' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.822 MSqlQuery: SELECT data FROM settings WHERE value = 'VidM
odeResolution0' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.823 MSqlQuery: SELECT data FROM settings WHERE value = 'VidM
odeResolution0' AND hostname IS NULL;
2010-01-18 17:52:03.825 MSqlQuery: SELECT data FROM settings WHERE value = 'VidM
odeWidth0' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.826 MSqlQuery: SELECT data FROM settings WHERE value = 'VidM
odeHeight0' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.828 MSqlQuery: SELECT data FROM settings WHERE value = 'TVVi
dModeResolution0' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.829 MSqlQuery: SELECT data FROM settings WHERE value = 'TVVi
dModeRefreshRate0' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.830 MSqlQuery: SELECT data FROM settings WHERE value = 'TVVi
dModeForceAspect0' AND hostname = 'mythtv' ;
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
2010-01-18 17:52:03.833 max_width: 1280 max_height: 1024
2010-01-18 17:52:03.834 MSqlQuery: SELECT data FROM settings WHERE value = 'UseV
ideoModes' AND hostname = 'mythtv' ;
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
2010-01-18 17:52:03.836 Primary screen 0.
2010-01-18 17:52:03.838 MSqlQuery: SELECT data FROM settings WHERE value = 'RunF
rontendInWindow' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.838 Using screen 0, 1280x1024 at 0,0
2010-01-18 17:52:03.839 MSqlQuery: SELECT data FROM settings WHERE value = 'Styl
e' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.847 MSqlQuery: SELECT data FROM settings WHERE value = 'Them
e' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.848 No theme dir: /root/.mythtv/themes/Retro
2010-01-18 17:52:03.870 Switching to square mode (Retro)
2010-01-18 17:52:03.871 MSqlQuery: SELECT data FROM settings WHERE value = 'GuiO
ffsetX' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.873 MSqlQuery: SELECT data FROM settings WHERE value = 'GuiO
ffsetY' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.874 MSqlQuery: SELECT data FROM settings WHERE value = 'GuiR
esolution' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.875 MSqlQuery: SELECT data FROM settings WHERE value = 'GuiR
esolution' AND hostname IS NULL;
2010-01-18 17:52:03.877 MSqlQuery: SELECT data FROM settings WHERE value = 'GuiW
idth' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.878 MSqlQuery: SELECT data FROM settings WHERE value = 'GuiH
eight' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.880 MSqlQuery: SELECT data FROM settings WHERE value = 'Menu
Theme' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.882 MSqlQuery: SELECT data FROM settings WHERE value = 'QtFo
ntBig' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.883 MSqlQuery: SELECT data FROM settings WHERE value = 'QtFo
ntMedium' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.885 MSqlQuery: SELECT data FROM settings WHERE value = 'QtFo
ntSmall' AND hostname = 'mythtv' ;
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
2010-01-18 17:52:03.915 MSqlQuery: SELECT data FROM settings WHERE value = 'Them
ePainter' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.916 Using the OpenGL painter
mythtv: could not connect to socket
mythtv: No such file or directory
2010-01-18 17:52:03.917 lirc_init failed for mythtv, see preceding messages
2010-01-18 17:52:03.918 JoystickMenuClient Error: Joystick disabled - Failed to
read /root/.mythtv/joystickmenurc
2010-01-18 17:52:03.947 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = 'UP' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.949 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = 'DOWN' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.950 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = 'LEFT' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.952 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = 'RIGHT' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.953 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = 'SELECT' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.955 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = 'ESCAPE' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.956 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = 'MENU' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.957 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = 'INFO' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.959 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = 'PAGEUP' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.960 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = 'PAGEDOWN' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.962 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = 'PREVVIEW' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.963 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = 'NEXTVIEW' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.964 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = 'HELP' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.966 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = 'EJECT' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.967 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = '0' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.968 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = '1' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.970 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = '2' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.971 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = '3' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.973 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = '4' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.974 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = '5' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.975 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = '6' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.977 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = '7' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.978 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = '8' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.979 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Global' AND action = '9' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.981 MSqlQuery: SELECT data FROM settings WHERE value = 'QtFo
nTweak' AND hostname = 'mythtv' ;
2010-01-18 17:52:03.982 MSqlQuery: SELECT data FROM settings WHERE value = 'QtFo
nTweak' AND hostname IS NULL;
2010-01-18 17:52:03.984 MSqlQuery: SELECT data FROM settings WHERE value = 'Hide
MouseCursor' AND hostname = 'mythtv' ;
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
2010-01-18 17:52:04.778 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Welcome' AND action = 'STARTXTERM' AND hostname = 'mythtv' ;
2010-01-18 17:52:04.779 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Welcome' AND action = 'SHOWSETTINGS' AND hostname = 'mythtv' ;
2010-01-18 17:52:04.780 MSqlQuery: SELECT keylist, description FROM keybindings
WHERE context = 'Welcome' AND action = 'STARTSETUP' AND hostname = 'mythtv' ;
2010-01-18 17:52:04.781 MSqlQuery: SELECT data FROM settings WHERE value = 'Play
BoxTransparency' AND hostname = 'mythtv' ;
2010-01-18 17:52:04.782 MSqlQuery: SELECT data FROM settings WHERE value = 'Them
eFontSizeType' AND hostname = 'mythtv' ;
2010-01-18 17:52:04.823 XMLParse::LoadTheme using /usr/share/mythtv/themes/defau
lt/welcome-ui.xml
2010-01-18 17:52:04.943 MSqlQuery: SELECT data FROM settings WHERE value = 'LCDS
erverHost' AND hostname = 'mythtv' ;
2010-01-18 17:52:04.944 MSqlQuery: SELECT data FROM settings WHERE value = 'LCDS
erverHost' AND hostname IS NULL;
2010-01-18 17:52:04.945 MSqlQuery: SELECT data FROM settings WHERE value = 'LCDS
erverPort' AND hostname = 'mythtv' ;
2010-01-18 17:52:04.946 MSqlQuery: SELECT data FROM settings WHERE value = 'LCDS
erverPort' AND hostname IS NULL;
2010-01-18 17:52:04.948 MSqlQuery: SELECT data FROM settings WHERE value = 'LCDE
nable' AND hostname = 'mythtv' ;
2010-01-18 17:52:04.949 MSqlQuery: SELECT data FROM settings WHERE value = 'Reco
rdPreRoll' AND hostname = 'mythtv' ;
2010-01-18 17:52:04.950 MSqlQuery: SELECT data FROM settings WHERE value = 'Reco
rdPreRoll' AND hostname IS NULL;
2010-01-18 17:52:04.952 MSqlQuery: SELECT data FROM settings WHERE value = 'idle
WaitForRecordingTime' AND hostname = 'mythtv' ;
2010-01-18 17:52:04.953 MSqlQuery: SELECT data FROM settings WHERE value = 'idle
WaitForRecordingTime' AND hostname IS NULL;
2010-01-18 17:52:04.954 MSqlQuery: SELECT data FROM settings WHERE value = 'Time
Format' AND hostname = 'mythtv' ;
2010-01-18 17:52:04.955 MSqlQuery: SELECT data FROM settings WHERE value = 'Myth
WelcomeDateFormat' AND hostname = 'mythtv' ;
2010-01-18 17:52:04.957 MSqlQuery: SELECT data FROM settings WHERE value = 'idle
TimeoutSecs' AND hostname = 'mythtv' ;
2010-01-18 17:52:04.958 MSqlQuery: SELECT data FROM settings WHERE value = 'idle
TimeoutSecs' AND hostname IS NULL;
2010-01-18 17:52:04.960 MSqlQuery: SELECT data FROM settings WHERE value = 'Mast
erServerIP' AND hostname = 'mythtv' ;
2010-01-18 17:52:04.961 MSqlQuery: SELECT data FROM settings WHERE value = 'Mast
erServerIP' AND hostname IS NULL;
2010-01-18 17:52:04.962 MSqlQuery: SELECT data FROM settings WHERE value = 'Mast
erServerPort' AND hostname = 'mythtv' ;
2010-01-18 17:52:04.963 MSqlQuery: SELECT data FROM settings WHERE value = 'Mast
erServerPort' AND hostname IS NULL;
2010-01-18 17:52:04.964 MythSocket(97008e0:12): new socket
2010-01-18 17:52:04.965 MSqlQuery: SELECT data FROM settings WHERE value = 'WOLb
ackendReconnectWaitTime' AND hostname = 'mythtv' ;
2010-01-18 17:52:04.967 MSqlQuery: SELECT data FROM settings WHERE value = 'WOLb
ackendConnectRetry' AND hostname = 'mythtv' ;
2010-01-18 17:52:04.968 MSqlQuery: SELECT data FROM settings WHERE value = 'WOLb
ackendConnectRetry' AND hostname IS NULL;
2010-01-18 17:52:04.969 Connecting to backend server: 127.0.0.1:6543 (try 1 of 5
)
2010-01-18 17:52:04.969 MythSocket(9700aa0:13): new socket
2010-01-18 17:52:04.969 MythSocket(9700aa0:13): attempting connect() to (127.0.0
.1:6543)
2010-01-18 17:52:04.970 MythSocket(9700aa0:13): state change Idle -> Connected
2010-01-18 17:52:04.971 write -> 13 21      MYTH_PROTO_VERSION 40
2010-01-18 17:52:04.971 read  <- 13 13      ACCEPT[]:[]40
2010-01-18 17:52:04.972 Using protocol version 40
2010-01-18 17:52:04.972 write -> 13 20      ANN Monitor mythtv 0
2010-01-18 17:52:04.977 read  <- 13 2       OK
2010-01-18 17:52:04.977 MythSocket(97008e0:12): attempting connect() to (127.0.0
.1:6543)
2010-01-18 17:52:04.978 MythSocket(97008e0:12): state change Idle -> Connected
2010-01-18 17:52:04.978 write -> 12 20      ANN Monitor mythtv 1
2010-01-18 17:52:04.982 read  <- 12 2       OK
2010-01-18 17:52:04.982 MythSocket: readyread thread start
2010-01-18 17:52:04.983 MythSocket(97008e0:12): UpRef: 1
2010-01-18 17:52:04.984 MSqlQuery: SELECT cardid FROM capturecard ORDER BY cardi
d
2010-01-18 17:52:04.984 write -> 13 36      QUERY_REMOTEENCODER 65[]:[]GET_STATE
2010-01-18 17:52:04.985 read  <- 13 1       0
2010-01-18 17:52:04.986 write -> 13 36      QUERY_REMOTEENCODER 66[]:[]GET_STATE
2010-01-18 17:52:04.986 read  <- 13 1       0
2010-01-18 17:52:04.987 write -> 13 36      QUERY_REMOTEENCODER 67[]:[]GET_STATE
2010-01-18 17:52:04.987 read  <- 13 1       0
2010-01-18 17:52:04.988 write -> 13 36      QUERY_REMOTEENCODER 68[]:[]GET_STATE
2010-01-18 17:52:04.988 read  <- 13 1       0
2010-01-18 17:52:04.989 write -> 13 36      QUERY_REMOTEENCODER 69[]:[]GET_STATE
2010-01-18 17:52:04.989 read  <- 13 1       0
2010-01-18 17:52:04.990 write -> 13 19      QUERY_GETALLPENDING
2010-01-18 17:52:04.990 read  <- 13 566     0[]:[]1[]:[]Kaikki rakastavat Raymon
dia[]:[][]:[]Morsiuskutsut. Marien ja Debran sukset menev� taas kerran ristiin,
ja mahalasku on eitt��t�edess� Amerikkalainen komediasarja. 7. tuotantokausi. (2
1')[]:[]Movie[]:[]65004[]:[]4[]:[]Nelonen[]:[]Nelonen[]:[][]:[]0[]:[]0[]:[]12638
28000[]:[]1263829800[]:[]0[]:[]0[]:[]0[]:[]mythtv[]:[]65[]:[]0[]:[]0[]:[]1[]:[]-
3[]:[]12[]:[]1[]:[]15[]:[]6[]:[]1263828000[]:[]1263829800[]:[]0[]:[]0[]:[]Defaul
t[]:[]0[]:[][]:[][]:[][]:[]1263829793[]:[]0.000000[]:[]1900-01-01[]:[]0[]:[]Defa
ult[]:[]0[]:[]0[]:[]Default[]:[]0[]:[]0[]:[]0
2010-01-18 17:52:05.356 mythshutdown --startup returned: 1
2010-01-18 17:52:05.357 MSqlQuery: SELECT data FROM settings WHERE value = 'Auto
StartFrontend' AND hostname = 'mythtv' ;
2010-01-18 17:52:05.358 MSqlQuery: SELECT cardid FROM capturecard ORDER BY cardi
d
2010-01-18 17:52:05.358 write -> 13 36      QUERY_REMOTEENCODER 65[]:[]GET_STATE
2010-01-18 17:52:05.359 read  <- 13 1       0
2010-01-18 17:52:05.359 write -> 13 36      QUERY_REMOTEENCODER 66[]:[]GET_STATE
2010-01-18 17:52:05.359 read  <- 13 1       0
2010-01-18 17:52:05.359 write -> 13 36      QUERY_REMOTEENCODER 67[]:[]GET_STATE
2010-01-18 17:52:05.360 read  <- 13 1       0
2010-01-18 17:52:05.360 write -> 13 36      QUERY_REMOTEENCODER 68[]:[]GET_STATE
2010-01-18 17:52:05.360 read  <- 13 1       0
2010-01-18 17:52:05.360 write -> 13 36      QUERY_REMOTEENCODER 69[]:[]GET_STATE
2010-01-18 17:52:05.360 read  <- 13 1       0
2010-01-18 17:52:05.360 write -> 13 19      QUERY_GETALLPENDING
2010-01-18 17:52:05.361 read  <- 13 566     0[]:[]1[]:[]Kaikki rakastavat Raymon
dia[]:[][]:[]Morsiuskutsut. Marien ja Debran sukset menev� taas kerran ristiin,
ja mahalasku on eitt��t�edess� Amerikkalainen komediasarja. 7. tuotantokausi. (2
1')[]:[]Movie[]:[]65004[]:[]4[]:[]Nelonen[]:[]Nelonen[]:[][]:[]0[]:[]0[]:[]12638
28000[]:[]1263829800[]:[]0[]:[]0[]:[]0[]:[]mythtv[]:[]65[]:[]0[]:[]0[]:[]1[]:[]-
3[]:[]12[]:[]1[]:[]15[]:[]6[]:[]1263828000[]:[]1263829800[]:[]0[]:[]0[]:[]Defaul
t[]:[]0[]:[][]:[][]:[][]:[]1263829793[]:[]0.000000[]:[]1900-01-01[]:[]0[]:[]Defa
ult[]:[]0[]:[]0[]:[]Default[]:[]0[]:[]0[]:[]0
2010-01-18 17:52:11.275 MythSocket(97008e0:12): socket is readable
2010-01-18 17:52:11.275 MythSocket(97008e0:12): cb->readyRead()
2010-01-18 17:52:11.275 read  <- 12 51      BACKEND_MESSAGE[]:[]SHUTDOWN_COUNTDO
WN 50[]:[]empty
2010-01-18 17:52:11.275 MythEvent: SHUTDOWN_COUNTDOWN 50
2010-01-18 17:52:15.593 MythSocket(97008e0:12): socket is readable
2010-01-18 17:52:15.593 MythSocket(97008e0:12): cb->readyRead()
2010-01-18 17:52:15.593 read  <- 12 84      BACKEND_MESSAGE[]:[]RECORDING_LIST_C
HANGE DELETE 65003 2010-01-18T17:49:30[]:[]empty
2010-01-18 17:52:15.593 MythEvent: RECORDING_LIST_CHANGE DELETE 65003 2010-01-18
T17:49:30
2010-01-18 17:52:15.611 MythSocket(97008e0:12): socket is readable
2010-01-18 17:52:15.611 MythSocket(97008e0:12): cb->readyRead()
2010-01-18 17:52:15.611 read  <- 12 84      BACKEND_MESSAGE[]:[]RECORDING_LIST_C
HANGE DELETE 65003 2010-01-18T17:49:32[]:[]empty
2010-01-18 17:52:15.611 MythEvent: RECORDING_LIST_CHANGE DELETE 65003 2010-01-18
T17:49:32
2010-01-18 17:52:15.617 MythSocket(97008e0:12): socket is readable
2010-01-18 17:52:15.617 MythSocket(97008e0:12): cb->readyRead()
2010-01-18 17:52:15.617 read  <- 12 84      BACKEND_MESSAGE[]:[]RECORDING_LIST_C
HANGE DELETE 65004 2010-01-18T17:49:35[]:[]empty
2010-01-18 17:52:15.617 MythEvent: RECORDING_LIST_CHANGE DELETE 65004 2010-01-18
T17:49:35
2010-01-18 17:52:15.618 MythSocket(97008e0:12): socket is readable
2010-01-18 17:52:15.618 MythSocket(97008e0:12): cb->readyRead()
2010-01-18 17:52:15.618 read  <- 12 84      BACKEND_MESSAGE[]:[]RECORDING_LIST_C
HANGE DELETE 65004 2010-01-18T17:49:37[]:[]empty
2010-01-18 17:52:15.618 MythEvent: RECORDING_LIST_CHANGE DELETE 65004 2010-01-18
T17:49:37
2010-01-18 17:52:15.725 MythWelcome received a RECORDING_LIST_CHANGE event
2010-01-18 17:52:15.725 MythWelcome received a RECORDING_LIST_CHANGE event
2010-01-18 17:52:15.725             [deferred to pending handler]
2010-01-18 17:52:15.725 MythWelcome received a RECORDING_LIST_CHANGE event
2010-01-18 17:52:15.725             [deferred to pending handler]
2010-01-18 17:52:15.725 MythWelcome received a RECORDING_LIST_CHANGE event
2010-01-18 17:52:15.725             [deferred to pending handler]
2010-01-18 17:52:16.226 MSqlQuery: SELECT cardid FROM capturecard ORDER BY cardi
d
2010-01-18 17:52:16.227 write -> 13 36      QUERY_REMOTEENCODER 65[]:[]GET_STATE
2010-01-18 17:52:16.227 read  <- 13 1       0
2010-01-18 17:52:16.227 write -> 13 36      QUERY_REMOTEENCODER 66[]:[]GET_STATE
2010-01-18 17:52:16.227 read  <- 13 1       0
2010-01-18 17:52:16.227 write -> 13 36      QUERY_REMOTEENCODER 67[]:[]GET_STATE
2010-01-18 17:52:16.227 read  <- 13 1       0
2010-01-18 17:52:16.228 write -> 13 36      QUERY_REMOTEENCODER 68[]:[]GET_STATE
2010-01-18 17:52:16.228 read  <- 13 1       0
2010-01-18 17:52:16.228 write -> 13 36      QUERY_REMOTEENCODER 69[]:[]GET_STATE
2010-01-18 17:52:16.228 read  <- 13 1       0
2010-01-18 17:52:19.481 MSqlQuery: SELECT data FROM settings WHERE value = 'UseA
rrowAccels' AND hostname = 'mythtv' ;
2010-01-18 17:52:19.482 MSqlQuery: SELECT data FROM settings WHERE value = 'Popu
pHeightPadding' AND hostname = 'mythtv' ;
2010-01-18 17:52:19.483 MSqlQuery: SELECT data FROM settings WHERE value = 'Popu
pHeightPadding' AND hostname IS NULL;
2010-01-18 17:52:19.484 MSqlQuery: SELECT data FROM settings WHERE value = 'Popu
pWidthPadding' AND hostname = 'mythtv' ;
2010-01-18 17:52:19.484 MSqlQuery: SELECT data FROM settings WHERE value = 'Popu
pWidthPadding' AND hostname IS NULL;
2010-01-18 17:52:19.616 MythSocket(97008e0:12): socket is readable
2010-01-18 17:52:19.616 MythSocket(97008e0:12): cb->readyRead()
2010-01-18 17:52:19.616 read  <- 12 84      BACKEND_MESSAGE[]:[]RECORDING_LIST_C
HANGE DELETE 65003 2010-01-18T17:49:30[]:[]empty
2010-01-18 17:52:19.616 MythEvent: RECORDING_LIST_CHANGE DELETE 65003 2010-01-18
T17:49:30
2010-01-18 17:52:19.753 MythWelcome received a RECORDING_LIST_CHANGE event
2010-01-18 17:52:20.255 MSqlQuery: SELECT cardid FROM capturecard ORDER BY cardi
d
2010-01-18 17:52:20.256 write -> 13 36      QUERY_REMOTEENCODER 65[]:[]GET_STATE
2010-01-18 17:52:20.256 read  <- 13 1       0
2010-01-18 17:52:20.256 write -> 13 36      QUERY_REMOTEENCODER 66[]:[]GET_STATE
2010-01-18 17:52:20.256 read  <- 13 1       0
2010-01-18 17:52:20.256 write -> 13 36      QUERY_REMOTEENCODER 67[]:[]GET_STATE
2010-01-18 17:52:20.257 read  <- 13 1       0
2010-01-18 17:52:20.257 write -> 13 36      QUERY_REMOTEENCODER 68[]:[]GET_STATE
2010-01-18 17:52:20.258 read  <- 13 1       0
2010-01-18 17:52:20.258 write -> 13 36      QUERY_REMOTEENCODER 69[]:[]GET_STATE
2010-01-18 17:52:20.258 read  <- 13 1       0
2010-01-18 17:52:21.276 MythSocket(97008e0:12): socket is readable
2010-01-18 17:52:21.276 MythSocket(97008e0:12): cb->readyRead()
2010-01-18 17:52:21.276 read  <- 12 51      BACKEND_MESSAGE[]:[]SHUTDOWN_COUNTDO
WN 40[]:[]empty
2010-01-18 17:52:21.276 MythEvent: SHUTDOWN_COUNTDOWN 40
2010-01-18 17:52:22.010 MythSocket(9700aa0:13): DownRef: -1
2010-01-18 17:52:22.010 MythSocket(9700aa0:13): state change Connected -> Idle
2010-01-18 17:52:22.010 MythSocket(9700aa0:-1): delete socket
2010-01-18 17:52:22.010 MythSocket(97008e0:12): DownRef: 0
2010-01-18 17:52:22.012 MythSocket(97008e0:12): DownRef: -1
2010-01-18 17:52:22.013 MythSocket(97008e0:12): state change Connected -> Idle
2010-01-18 17:52:22.013 MythSocket(97008e0:-1): delete socket
2010-01-18 17:52:22.045 MythSocket: readyread thread exit


Btw a weird thing happened yesterday. I was testing if it would boot up for recording so I had a record scheduled for 23:30, but nothing happened and I didnt touch the computer after that. When clock is 02:00 computer boots up. Why did this happen?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 19, 2010 2:19 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 695
Location: Germany
Unfortunately, there is only 20s of output. I see it count down 50, 40, and that is it. The logs when the countdown restarts would probably be more interesting.

I did see a mythshudown returned a 1 which is transcoding. Do you have a stuck transcoding job? You can check in the Info->Jobs in the frontend. If there is one, you will need to delete it.

Otherwise, I would retry capturing the output, but put it in a file so you get all of it. I.e.:
Code:
mythwelcome -v all > output.txt

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 19, 2010 2:32 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 695
Location: Germany
Teemu wrote:
Btw a weird thing happened yesterday. I was testing if it would boot up for recording so I had a record scheduled for 23:30, but nothing happened and I didnt touch the computer after that. When clock is 02:00 computer boots up. Why did this happen?
My guess is a timezone issue. Check the following:

- "date" returns correct local time
- "date -u" returns correct UTC time
- "hwclock --show" returns the correct local time
- /etc/rc.conf has HARDWARECLOCK="UTC" and the correct TIMEZONE
- The BIOS time is the correct UTC time

Cheers,

Allen

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 19, 2010 1:29 pm 
Offline
Joined: Wed Jan 13, 2010 9:39 am
Posts: 19
There were not jobs stuck on transcoding. I made the output file --> http://pastebin.ca/1757809 . Here is the ouput from different time commands:

Code:
[mythtv@mythtv ~]$ date
Tue Jan 19 21:18:01 EET 2010
[mythtv@mythtv ~]$ date -u
Tue Jan 19 19:18:04 UTC 2010
[mythtv@mythtv ~]$ hwclock --show
Tue 19 Jan 2010 09:18:07 PM EET  -0.078209 seconds
Rc.conf file has Hardwareclock set to UTC and timezone was right. Havnt checked bios yet. Should it be UTC?

Small offtopic question.What does this mean:
Code:
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Severals of those messages comes when I launch firefox and when I used that mythwelcome -v all command. That mythwelcome also gave these messages>
Code:
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
mythtv: could not open config file /home/mythtv/.lircrc
mythtv: No such file or directory
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
QServerSocket: failed to bind or listen to the socket
Xlib:  extension "Generic Event Extension" missing on display ":0.0".


Edit: Timeszone was right didnt just see it first in the file. :D


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ] 
Go to page 1, 2, 3  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu