Centrafuse Carputer, CarPC & UMPC Forums

Go Back   Centrafuse Carputer, CarPC & UMPC Forums > Centrafuse General > General Centrafuse Questions

General Centrafuse Questions General questions about Centrafuse


Reply
 
LinkBack (11) Thread Tools Display Modes
Old August 27th, 2008, 10:34 AM   9 links from elsewhere to this Post. Click to view. #41 (permalink)
10 Farad - Flux Capacity
HiJack's CarPC Specs
 
HiJack's Avatar
 
Join Date: Jun 2007
Location: Miami, FL USA
Vehicle: 2003 Dodge Durango SLT renamed the HijackZX1
Posts: 1,091
HiJack will become famous soon enoughHiJack will become famous soon enough
Quote:
Originally Posted by Scott View Post
we had a user write a simple test app on a system behaving like this, and it gave him the same behaviour, had to touch the screen for his simple app to receive the resume event. So, aside from the other things you said were working on resume, I was wondering more about centrafuse type applications such as Windows Media Player. So, if you have WMP playing music, CF not loaded, then do a standby/resume, does WMP resume playing the music when coming out of standby?
Scott do you think you can post the app so I can trouble shoot my system? I have done a restore and its working perfect, but a I am getting ready to slowly install all devices and do not want to accidently have the issue and just keep installing and loose track of what caused the problem.
__________________
HiJack ZX1 CFSC
CAR PC ITEMS [50%]
INSTALL OF PC [35%]
BUG WORKOUT [10%]
INTERIOR MODS [45%]

HiJackZX1 Work Log
HiJackZX1 Website!

Please build up my REP.
HiJack is offline   Reply With Quote
Old August 27th, 2008, 12:28 PM   #42 (permalink)
1 Farad - Avg. Capacity
adrenaln's CarPC Specs
 
Join Date: Apr 2008
Location: NSW, Australia
Vehicle: 2006 Ford BF XR6 Turbo
Posts: 23
adrenaln is on a distinguished road
Here is the test app in question, a couple of points though.

1: The app is provided as is, it has no exception handling and will crash if an error occurs.
2: Run resume.exe, a window will display with the current time updated every second. Hibernate your PC. Turn your PC back on, a message box will pop up once the resume event is received from windows.

PS: Also, just conforming that your windows is set up to use the welcome screen and that fast user switching is disabled. Make sure when you are testing that you have no mouse, KB etc connected, let us know what you find.
Attached Files
File Type: zip Resume.zip (3.7 KB, 11 views)
adrenaln is offline   Reply With Quote
The Following User Says Thank You to adrenaln For This Useful Post:
Old August 27th, 2008, 12:33 PM   #43 (permalink)
1 Farad - Avg. Capacity
Notre350z's CarPC Specs
 
Join Date: Jul 2008
Location: France
Vehicle: Nissan 350Z
Posts: 24
Notre350z is on a distinguished road
I've got the same problem.
I need to touch then screen (or centrafuse ?) to wakeup centrafuse.
(even worse, i need to press forward or backward after that to hear the music since play button does nothing but it's not the subject of this post)

I've got something interesting however:
if i hibernate when sygic drive is displayed as an embedded application in centrafuse, i can see that when the pc resume sygic recovers instantaneously (but centrafuse don't). So definitly applications not waiting for the resume event can recover without problem.

I'm using an external app which is able to start a command when the resume event is fired by windows and i can see that this app receives the event only after i touch the screen.

I'll try to find a way to see if centrafuse receives the resume event before i touch the screen or not.

Maybe a stupid question but is it really needed that centrafuse makes some actions (which ones?) on suspend and resume events ?

Last edited by Notre350z; August 27th, 2008 at 01:03 PM. Reason: added last question
Notre350z is offline   Reply With Quote
Old August 27th, 2008, 12:36 PM   #44 (permalink)
1 Farad - Avg. Capacity
adrenaln's CarPC Specs
 
Join Date: Apr 2008
Location: NSW, Australia
Vehicle: 2006 Ford BF XR6 Turbo
Posts: 23
adrenaln is on a distinguished road
Quote:
Originally Posted by BGH View Post
Yeah this would be heaven sent. Any clues as to the solution?
Sorry man, cant give any clues to someone from the red camp.

Seriously though, the solution is in the form of a plugin. (Thanks David, Scott and team for an awesome (and well doco'd) SDK)

I am successfully detecting the computer's "resumption" however have ran into a couple of issues that I may need to chat to one of the flux guys about. I will spend some more time tomorrow to get my when around the issues.

Right now I'm off to bed, I've got a gutful of pi$$ from a good night out....
adrenaln is offline   Reply With Quote
The Following User Says Thank You to adrenaln For This Useful Post:
Old August 27th, 2008, 01:08 PM   #45 (permalink)
Administrator
Scott's CarPC Specs
 
Scott's Avatar
 
Join Date: Mar 2006
Location: Detroit, Michigan
Vehicle: 2006 CTS
Posts: 2,835
Scott is a splendid one to beholdScott is a splendid one to beholdScott is a splendid one to beholdScott is a splendid one to beholdScott is a splendid one to beholdScott is a splendid one to beholdScott is a splendid one to beholdScott is a splendid one to behold
excellent work adrenaln, let me know if you need any help. also you can send me an email (scottpm@fluxmedia.net) and I can give you a direct line if we need to talk...

Thanks for the plug on the new SDK. Worked forever on those docs, nice to here they were noticed...
Scott is offline   Reply With Quote
Old August 27th, 2008, 05:21 PM   1 links from elsewhere to this Post. Click to view. #46 (permalink)
1 Farad - Avg. Capacity
Notre350z's CarPC Specs
 
Join Date: Jul 2008
Location: France
Vehicle: Nissan 350Z
Posts: 24
Notre350z is on a distinguished road
I've made my investigation in the msdn documentation and i'm pretty sure that the handler you're using is wating for the message
WM_POWERBROADCAST with reason PBT_APMRESUMESUSPEND

BUT PBT_APMRESUMESUSPEND is fired only when triggered by an input (mouse,key,etc)

MSDN -> WM_POWERBROADCAST Message (Windows)

Here are the messages that centrafuse receives when suspending:

WM_POWERBROADCAST dwPowerEvent:PBT_APMQUERYSUSPEND dwData:00000001
WM_POWERBROADCAST dwPowerEvent:PBT_APMSUSPEND dwData:00000000

When resuming, centrafuse first receives this message :

WM_POWERBROADCAST dwPowerEvent:PBT_APMRESUMEAUTOMATIC dwData:00000000

Centrafuse is still frozen...

Then, the following message is received by centrafuse when i move my mouse or press a key, and then centrafuse wakes up.

WM_POWERBROADCAST dwPowerEvent:PBT_APMRESUMESUSPEND dwData:00000000

I think you could just forget the PowerModeChangedEventHandler of .Net and just track the WIN32 messages above in your WinProc function.

I mean :
PBT_APMSUSPEND => suspend
PBT_APMRESUMEAUTOMATIC => resume
PBT_APMRESUMESUSPEND => forget

What do you think ?

Last edited by Notre350z; August 27th, 2008 at 05:57 PM.
Notre350z is offline   Reply With Quote
The Following 4 Users Say Thank You to Notre350z For This Useful Post:
Old August 27th, 2008, 05:51 PM   #47 (permalink)
Administrator
Scott's CarPC Specs
 
Scott's Avatar
 
Join Date: Mar 2006
Location: Detroit, Michigan
Vehicle: 2006 CTS
Posts: 2,835
Scott is a splendid one to beholdScott is a splendid one to beholdScott is a splendid one to beholdScott is a splendid one to beholdScott is a splendid one to beholdScott is a splendid one to beholdScott is a splendid one to beholdScott is a splendid one to behold
excellent investigation. i think our users who have experienced this issue here have nailed down now that it's a .net problem. GREAT WORK EVERYONE!!!
Plugin not needed, now that we are almost sure that this is what it is, we definitely will give it a shot to use core windows messages to act on resume, instead of replying on the .NET powermodechangedevent....
Will try to have this in the next update, possibly the one after that though...
Scott is offline   Reply With Quote
Old August 27th, 2008, 06:01 PM   #48 (permalink)
10 Farad - Flux Capacity
HiJack's CarPC Specs
 
HiJack's Avatar
 
Join Date: Jun 2007
Location: Miami, FL USA
Vehicle: 2003 Dodge Durango SLT renamed the HijackZX1
Posts: 1,091
HiJack will become famous soon enoughHiJack will become famous soon enough
OMG, yeaaaaaaaaaaaaaaaaaa way to go! The resume nightmare is soon coming to a end!!!!!!!!!
__________________
HiJack ZX1 CFSC
CAR PC ITEMS [50%]
INSTALL OF PC [35%]
BUG WORKOUT [10%]
INTERIOR MODS [45%]

HiJackZX1 Work Log
HiJackZX1 Website!

Please build up my REP.
HiJack is offline   Reply With Quote
Old August 27th, 2008, 06:59 PM   #49 (permalink)
Administrator
Scott's CarPC Specs
 
Scott's Avatar
 
Join Date: Mar 2006
Location: Detroit, Michigan
Vehicle: 2006 CTS
Posts: 2,835
Scott is a splendid one to beholdScott is a splendid one to beholdScott is a splendid one to beholdScott is a splendid one to beholdScott is a splendid one to beholdScott is a splendid one to beholdScott is a splendid one to beholdScott is a splendid one to behold
i've added the code for processing the raw windows messages, it will be in the next update.

But, it is a major change, because it could completely change where cf receives the event in relation to other apps (i.e. bluetooth), etc, etc,... It's working for me, but who knows...

So...
In the next update, after running CF for the first time, an xml value will be generated in [localappdata]/centrafuse/system/config.xml that looks like:

<USENEWSUSPENDRESUME>False</USENEWSUSPENDRESUME>

Exit CF, change the value to True so it looks like:

<USENEWSUSPENDRESUME>True</USENEWSUSPENDRESUME>

Run CF, now windows raw POWERBROADCAST messages will be processed for suspend/resume, instead of the .NET POWERMODECHANGED event...

So just to be clear, if you do not manually edit the config.xml and set that value to True, Centrafuse will process suspend/resume as it always has...

I hope this works!! Again, great job everyone, especially adrenaln and notre350z, you guys rock!!
Scott is offline   Reply With Quote
The Following 2 Users Say Thank You to Scott For This Useful Post:
Old August 27th, 2008, 07:06 PM   #50 (permalink)
BGH
0.5 Farad - Min. Capacity
BGH's CarPC Specs
 
Join Date: Aug 2008
Location: Melbourne, Australia
Vehicle: 2003 VY SS Holden Ute
Posts: 5
BGH is on a distinguished road
Quote:
Originally Posted by Scott View Post
i've added the code for processing the raw windows messages, it will be in the next update.

But, it is a major change, because it could completely change where cf receives the event in relation to other apps (i.e. bluetooth), etc, etc,... It's working for me, but who knows...

So...
In the next update, after running CF for the first time, an xml value will be generated in [localappdata]/centrafuse/system/config.xml that looks like:

<USENEWSUSPENDRESUME>False</USENEWSUSPENDRESUME>

Exit CF, change the value to True so it looks like:

<USENEWSUSPENDRESUME>True</USENEWSUSPENDRESUME>

Run CF, now windows raw POWERBROADCAST messages will be processed for suspend/resume, instead of the .NET POWERMODECHANGED event...

So just to be clear, if you do not manually edit the config.xml and set that value to True, Centrafuse will process suspend/resume as it always has...

I hope this works!! Again, great job everyone, especially adrenaln and notre350z, you guys rock!!
Man this is fantastic news, this problem has really been getting on my nerves. Now the obvious question... when can we get our hands on this new version!?!?!?!
BGH is offline   Reply With Quote
Reply

Bookmarks

Tags
hibernation, music, resume, screen, touch

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
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://forums.fluxmedia.net/general-centrafuse-questions/4078-music-wont-resume-until-i-touch-screen.html
Posted By For Type Date
Road Runner locks on resume from hibernate until menu click - Page 3 - MP3Car.com This thread Refback September 21st, 2008 01:56 AM
Notre350Z :: Voir le sujet - CARPC - Ayé je me lance This thread Refback September 3rd, 2008 06:12 PM
Notre350Z :: Voir le sujet - Commande Z Store (Page 1, toutes les infos !) This thread Refback August 30th, 2008 01:24 PM
Notre350Z :: Voir le sujet - Commande Z Store (Page 1, toutes les infos !) This thread Refback August 30th, 2008 05:32 AM
Notre350Z :: Voir le sujet - Commande Z Store (Page 1, toutes les infos !) This thread Refback August 30th, 2008 05:11 AM
Notre350Z :: Voir le sujet - Commande Z Store (Page 1, toutes les infos !) This thread Refback August 30th, 2008 05:11 AM
Notre350Z :: Voir le sujet - CARPC - Ayé je me lance This thread Refback August 29th, 2008 07:52 AM
Notre350Z :: Voir le sujet - CARPC - Ayé je me lance This thread Refback August 28th, 2008 11:59 AM
Notre350Z :: Voir le sujet - CARPC - Ayé je me lance This thread Refback August 28th, 2008 09:23 AM
Notre350Z :: Voir le sujet - CARPC - Ayé je me lance This thread Refback August 28th, 2008 07:06 AM
Notre350Z :: Voir le sujet - CARPC - Ayé je me lance Post #0 Refback August 27th, 2008 05:55 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Honda Accord 03 touch screen install nintwala Project Forums 4 September 11th, 2008 07:47 PM
Closed/NoBug: Vista can't update from 626.1 to 706.1 Zerach Bug Reports 3 July 26th, 2008 10:33 PM
Centrafuse 2.0 RC4 Scott Release Information 0 June 10th, 2008 08:16 PM
Notes plug in which you use ur touch screen pen to write snow01 Plugin Development 7 January 30th, 2008 05:52 PM
Auto resume music issue when auto skin change is enabled. spope Bug Reports 3 May 18th, 2007 11:15 AM



All times are GMT -4. The time now is 08:12 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2009 Flux Media, Inc. All rights reserved.Ad Management plugin by RedTyger