Re: [arch-general] can't import ctype in python2
On 12/02/2010 07:45 AM, 李永 wrote: On Thu, Dec 2, 2010 at 1:32 PM, Allan McRaeal...@archlinux.org wrote: On 02/12/10 15:22, 李永 wrote: Hi, all I can't run ibus-setup and can't see the ibus imput method pannel, after I investgation, I find it is a python problem, when I run ibus-setup, I got the following error: $ ibus-setup Traceback (most recent call last): File /usr/share/ibus/setup/main.py, line 31, inmodule import ibus File /usr/lib/python2.7/site-packages/ibus/__init__.py, line 26, in module from common import * File /usr/lib/python2.7/site-packages/ibus/common.py, line 55, in module import ctypes File /usr/lib/python2.7/ctypes/__init__.py, line 10, inmodule from _ctypes import Union, Structure, Array ImportError: No module named _ctypes and I can't import ctype in python2 too, $ python2 Python 2.7.1 (r271:86832, Dec 1 2010, 13:45:43) [GCC 4.5.1 20101125 (prerelease)] on linux2 Type help, copyright, credits or license for more information. import ctypes Traceback (most recent call last): File stdin, line 1, inmodule File /usr/lib/python2.7/ctypes/__init__.py, line 10, inmodule from _ctypes import Union, Structure, Array ImportError: No module named _ctypes do you meet the same probem, do I miss some package to install? any hint? thanks . Update to python-2.7.1-2 Allan thaks, after I revert to a old verion python, the problem was fixed. who said something about reverting? 2.7.1-2 is a new update that fixes that problem -- Ionuț
Re: [arch-general] PulseAudio in [testing]
On 02.12.2010 16:23, Simon Gomizelj wrote: From my limited experience with pulseaudio on a machine without X, it seems that anything that has native pulse support in it will automatically start pulse on demand anyways. on ArchLinux if you don't install the pulseaudio package, there wont be anything to start, since the daemon is part of that package. And nothing requires that package either. -- дамјан
Re: [arch-general] PulseAudio in [testing]
Of course. My observation was meant to go with the comment above on preventing pulseaudio from starting if it is installed by deleting the dbus activation files. Just pointing out that an application may, potentially, still start it.
[arch-general] script idea - update single arch box - updates all on local net
Guys, I've played with an idea to save time with updates and duplicate (old version) removal from /var/cache/pacman/pkg for all arch boxes on a local network. I thought I would pass along the idea and the scripts as they exist now. Requirements: - public key/private key ssh access for user between boxes on the lan (id_dsa) - sudo rights for user on each box Config: - all script calls to additional scripts are to symlinks in /usr/local/bin Operation: pmduprsync.sh - is the outside script that runs pacman -Syu --noconfirm on a box on the lan (you can nix the --noconfirm if you want to review). -- it then calls fduparch.sh (which just sets the directories to remove old version of the packages from/to (I've posted a full description before). Which then calls: -- fduppkg (the actual script that scans /var/cache/pacman/pkg and moves old versions of packages to another directory of your chosing. (currently /home/backup/pkg-old for me) -- fduparch.sh runs a second time for me to remove old versions from /home/backup/pkg-old to /home/backup/pkg-older (original I know) pmduprsync.sh grabs a md5sum of the /var/cache/pacman/pkg dir on the remote hosts of the same arch and then rsyncs /var/cache/pacman/pkg dir to remote host and grabs another md5sum. If the sums differ, then pacman -Syu --noconfirm is called on the remote host following by fduparch.sh to tidy up the /var/cache/pacman/pkg dir there. For me the benefit is I keep a current package set for all boxes in the package dir of each host (not an issue in the days of 1T drives). Further, bandwidth reduction. Packages are only downloaded once and rsynced between boxes. Now granted the --noconfirm isn't optimal, and I always check first before pulling the trigger, but the automation of checking what an update will include on one host (generally the host with the widest package selection) and then having the updates daisy-chain to all other arch boxes on the lan while tidying up /var/cache/pacman/pkg on each box is a big plus. Currently you will see that I've just hard coded which hosts are i686 and x86_64 in pmduprsync.sh (easy at home - only 4 boxes 2 of each arch), but there is no reason why either an i686/x86_64 host list file couldn't be automagically built with some type of subnet host query followed up with ssh 'uname -r' calls. Anyway here are the scripts in case it sparks an idea with someone else. Regardless of whether you want the auto update part, the scripts that move old versions of packages from /var/cache/pacman/pkg have served me well. http://www.3111skyline.com/dl/Archlinux/scripts/pmduprsync.sh http://www.3111skyline.com/dl/Archlinux/scripts/fduparch.sh http://www.3111skyline.com/dl/Archlinux/scripts/fduppkg Once I refine the logic in the update script a bit more and the collection of hosts with the same arch on the lan, I'll follow up. All the scripts are my original work and are gpl, so use, reuse, tear apart at will. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
Re: [arch-general] script idea - update single arch box - updates all on local net
On Thu, Dec 2, 2010 at 5:36 PM, David C. Rankin drankina...@suddenlinkmail.com wrote: Guys, I've played with an idea to save time with updates and duplicate (old version) removal from /var/cache/pacman/pkg for all arch boxes on a local network. I thought I would pass along the idea and the scripts as they exist now. I'm not criticizing your solution by any means, but have you looked over pkgd, from Xyne [1]? It does what you want and even more transparently. I never used it, because I don't need, but it's one of those things I would love to have a need :) The documentation is so tempting, with that big blue graph... (nerd pr0n at its best...) [1] http://xyne.archlinux.ca/projects/pkgd/ -- A: Because it obfuscates the reading. Q: Why is top posting so bad? --- Denis A. Altoe Falqueto Linux user #524555 ---
Re: [arch-general] script idea - update single arch box - updates all on local net
On 12/02/2010 01:53 PM, Denis A. Altoé Falqueto wrote: I'm not criticizing your solution by any means, but have you looked over pkgd, from Xyne [1]? It does what you want and even more transparently. I never used it, because I don't need, but it's one of those things I would love to have a need:) The documentation is so tempting, with that big blue graph... (nerd pr0n at its best...) [1]http://xyne.archlinux.ca/projects/pkgd/ Completely overlooked :p Thanks. I will have fun with this... -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
[arch-general] alsa, hdmi, and the invisible magic output
Good evening everyone, I'm using arch since a while now. Everything was working just fine, until a few weeks (months?) ago. Since, I had a few problems I can't understand : The first symptom was the day I lost sound on my regular audio output (moterhboard intel HDA). I finally noticed sound was actually send to my TV through my G92 9800GT. I had a long period during while I was always switching my speakers wire from my tower to the screen, and back to the computer. The main problem beeing that, after putting the screen in sleep mode, I wasn't able to get the sound back without restarting X. Since, the problem changed, somewhat. Now, vlc sends its sound in both my motherboard and my graphic card outputs. While banshee's still only using the motherboard one. The most recent symptom is that, when I'm already playing some music with banshee, I can't have sound on any web browser (opera, firefox chromium tested so far). I first though it was flash-related. But since I can't have sound while playing quakelive too (and AFAIK, QLive doesn't uses flash), I'm a bit confused... What could be happening? The only way I can get sound working back in the web browser is to shut down banshee and restart the browser. And I won't be able to make banshee work again before closing the browser, and then starting banshee. The following error is continuously reported when executing chrome from terminal, while using banshee: ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave I searched for some details on google. It seems the first thing I may do is to specify which audio device use by default. So, I tried to find where my HDMI output is... fa...@alpha : aplay -l List of PLAYBACK Hardware Devices card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog] Subdevices: 0/1 Subdevice #0: subdevice #0 card 0: Intel [HDA Intel], device 1: AD198x Digital [AD198x Digital] Subdevices: 1/1 Subdevice #0: subdevice #0 fa...@alpha : lspci | grep -i audio 00:1b.0 Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller fa...@alpha /proc/asound : l -R /proc/asound/ /proc/asound/: total 0 dr-xr-xr-x 5 root root 0 Dec 2 23:45 card0 -r--r--r-- 1 root root 0 Dec 2 23:45 cards -r--r--r-- 1 root root 0 Dec 2 23:45 devices -r--r--r-- 1 root root 0 Dec 2 23:45 hwdep lrwxrwxrwx 1 root root 5 Dec 2 23:45 Intel - card0 -r--r--r-- 1 root root 0 Dec 2 23:45 modules dr-xr-xr-x 2 root root 0 Dec 2 23:45 oss -r--r--r-- 1 root root 0 Dec 2 23:45 pcm dr-xr-xr-x 2 root root 0 Dec 2 23:45 seq -r--r--r-- 1 root root 0 Dec 2 23:45 timers -r--r--r-- 1 root root 0 Dec 2 23:45 version /proc/asound/card0: total 0 -r--r--r-- 1 root root 0 Dec 2 23:45 codec#0 -r--r--r-- 1 root root 0 Dec 2 23:45 id -rw-r--r-- 1 root root 0 Dec 2 23:45 oss_mixer dr-xr-xr-x 5 root root 0 Dec 2 23:45 pcm0c dr-xr-xr-x 3 root root 0 Dec 2 23:45 pcm0p dr-xr-xr-x 3 root root 0 Dec 2 23:45 pcm1p /proc/asound/card0/pcm0c: total 0 -r--r--r-- 1 root root 0 Dec 2 23:45 info -rw-r--r-- 1 root root 0 Dec 2 23:45 oss dr-xr-xr-x 2 root root 0 Dec 2 23:45 sub0 dr-xr-xr-x 2 root root 0 Dec 2 23:45 sub1 dr-xr-xr-x 2 root root 0 Dec 2 23:45 sub2 /proc/asound/card0/pcm0c/sub0: total 0 -r--r--r-- 1 root root 0 Dec 2 23:45 hw_params -r--r--r-- 1 root root 0 Dec 2 23:45 info -rw-r--r-- 1 root root 0 Dec 2 23:45 prealloc -r--r--r-- 1 root root 0 Dec 2 23:45 prealloc_max -r--r--r-- 1 root root 0 Dec 2 23:45 status -r--r--r-- 1 root root 0 Dec 2 23:45 sw_params /proc/asound/card0/pcm0c/sub1: total 0 -r--r--r-- 1 root root 0 Dec 2 23:45 hw_params -r--r--r-- 1 root root 0 Dec 2 23:45 info -rw-r--r-- 1 root root 0 Dec 2 23:45 prealloc -r--r--r-- 1 root root 0 Dec 2 23:45 prealloc_max -r--r--r-- 1 root root 0 Dec 2 23:45 status -r--r--r-- 1 root root 0 Dec 2 23:45 sw_params /proc/asound/card0/pcm0c/sub2: total 0 -r--r--r-- 1 root root 0 Dec 2 23:45 hw_params -r--r--r-- 1 root root 0 Dec 2 23:45 info -rw-r--r-- 1 root root 0 Dec 2 23:45 prealloc -r--r--r-- 1 root root 0 Dec 2 23:45 prealloc_max -r--r--r-- 1 root root 0 Dec 2 23:45 status -r--r--r-- 1 root root 0 Dec 2 23:45 sw_params /proc/asound/card0/pcm0p: total 0 -r--r--r-- 1 root root 0 Dec 2 23:45 info -rw-r--r-- 1 root root 0 Dec 2 23:45 oss dr-xr-xr-x 2 root root 0 Dec 2 23:45 sub0 /proc/asound/card0/pcm0p/sub0: total 0 -r--r--r-- 1 root root 0 Dec 2 23:45 hw_params -r--r--r-- 1 root root 0 Dec 2 23:45 info -rw-r--r-- 1 root root 0 Dec 2 23:45 prealloc -r--r--r-- 1 root root 0 Dec 2 23:45 prealloc_max -r--r--r-- 1 root root 0 Dec 2 23:45 status -r--r--r-- 1 root root 0 Dec 2 23:45 sw_params /proc/asound/card0/pcm1p: total 0 -r--r--r-- 1 root root 0 Dec 2 23:45 info -rw-r--r-- 1 root root 0 Dec 2 23:45 oss dr-xr-xr-x 2 root root 0 Dec 2 23:45 sub0 /proc/asound/card0/pcm1p/sub0: total 0 -r--r--r-- 1 root root 0 Dec 2 23:45 hw_params -r--r--r-- 1 root root 0 Dec 2 23:45 info -rw-r--r-- 1 root root 0 Dec 2 23:45 prealloc -r--r--r-- 1 root root 0 Dec 2 23:45 prealloc_max -r--r--r-- 1 root
Re: [arch-general] alsa, hdmi, and the invisible magic output
On Fri, Dec 3, 2010 at 12:06 AM, Samuel Martín Moro faus...@gmail.comwrote: What can I do? Setting HDMI as default (only) output? How to do so? Wait for a patch? Is it a kernel-related bug? Or with nvidia driver? Would that even fix the banshee/browser troubles accessing device? You can control Alsa routing with the asoundrc [1] config file. [1] http://alsa.opensrc.org/.asoundrc -- Cédric Girard
Re: [arch-general] alsa, hdmi, and the invisible magic output
I've seen that. But I did not seen anything about using a specific output of the card. as I only have one detected device, how can I set HDMI as default output? (or: how can I see my graphic card as a audio device too?) Is it that 'bindings' keyword, that's not explained on the wiki? 2010/12/3 Cédric Girard girard.ced...@gmail.com On Fri, Dec 3, 2010 at 12:06 AM, Samuel Martín Moro faus...@gmail.com wrote: What can I do? Setting HDMI as default (only) output? How to do so? Wait for a patch? Is it a kernel-related bug? Or with nvidia driver? Would that even fix the banshee/browser troubles accessing device? You can control Alsa routing with the asoundrc [1] config file. [1] http://alsa.opensrc.org/.asoundrc -- Cédric Girard -- Samuel Martín Moro {EPITECH.} tek5 CamTrace S.A.S (+033) 1 41 38 37 60 1 Allée de la Venelle 92150 Suresnes FRANCE Nobody wants to say how this works. Maybe nobody knows ... Xorg.conf(5)
Re: [arch-general] alsa, hdmi, and the invisible magic output
I added this .asoundrc: pcm.!default { type hw card 0 } ctl.!default { type hw card 0 } It fixed at least a problem: I've no more warning about snd_pcm_dmix_open. But, still no sound while banshee's operating... On Fri, Dec 3, 2010 at 1:22 AM, Samuel Martín Moro faus...@gmail.comwrote: I've seen that. But I did not seen anything about using a specific output of the card. as I only have one detected device, how can I set HDMI as default output? (or: how can I see my graphic card as a audio device too?) Is it that 'bindings' keyword, that's not explained on the wiki? 2010/12/3 Cédric Girard girard.ced...@gmail.com On Fri, Dec 3, 2010 at 12:06 AM, Samuel Martín Moro faus...@gmail.com wrote: What can I do? Setting HDMI as default (only) output? How to do so? Wait for a patch? Is it a kernel-related bug? Or with nvidia driver? Would that even fix the banshee/browser troubles accessing device? You can control Alsa routing with the asoundrc [1] config file. [1] http://alsa.opensrc.org/.asoundrc -- Cédric Girard -- Samuel Martín Moro {EPITECH.} tek5 CamTrace S.A.S (+033) 1 41 38 37 60 1 Allée de la Venelle 92150 Suresnes FRANCE Nobody wants to say how this works. Maybe nobody knows ... Xorg.conf(5) -- Samuel Martín Moro {EPITECH.} tek5 CamTrace S.A.S (+033) 1 41 38 37 60 1 Allée de la Venelle 92150 Suresnes FRANCE Nobody wants to say how this works. Maybe nobody knows ... Xorg.conf(5)
Re: [arch-general] can't import ctype in python2
On Thu, Dec 2, 2010 at 6:45 PM, Ionuț Bîru ib...@archlinux.org wrote: On 12/02/2010 07:45 AM, 李永 wrote: On Thu, Dec 2, 2010 at 1:32 PM, Allan McRaeal...@archlinux.org wrote: On 02/12/10 15:22, 李永 wrote: Hi, all I can't run ibus-setup and can't see the ibus imput method pannel, after I investgation, I find it is a python problem, when I run ibus-setup, I got the following error: $ ibus-setup Traceback (most recent call last): File /usr/share/ibus/setup/main.py, line 31, inmodule import ibus File /usr/lib/python2.7/site-packages/ibus/__init__.py, line 26, in module from common import * File /usr/lib/python2.7/site-packages/ibus/common.py, line 55, in module import ctypes File /usr/lib/python2.7/ctypes/__init__.py, line 10, inmodule from _ctypes import Union, Structure, Array ImportError: No module named _ctypes and I can't import ctype in python2 too, $ python2 Python 2.7.1 (r271:86832, Dec 1 2010, 13:45:43) [GCC 4.5.1 20101125 (prerelease)] on linux2 Type help, copyright, credits or license for more information. import ctypes Traceback (most recent call last): File stdin, line 1, inmodule File /usr/lib/python2.7/ctypes/__init__.py, line 10, inmodule from _ctypes import Union, Structure, Array ImportError: No module named _ctypes do you meet the same probem, do I miss some package to install? any hint? thanks . Update to python-2.7.1-2 Allan thaks, after I revert to a old verion python, the problem was fixed. who said something about reverting? 2.7.1-2 is a new update that fixes that problem -- Ionuț I installed the old version python from my local pacman package repository cache. -- --- Regards! Li Yong Email: york...@gmail.com Cell Phone: 13064787950 MSN Messenger: sany...@hotmail.com Skype: sanyork
Re: [arch-general] can't import ctype in python2
On Thu, Dec 2, 2010 at 7:38 PM, 李永 york...@gmail.com wrote: On Thu, Dec 2, 2010 at 6:45 PM, Ionuț Bîru ib...@archlinux.org wrote: On 12/02/2010 07:45 AM, 李永 wrote: On Thu, Dec 2, 2010 at 1:32 PM, Allan McRaeal...@archlinux.org wrote: Update to python-2.7.1-2 thanks, after I revert to a old verion python, the problem was fixed. who said something about reverting? 2.7.1-2 is a new update that fixes that problem I installed the old version python from my local pacman package repository cache. yeah... they are telling you to _upgrade_, not downgrade -- the upgrade will apparently correct the exact problem you're describing. C Anthony
Re: [arch-general] alsa, hdmi, and the invisible magic output
What does cat /proc/asound/modules give you? If it lists two different modules, maybe the driver you don't want is loading before the good one, causing alsa to pick the bad one as the primary. In which case you might just be able to fix that by placing the following in /etc/modprobe.d/modprobe.conf: options module_name_here index=-2 which should make the bad module load after the good one. That happened on my system, and this fix worked perfectly for me. -- Andy On Thu, Dec 2, 2010 at 5:45 PM, Samuel Martín Moro faus...@gmail.comwrote: I added this .asoundrc: pcm.!default { type hw card 0 } ctl.!default { type hw card 0 } It fixed at least a problem: I've no more warning about snd_pcm_dmix_open. But, still no sound while banshee's operating... On Fri, Dec 3, 2010 at 1:22 AM, Samuel Martín Moro faus...@gmail.com wrote: I've seen that. But I did not seen anything about using a specific output of the card. as I only have one detected device, how can I set HDMI as default output? (or: how can I see my graphic card as a audio device too?) Is it that 'bindings' keyword, that's not explained on the wiki? 2010/12/3 Cédric Girard girard.ced...@gmail.com On Fri, Dec 3, 2010 at 12:06 AM, Samuel Martín Moro faus...@gmail.com wrote: What can I do? Setting HDMI as default (only) output? How to do so? Wait for a patch? Is it a kernel-related bug? Or with nvidia driver? Would that even fix the banshee/browser troubles accessing device? You can control Alsa routing with the asoundrc [1] config file. [1] http://alsa.opensrc.org/.asoundrc -- Cédric Girard -- Samuel Martín Moro {EPITECH.} tek5 CamTrace S.A.S (+033) 1 41 38 37 60 1 Allée de la Venelle 92150 Suresnes FRANCE Nobody wants to say how this works. Maybe nobody knows ... Xorg.conf(5) -- Samuel Martín Moro {EPITECH.} tek5 CamTrace S.A.S (+033) 1 41 38 37 60 1 Allée de la Venelle 92150 Suresnes FRANCE Nobody wants to say how this works. Maybe nobody knows ... Xorg.conf(5)