Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Fri Nov 24, 2017 1:15 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 599 posts ]  Go to page Previous 136 37 38 39 40 Next
Author Message
 Post subject: Re: micro_evtd
PostPosted: Fri Apr 17, 2009 3:35 am 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
Looks good to me. The complier warnings are okay, they just relate to the debug output; except that of 934. This is an odd one as I do not see that in my builds. This more be due to complier differences. I will take a look at this. If you can leave this running in this state for 24+hours and make sure you do not get an Expired timer message then it looks like it is working okay. I assume amule daemon was loaded?

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: micro_evtd
PostPosted: Sun Apr 19, 2009 12:30 am 
Offline
Regular Member

Joined: Tue Nov 27, 2007 3:19 pm
Posts: 217
Location: Dresden, Germany
lb_worm wrote:
If you can leave this running in this state for 24+hours and make sure you do not get an Expired timer message then it looks like it is working okay.


Tried
Code:
nohup ./micro_evtd -c 1>24htest.out 2>24htest.err &

but almost no output goes to either one of these files. Only "0" piped into 24htest.out after the "Message from syslogd", everything else is missing (compared to the output in my previous posting).
There was a problem in the past regarding the console output of your testing code...do we have the same issue here again?

lb_worm wrote:
I assume amule daemon was loaded?


Correct!

_________________
LS Pro v1:
  • Freelink (Debian etch), kernel: 2.6.16.57-lsp_eabi-dh_v3, gigabit network (9k jumbo frames)
  • running: mt-daapd (aka firefly), smb, amule, vsftpd, mysql, rsnapshot, micro_evtd testing ;)
  • upcoming: ampache (+ coherence), aria2, slimrat, apache, streamripper (record what my soundbridge is playing)...


Top
   
 Post subject: Re: micro_evtd
PostPosted: Sun Apr 19, 2009 8:31 am 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
You are correct. Looks like I bust the command pipe again???

I have uploaded corrections for the temp sampling. I was not using signed temp values so the cooling was not working correctly. I have had this version running for a few of now and the delayed standby cycles round okay now.

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: micro_evtd
PostPosted: Sun Apr 19, 2009 8:08 pm 
Offline
Regular Member

Joined: Tue Nov 27, 2007 3:19 pm
Posts: 217
Location: Dresden, Germany
lb_worm wrote:
You are correct. Looks like I bust the command pipe again???


Ok, so I will wait for a fix?
I do not want to leave my PC (ssh client) running for 24 hours...it's in my bedroom. ;)

_________________
LS Pro v1:
  • Freelink (Debian etch), kernel: 2.6.16.57-lsp_eabi-dh_v3, gigabit network (9k jumbo frames)
  • running: mt-daapd (aka firefly), smb, amule, vsftpd, mysql, rsnapshot, micro_evtd testing ;)
  • upcoming: ampache (+ coherence), aria2, slimrat, apache, streamripper (record what my soundbridge is playing)...


Top
   
 Post subject: Re: micro_evtd
PostPosted: Mon Apr 20, 2009 8:17 am 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
Now fixed, correctly. Available in SVN.

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: micro_evtd
PostPosted: Mon Apr 20, 2009 8:02 pm 
Offline
Regular Member

Joined: Tue Nov 27, 2007 3:19 pm
Posts: 217
Location: Dresden, Germany
Ok, just started the 24h+ test. Command pipe is working.
I will post the results on wednesday.

btw: No more compiler warnings! :up:

_________________
LS Pro v1:
  • Freelink (Debian etch), kernel: 2.6.16.57-lsp_eabi-dh_v3, gigabit network (9k jumbo frames)
  • running: mt-daapd (aka firefly), smb, amule, vsftpd, mysql, rsnapshot, micro_evtd testing ;)
  • upcoming: ampache (+ coherence), aria2, slimrat, apache, streamripper (record what my soundbridge is playing)...


Top
   
 Post subject: Re: micro_evtd
PostPosted: Tue Apr 21, 2009 9:48 am 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
Hope its good news.

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: micro_evtd
PostPosted: Wed Apr 22, 2009 4:47 pm 
Offline
Regular Member

Joined: Tue Nov 27, 2007 3:19 pm
Posts: 217
Location: Dresden, Germany
Here we go:
Code:
Single 6 - 8640
Single 6 - 9240
Search off timer
located 2880
Search on timer
located 3300
with 04/21 00:00 04/21 07:00
with 04/21 00:00 04/21 07:00
0
Process=mt-daapd, located=1
Process=amuled, located=1
Located 1240264830 1240264830
Process=mt-daapd, located=1
Process=amuled, located=1
Located 1240264830 1240265132
Single 0 - 0
Single 0 - 600
Group 1 - 1440
Group 2 - 2880
Group 3 - 4320
Group 4 - 5760
Group 5 - 7200
Group 1 - 1860
Group 2 - 3300
Group 3 - 4740
Group 4 - 6180
Group 5 - 7620
Group 1 - 1990
Group 2 - 3430
Group 3 - 4870
Group 4 - 6310
Group 5 - 7750
Group 1 - 2565
Group 2 - 4005
Group 3 - 5445
Group 4 - 6885
Group 5 - 8325
Single 6 - 8640
Single 6 - 9240
Search off timer
located 4320
locate update 3430
Search on timer
located 3300
with 04/21 09:10 04/21 07:00
Re-parsed
Process=mt-daapd, located=1
Process=amuled, located=1
Located 1240297834 1240297834
Single 0 - 0
Single 0 - 600
Group 1 - 1440
Group 2 - 2880
Group 3 - 4320
Group 4 - 5760
Group 5 - 7200
Group 1 - 1860
Group 2 - 3300
Group 3 - 4740
Group 4 - 6180
Group 5 - 7620
Group 1 - 1990
Group 2 - 3430
Group 3 - 4870
Group 4 - 6310
Group 5 - 7750
Group 1 - 2565
Group 2 - 4005
Group 3 - 5445
Group 4 - 6885
Group 5 - 8325
Single 6 - 8640
Single 6 - 9240
Search off timer
located 4320
Search on timer
located 4740
locate update 4005
with 04/22 00:00 04/21 18:45
Single 0 - 0
Single 0 - 600
Group 1 - 1440
Group 2 - 2880
Group 3 - 4320
Group 4 - 5760
Group 5 - 7200
Group 1 - 1860
Group 2 - 3300
Group 3 - 4740
Group 4 - 6180
Group 5 - 7620
Group 1 - 1990
Group 2 - 3430
Group 3 - 4870
Group 4 - 6310
Group 5 - 7750
Group 1 - 2565
Group 2 - 4005
Group 3 - 5445
Group 4 - 6885
Group 5 - 8325
Single 6 - 8640
Single 6 - 9240
Search off timer
located 4320
Search on timer
located 4740
with 04/22 00:00 04/22 07:00
Process=mt-daapd, located=1
Process=amuled, located=1
Located 1240351239 1240351240
Single 0 - 0
Single 0 - 600
Group 1 - 1440
Group 2 - 2880
Group 3 - 4320
Group 4 - 5760
Group 5 - 7200
Group 1 - 1860
Group 2 - 3300
Group 3 - 4740
Group 4 - 6180
Group 5 - 7620
Group 1 - 1990
Group 2 - 3430
Group 3 - 4870
Group 4 - 6310
Group 5 - 7750
Group 1 - 2565
Group 2 - 4005
Group 3 - 5445
Group 4 - 6885
Group 5 - 8325
Single 6 - 8640
Single 6 - 9240
Search off timer
located 5760
locate update 4870
Search on timer
located 4740
with 04/22 09:10 04/22 07:00
Re-parsed
Process=mt-daapd, located=1
Process=amuled, located=1
Located 1240384243 1240384244
Single 0 - 0
Single 0 - 600
Group 1 - 1440
Group 2 - 2880
Group 3 - 4320
Group 4 - 5760
Group 5 - 7200
Group 1 - 1860
Group 2 - 3300
Group 3 - 4740
Group 4 - 6180
Group 5 - 7620
Group 1 - 1990
Group 2 - 3430
Group 3 - 4870
Group 4 - 6310
Group 5 - 7750
Group 1 - 2565
Group 2 - 4005
Group 3 - 5445
Group 4 - 6885
Group 5 - 8325
Single 6 - 8640
Single 6 - 9240
Search off timer
located 5760
Search on timer
located 6180
locate update 5445
with 04/23 00:00 04/22 18:45
Re-parsed


Well...no "Expired timer". But there is one thing that confuses me:
Code:
Process=mt-daapd, located=1
Process=amuled, located=1

I guess "located=1" means that micro_evtd has detected that the process is running? Well...then the detection seems to be flawed:
During the testing period mt-daapd was running (detection ok), but amuled was not running (detection failed)!

_________________
LS Pro v1:
  • Freelink (Debian etch), kernel: 2.6.16.57-lsp_eabi-dh_v3, gigabit network (9k jumbo frames)
  • running: mt-daapd (aka firefly), smb, amule, vsftpd, mysql, rsnapshot, micro_evtd testing ;)
  • upcoming: ampache (+ coherence), aria2, slimrat, apache, streamripper (record what my soundbridge is playing)...


Top
   
 Post subject: Re: micro_evtd
PostPosted: Wed Apr 22, 2009 10:40 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
This is as expected. Located will be held true on the first and remaining checks of processes, ie. if we are looking for processes 1, 2, 3 and 4 and only 3 is actually running then the output would be:

Process=1, located=0
Process=2, located=0
Process=3, located=1
Process=4, located=1

I hope this answers that question.

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: micro_evtd
PostPosted: Thu Apr 23, 2009 8:58 am 
Offline
Regular Member

Joined: Tue Nov 27, 2007 3:19 pm
Posts: 217
Location: Dresden, Germany
Ok, I see!

So what's the bottom line? The output from my test indicates that the detection is working fine.
But, as a matter of fact, my box does reboot to standby mode instantly even if a process is running that has been configured in micro_evtd.conf to delay the standby process.

_________________
LS Pro v1:
  • Freelink (Debian etch), kernel: 2.6.16.57-lsp_eabi-dh_v3, gigabit network (9k jumbo frames)
  • running: mt-daapd (aka firefly), smb, amule, vsftpd, mysql, rsnapshot, micro_evtd testing ;)
  • upcoming: ampache (+ coherence), aria2, slimrat, apache, streamripper (record what my soundbridge is playing)...


Top
   
 Post subject: Re: micro_evtd
PostPosted: Thu Apr 23, 2009 12:02 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
This is odd. Can you modify the code to this:

cCheckConfig = DelayedStandby(ltime);
/* Nothing found to prevent standby? No, proceed */
printf("lTimer=%ld\n", l_TimerEvent);
if (l_TimerEvent <= 0) {
// Prevent re-entry and execute command
c_TimerFlag = 2;
#ifdef TEST
printf("Expired timer\n");

The new line is shown in RED. Please then compile as normal; just make. Then modify your config to around the current time, as before. Then load as ./micro_evtd -c. Please paste the output. This would indicate that it is not finding a valid next period.

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: micro_evtd
PostPosted: Fri Apr 24, 2009 11:43 am 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
Is anyone having DST issues with timed shutdown?

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: micro_evtd
PostPosted: Sun Apr 26, 2009 12:48 am 
Offline
Regular Member

Joined: Tue Nov 27, 2007 3:19 pm
Posts: 217
Location: Dresden, Germany
lb_worm wrote:
Please paste the output. This would indicate that it is not finding a valid next period.

Ok...
Code:
root@linkstation:/lsrc/micro_evtd# ./micro_evtd -c

Message from syslogd@linkstation at Sun Apr 26 01:34:46 2009 ...
linkstation logger: Entering standby in less than 5 minutes
0
lTimer=300
lTimer=360

_________________
LS Pro v1:
  • Freelink (Debian etch), kernel: 2.6.16.57-lsp_eabi-dh_v3, gigabit network (9k jumbo frames)
  • running: mt-daapd (aka firefly), smb, amule, vsftpd, mysql, rsnapshot, micro_evtd testing ;)
  • upcoming: ampache (+ coherence), aria2, slimrat, apache, streamripper (record what my soundbridge is playing)...


Top
   
 Post subject: Re: micro_evtd
PostPosted: Thu Apr 30, 2009 1:03 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
@moldowan: This looks okay. It should just keep ping'in the lTimer messages out until it passes the next power-on event and it will then reset the timers at that point. What happens before it just shutsdown?

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: micro_evtd
PostPosted: Fri May 01, 2009 10:52 pm 
Offline
Regular Member

Joined: Tue Nov 27, 2007 3:19 pm
Posts: 217
Location: Dresden, Germany
lb_worm wrote:
It should just keep ping'in the lTimer messages out until it passes the next power-on event and it will then reset the timers at that point.

It prints out "lTimer=..." everytime a standby OFF point is reached.

lb_worm wrote:
What happens before it just shutsdown?

What do you mean exactly? Nothing special happens...5 minutes before a standby OFF point the warning message is printed. Right at the OFF point the "Shutting down for standby" message is printed and the box enters standby mode.

_________________
LS Pro v1:
  • Freelink (Debian etch), kernel: 2.6.16.57-lsp_eabi-dh_v3, gigabit network (9k jumbo frames)
  • running: mt-daapd (aka firefly), smb, amule, vsftpd, mysql, rsnapshot, micro_evtd testing ;)
  • upcoming: ampache (+ coherence), aria2, slimrat, apache, streamripper (record what my soundbridge is playing)...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 599 posts ]  Go to page Previous 136 37 38 39 40 Next

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 6 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

Search for:
cron
Powered by phpBB® Forum Software © phpBB Limited