[CentOS] Key auth question
I have a problem getting key authentication to work with one remote user (git), even though it works fine for the remote user "root". The remote file .ssh/authorized_keys is identical for both users - I cp'ed it from the root account to the git home dir. On local machine (OS X, by the way) I have: $ cd $ ls -l .ssh -rw--- 1 jussihirvi staff 668 Aug 24 16:13 id_rsa (the rest is omitted) On remote machine (as root): $ cd $ ls -ld .ssh drwxr-xr-x 2 root root 4096 Feb 11 17:45 .ssh $ ls -l .ssh total 8 -rw--- 1 root root 1768 Feb 11 17:45 authorized_keys -rw-r--r-- 1 root root 631 Feb 11 12:30 known_hosts On remote machine (as git): $ cd $ ls -ld .ssh drwxr-xr-x 2 git git 4096 Feb 12 11:15 .ssh $ ls -l .ssh total 8 -rw--- 1 git git 1768 Feb 12 10:52 authorized_keys -rw-r--r-- 1 git git 631 Feb 12 11:05 known_hosts When, on local machine, I do: $ ssh root@remotehost I get in without a password. But when I do $ ssh git@remotehost I will be asked for a password. What should I check? - Jussi -- Jussi Hirvi * Green Spot Suvilahdenkatu 1 B 78 * 00500 Helsinki * Finland Tel. +358 9 493 981 * Mobile +358 40 771 2098 (only sms) jussi.hi...@greenspot.fi * http://www.greenspot.fi ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Key auth question
I have a problem getting key authentication to work with one remote user (git), even though it works fine for the remote user "root". The remote file .ssh/authorized_keys is identical for both users - I cp'ed it from the root account to the git home dir. On local machine (OS X, by the way) I have: $ cd $ ls -l .ssh -rw--- 1 jussihirvi staff 668 Aug 24 16:13 id_rsa (the rest is omitted) On remote machine (as root): $ cd $ ls -ld .ssh drwxr-xr-x 2 root root 4096 Feb 11 17:45 .ssh $ ls -l .ssh total 8 -rw--- 1 root root 1768 Feb 11 17:45 authorized_keys -rw-r--r-- 1 root root 631 Feb 11 12:30 known_hosts On remote machine (as git): $ cd $ ls -ld .ssh drwxr-xr-x 2 git git 4096 Feb 12 11:15 .ssh $ ls -l .ssh total 8 -rw--- 1 git git 1768 Feb 12 10:52 authorized_keys -rw-r--r-- 1 git git 631 Feb 12 11:05 known_hosts When, on local machine, I do: $ ssh root@remotehost I get in without a password. But when I do $ ssh git@remotehost I will be asked for a password. What should I check? - Jussi ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Key auth question
2012/2/12 Jussi Hirvi : > I have a problem getting key authentication to work with one remote user > (git), even though it works fine for the remote user "root". The remote > file .ssh/authorized_keys is identical for both users - I cp'ed it from > the root account to the git home dir. > > On local machine (OS X, by the way) I have: > $ cd > $ ls -l .ssh > -rw--- 1 jussihirvi staff 668 Aug 24 16:13 id_rsa > (the rest is omitted) > > On remote machine (as root): > $ cd > $ ls -ld .ssh > drwxr-xr-x 2 root root 4096 Feb 11 17:45 .ssh > $ ls -l .ssh > total 8 > -rw--- 1 root root 1768 Feb 11 17:45 authorized_keys > -rw-r--r-- 1 root root 631 Feb 11 12:30 known_hosts > > On remote machine (as git): > $ cd > $ ls -ld .ssh > drwxr-xr-x 2 git git 4096 Feb 12 11:15 .ssh > $ ls -l .ssh > total 8 > -rw--- 1 git git 1768 Feb 12 10:52 authorized_keys > -rw-r--r-- 1 git git 631 Feb 12 11:05 known_hosts > > When, on local machine, I do: > $ ssh root@remotehost > I get in without a password. But when I do > $ ssh git@remotehost > I will be asked for a password. > > What should I check? Check logs for sshd deamon first. It usually gives explanation about issue. try also ssh -v git@remotehost for debug information. -- Eero ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Key auth question
On 12.2.2012 11.51, Eero Volotinen wrote: > Check logs for sshd deamon first. It usually gives explanation about issue. Damn, that was simple. /var/log/secure tells it in plain language: > Authentication refused: bad ownership or modes for directory /var/www/railsdev (that is the home dir for the user git). The perms were: $ ls -ld /var/www/railsdev drwxrws--- 5 git apache 4096 Feb 12 10:52 railsdev/ I did chmod g-w, and the key auth started to work! Thanks. - Jussi ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Can I get rid of i86 packages and libraries on an x86_64 virtual server?
The server is a vpn with only 20 GB of storage. I would like to free up disk space. Even if I must keep some i86 stuff, I think I can get rid of the dev packages for it. Thanks, John -- John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc. http://www.abilitiessoft.com Madison, Wisconsin USA Developing software for people with disabilities ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Can I get rid of i86 packages and libraries on an x86_64 virtual server?
Am 12.02.2012 15:35, schrieb John J. Boyer: > The server is a vpn with only 20 GB of storage. I would like to free up > disk space. Even if I must keep some i86 stuff, I think I can get rid of > the dev packages for it. > > Thanks, > John Add .i386 respectively .i686 (i.e. for glibc and openssl) to the package names you want to uninstall. Alexander ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Can I get rid of i86 packages and libraries on an x86_64 virtual server?
On Sun, 12 Feb 2012, John J. Boyer wrote: > The server is a vpn with only 20 GB of storage. I would like to free up > disk space. Even if I must keep some i86 stuff, I think I can get rid of > the dev packages for it. > Yes, you can get rid of them as long as nothing depends on them. One easy way is to install rpmorphan. Don't use it blindly, but if you have a lot of extra packages, it helps to sort through them. -- Jim Wildman, CISSP, RHCE j...@rossberry.com http://www.rossberry.net "Society in every state is a blessing, but Government, even in its best state, is a necessary evil; in its worst state, an intolerable one." Thomas Paine ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Sound drop out with totem. mplayer Can't open audio device /dev/dsp
Hey all. This morning I found that my audio playback is randomly sprinkled with sound skips and dropouts. I went to /var/log/yum.log and found this: Feb 09 20:18:22 Updated: lame-3.99.4-2.el6.rf.i686 I'm not saying that caused the problem but it's all I could find that changed. When I ls in /dev there is no dsp entry. That would explain why mplayer Can't open audio device /dev/dsp. I don't know why there is no /dev/dsp. MPlayer 1.0rc4-4.4.6 aplay just makes a nasty hiss. aplay: version 1.0.21 I'm using pulesaudio $ rpm -qa | grep pulseaudio alsa-plugins-pulseaudio-1.0.21-3.el6.i686 pulseaudio-module-bluetooth-0.9.21-13.el6.i686 pulseaudio-0.9.21-13.el6.i686 pulseaudio-libs-0.9.21-13.el6.i686 pulseaudio-utils-0.9.21-13.el6.i686 pulseaudio-module-gconf-0.9.21-13.el6.i686 pulseaudio-module-x11-0.9.21-13.el6.i686 pulseaudio-gdm-hooks-0.9.21-13.el6.i686 pulseaudio-libs-glib2-0.9.21-13.el6.i686 $ uname -a Linux mushroom.patch 2.6.32-220.4.1.el6.i686 #1 SMP Mon Jan 23 22:37:12 GMT 2012 i686 i686 i386 GNU/Linux CentOS 6.2 Any of these may, or may not, be related. -- _ °v° /(_)\ ^ ^ Mark LaPierre Registerd Linux user No #267004 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Sound drop out with totem. mplayer Can't open audio device /dev/dsp
On 02/12/2012 05:07 PM, Mark LaPierre wrote: > Hey all. > > This morning I found that my audio playback is randomly sprinkled with > sound skips and dropouts. I went to /var/log/yum.log and found this: > > Feb 09 20:18:22 Updated: lame-3.99.4-2.el6.rf.i686 > > I'm not saying that caused the problem but it's all I could find that > changed. lame-3.99.4-2.el6.rf.i686 is RepoForge package, and if he is the culprit, you have to take it on their mailing list. To test, run "yum downgrade lame", log out or better yet reboot (to be safe it is unloaded), and see if that helps. -- Ljubomir Ljubojevic (Love is in the Air) PL Computers Serbia, Europe Google is the Mother, Google is the Father, and traceroute is your trusty Spiderman... StarOS, Mikrotik and CentOS/RHEL/Linux consultant ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Dovecot problems
Actually, I'm having problems with pop and imap. I changed mailservers this weekend, going from a Centos 3 box to a Centos 6 box. The Centos 3 box used the old standard imap and pop servers. We use horde for our webmail. The pop3 mailboxes (mbox) were in /var/spool/mail and the imap folders were in /home/user/mail, which horde took care of. Upon starting the Centos 6 box, I ran into tons of login and viewing problems. I tried Cyrus for imap, could log in, but couldn't see mail in the imap folders. Using dovecot for pop, I eventually could get logged in, but kept getting the "couldn't open INBOX" message, so no one could download their email, even though sendmail was delivering it properly. So here's my question: Can (should) dovecot be used for both imap and pop when considering the above setup of mbox in /var/spool/mail and imap folders in ~/mail? Horde will read the mbox to display new messages in it's screens. If so, does anyone have a pretty good link to how to make dovecot function using the old Centos pop/imap scheme? Should I try and convert the old mbox files to another format or destination to make this work? Thanks for any help. It's been a long night, going on about 14 hours now and I'm just getting the old server back to current until I figure this out. steve campbell ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Dovecot problems
On 02/12/12 11:01 AM, Steve Campbell wrote: > Can (should) dovecot be used for both imap and pop when considering the > above setup of mbox in /var/spool/mail and imap folders in ~/mail? Horde > will read the mbox to display new messages in it's screens. mixing pop and imap is contradictory. pop clients move the messages to a local store, clearing them from the server. imap clients maintain the message folders on the server. pick one, stick with it. -- john r pierceN 37, W 122 santa cruz ca mid-left coast ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Dovecot problems
Am 12.02.2012 20:01, schrieb Steve Campbell: > Actually, I'm having problems with pop and imap. > > I changed mailservers this weekend, going from a Centos 3 box to a > Centos 6 box. The Centos 3 box used the old standard imap and pop > servers. We use horde for our webmail. The pop3 mailboxes (mbox) were > in /var/spool/mail and the imap folders were in /home/user/mail, which > horde took care of. So 2 classes of users? As John has annotated, mixing POP3 and IMP4 use is not advised at all. > Upon starting the Centos 6 box, I ran into tons of login and viewing > problems. I tried Cyrus for imap, could log in, but couldn't see mail in > the imap folders. Using dovecot for pop, I eventually could get logged > in, but kept getting the "couldn't open INBOX" message, so no one could > download their email, even though sendmail was delivering it properly. Cyrus-IMAPd is out of the game unless you do a real mail store migration as Cyrus-IMAPd uses his own storage scheme. > So here's my question: > > Can (should) dovecot be used for both imap and pop when considering the > above setup of mbox in /var/spool/mail and imap folders in ~/mail? Horde > will read the mbox to display new messages in it's screens. Yes. > If so, does anyone have a pretty good link to how to make dovecot > function using the old Centos pop/imap scheme? Should I try and convert > the old mbox files to another format or destination to make this work? See http://wiki.dovecot.org/MailLocation > Thanks for any help. It's been a long night, going on about 14 hours now > and I'm just getting the old server back to current until I figure this out. Not intended to sound smart ass, but changing a production system the way you do without prior testing isn't that clever. > steve campbell I wish you success. Alexander ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] [SOLVED]Perl Libraries
On 02/12/2012 01:06 PM, Nicolas Thierry-Mieg wrote: > > Rob Kampen wrote: >> On 02/12/2012 12:43 PM, Rob Kampen wrote: >>> On 02/12/2012 10:15 AM, Nicolas Thierry-Mieg wrote: Rob Kampen wrote: > I am trying to install some perl libs and find the ones from CentOS > mirrors are correctly loading the x86_64 versions, but the rpmforge ones > are only i386 or i686 ones - any reason why?? did you check the rpmforge.repo configuration? >>> yeah, seems identical to another x86_64 server that is working just fine. >>> The server with the problem is a rebuild and used to be a i386. >>> Thus there is history on the system that is i386 - but the OS, rpm, yum, >>> apache, php etc are all x86_64 and as mentioned, there is no problem >>> pulling files from the CentOS repos - I did need to change >>> /etc/rpm/platform to get these working and wondered if rpmforge has a >>> similar place it goes to, to determine the arch?? >> Okay - it seems the centos mirrorlist repos use $basearch which comes >> from the /etc/rpm/platform file and rpmforge uses $arch which comes from?? > I have $basearch for rpmforge.repo as well, both on C5 and C6. I did the changes to mirrorlist for rpmforge so it referenced $basearch and still no joy. I then did a "yum clean all" and it came right - I think yum is not set up to deal with a change in the arch, thus did not reload the repo file lists. All is now well. Thanks all for the suggestions. > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Sound drop out with totem. mplayer Can't open audio device /dev/dsp
On Sunday 12 February 2012 18:03:03 Ljubomir Ljubojevic wrote: > On 02/12/2012 05:07 PM, Mark LaPierre wrote: > > Hey all. > > > > This morning I found that my audio playback is randomly sprinkled with > > sound skips and dropouts. I went to /var/log/yum.log and found this: > > > > Feb 09 20:18:22 Updated: lame-3.99.4-2.el6.rf.i686 > > > > I'm not saying that caused the problem but it's all I could find that > > changed. > > lame-3.99.4-2.el6.rf.i686 is RepoForge package, and if he is the > culprit, you have to take it on their mailing list. Lame should not be responsible for the missing /dev/dsp. It is likely that something else got updated as well (what else is in the yum.log?), or that something crashed (pulseaudio, alsa, the kernel... :-) ). The simplest way is to try to logout and login, and see if that helps. If not, reboot. If not, reboot to an older kernel. If not, read logs for pulseaudio etc. Btw, I am writing off the top of my head here, but I think that mplayer should not even try to use /dev/dsp. Try it with mplayer -ao pulse file.wav That should force mplayer to use pulseaudio (which should be the default by now, IIRC). If necessary, put it in mplayer's config file. HTH, :-) Marko ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Anyone already tried to backport the latest ASPM kernel patch to 6.2?
After going from CentOS 5.7 to 6.2, a lot of things turned out to be much better, but there are also quite some regressions. The most obvious one is power consumption on my notebook. It was notably lower before. The ASPM issue introduced in 2.6.38 was widely reported and discussed, and the 6.2 kernel has exacatly this code as a backport. http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=2f671e2dbff6eb5ef4e2600adbec550c13b8fe72 So I started to experiment with the upstream patch: http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=commitdiff;h=3c076351c4027a56d5005a39a0b518a4ba393ce2;hp=69166fbf02c7a21745013f2de037bf7af26e4279 To make it apply, one needs to change 'pci_is_pcie(pdev)' into 'pdev->is_pcie'. One also needs to fiddle a little with the first chunk. I came up with the patch attached, but unfortunately the new kernel showed no improvement. Most probably I got something wrong. Anyone else here who tried this or is interested in sorting this out? Thanks, Michael diff -ur a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c --- a/drivers/acpi/pci_root.c 2012-01-19 19:45:17.0 +0100 +++ b/drivers/acpi/pci_root.c 2012-02-12 03:20:19.104634583 +0100 @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -583,12 +584,21 @@ status = acpi_pci_osc_control_set(device->handle, &flags, OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL); - if (ACPI_SUCCESS(status)) + if (ACPI_SUCCESS(status)) { dev_info(root->bus->bridge, "ACPI _OSC control (0x%02x) granted\n", flags); - else + if (acpi_gbl_FADT.boot_flags & ACPI_FADT_NO_ASPM) { + /* +* We have ASPM control, but the FADT indicates +* that it's unsupported. Clear it. +*/ + pcie_clear_aspm(root->bus); + } + } else { dev_dbg(root->bus->bridge, "ACPI _OSC request failed (code %d)\n", status); + pcie_no_aspm(); + } } return 0; diff -ur a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c --- a/drivers/pci/pci-acpi.c2012-01-19 19:44:15.0 +0100 +++ b/drivers/pci/pci-acpi.c2012-02-12 01:39:31.441635301 +0100 @@ -195,7 +195,6 @@ if (acpi_gbl_FADT.boot_flags & ACPI_FADT_NO_ASPM) { printk(KERN_INFO"ACPI FADT declares the system doesn't support PCIe ASPM, so disable it\n"); - pcie_clear_aspm(); pcie_no_aspm(); } diff -ur a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c --- a/drivers/pci/pcie/aspm.c 2012-01-19 19:45:17.0 +0100 +++ b/drivers/pci/pcie/aspm.c 2012-02-12 01:39:31.449635162 +0100 @@ -68,7 +68,7 @@ struct aspm_latency acceptable[8]; }; -static int aspm_disabled, aspm_force, aspm_clear_state; +static int aspm_disabled, aspm_force; static bool aspm_support_enabled = true; static DEFINE_MUTEX(aspm_lock); static LIST_HEAD(link_list); @@ -500,9 +500,6 @@ int pos; u32 reg32; - if (aspm_clear_state) - return -EINVAL; - /* * Some functions in a slot might not all be PCIe functions, * very strange. Disable ASPM for the whole slot @@ -574,9 +571,6 @@ pdev->pcie_type != PCI_EXP_TYPE_DOWNSTREAM) return; - if (aspm_disabled && !aspm_clear_state) - return; - /* VIA has a strange chipset, root port is under a bridge */ if (pdev->pcie_type == PCI_EXP_TYPE_ROOT_PORT && pdev->bus->self) @@ -608,7 +602,7 @@ * the BIOS's expectation, we'll do so once pci_enable_device() is * called. */ - if (aspm_policy != POLICY_POWERSAVE || aspm_clear_state) { + if (aspm_policy != POLICY_POWERSAVE) { pcie_config_aspm_path(link); pcie_set_clkpm(link, policy_to_clkpm_state(link)); } @@ -649,8 +643,7 @@ struct pci_dev *parent = pdev->bus->self; struct pcie_link_state *link, *root, *parent_link; - if ((aspm_disabled && !aspm_clear_state) || !pdev->is_pcie || - !parent || !parent->link_state) + if (!pdev->is_pcie || !parent || !parent->link_state) return; if ((parent->pcie_type != PCI_EXP_TYPE_ROOT_PORT) && (parent->pcie_type != PCI_EXP_TYPE_DOWNSTREAM)) @@ -712,13 +705,18 @@ * pci_disable_link_state - disable pci device's link state, so the link will * never enter specific states */ -static void __pci_disable_link_state(struct pci_dev *pdev, int state, bool sem) +static void __pci_disable_link_state(struct pci_dev *pdev,
Re: [CentOS] Anyone already tried to backport the latest ASPM kernel patch to 6.2?
On 12-02-12 23:57, Michael Lampe wrote: > After going from CentOS 5.7 to 6.2, a lot of things turned out to be > much better, but there are also quite some regressions. The most obvious > one is power consumption on my notebook. It was notably lower before. > > The ASPM issue introduced in 2.6.38 was widely reported and discussed, > and the 6.2 kernel has exacatly this code as a backport. > > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=2f671e2dbff6eb5ef4e2600adbec550c13b8fe72 > > > So I started to experiment with the upstream patch: > > http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=commitdiff;h=3c076351c4027a56d5005a39a0b518a4ba393ce2;hp=69166fbf02c7a21745013f2de037bf7af26e4279 > > > To make it apply, one needs to change 'pci_is_pcie(pdev)' into > 'pdev->is_pcie'. One also needs to fiddle a little with the first chunk. > > I came up with the patch attached, but unfortunately the new kernel > showed no improvement. Most probably I got something wrong. > > Anyone else here who tried this or is interested in sorting this out? Iirc to enable ASPM on Fedora the kernel must be booted with pcie_aspm=force. Maybe you need to use that option too? For more info see: http://www.phoronix.com/scan.php?page=article&item=linux_aspm_solution&num=1 Regards, Patrick ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Anyone already tried to backport the latest ASPM kernel patch to 6.2?
Patrick Lists wrote: > Iirc to enable ASPM on Fedora the kernel must be booted with > pcie_aspm=force. Maybe you need to use that option too? For more info > see: > http://www.phoronix.com/scan.php?page=article&item=linux_aspm_solution&num=1 That's no general solution. It may work, but (e.g.) it doesn't work for me on my Thinkpad X301. There are side-effects. The idea of the upstream patch is to mimic Windows: > With 3.2.5 "ASPM disabled" means: When the ACPI says ASPM is > disabled Linux will leave it alone, which is what Windows is > doing. The assumption is that explicitly disabling ASPM is more > problematic than doing nothing." (Copied somewhere from LKML.) In other words: my BIOS is broken. But it's broken for all Lenovo Notebooks. So ... ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Anyone already tried to backport the latest ASPM kernel patch to 6.2?
On 02/13/2012 12:39 PM, Michael Lampe wrote: > Patrick Lists wrote: > >> Iirc to enable ASPM on Fedora the kernel must be booted with >> pcie_aspm=force. Maybe you need to use that option too? For more info >> see: >> http://www.phoronix.com/scan.php?page=article&item=linux_aspm_solution&num=1 > That's no general solution. It may work, but (e.g.) it doesn't work for > me on my Thinkpad X301. There are side-effects. > > The idea of the upstream patch is to mimic Windows: > > > With 3.2.5 "ASPM disabled" means: When the ACPI says ASPM is > > disabled Linux will leave it alone, which is what Windows is > > doing. The assumption is that explicitly disabling ASPM is more > > problematic than doing nothing." > > (Copied somewhere from LKML.) > > In other words: my BIOS is broken. But it's broken for all Lenovo > Notebooks. So ... > So for those of us that do not understand the intricacies of ASPM / BIOS / ACPI, how do we ensure we are getting the best (least) power consumption? I have a new ASUS G73S with i7 8 core processor - running CentOS 6.2 and loving it - no idea if this has or does not have ASPM support. What do I need to do to test / check? > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Anyone already tried to backport the latest ASPM kernel patch to 6.2?
Rob Kampen wrote: > So for those of us that do not understand the intricacies of ASPM / BIOS > / ACPI, how do we ensure we are getting the best (least) power consumption? Hey! I was asking for people who can help me backport the upstream fix! > I have a new ASUS G73S with i7 8 core processor - running CentOS 6.2 and > loving it - no idea if this has or does not have ASPM support. > What do I need to do to test / check? (Nothing. You have a fine battery!) - dmesg | grep -i aspm - lspci -vvv | grep -i aspm - ... - google, phoronix, etc. - ... ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Sound drop out with totem. mplayer Can't open audio device /dev/dsp
On Sun, 2012-02-12 at 11:07 -0500, Mark LaPierre wrote: > Hey all. > > This morning I found that my audio playback is randomly sprinkled with > sound skips and dropouts. I went to /var/log/yum.log and found this: > > Feb 09 20:18:22 Updated: lame-3.99.4-2.el6.rf.i686 > > I'm not saying that caused the problem but it's all I could find that > changed. > > When I ls in /dev there is no dsp entry. > That would explain why mplayer Can't open audio device /dev/dsp. > I don't know why there is no /dev/dsp. You want find one either. It's called 'padsp'. > I'm using pulesaudio restart it? Is it running as a user daemon or system daemon? what is the system load while trying to play a file? What is the last mod time on '/etc/pulse/daemon.conf'? lspci|grep audio lsmod|grep snd when did the padsp-bluetooth get installed? What is the mplayer output driver? for totem i find it utterly useless. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Anyone already tried to backport the latest ASPM kernel patch to 6.2?
Michael Lampe wrote: >> Iirc to enable ASPM on Fedora the kernel must be booted with >> pcie_aspm=force. Maybe you need to use that option too? For more info >> see: >> http://www.phoronix.com/scan.php?page=article&item=linux_aspm_solution&num=1 > > That's no general solution. It may work, but (e.g.) it doesn't work for > me on my Thinkpad X301. There are side-effects. > > The idea of the upstream patch is to mimic Windows: > > > With 3.2.5 "ASPM disabled" means: When the ACPI says ASPM is > > disabled Linux will leave it alone, which is what Windows is > > doing. The assumption is that explicitly disabling ASPM is more > > problematic than doing nothing." > > (Copied somewhere from LKML.) [addendum] The point is: we are in a grey zone here. "pcie_aspm=force" is one extreme, the current default behaviour being the other one (explicit disabling!). The BIOS sets up something in-between and then says on inquiry: "Never did I do anything! I'm not responsible!". https://lkml.org/lkml/2012/2/7/273 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Sound drop out with totem. mplayer Can't open audio device /dev/dsp
On 02/12/2012 05:46 PM, Marko Vojinovic wrote: > On Sunday 12 February 2012 18:03:03 Ljubomir Ljubojevic wrote: >> On 02/12/2012 05:07 PM, Mark LaPierre wrote: >>> Hey all. >>> >>> This morning I found that my audio playback is randomly sprinkled with >>> sound skips and dropouts. I went to /var/log/yum.log and found this: >>> >>> Feb 09 20:18:22 Updated: lame-3.99.4-2.el6.rf.i686 >>> >>> I'm not saying that caused the problem but it's all I could find that >>> changed. >> >> lame-3.99.4-2.el6.rf.i686 is RepoForge package, and if he is the >> culprit, you have to take it on their mailing list. > > Lame should not be responsible for the missing /dev/dsp. It is likely that > something else got updated as well (what else is in the yum.log?), or that > something crashed (pulseaudio, alsa, the kernel... :-) ). > > The simplest way is to try to logout and login, and see if that helps. If not, > reboot. If not, reboot to an older kernel. If not, read logs for pulseaudio > etc. > > Btw, I am writing off the top of my head here, but I think that mplayer should > not even try to use /dev/dsp. Try it with > >mplayer -ao pulse file.wav > > That should force mplayer to use pulseaudio (which should be the default by > now, IIRC). If necessary, put it in mplayer's config file. > > HTH, :-) > Marko > > > > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > totem works great after lame downgrade. Thanks for the clue guys. mplayer -ao pulse file.wav says: MPlayer 1.0rc4-4.4.6 (C) 2000-2010 MPlayer Team Playing file.mp3. Audio only file format detected. == Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 44100 Hz, 2 ch, s16le, 48.0 kbit/3.40% (ratio: 6000->176400) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) == No such audio driver 'pulse' Could not open/initialize audio device -> no sound. Audio: no sound Video: no video Exiting... (End of file) aplay file.mp3 says: Playing raw data 'file.mp3' : Unsigned 8 bit, Rate 8000 Hz, Mono Still just makes a nasty hiss. Still no /dev/dsp. Maybe there isn't supposed to be one for my sound hardware? lspci says: Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60) -- _ °v° /(_)\ ^ ^ Mark LaPierre Registerd Linux user No #267004 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Sound drop out with totem. mplayer Can't open audio device /dev/dsp
On Sun, 2012-02-12 at 20:30 -0500, Mark LaPierre wrote: > No such audio driver 'pulse' > Could not open/initialize audio device -> no sound. > Audio: no sound > Video: no video > > > Exiting... (End of file) You should get this: `mplayer -ao pulse my.mp3` Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400) Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III) == AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample) Video: no video Starting playback... A: 41.3 (41.3) of 254.0 (04:14.0) 0.5% MPlayer interrupted by signal 2 in module: play_audio A: 41.3 (41.3) of 254.0 (04:14.0) 0.5% Exiting... (Quit) - With ALSA: mplayer -ao alsa my.mp3 == Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400) Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III) == AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample) Video: no video Starting playback... A: 12.7 (12.7) of 254.0 (04:14.0) 0.4% MPlayer interrupted by signal 2 in module: play_audio A: 12.8 (12.7) of 254.0 (04:14.0) 0.4% Exiting... (Quit) On a corectly configured DAW Machine with pulseaudio you should be able to run: `padsp mplayer my.mp3` AO: [oss] 44100Hz 2ch s16le (2 bytes per sample) Video: no video Starting playback... A: 11.1 (11.1) of 254.0 (04:14.0) 0.4% MPlayer interrupted by signal 2 in module: play_audio A: 11.2 (11.1) of 254.0 (04:14.0) 0.4% -- On EL6 you should be using ALSA for mplayer as alsa targets pulse. > aplay file.mp3 says: > Playing raw data 'file.mp3' : Unsigned 8 bit, Rate 8000 Hz, Mono > > Still just makes a nasty hiss. `aplay -f dat my.wav` is what you want. "little indianess" byte words. > Still no /dev/dsp. Maybe there isn't supposed to be one for my sound > hardware? I said previously there is NO ""/dev/dsp"" and there want be one for EL6. If perhaps you had one then you really have someing funny going on. > lspci says: > Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 > AC97 Audio Controller (rev 60) Those cards can be nothing but problems. Some say that there are common in linux but I say nothing but common trouble. When did you update the the kernel last? Something good is `alsa-info` and read the instructions on the terminal and where to run it and get the standard output of it. You could try a diffeernt "codec" besides "lame" like mpg123. Does asound.conf point to the pulses conf file? It is a normal thing that pulseaudio will pop and skip and snap crackle when it does not have enough of a Buffer or Priority and when a card is going bad. Since in the above mplayer can not access pulse last thing you could do is reinstall all the pulse packages. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos