Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DLNA server stops transmitting data after half an hour
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Sparkster
Apprentice
Apprentice


Joined: 06 Aug 2004
Posts: 205

PostPosted: Thu Jul 28, 2011 4:55 pm    Post subject: DLNA server stops transmitting data after half an hour Reply with quote

Hi, guys. I hope you can help me. Recently my parents bought a TV with a DLNA client, so I configured a DNLA server in my gentoo box (miniDLNA) to watch the films stored in my computer in the new TV. The problem is that after half an hour approx, the TV stops receiving not only the data stream, but also loses the DLNA server connection. It starts searching a server but it can't find any.
I did a lot of tests and in the last one I used a debian stable box as a server, and it was the only correct test, so the problem is in the gentoo system.
As a resume:
gentoo box: the server stops transmitting data after half an hour.
debian box: correct test.

My architecture is amd64, minidlna 1.0.20 from portage and 1.0.21 manually installed (same results), kernel linux-2.6.39-gentoo-r3. This is my make.conf:

Code:

condor ~ # more /etc/make.conf
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
USE="aac aalib acpi alsa apache2 apm arts bash-completion bzip2 cairo cdda cddb cdparanoia cdr cgi consolekit cups dbus device-mapper dir
ectfb disk-partition dvb dvd dvdr emacs embedded encode extras faac fbcon ffmpeg firefox flac foomaticdb ftp fts3 gd gdu gif gimp gnome-k
eyring gnutls gphoto2 gstreamer gtk gzip gnome gnutls hal handbook hddtemp icu id3tag ieee1394 imagemagick imlib ipod jabber java java6 j
avascript joystick jpeg jpeg2k kdeprefix kontack kpathsea kde lame latex libcaca libsamplerate lirc lm_sensors logitech-mouse matroska mi
di mime mmx mng mp3 mp3tunes mp4 mpeg mplayer msn mysql nls nsplugin ogg opengl oss pdf pdo plasma png policykit python qt3support quickt
ime raw samba scanner server sox sql sqlite sse sse2 svg theora threads tiff truetype twolame unicode usb videos vorbis wavpack webkit wi
n32codecs X x264 xcomposite xml xine xprint xvid"
MAKEOPTS="-j1"
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="nvidia"
LINGUAS="es"
FEATURES="parallel-fetch userfetch"
ACCEPT_LICENSE="AdobeFlash-10.1 AdobeFlash-10 googleearth"


In the debian box it's all the same.

I have no idea where the problem could be, so I appreciate any help. If you need any other information, just ask. Thanks.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15984

PostPosted: Fri Jul 29, 2011 2:41 am    Post subject: Reply with quote

What is the output of nl -ba /etc/minidlna.conf on the Gentoo machine versus on the Debian machine? Does the problem manifest if you connect the TV to the DLNA server to browse files, but then leave it at the browsing screen (not playing any content) for the half hour?
Back to top
View user's profile Send private message
Sparkster
Apprentice
Apprentice


Joined: 06 Aug 2004
Posts: 205

PostPosted: Fri Jul 29, 2011 10:50 am    Post subject: Reply with quote

Thanks for your response. The configuration is the same in both systems:

Quote:

condor ~ # nl -ba /etc/minidlna.conf
1 # port for HTTP (descriptions, SOAP, media transfer) traffic
2 port=8200
3
4 # network interface to bind to (this is the only interface that will serve files)
5 #network_interface=eth0
6
7 # set this to the directory you want scanned.
8 # * if have multiple directories, you can have multiple media_dir= lines
9 # * if you want to restrict a media_dir to a specific content type, you
10 # can prepend the type, followed by a comma, to the directory:
11 # + "A" for audio (eg. media_dir=A,/home/jmaggard/Music)
12 # + "V" for video (eg. media_dir=V,/home/jmaggard/Videos)
13 # + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)
14 media_dir=/home/mari/multimedia/
15
16 # set this if you want to customize the name that shows up on your clients
17 #friendly_name=My DLNA Server
18
19 # set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache
20 #db_dir=/var/cache/minidlna
21
22 # set this if you would like to specify the directory where you want MiniDLNA to store its log file
23 #log_dir=/var/log
24
25 # this should be a list of file names to check for when searching for album art
26 # note: names should be delimited with a forward slash ("/")
27 album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg
28
29 # set this to no to disable inotify monitoring to automatically discover new files
30 # note: the default is yes
31 inotify=yes
32
33 # set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO
34 enable_tivo=no
35
36 # set this to strictly adhere to DLNA standards.
37 # * This will allow server-side downscaling of very large JPEG images,
38 # which may hurt JPEG serving performance on (at least) Sony DLNA products.
39 strict_dlna=no
40
41 # default presentation url is http address on port 80
42 #presentation_url=http://www.mylan/index.php
43
44 # notify interval in seconds. default is 895 seconds.
45 notify_interval=900
46
47 # serial and model number the daemon will report to clients
48 # in its XML description
49 serial=12345678
50 model_number=1


I tried to set the strict_dlna to yes but with the same result.

I didn't try to leave the client at the browsing screen. I'll try it right now.
Back to top
View user's profile Send private message
Sparkster
Apprentice
Apprentice


Joined: 06 Aug 2004
Posts: 205

PostPosted: Fri Jul 29, 2011 11:30 am    Post subject: Reply with quote

Well, the problem persist at the browsing menu. After half an hour, the TV loses connection, but the network and the DLNA server are still available to other devices. It's like after half an hour the gentoo network disconnects the TV, but it doesn't happen with other clients (i.e. the debian box as a client).
Back to top
View user's profile Send private message
patrix_neo
Guru
Guru


Joined: 08 Jan 2004
Posts: 520
Location: The Maldives

PostPosted: Thu Aug 18, 2011 12:31 pm    Post subject: Reply with quote

Could there be any 'energy saving' option set to on, on your eth0 card?
I recollect Gnome has this in the settings. Maybe worth checking?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum