[gentoo-user] Tweak nice
Hi! I noticed a very annoying behavior. I've got a headless server (Athlon 64 X2) which primarily acts as a personal video recorder using mencoder and at-daemon. In its idle-time it's supposed to run a dnet-client. Then I've got a laptop (64bit Celeron, single core) on which I play those video files from my server over NFS. So far, so good. My problem is: Neither of them can handle recording/playing video while there is any background activity. That means I have to stop the dnet-daemon and suspend any emerges on my laptop. If I don't, both mencoder and mplayer loose sync of audio and video and drops frames. Apparently a nice-setting of 19 is not enough to keep daemons and similar stuff as strict idle activity. It still gets a fair amount of cpu-time. Of course, I could give mencoder/mplayer real-time priority (nice -n 20) but that would need them to run in super-user mode which should be unnecessary for such a simple task. Long story short, can I somehow tweak the scheduler to be more aggressive when it comes to high nice-levels? Thanks in advance! Florian Philipp signature.asc Description: This is a digitally signed message part
[gentoo-user] md5sum for directories?
Hi there, I'm in the habit of backing up customer data by booting from knoppix, connecting a portable hard-drive and copying with `cp -rvf`. When this has finished I connect the portable hard-drive to my desktop machine, copy the directory of data from it to my homedir, and make a zip file of the directory. I've done this loads in the past, and never been aware of any file corruption, but I guess I'm just paranoid today. Perhaps I shouldn't use the -v flags during my copy - it's reassuring to see the files being copied, but what if I overlooked a bunch of errors in the middle of all those thousands of "copied successfully" confirmations? What if something has gone wrong during one of the two copies? So my question is: Is there any way to check the integrity of copied directories, to be sure that none of the files or sub-directories in them have become damaged during transfer? I'm thinking of something like md5sum for directories. It occurred to me that one could run `find . -type f -exec md5sum \{} \; > file.txt` on both machines and diff the outputs, but some of these directories contain many thousands of files, and I'd imagine that mdsumming of all these could take some time. Does anyone have any suggestions, please? Stroller. -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Tweak nice
On 24 Feb 2008, at 11:01, Florian Philipp wrote: ... I noticed a very annoying behavior. I've got a headless server (Athlon 64 X2) which primarily acts as a personal video recorder using mencoder and at-daemon. ... ... My problem is: Neither of them can handle recording/playing video while there is any background activity. That means I have to stop the dnet-daemon and suspend any emerges on my laptop. If I don't, both mencoder and mplayer loose sync of audio and video and drops frames. ... Hi there, What capture card are you using to record TV? I would expect most people these days to be receiving some kind of digital signal - DVB-T using an aerial, DVB-S using a dish or DVB-C via cable. Here in the UK, for example, it would be most common to receive DVB-T "Freeview". Receiving a digital signal requires no encoding, practically no processor resources, as the DVB signal is just mpeg, and the card is simply dumping the stream to hard-disk. Are you playing back the video across the network? What processor / RAM configurations do your PCs have? What hard-drives? What size are the videos (pixels) and what format (encoding, bitrate) are they stored in on your hard-drive? I think you have to demonstrate that the problem is processor-bound. My immediate thought upon reports of stuttering is to question disk or network throughput. Stroller. -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] md5sum for directories?
On Sunday 24 February 2008, Stroller wrote: > I've done this loads in the past, and never been aware of any file > corruption, but I guess I'm just paranoid today. Perhaps I shouldn't > use the -v flags during my copy - it's reassuring to see the files > being copied, but what if I overlooked a bunch of errors in the > middle of all those thousands of "copied successfully" confirmations? > What if something has gone wrong during one of the two copies? Well, in that case cp will have a nnonzero exit status. Look: $ ls -l total 12 -rw-r--r-- 1 kermit users4 2008-02-24 12:30 a -rw-r--r-- 1 kermit users 12 2008-02-24 12:30 b drwxr-xr-x 2 kermit users 4096 2008-02-24 12:30 destdir $ ls -l destdir total 0 $ chmod 000 b $ ls -l total 12 -rw-r--r-- 1 kermit users4 2008-02-24 12:30 a -- 1 kermit users 12 2008-02-24 12:30 b drwxr-xr-x 2 kermit users 4096 2008-02-24 12:30 destdir $ cp a b destdir cp: cannot open `b' for reading: Permission denied $ echo $? 1 $ ls -l destdir total 4 -rw-r--r-- 1 kermit users 4 2008-02-24 12:31 a I think this should hold for the majority of cases/errors cp might encounter during the copy. Of course, this does not detect a succesful, but somehow corrupted, copy (which should be exceptionally rare, anyway). > So my question is: > > Is there any way to check the integrity of copied directories, to be > sure that none of the files or sub-directories in them have become > damaged during transfer? I'm thinking of something like md5sum for > directories. I'm not aware of any such tool (which might exist nonetheless, of course). However, on the filesystem, the objects that we call "directories" are just index files holding filenames and pointers to inodes. Running a checksum on the directories themselves would not guarantee against corruption of any of the contained files, since file data is not contained in the directory. Thus, to be accurate, such a tool would have to scan the directory, find each file, and perform a checksum on it, which would result in something not much different from the find command you suggested, in terms of resource usage. -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] Re: Digest of gentoo-user@lists.gentoo.org issue 1417 (76028-76077)
Por las nuevas políticas de calidad ISO 9001 que la empresa está implementando, todos los temas relacionados con soporte técnico deben ser realizadas al correo electrónico [EMAIL PROTECTED] Muchas gracias y disculpe las molestías. Automáticamente este email será reenvio a [EMAIL PROTECTED] -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Tweak nice
On Sun, 2008-02-24 at 11:29 +, Stroller wrote: > On 24 Feb 2008, at 11:01, Florian Philipp wrote: > > ... > > I noticed a very annoying behavior. I've got a headless server (Athlon > > 64 X2) which primarily acts as a personal video recorder using > > mencoder > > and at-daemon. ... > > > > ... My problem is: Neither of them can handle > > recording/playing video while there is any background activity. That > > means I have to stop the dnet-daemon and suspend any emerges on my > > laptop. If I don't, both mencoder and mplayer loose sync of audio and > > video and drops frames. > > ... > > Hi there, > > What capture card are you using to record TV? > > > I would expect most people these days to be receiving some kind of > digital signal - DVB-T using an aerial, DVB-S using a dish or DVB-C > via cable. Here in the UK, for example, it would be most common to > receive DVB-T "Freeview". > > Receiving a digital signal requires no encoding, practically no > processor resources, as the DVB signal is just mpeg, and the card is > simply dumping the stream to hard-disk. > > Are you playing back the video across the network? > What processor / RAM configurations do your PCs have? > What hard-drives? > What size are the videos (pixels) and what format (encoding, bitrate) > are they stored in on your hard-drive? > > I think you have to demonstrate that the problem is processor-bound. > My immediate thought upon reports of stuttering is to question disk > or network throughput. > > Stroller. It's a PCI-card for analog TV (ordinary cable with about 20 channels). It doesn't output mpeg but raw video/audio so I have to encode it. I use h.264 (1 pass, 2 threads) and lame. The settings are tweaked to allow 25fps and a good overall quality. I could give you the settings but I don't think they're really important. The load is somewhere around 1.3 to 1.8. Of course I could tweak it to achieve 25fps even with dnet-client in the background but that would cost me quality and wouldn't fix my problem on the notebook. On my notebook, CPU-utilization is just around 50%. There is no apparent bottleneck on my setup. The 100MBit network is fast enough to transfer the files while playback is running even without caching. I'm decoding them on my notebook. If there were a bottleneck other than CPU-scheduling, it would hit me every time, not just when another process demands CPU-time. signature.asc Description: This is a digitally signed message part
[gentoo-user] Why is port 9090 open?
Does anyone know why tcp port 9090 is open on my laptop: alsasound | default bootmisc | boot checkfs | boot checkroot | boot clock | boot consolefont | boot dbus | default hald | default hostname | boot keymaps | boot local | default nonetwork localmount | boot metalog | default modules | boot net.eth0 | default net.lo | boot netmount | default rmnologin | boot urandom | boot vixie-cron | default vmware | default xdm | default xfs | default - Grant -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Why is port 9090 open?
I think its torrent port. I use transmission and that port it listens to On Sun, Feb 24, 2008 at 3:17 PM, Grant <[EMAIL PROTECTED]> wrote: > Does anyone know why tcp port 9090 is open on my laptop: > > alsasound | default >bootmisc | boot > checkfs | boot > checkroot | boot > clock | boot > consolefont | boot >dbus | default >hald | default >hostname | boot > keymaps | boot > local | default nonetwork > localmount | boot > metalog | default > modules | boot >net.eth0 | default > net.lo | boot >netmount | default > rmnologin | boot > urandom | boot > vixie-cron | default > vmware | default > xdm | default > xfs | default > > - Grant > -- > gentoo-user@lists.gentoo.org mailing list > > -- Amar Ćosić [EMAIL PROTECTED] [EMAIL PROTECTED] +38761240095 http://www.amar.co.ba
Re: [gentoo-user] Why is port 9090 open?
> I think its torrent port. I use transmission and that port it listens to How did I not realize that. Thank you. - Grant > > Does anyone know why tcp port 9090 is open on my laptop: > > > > alsasound | default > >bootmisc | boot > > checkfs | boot > > checkroot | boot > > clock | boot > > consolefont | boot > >dbus | default > >hald | default > >hostname | boot > > keymaps | boot > > local | default nonetwork > > localmount | boot > > metalog | default > > modules | boot > >net.eth0 | default > > net.lo | boot > >netmount | default > > rmnologin | boot > > urandom | boot > > vixie-cron | default > > vmware | default > > xdm | default > > xfs | default > > > > - Grant -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] md5sum for directories?
On Sun, 24 Feb 2008 11:06:10 +, Stroller wrote: > Is there any way to check the integrity of copied directories, to be > sure that none of the files or sub-directories in them have become > damaged during transfer? I'm thinking of something like md5sum for > directories. Diff? diff -r /source /dest will return no output if the two copies are identical. -- Neil Bothwick Never underestimate the bandwidth of a station wagon full of tapes! signature.asc Description: PGP signature
Re: [gentoo-user] Why is port 9090 open?
Hi, It may be useful to execute a 'netstat -nap | grep 9090' to identify the program listening on port 9090. - Stefan Quoting Grant <[EMAIL PROTECTED]>: I think its torrent port. I use transmission and that port it listens to How did I not realize that. Thank you. - Grant > Does anyone know why tcp port 9090 is open on my laptop: > > alsasound | default >bootmisc | boot > checkfs | boot > checkroot | boot > clock | boot > consolefont | boot >dbus | default >hald | default >hostname | boot > keymaps | boot > local | default nonetwork > localmount | boot > metalog | default > modules | boot >net.eth0 | default > net.lo | boot >netmount | default > rmnologin | boot > urandom | boot > vixie-cron | default > vmware | default > xdm | default > xfs | default > > - Grant -- gentoo-user@lists.gentoo.org mailing list This message was sent using poseidon.cronides.net Visit https://the.cronides.net for more information -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Kernel upgrade broke NAT
On Friday 22 February 2008 16:22:34 Grant wrote: > > Too bad that 'oldconfig' isn't always working :-( > > Is there a better way to update the config for a new kernel? What I do is to run menuconfig against the most recent .config, and search (visually) for items marked [NEW] and read their Help pages. That does mean lots of following of ---> links to subsidiary pages, but at least it takes less time than looking at everything all over again. And it does avoid using oldconfig, which I've heard rumours about. -- Rgds Peter -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Tweak nice
On Sunday 24 February 2008, Florian Philipp wrote: > Hi! > > I noticed a very annoying behavior. I've got a headless server > (Athlon 64 X2) which primarily acts as a personal video recorder > using mencoder and at-daemon. In its idle-time it's supposed to run > a dnet-client. > > Then I've got a laptop (64bit Celeron, single core) on which I play > those video files from my server over NFS. > > So far, so good. My problem is: Neither of them can handle > recording/playing video while there is any background activity. > That means I have to stop the dnet-daemon and suspend any emerges > on my laptop. If I don't, both mencoder and mplayer loose sync of > audio and video and drops frames. By dnet-daemon you mean dnetc, right? If you run dnetc with nice 19 and simultaneously something that uses as much CPU as it can get (like a fractals generator) at nice 0, you will see that dnetc still uses around 6% CPU. But it does go down to 6%. The remaining CPU should be enough for watching video. Disclaimer: I have never used mplayer on a 64bit system. It might have issues there. Since you are playing the video over NFS you do so over the network. Maybe a stupid question: You do use FastEthernet without any hub, right? Switches are alright but hubs are evil. A possiible work around might be to increase the buffer in mplayer to something around 1MB. Uwe -- Informal Linux Group Namibia: http://www.linux.org.na/ SysEx (Pty) Ltd.: http://www.SysEx.com.na/ -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] md5sum for directories?
Am Sonntag, 24. Februar 2008 schrieb cabbage: > diff can use for binary files ? If you just want to know "different or not", sure. Bye... Dirk signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] md5sum for directories?
Hi! === On Sunday 24 February 2008, you wrote: === ... > > On Sun, 24 Feb 2008 11:06:10 +, Stroller wrote: > > > Is there any way to check the integrity of copied directories, to > > > be sure that none of the files or sub-directories in them have > > > become damaged during transfer? I'm thinking of something like > > > md5sum for directories. I use this script to check how DVD-data were written: nice -n 15 find $1/* -type f -print0 | sort -z | xargs -0 cat | md5sum -b Don't ask me how does it work - I forgot :-) But it works. -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] md5sum for directories?
diff can use for binary files ? On Sun, Feb 24, 2008 at 10:29 PM, Neil Bothwick <[EMAIL PROTECTED]> wrote: > On Sun, 24 Feb 2008 11:06:10 +, Stroller wrote: > > > Is there any way to check the integrity of copied directories, to be > > sure that none of the files or sub-directories in them have become > > damaged during transfer? I'm thinking of something like md5sum for > > directories. > > Diff? > > diff -r /source /dest > will return no output if the two copies are identical. > > > -- > Neil Bothwick > > Never underestimate the bandwidth of a station wagon full of tapes! >
[gentoo-user] Switch between sound cards?
I have a USB sound card and an internal sound card in my laptop. Is there a way to switch between them while the system is booted? Is module loading/unloading via modprobe the best way to do it? - Grant -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Switch between sound cards?
On Sun, Feb 24, 2008 at 9:44 AM, Grant <[EMAIL PROTECTED]> wrote: > I have a USB sound card and an internal sound card in my laptop. Is > there a way to switch between them while the system is booted? Is > module loading/unloading via modprobe the best way to do it? > > - Grant > -- > gentoo-user@lists.gentoo.org mailing list > > Why switch between them when you can use them both at the same time as hw:0 and hw:1? - Mark [EMAIL PROTECTED] ~ $ cat /etc/modules.d/alsa # Alsa 0.9.X kernel modules' configuration file. # $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.4 2004/11/16 01:31:22 eradicator Exp $ # ALSA portion alias char-major-116 snd # OSS/Free portion alias char-major-14 soundcore ## ALSA portion alias snd-card-0 snd-intel8x0 options snd-intel8x0 index=0 alias snd-card-1 snd-hdsp options snd-hdsp index=1 ## OSS/Free portion alias sound-slot-0 snd-card-0 # OSS/Free portion - card #1 alias sound-service-0-0 snd-mixer-oss alias sound-service-0-1 snd-seq-oss alias sound-service-0-3 snd-pcm-oss alias sound-service-0-8 snd-seq-oss alias sound-service-0-12 snd-pcm-oss alias /dev/mixer snd-mixer-oss alias /dev/dsp snd-pcm-oss alias /dev/midi snd-seq-oss # Set this to the correct number of cards. options snd cards_limit=2 [EMAIL PROTECTED] ~ $ -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Switch between sound cards?
> > I have a USB sound card and an internal sound card in my laptop. Is > > there a way to switch between them while the system is booted? Is > > module loading/unloading via modprobe the best way to do it? > > > > - Grant > > -- > > gentoo-user@lists.gentoo.org mailing list > > > > > > Why switch between them when you can use them both at the same time as > hw:0 and hw:1? Thanks Mark. After studying your config, here is mine: alias snd-card-0 snd-hda-intel options snd-hda-intel index=1 options snd-hda-intel model=acer alias snd-card-1 snd-usb-audio options snd-usb-audio index=0 alias sound-slot-0 snd-card-0 alias sound-slot-1 snd-card-1 alias /dev/mixer snd-mixer-oss alias /dev/dsp snd-pcm-oss alias /dev/midi snd-seq-oss options snd cards_limit=2 I get sound from the USB card but not from the internal card (snd-hda-intel). How can I tell the system to turn off the USB card and turn on the internal card? - Grant > # Alsa 0.9.X kernel modules' configuration file. > # $Header: > /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v > 1.4 2004/11/16 01:31:22 eradicator Exp $ > > # ALSA portion > alias char-major-116 snd > > # OSS/Free portion > alias char-major-14 soundcore > > ## ALSA portion > alias snd-card-0 snd-intel8x0 > options snd-intel8x0 index=0 > alias snd-card-1 snd-hdsp > options snd-hdsp index=1 > > ## OSS/Free portion > alias sound-slot-0 snd-card-0 > > > # OSS/Free portion - card #1 > alias sound-service-0-0 snd-mixer-oss > alias sound-service-0-1 snd-seq-oss > alias sound-service-0-3 snd-pcm-oss > alias sound-service-0-8 snd-seq-oss > alias sound-service-0-12 snd-pcm-oss > > alias /dev/mixer snd-mixer-oss > alias /dev/dsp snd-pcm-oss > alias /dev/midi snd-seq-oss > > # Set this to the correct number of cards. > options snd cards_limit=2 > [EMAIL PROTECTED] ~ $ -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] md5sum for directories?
On 24 Feb 2008, at 06:06, Stroller wrote: So my question is: Is there any way to check the integrity of copied directories, to be sure that none of the files or sub-directories in them have become damaged during transfer? I'm thinking of something like md5sum for directories. I use rsync for this and would suggest you look into it. You can tell it to compare files based on checksum (which is slower) and the real beauty is that if there is a file that is corrupt or otherwise not the same as the source it will copy just that single file to your backup disk. Test it by deleting a random file somewhere in the backup tree.. rerun your rsync command and the file is copied back. man rsync -- Christopher -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Switch between sound cards?
On Sun, 2008-02-24 at 11:34 -0800, Grant wrote: > > > I have a USB sound card and an internal sound card in my laptop. Is > > > there a way to switch between them while the system is booted? Is > > > module loading/unloading via modprobe the best way to do it? > > > > > > - Grant > > > -- > > > gentoo-user@lists.gentoo.org mailing list > > > > > > > > > > Why switch between them when you can use them both at the same time as > > hw:0 and hw:1? > > Thanks Mark. After studying your config, here is mine: > > alias snd-card-0 snd-hda-intel > options snd-hda-intel index=1 > options snd-hda-intel model=acer > > alias snd-card-1 snd-usb-audio > options snd-usb-audio index=0 > > alias sound-slot-0 snd-card-0 > alias sound-slot-1 snd-card-1 > > alias /dev/mixer snd-mixer-oss > alias /dev/dsp snd-pcm-oss > alias /dev/midi snd-seq-oss > > options snd cards_limit=2 > > I get sound from the USB card but not from the internal card > (snd-hda-intel). How can I tell the system to turn off the USB card > and turn on the internal card? > > - Grant > You might want to take a look at the new pulseaudio daemon. I don't use it but as far as I know it's perfect for complex setups like yours. Think of it as a (transparent, if necessary) layer between your software and alsa. It should be easier to reconfigure than alsa. You could use it (or the older the older jack daemon) to send audio to both devices. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Switch between sound cards?
> > > > I have a USB sound card and an internal sound card in my laptop. Is > > > > there a way to switch between them while the system is booted? Is > > > > module loading/unloading via modprobe the best way to do it? > > > > > > > > - Grant > > > > -- > > > > gentoo-user@lists.gentoo.org mailing list > > > > > > > > > > > > > > Why switch between them when you can use them both at the same time as > > > hw:0 and hw:1? > > > > Thanks Mark. After studying your config, here is mine: > > > > alias snd-card-0 snd-hda-intel > > options snd-hda-intel index=1 > > options snd-hda-intel model=acer > > > > alias snd-card-1 snd-usb-audio > > options snd-usb-audio index=0 > > > > alias sound-slot-0 snd-card-0 > > alias sound-slot-1 snd-card-1 > > > > alias /dev/mixer snd-mixer-oss > > alias /dev/dsp snd-pcm-oss > > alias /dev/midi snd-seq-oss > > > > options snd cards_limit=2 > > > > I get sound from the USB card but not from the internal card > > (snd-hda-intel). How can I tell the system to turn off the USB card > > and turn on the internal card? > > > > - Grant > > > > You might want to take a look at the new pulseaudio daemon. I don't use > it but as far as I know it's perfect for complex setups like yours. > Think of it as a (transparent, if necessary) layer between your software > and alsa. It should be easier to reconfigure than alsa. > > You could use it (or the older the older jack daemon) to send audio to > both devices. Alright, but it seems like ALSA has some native support for multiple cards. Does anyone have more than one sound card and the ability to switch between them in native ALSA? - Grant -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Tweak nice
On Sun, 2008-02-24 at 17:45 +0200, Uwe Thiem wrote: > On Sunday 24 February 2008, Florian Philipp wrote: > > Hi! > > > > I noticed a very annoying behavior. I've got a headless server > > (Athlon 64 X2) which primarily acts as a personal video recorder > > using mencoder and at-daemon. In its idle-time it's supposed to run > > a dnet-client. > > > > Then I've got a laptop (64bit Celeron, single core) on which I play > > those video files from my server over NFS. > > > > So far, so good. My problem is: Neither of them can handle > > recording/playing video while there is any background activity. > > That means I have to stop the dnet-daemon and suspend any emerges > > on my laptop. If I don't, both mencoder and mplayer loose sync of > > audio and video and drops frames. > > By dnet-daemon you mean dnetc, right? If you run dnetc with nice 19 > and simultaneously something that uses as much CPU as it can get > (like a fractals generator) at nice 0, you will see that dnetc still > uses around 6% CPU. But it does go down to 6%. The remaining CPU > should be enough for watching video. Disclaimer: I have never used > mplayer on a 64bit system. It might have issues there. > > Since you are playing the video over NFS you do so over the network. > Maybe a stupid question: You do use FastEthernet without any hub, > right? Switches are alright but hubs are evil. > > A possiible work around might be to increase the buffer in mplayer to > something around 1MB. > > Uwe Yep, I meant dnetc (I thought dnet-client would be better understandable). And yes, it does go down but not far enough, especially because there are two such processes (one for each core). By the way: Another daemon who's causing problems is clrngd, creating 100% CPU-utilization every 4 minutes for about 1 minute. I neither use a switch nor a hub, just a good old crossover cable. In fact, I used to let mplayer create a 8MB cache but without background activity it was useless and with it, it's got eaten up too soon. Mencoder seems to utilize a queue/fifo/whatever-you-might-call-it by default but that doesn't help if it doesn't reach 25fps. Since nobody seems to have an idea, maybe someone can tell me how I allow processes with real-time priority (nice -n -20) to be started by an ordinary user? Of course I'm aware of sudo but I don't want a simple media encoder to have super-user permissions. signature.asc Description: This is a digitally signed message part
[gentoo-user] Re: md5sum for directories?
Stroller <[EMAIL PROTECTED]> wrote: > I'm thinking of something like md5sum for directories. I think you may have gotten better solutions for your situation, but md5deep (in portage) is like md5sum but with directory recursion. -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Switch between sound cards?
Grant, If you want to do a complete switch then you would change your USB card to index 0 and restart Als which would make the USB card the default since card 0 is always the default for Alsa. On the other hand, if you wanted to just leave the onboard card as default and send audio from a specific application to the USB card you would tell the application to use hw:1 explicity, either in the command line when you start the app or in an application's config file. On my system I let all my web/browest audio go to the onboard sound card but I send all my CD audio directly to my good card using Aqualung and configuring it from the command line. (Actually in my launcher.) to the best of my knowledge there has never been a way to simply switch sound cards on the fly in Alsa. I've requested this sometime back but the developers haven't shown any interest. Hope this helps, Mark On Sun, Feb 24, 2008 at 11:34 AM, Grant <[EMAIL PROTECTED]> wrote: > > > I have a USB sound card and an internal sound card in my laptop. Is > > > there a way to switch between them while the system is booted? Is > > > module loading/unloading via modprobe the best way to do it? > > > > > > - Grant > > > -- > > > gentoo-user@lists.gentoo.org mailing list > > > > > > > > > > Why switch between them when you can use them both at the same time as > > hw:0 and hw:1? > > Thanks Mark. After studying your config, here is mine: > > alias snd-card-0 snd-hda-intel > options snd-hda-intel index=1 > options snd-hda-intel model=acer > > alias snd-card-1 snd-usb-audio > options snd-usb-audio index=0 > > > alias sound-slot-0 snd-card-0 > alias sound-slot-1 snd-card-1 > > > alias /dev/mixer snd-mixer-oss > alias /dev/dsp snd-pcm-oss > alias /dev/midi snd-seq-oss > > > options snd cards_limit=2 > > I get sound from the USB card but not from the internal card > (snd-hda-intel). How can I tell the system to turn off the USB card > and turn on the internal card? > > - Grant > > > > > > # Alsa 0.9.X kernel modules' configuration file. > > # $Header: > /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v > > 1.4 2004/11/16 01:31:22 eradicator Exp $ > > > > # ALSA portion > > alias char-major-116 snd > > > > # OSS/Free portion > > alias char-major-14 soundcore > > > > ## ALSA portion > > alias snd-card-0 snd-intel8x0 > > options snd-intel8x0 index=0 > > alias snd-card-1 snd-hdsp > > options snd-hdsp index=1 > > > > ## OSS/Free portion > > alias sound-slot-0 snd-card-0 > > > > > > # OSS/Free portion - card #1 > > alias sound-service-0-0 snd-mixer-oss > > alias sound-service-0-1 snd-seq-oss > > alias sound-service-0-3 snd-pcm-oss > > alias sound-service-0-8 snd-seq-oss > > alias sound-service-0-12 snd-pcm-oss > > > > alias /dev/mixer snd-mixer-oss > > alias /dev/dsp snd-pcm-oss > > alias /dev/midi snd-seq-oss > > > > # Set this to the correct number of cards. > > options snd cards_limit=2 > > [EMAIL PROTECTED] ~ $ > -- > > > gentoo-user@lists.gentoo.org mailing list > > -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Switch between sound cards?
> Grant, >If you want to do a complete switch then you would change your USB > card to index 0 and restart Als which would make the USB card the > default since card 0 is always the default for Alsa. On the other > hand, if you wanted to just leave the onboard card as default and send > audio from a specific application to the USB card you would tell the > application to use hw:1 explicity, either in the command line when you > start the app or in an application's config file. On my system I let > all my web/browest audio go to the onboard sound card but I send all > my CD audio directly to my good card using Aqualung and configuring it > from the command line. (Actually in my launcher.) > >to the best of my knowledge there has never been a way to simply > switch sound cards on the fly in Alsa. I've requested this sometime > back but the developers haven't shown any interest. > > Hope this helps, > Mark Hi Mark, Changing the index and restarting alsasound would be a great switching method but I can't get that to work. No matter which one I set to index=0 and which to index=1 the sound always comes out of the USB card. BTW, what sound card are you using? Here's mine, it's great: http://diyparadise.com/shop/index.php?main_page=product_info&cPath=2&products_id=82 - Grant > > > > I have a USB sound card and an internal sound card in my laptop. Is > > > > there a way to switch between them while the system is booted? Is > > > > module loading/unloading via modprobe the best way to do it? > > > > > > > > - Grant > > > > -- > > > > gentoo-user@lists.gentoo.org mailing list > > > > > > > > > > > > > > Why switch between them when you can use them both at the same time as > > > hw:0 and hw:1? > > > > Thanks Mark. After studying your config, here is mine: > > > > alias snd-card-0 snd-hda-intel > > options snd-hda-intel index=1 > > options snd-hda-intel model=acer > > > > alias snd-card-1 snd-usb-audio > > options snd-usb-audio index=0 > > > > > > alias sound-slot-0 snd-card-0 > > alias sound-slot-1 snd-card-1 > > > > > > alias /dev/mixer snd-mixer-oss > > alias /dev/dsp snd-pcm-oss > > alias /dev/midi snd-seq-oss > > > > > > options snd cards_limit=2 > > > > I get sound from the USB card but not from the internal card > > (snd-hda-intel). How can I tell the system to turn off the USB card > > and turn on the internal card? > > > > - Grant > > > > > > > > > > > # Alsa 0.9.X kernel modules' configuration file. > > > # $Header: > /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v > > > 1.4 2004/11/16 01:31:22 eradicator Exp $ > > > > > > # ALSA portion > > > alias char-major-116 snd > > > > > > # OSS/Free portion > > > alias char-major-14 soundcore > > > > > > ## ALSA portion > > > alias snd-card-0 snd-intel8x0 > > > options snd-intel8x0 index=0 > > > alias snd-card-1 snd-hdsp > > > options snd-hdsp index=1 > > > > > > ## OSS/Free portion > > > alias sound-slot-0 snd-card-0 > > > > > > > > > # OSS/Free portion - card #1 > > > alias sound-service-0-0 snd-mixer-oss > > > alias sound-service-0-1 snd-seq-oss > > > alias sound-service-0-3 snd-pcm-oss > > > alias sound-service-0-8 snd-seq-oss > > > alias sound-service-0-12 snd-pcm-oss > > > > > > alias /dev/mixer snd-mixer-oss > > > alias /dev/dsp snd-pcm-oss > > > alias /dev/midi snd-seq-oss > > > > > > # Set this to the correct number of cards. > > > options snd cards_limit=2 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Re: [OT] Interrogate network for devices
On Tuesday 12 February 2008, Mick wrote: > On Tuesday 12 February 2008, Dale wrote: > > [EMAIL PROTECTED] wrote: > > > It turned out to be a simple matter of cycling the various > > > modem/router PC s in the right order. Once I got the help desk it > > > took about 2 minutes to get things resolved. It was setup right just > > > needed to recycle the Modem with router off. > > > > So that is why they told me to cut off everything then turn on in > > sequence from the cable to the puter. Makes sense now. > > OK, spoke to a mate with a motorola modem. He logs in to the modem GUI on > IP 192.168.0.100. Of course, since you have a different modem YMMV, unless > Comcast ask all their hardware suppliers to configure the same LAN IP > address. > > HTH. More info. in case you're still looking for ways to get diagnostic data from your modem - try the Java applet from Gentoo, or use a MS Windows machine: http://homepage.ntlworld.com/robin.d.h.walker/docsdiag/ -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Switch between sound cards?
On Sun, Feb 24, 2008 at 3:21 PM, Grant <[EMAIL PROTECTED]> wrote: > > Grant, > >If you want to do a complete switch then you would change your USB > > card to index 0 and restart Als which would make the USB card the > > default since card 0 is always the default for Alsa. On the other > > hand, if you wanted to just leave the onboard card as default and send > > audio from a specific application to the USB card you would tell the > > application to use hw:1 explicity, either in the command line when you > > start the app or in an application's config file. On my system I let > > all my web/browest audio go to the onboard sound card but I send all > > my CD audio directly to my good card using Aqualung and configuring it > > from the command line. (Actually in my launcher.) > > > >to the best of my knowledge there has never been a way to simply > > switch sound cards on the fly in Alsa. I've requested this sometime > > back but the developers haven't shown any interest. > > > > Hope this helps, > > Mark > > Hi Mark, > > Changing the index and restarting alsasound would be a great switching > method but I can't get that to work. No matter which one I set to > index=0 and which to index=1 the sound always comes out of the USB > card. > > BTW, what sound card are you using? Here's mine, it's great: > > > http://diyparadise.com/shop/index.php?main_page=product_info&cPath=2&products_id=82 > > - Grant > > > > > > > > > I have a USB sound card and an internal sound card in my laptop. > Is > > > > > there a way to switch between them while the system is booted? > Is > > > > > module loading/unloading via modprobe the best way to do it? > > > > > > > > > > - Grant > > > > > -- Grant, On the previous machine where I gave you the modules.d/alsa file I use the onboard sound chip for most sound but my main card is a 26 input, 26 output RME HDSP 9652 card. On my wife's machine, and out MythTV backend server, we use the intel-hda oinboard sound chip for most audio but we also have an external usb sound card that converts from USB to TOS link which I use to drive our home theater receiver. I'm putting the alsa file at the end of this post. Note that on this machine when we want to play audio using Aqualung through the onboard device this is the command in the Gnome launcher: /usr/bin/aqualung -o alsa -d hw:0,0 while if we want to play through the USB device we use this: /usr/bin/aqualung -o alsa -d hw:1,0 Not sure why you'd be having trouble. We use this technique on Aqualung, mplayer, xine and MythTV. The basic idea works once you get it under control. Good luck, Mark [EMAIL PROTECTED] ~ $ cat /etc/modules.d/alsa # Alsa 0.9.X kernel modules' configuration file. # $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.4 2004/11/16 01:31:22 eradicator Exp $ # ALSA portion alias char-major-116 snd # OSS/Free portion alias char-major-14 soundcore ## ## IMPORTANT: ## You need to customise this section for your specific sound card(s) ## and then run `update-modules' command. ## Read alsa-driver's INSTALL file in /usr/share/doc for more info. ## ## ALSA portion alias snd-card-0 snd-intel8x0 options snd-intel8x0 index=0 alias snd-card-1 snd-usb-audio options snd-usb-audio index=1 ## OSS/Free portion alias sound-slot-0 snd-card-0 alias sound-slot-1 snd-card-1 ## # OSS/Free portion - card #1 alias sound-service-0-0 snd-mixer-oss alias sound-service-0-1 snd-seq-oss alias sound-service-0-3 snd-pcm-oss alias sound-service-0-8 snd-seq-oss alias sound-service-0-12 snd-pcm-oss ## OSS/Free portion - card #2 alias sound-service-1-0 snd-mixer-oss alias sound-service-1-3 snd-pcm-oss alias sound-service-1-12 snd-pcm-oss alias /dev/mixer snd-mixer-oss alias /dev/dsp snd-pcm-oss alias /dev/midi snd-seq-oss # Set this to the correct number of cards. options snd cards_limit=2 [EMAIL PROTECTED] ~ $ -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Switch between sound cards?
On Sun, Feb 24, 2008 at 3:45 PM, Grant <[EMAIL PROTECTED]> wrote: > > > > > I have a USB sound card and an internal sound card in my laptop. > Is > > > > > there a way to switch between them while the system is booted? > Is > > > > > module loading/unloading via modprobe the best way to do it? > > > > > > > > > > - Grant > > > > > -- > > > > > gentoo-user@lists.gentoo.org mailing list > > > > > > > > > > > > > > > > > > Why switch between them when you can use them both at the same > time as > > > > hw:0 and hw:1? > > > > > > Thanks Mark. After studying your config, here is mine: > > > > > > alias snd-card-0 snd-hda-intel > > > options snd-hda-intel index=1 > > > options snd-hda-intel model=acer > > > > > > alias snd-card-1 snd-usb-audio > > > options snd-usb-audio index=0 > > > > > > alias sound-slot-0 snd-card-0 > > > alias sound-slot-1 snd-card-1 > > > > > > alias /dev/mixer snd-mixer-oss > > > alias /dev/dsp snd-pcm-oss > > > alias /dev/midi snd-seq-oss > > > > > > options snd cards_limit=2 > > > > > > I get sound from the USB card but not from the internal card > > > (snd-hda-intel). How can I tell the system to turn off the USB card > > > and turn on the internal card? > > > > > > - Grant > > > > > > > You might want to take a look at the new pulseaudio daemon. I don't use > > it but as far as I know it's perfect for complex setups like yours. > > Think of it as a (transparent, if necessary) layer between your > software > > and alsa. It should be easier to reconfigure than alsa. > > > > You could use it (or the older the older jack daemon) to send audio to > > both devices. > > Alright, but it seems like ALSA has some native support for multiple > cards. Does anyone have more than one sound card and the ability to > switch between them in native ALSA? > > I did a lot of search sometime back to get this solved... my blog entry on this is at the following link. http://defectivecompass.wordpress.com/2007/12/05/alsa-configuration/ I would also recommend you to take a look a pulseaudio (I have an entry for that on my blog as well). Hot switching of audio streams between devices is really cool! _r
Re: [gentoo-user] Tweak nice
On Sunday 24 February 2008, Florian Philipp wrote: > Since nobody seems to have an idea, maybe someone can tell me how I > allow processes with real-time priority (nice -n -20) to be started > by an ordinary user? Of course I'm aware of sudo but I don't want a > simple media encoder to have super-user permissions. You can start normally as a user and re-nice it immediately afterwards as root. Uwe -- Informal Linux Group Namibia: http://www.linux.org.na/ SysEx (Pty) Ltd.: http://www.SysEx.com.na/ -- gentoo-user@lists.gentoo.org mailing list