Re: [gentoo-user] Skype && pulseaudio

2010-02-23 Thread Mike Mazur
Hi,

On Tue, Feb 23, 2010 at 16:08, Alexander Puchmayr
 wrote:
> The original problem is still not solved: How do I tell pulseaudio that the
> sound from application XX shall go to device YY ???

Usually the pavucontrol app does this. When a call starts, open
pavucontrol (or Applications -> Sound & Video -> PulseAudio Volume
Control), find your Skype call in the Streams list, right-click and
pick the device you want that call to use.

As the note at the bottom of the Streams tab says, this appears to
only modify the output device, not the input device. That would
explain why Skype stubbornly continued to use only the built-in mic in
my case.

Hope that helps,
Mike



Re: [gentoo-user] Skype && pulseaudio

2010-02-22 Thread Mike Mazur
Hi,

On Mon, Feb 22, 2010 at 15:38, Alexander Puchmayr
 wrote:
> The 2.1.x-Version of Skype seems to use pulseaudio if it finds a pulsaudio-
> deamon running, and doesn't allow to chose the audio device in this case.

Yep, I noticed this recently as well, and was initially quite happy
with this development :)

> What I want to have is very simple:
> * Ringtone and any other sound produced by skype shall go to the internal
> sound device with loudspeakers connected
> * Audiostream for talking to someone shall go to the USB-Headset.
>
> How do I configure this?

This is indeed a problem. In the past I used the mic of my USB headset
and the external speakers for calls, but now I can't get that
configuration any longer. It's always using the crappy mic built-in to
my laptop.

I'll be very interested in the solution :)

Thanks,
Mike



Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?

2009-12-14 Thread Mike Mazur
Hi,

On Mon, Dec 14, 2009 at 19:17, Mick  wrote:
> 2009/12/13 Mike Mazur :
>
>> I ran across this issue last night.
>>
>> At some point /etc/rc.conf was no longer being sourced. Instead,
>> setting the XSESSION variable in /etc/env.d is the correct way to do
>> it. From the pkg_postinst section of the x11-apps/xinit ebuild[1]:
>>
>>        ewarn "If you use startx to start X instead of a login manager like 
>> gdm/kdm,"
>>        ewarn "you can set the XSESSION variable to anything in 
>> /etc/X11/Sessions/ or"
>>        ewarn "any executable. When you run startx, it will run this as the
>> login session."
>>        ewarn "You can set this in a file in /etc/env.d/ for the entire 
>> system,"
>>        ewarn "or set it per-user in ~/.bash_profile (or similar for other 
>> shells)."
>>        ewarn "Here's an example of setting it for the whole system:"
>>        ewarn "    echo XSESSION=\"Gnome\" > /etc/env.d/90xsession"
>>        ewarn "    env-update && source /etc/profile"
>>
>> So, creating /etc/env.d/90xsession with the contents XSESSION="Gnome"
>> (I use Gnome) did the trick.
>
> Thanks Mike, most helpful!  What happens if you want to switch between
> different sessions at/from the Display Manager stage?  Do you place
> them all in /etc/env.d/90xsession ?

Sorry, I'm not sure how to do that. I'm the only user on my system and
I don't use a graphical login manager.

Mike



Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?

2009-12-13 Thread Mike Mazur
Hi,

I ran across this issue last night.

On Mon, Dec 14, 2009 at 02:30, Mick  wrote:
> If this is the case, am I right to assume that the files in
> /etc/X11/Sessions/* are not used anymore and the solution is to set up a local
> ~/.xinitrc file for launching the desired WM?

The scripts in /etc/X11/Sessions/ can still be used.

> I am muddled up because I have forever it seems used /etc/rc.conf to manage
> the XSESSION which xdm would pick from /etc/X11/Sessions/* to start different
> WMs.

At some point /etc/rc.conf was no longer being sourced. Instead,
setting the XSESSION variable in /etc/env.d is the correct way to do
it. From the pkg_postinst section of the x11-apps/xinit ebuild[1]:

ewarn "If you use startx to start X instead of a login manager like 
gdm/kdm,"
ewarn "you can set the XSESSION variable to anything in 
/etc/X11/Sessions/ or"
ewarn "any executable. When you run startx, it will run this as the
login session."
ewarn "You can set this in a file in /etc/env.d/ for the entire system,"
ewarn "or set it per-user in ~/.bash_profile (or similar for other 
shells)."
ewarn "Here's an example of setting it for the whole system:"
ewarn "echo XSESSION=\"Gnome\" > /etc/env.d/90xsession"
ewarn "env-update && source /etc/profile"

So, creating /etc/env.d/90xsession with the contents XSESSION="Gnome"
(I use Gnome) did the trick.

Hope that helps,
Mike


[1] http://gentoo-portage.com/AJAX/Ebuild/100485/View



Re: [gentoo-user] adobe air working for anyone?

2009-12-05 Thread Mike Mazur
Hi,

On Sun, Dec 6, 2009 at 08:26, Grant  wrote:
> Has anyone gotten adobe air working?  I've got an .air file
> (PandoraOne app) and I've installed adobe air from the ikelos overlay,
> but I can't figure out how to run the app.

I installed the Adobe AIR SDK downloaded directly from Adobe. I put it
in /opt/AIR-SDK. I then created /opt/AIR-apps where I unzip the .air
files for my apps (.air is just a zip file).

I then run my app with a command like this:

$ /opt/AIR-SDK/bin/adl
/opt/AIR-apps//META-INF/AIR/application.xml
/opt/AIR-apps//

You might need to adjust that command line according to where AIR is
installed from the ikelos overlay.

HTH,
Mike



Re: [gentoo-user] WiFi access point with iwl3945

2009-11-07 Thread Mike Mazur
Hi,

On Sat, Nov 7, 2009 at 18:08, Florian Philipp
 wrote:
> Mike Mazur schrieb:
>> I'm trying to set up my laptop to be a wireless access point. It has
>> an iwl3945 card. I followed the "Atheros Ath5k Wireless Access Point"
>> article on gentoo-wiki.com[1] before realizing that it was Atheros
>> specific.
>>
>> [...]
>>
>> Does anyone know whether it's possible to use hostapd with iwlwifi
>> drivers? Is there an alternative access point software I can use?
>
> Sorry, your hardware doesn't support working as an access point.

Thanks for clarifying. No wonder I couldn't find any tutorials
specific to the iwlwifi driver.

Mike



Re: [gentoo-user] Re: Remaining inconsistencies after revdep-rebuild -- libgomp.la missing

2009-10-18 Thread Mike Mazur
Hi,

On Mon, Oct 19, 2009 at 10:16, Mike Mazur  wrote:
> Hi,
>
> On Mon, Oct 19, 2009 at 09:52, Mike Mazur  wrote:
>> Hi,
>>
>> On Mon, Oct 19, 2009 at 09:23, walt  wrote:
>>> On 10/18/2009 05:31 PM, Mike Mazur wrote:
>>>> Hi,
>>>>
>>>> When I run revdep-rebuild, I get something like the following:
>>>>
>>>> [...]
>>>>  *   broken /usr/lib/ImageMagick-6.5.2/modules-Q16/coders/avi.la
>>>> (requires /usr/lib/libgomp.la)...
>>>
>>> There is a very recent thread addressing the problem of .la files
>>> "requiring" other .la files.  This is apparently unnecessary and
>>> sometimes counterproductive.
>>>
>>> Try emerging lafilefixer and then run lafilefixer --justfixit.
>>> It couldn't hurt, and might help.
>>
>> OK, will try, thanks.
>
> That did the trick. revdep-rebuild no longer reports any issues.

And here's a blog post and a bug explaining what's going on:

http://psykil.livejournal.com/338199.html
https://bugs.gentoo.org/283761

Mike



Re: [gentoo-user] Re: Remaining inconsistencies after revdep-rebuild -- libgomp.la missing

2009-10-18 Thread Mike Mazur
Hi,

On Mon, Oct 19, 2009 at 09:52, Mike Mazur  wrote:
> Hi,
>
> On Mon, Oct 19, 2009 at 09:23, walt  wrote:
>> On 10/18/2009 05:31 PM, Mike Mazur wrote:
>>> Hi,
>>>
>>> When I run revdep-rebuild, I get something like the following:
>>>
>>> [...]
>>>  *   broken /usr/lib/ImageMagick-6.5.2/modules-Q16/coders/avi.la
>>> (requires /usr/lib/libgomp.la)...
>>
>> There is a very recent thread addressing the problem of .la files
>> "requiring" other .la files.  This is apparently unnecessary and
>> sometimes counterproductive.
>>
>> Try emerging lafilefixer and then run lafilefixer --justfixit.
>> It couldn't hurt, and might help.
>
> OK, will try, thanks.

That did the trick. revdep-rebuild no longer reports any issues.

Thanks very much!
Mike



Re: [gentoo-user] Re: Remaining inconsistencies after revdep-rebuild -- libgomp.la missing

2009-10-18 Thread Mike Mazur
Hi,

On Mon, Oct 19, 2009 at 09:23, walt  wrote:
> On 10/18/2009 05:31 PM, Mike Mazur wrote:
>> Hi,
>>
>> When I run revdep-rebuild, I get something like the following:
>>
>> [...]
>>  *   broken /usr/lib/ImageMagick-6.5.2/modules-Q16/coders/avi.la
>> (requires /usr/lib/libgomp.la)...
>
> There is a very recent thread addressing the problem of .la files
> "requiring" other .la files.  This is apparently unnecessary and
> sometimes counterproductive.
>
> Try emerging lafilefixer and then run lafilefixer --justfixit.
> It couldn't hurt, and might help.

OK, will try, thanks.

I looked at the output of the emerge for imagemagick a bit closer, and
noticed a bunch of messages like this:

libtool: link: warning:
`/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/libgomp.la' seems to be moved

Mike



[gentoo-user] Remaining inconsistencies after revdep-rebuild -- libgomp.la missing

2009-10-18 Thread Mike Mazur
Hi,

When I run revdep-rebuild, I get something like the following:

[...]
 *   broken /usr/lib/ImageMagick-6.5.2/modules-Q16/coders/avi.la
(requires /usr/lib/libgomp.la)
[...]
 *   broken /usr/lib/libfftw3l_threads.la (requires /usr/lib/libgomp.la)
[...]

which in the end wants to emerge as follows:

emerge --oneshot -av media-gfx/imagemagick:0
sci-libs/fftw:3.0
..

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-gfx/imagemagick-6.5.2.9  USE="X bzip2 corefonts
jpeg openmp perl png svg tiff xml zlib -djvu -doc -fontconfig -fpx
-graphviz -gs -hdri -jbig -jpeg2k -lcms -nocxx -openexr -q32 -q8 -raw
-truetype -wmf" 0 kB
[ebuild   R   ] sci-libs/fftw-3.2.2  USE="fortran openmp sse sse2
(-altivec) -doc -threads" 0 kB

Once this merge completes, re-running revdep-rebuild yields the same results.

It seems that the culprit is /usr/lib/libgomp.la, which is completely
missing from my system. This is some OpenMP library from GNU[1]. I
can't find an obvious package in portage which would supply
libgomp.la.

Both imagemagick and fftw have the openmp use flag turned on. It's not
switched on in my /etc/portage/package.use so it must come from the
profile or the ebuild or wherever default USE flags come from.

The fftw ebuild says openmp support is available with gcc >= 4.2,
while imagemagick says gcc 4.3 is required and has a reference to bug
#223825[2]. I'm using gcc-4.3.4.

Is there a package that should be installed which provides libgomp.la?
If there is, shouldn't it be a dependency for imagemagick and fftw?
And if such a package doesn't exist, what's going on here? How did
imagemagick and fftw compile in the first place if libgomp.la is not
available on my system at all? Is anyone else seeing this issue? Do I
need to file a bug?

Thanks,
Mike


[1] http://gcc.gnu.org/onlinedocs/libgomp/
[2] http://bugs.gentoo.org/show_bug.cgi?id=223825



Re: [gentoo-user] Changing xorg.conf at runtime (nVidia cards)

2009-07-31 Thread Mike Mazur
Hi,

On Fri, Jul 31, 2009 at 11:23, Dale wrote:
> Mike Mazur wrote:
>> On Fri, Jul 31, 2009 at 05:44, Fernando Antunes wrote:
>>>  I don't use xorg.conf in my notebook Lenovo T61, Intel 965GSM , xorg and
>>> xfce ~x86, gentoo 2.6.30 with KMS, anymore.
>>>   Both kernel and X switch to 1280x800 resolution automatically, xinerama is
>>> disable.
>>>
>> Interesting, so you don't have /etc/X11/xorg.conf file at all?
>>
> If you have hal enabled and xorg-server-1.5 or higher, then you don't
> have to have a xorg.conf file.  This is from what I have read.  I have
> yet to get that hal thing to work here.
>
> If you are still on the old xorg-server then you have to have a
> xorg.conf file.

I tried this earlier, running startx without an /etc/X11/xorg.conf in
place, but X didn't start. The error message was something along the
lines of "No screen found."

I'm running:
- x11-base/xorg-server-1.5.3-r6
- x11-base/xorg-x11-7.2
- sys-apps/hal-0.5.11-r9

Mike



Re: [gentoo-user] Changing xorg.conf at runtime (nVidia cards)

2009-07-30 Thread Mike Mazur
Hi,

On Fri, Jul 31, 2009 at 05:44, Fernando Antunes wrote:
>  I don't use xorg.conf in my notebook Lenovo T61, Intel 965GSM , xorg and
> xfce ~x86, gentoo 2.6.30 with KMS, anymore.
>   Both kernel and X switch to 1280x800 resolution automatically, xinerama is
> disable.

Interesting, so you don't have /etc/X11/xorg.conf file at all?

> When I connect a external monitor, I just use this basic script to adjust my
> external monitor to have a wide screen (VGA1)
>
> xrandr --output LVDS1 --mode 1280x800
> xrandr --output VGA1 --mode 1280x1024 --above LVDS1
>
> To do this more useful, you can pass the resolution of VGA1 as a parameter.
>
> To disable wide screen :
>
> xrandr --output LVDS --mode 1280x800
> xrandr --output VGA --mode 1024x1024 --same-as LVDS

I have seen examples like this, but they all start with "execute
`xrandr -q` to see which displays are connected" which in my case
doesn't work. I only see something like this:

$ xrandr -q
Screen 0: minimum 2560 x 1024, current 2560 x 1024, maximum 2560 x 1024
default connected 2560x1024+0+0 0mm x 0mm
   2560x1024  50.0*

I think this may be because I'm using the xorg.conf files as generated
by the nvidia-settings tool. I'll try starting X without an xorg.conf
file to see if this has any effect.

Thanks,
Mike



[gentoo-user] Changing xorg.conf at runtime (nVidia cards)

2009-07-28 Thread Mike Mazur
Hello,

I have an nVidia card, and I can use the NVIDIA X Server Settings app
to dynamically detect and configure displays I connect to my laptop.
When I'm done with the configuration, I simply apply it, and keep on
truckin' without having to restart X.

Doing this manually each time I connect/disconnect an external display
can get tiresome. I can generate an xorg.conf for each setup I
frequently use (ie: different monitors at work/home, no monitor on the
go), but that means restarting X when the display configuration
changes. This can be undesirable if I just want to move from my desk
to the living room.

I'd like to run a single command, passing it one of my xorg.conf files
(for instance), and have my screens configured on-the-fly. I looked at
the command-line options for nvidia-settings and nvidia-xconfig but
they don't seem to do what I want. I also looked at XRandR but I'm not
sure what's the best way forward.

Does anyone have something like this already set up? What did you use?
Will these nvidia tools do what I need or should I look to XRandR? How
do I get started with setting up XRandR?

Thanks!
Mike



Why does /sbin/rc not work when called from a script? (WAS: Re: [gentoo-user] Power management updates?)

2009-06-24 Thread Mike Mazur
Hi,

On Wed, Jun 24, 2009 at 17:50, Alan McKinnon wrote:
> On Wednesday 24 June 2009 03:28:55 Mike Mazur wrote:
>> Still one issue remains -- why are my RC states not automatically
>> switched between default and battery even though my acpid setup is
>> right and works (according to the log messages)?
>
> The simplest answer (usually the right one) is that you are probably grepping
> for the wrong string. These things are subject to change and there's no easy
> way for you to find out when it happens.

You mean grepping for the wrong string in syslog? I don't think that's
an issue, since pmg_switch_runlevel.sh is being called (as can be seen
by the log messages).

I looked inside /sbin/rc and discovered that control flow ends up at
the elsif statement on line 607. This is because $RUNLEVEL is "S" and
$argv1 is "battery". The relevant code is:

elif [[ ( ${RUNLEVEL} == "S" || ${RUNLEVEL} == "1" ) && ${argv1} != "single" ]]
then
level=$(awk -v level="${argv1}" '
$2 == level {
split($0, fields, ":")
print fields[2]
exit
}' /etc/inittab 2>/dev/null)
[[ -z ${level} ]] && level=3
/sbin/telinit "${level}"
exit 0
fi

AFAICT, this code looks for the desired runlevel in /etc/inittab and
if that runlevel is there, we change to runlevel 3 (aka default). The
battery runlevel does not exist in /etc/inittab (and I'm pretty sure
it never did before), so the runlevel is never changed to battery.

What is interesting, though, is if I run `/sbin/rc battery` manually
from the command line, there are no problems and I find myself in the
battery runlevel. So I guess something has changed in /sbin/rc which
causes it to function differently when called from a script.

Does anyone know what's the proper way of calling /sbin/rc from a
script? Perhaps there are some parameters I should pass it to get the
runlevels to switch? I'm running sys-apps/baselayout-1.12.11.1 and it
doesn't seem to have a man page.

Thanks,
Mike



Re: [gentoo-user] Power management updates?

2009-06-23 Thread Mike Mazur
Hi,

On Tue, Jun 23, 2009 at 04:44, Alan McKinnon wrote:
> On Monday 22 June 2009 15:56:47 Mike Mazur wrote:
>> 
>> I noticed some issues with the power management setup I had when I
>> upgraded kernels over the last few months. This past weekend I decided
>> to crack down on this to see whether they could be fixed. I visited
>> the Gentoo Power Management Guide[1] again and re-traced the setup to
>> verify my system's behavior.
>
> Dump cpufreqd. Use just the ondemand governor instead and get rid of the rest.
>
> 
>
> That sounds like the conservative governor, the worst one of the lot. It
> forces the cpu to rapidly change state, and do it often. Changing C state is
> expensive, do it as seldom as you can. Just use ondemand all the time.

You mean set the default governor to "ondemand" in the kernel and
leave it at that regardless of whether running on batter or AC power?

>
>> The third issue seems to be with power management of my wireless card.
>> I have the iwl3945 wireless card. In older version of the kernel
>> (2.6.25 and before, I believe) this card was managed by a daemon in
>> userspace. After that the driver was merged into the kernel. I noticed
>> recently that the entry in /etc/conf.d/net (as per the Power
>> Management Guide) causes this error when the interface comes up:
>
> iwl3945 does not (yet) support this to the best of my knowledge. It also
> doesn't work here either.

Alright, this makes sense I guess.

Still one issue remains -- why are my RC states not automatically
switched between default and battery even though my acpid setup is
right and works (according to the log messages)?

Thanks,
Mike



[gentoo-user] Power management updates?

2009-06-22 Thread Mike Mazur
Hello,

I noticed some issues with the power management setup I had when I
upgraded kernels over the last few months. This past weekend I decided
to crack down on this to see whether they could be fixed. I visited
the Gentoo Power Management Guide[1] again and re-traced the setup to
verify my system's behavior.

First issue is the runlevels are not switching properly when the AC
power adapter is un/plugged. When the power cable is unplugged, I see
the following entries in the syslog:

Jun 22 21:36:12 kitt logger: ACPI event unhandled: ac_adapter
ACPI0003:00 0080 
Jun 22 21:36:12 kitt logger: Switching to battery runlevel
Jun 22 21:36:13 kitt logger: ACPI event unhandled: processor
ACPI_CPU:00 0081 
Jun 22 21:36:13 kitt logger: ACPI event unhandled: processor
ACPI_CPU:01 0081 
Jun 22 21:36:13 kitt logger: ACPI event unhandled: battery PNP0C0A:00
0080 0001
Jun 22 21:36:13 kitt logger: Switching to battery runlevel

The syslog contains messages that the system is switching to runlevel
battery. These log messages are in
/etc/acpi/actions/pmg_switch_runlevel.sh. Unfortunately, the system
never changes from runlevel default; looking at
/var/lib/init.d/softlevel confirms this:

$ cat /var/lib/init.d/softlevel
default

When plugging the power back in, the syslog lacks the corresponding
"Switching to default runlevel" messages:

Jun 22 21:38:43 kitt logger: ACPI event unhandled: ac_adapter
ACPI0003:00 0080 0001
Jun 22 21:38:44 kitt logger: ACPI event unhandled: processor
ACPI_CPU:00 0081 
Jun 22 21:38:44 kitt logger: ACPI event unhandled: processor
ACPI_CPU:01 0081 
Jun 22 21:38:44 kitt logger: ACPI event unhandled: battery PNP0C0A:00
0080 0001

The second issue is with cpufreqd. When the power is unplugged, the
CPU scaling kicks in as expected, and the processors are cut to half
power (running at ~1GHz instead of their full capacity of ~2GHz). When
the AC adapter is plugged back in, the CPUs continue to operate at
only ~1GHz instead of being bumped back up to ~2GHz and I see messages
like this in my syslog:

Jun 22 21:38:44 kitt cpufreqd: cpufreqd_set_profile : Couldn't set
profile "Performance High" set for cpu0 (1998000-1998000-performance)
Jun 22 21:38:44 kitt cpufreqd: cpufreqd_loop: Cannot set
policy, Rule unchanged ("AC Off - High Power").

I pasted my /etc/cpufreqd.conf file at the end of this email.

The third issue seems to be with power management of my wireless card.
I have the iwl3945 wireless card. In older version of the kernel
(2.6.25 and before, I believe) this card was managed by a daemon in
userspace. After that the driver was merged into the kernel. I noticed
recently that the entry in /etc/conf.d/net (as per the Power
Management Guide) causes this error when the interface comes up:

 * Starting wlan0
Error for wireless request "Set Power Management" (8B2C) :
SET failed on device wlan0 ; Operation not supported.
 *   wlan0 does not support the following configuration commands
 * power on

I guess with the driver moving into the kernel, this setting has
changed as well. Is there another way to enable power management on my
wireless card? Is it still necessary?

Any input on these things would be much appreciated.

A few details:
I'm running gentoo-sources-2.6.30-r1
I updated a cpufreqd to version 2.3.4 by coping the version 2.2.1
.ebuild file into my local overlay and bumping the version
I updated the files installed by powermgmt-base with those in upstream
version 1.30

Thanks,
Mike


[1] http://www.gentoo.org/doc/en/power-management-guide.xml

# cat /etc/cpufreqd.conf
# this is a comment
# see CPUFREQD.CONF(5) manpage for a complete reference

[General]
pidfile=/var/run/cpufreqd.pid
poll_interval=2
enable_plugin=acpi_ac, acpi_battery
enable_remote=1
remote_group=wheel
verbosity=4
[/General]

[acpi]
acpid_socket=/var/run/acpid.socket
[/acpi]

#[nforce2_atxp1]
#vcore_path=/some/path
#vcore_default=1500
#[/nforce2_atxp1]

#[sensors_plugin]
#sensors_conf=/some/file
#[/sensors_plugin]

[Profile]
name=On Demand High
minfreq=40%
maxfreq=100%
policy=ondemand
[/Profile]

[Profile]
name=On Demand Low
minfreq=20%
maxfreq=80%
policy=ondemand
[/Profile]

[Profile]
name=Performance High
minfreq=100%
maxfreq=100%
policy=performance
#exec_post=echo 8 > /proc/acpi/sony/brightness
[/Profile]

[Profile]
name=Performance Low
minfreq=80%
maxfreq=80%
policy=performance
[/Profile]

[Profile]
name=Powersave High
minfreq=70%
maxfreq=70%
policy=powersave
[/Profile]

[Profile]
name=Powersave Low
minfreq=30%
maxfreq=30%
policy=powersave
[/Profile]

#[Profile]
#name=Conservative High
#minfreq=33%
#maxfreq=100%
#policy=conservative
#[/Profile]
#
#[Profile]
#name=Conservative Low
#minfreq=0%
#maxfreq=66%
#policy=conservative
#[/Profile]

##
# Basic states
##
# when AC use performance mode
[Rule]
name=AC Rule
ac=on# (on/off)
profile=Performance High
[/Rule]

# conservative mode when not AC
[Rule]
nam

Re: [gentoo-user] Cursor keys stopped working in VMware workstation

2009-05-07 Thread Mike Mazur
Hi,

On Fri, May 8, 2009 at 6:35 AM, Jim Cunning  wrote:
> I have been using VMware workstation V. 5.5.9 and a Logitech wireless keyboard
> for some time.  Today I somehow mistyped a Ctrl- sequence while in
> the VM window, meaning to enter it elsewhere instead of the VM.  Now, the
> cursor keys between the main keys and the keypad have stopped working
> correctly.  Most do nothing, but the down arrow key causes Windows to raise
> the Start menu, as if I had pressed the "windows" key near left-alt.

I have also experienced this recently when I installed new VMs. I did
some research and found a post on the vmware forums[1]. The solution
for me was to add this line to /etc/vmware-server-console/config:

xkeymap.nokeycodeMap = true

I thought my issue was related to the fact that I'm using
vmware-server-console on my 32-bit Gentoo laptop and trying to send
commands to a 64-bit CentOS VM running on a 64-bit CentOS host on my
LAN. But since you're seeing this issue too with existing VMs, perhaps
it's related to the recent Xorg upgrade?

HTH,
Mike


[1] http://communities.vmware.com/thread/177321



[gentoo-user] Re: Enable scrolling on external USB IBM UltraNav keyboard

2009-05-06 Thread Mike Mazur
Hello,

On Thu, May 7, 2009 at 12:09 PM, Mike Mazur  wrote:
> I have an external USB IBM ThinkPad UltraNav keyboard[1] attached to
> my laptop and I'd like to get scrolling to work. Currently to scroll I
> mouse over the scrollbar, click and move the pointer. I have looked at
> some resources[2][3][4] but was unsuccessful.
>
> [...]
>
> [1] 
> http://fula.jp/blog/image/ThinkPlus_USB_Keyboard_with_UltraNav_Japanese.jpg
> [2] http://kaeru.my/journal/scrolling-with-thinkpad-keyboard-with-ultranav
> [2] 
> http://www.thinkwiki.org/wiki/Installing_Ubuntu_8.10_(Intrepid_Ibex)_on_a_ThinkPad_T61#Emulate_Wheel_.28Middle-click_scrolling.29
> [4] http://mvogt.wordpress.com/2008/08/15/xorg-evdev-and-emulatewheel/
>
> $ cat /etc/hal/fdi/policy/mouse-wheel.fdi
> 
> 
>  
>  
>  
>  
>   true
>   2
>   4 5
>   true
>  
>  
> 

I found the problem: there's a tag mismatch in the fdi policy file. I
have two  tags, but the second one needs to be a
 tag.

Mike



[gentoo-user] Enable scrolling on external USB IBM UltraNav keyboard

2009-05-06 Thread Mike Mazur
Hi,

I have an external USB IBM ThinkPad UltraNav keyboard[1] attached to
my laptop and I'd like to get scrolling to work. Currently to scroll I
mouse over the scrollbar, click and move the pointer. I have looked at
some resources[2][3][4] but was unsuccessful.

I'll append some information on my keyboard to the end of this email.
Note that my laptop is not a ThinkPad, but it has its own synaptics
touchpad. I include its lsusb output as well.

I test by loading up a long page in Firefox, then hold down the middle
mouse button and scrolling with the red nubbie immediately above the B
key, but the page does not scroll.

Any pointers?

Thanks!
Mike


[1] http://fula.jp/blog/image/ThinkPlus_USB_Keyboard_with_UltraNav_Japanese.jpg
[2] http://kaeru.my/journal/scrolling-with-thinkpad-keyboard-with-ultranav
[2] 
http://www.thinkwiki.org/wiki/Installing_Ubuntu_8.10_(Intrepid_Ibex)_on_a_ThinkPad_T61#Emulate_Wheel_.28Middle-click_scrolling.29
[4] http://mvogt.wordpress.com/2008/08/15/xorg-evdev-and-emulatewheel/

$ cat /etc/hal/fdi/policy/mouse-wheel.fdi


 
  
  
  
   true
   2
   4 5
   true
  
 


Excerpt from `xinput list`:

"SynPS/2 Synaptics TouchPad"id=2[XExtensionPointer]
Num_buttons is 12
Num_axes is 2
Mode is Relative
Motion_buffer is 256
Axis 0 :
Min_value is 1472
Max_value is 5472
Resolution is 1
Axis 1 :
Min_value is 1408
Max_value is 4448
Resolution is 1
"AT Translated Set 2 keyboard"  id=3[XExtensionKeyboard]
Num_keys is 248
Min_keycode is 8
Max_keycode is 255
"Synaptics Inc. Composite TouchPad / TrackPoint"id=4
[XExtensionPointer]
Num_buttons is 32
Num_axes is 2
Mode is Relative
Motion_buffer is 256
Axis 0 :
Min_value is -1
Max_value is -1
Resolution is 1
Axis 1 :
Min_value is -1
Max_value is -1
Resolution is 1
"Synaptics Inc. Composite TouchPad / TrackPoint"id=5
[XExtensionPointer]
Num_buttons is 32
Num_axes is 2
Mode is Relative
Motion_buffer is 256
Axis 0 :
Min_value is -1
Max_value is -1
Resolution is 1
Axis 1 :
Min_value is -1
Max_value is -1
Resolution is 1
"Lite-On Tech IBM USB Keyboard with UltraNav"   id=6[XExtensionKeyboard]
Num_keys is 248
Min_keycode is 8
Max_keycode is 255
Num_buttons is 32
"Lite-On Tech IBM USB Keyboard with UltraNav"   id=7[XExtensionKeyboard]
Num_keys is 248
Min_keycode is 8
Max_keycode is 255

Excerpt from `lsusb -v`:

Bus 003 Device 007: ID 06cb:0009 Synaptics, Inc. Composite TouchPad
and TrackPoint
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   1.10
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 8
  idVendor   0x06cb Synaptics, Inc.
  idProduct  0x0009 Composite TouchPad and TrackPoint
  bcdDevice0.20
  iManufacturer   1 Synaptics Inc.
  iProduct2 Composite TouchPad / TrackPoint
  iSerial 0
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   91
bNumInterfaces  2
bConfigurationValue 1
iConfiguration  0
bmAttributes 0xa0
  (Bus Powered)
  Remote Wakeup
MaxPower  100mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   1
  bInterfaceClass 3 Human Interface Device
  bInterfaceSubClass  1 Boot Interface Subclass
  bInterfaceProtocol  2 Mouse
  iInterface  3 Rel
HID Device Descriptor:
  bLength 9
  bDescriptorType33
  bcdHID   1.00
  bCountryCode0 Not supported
  bNumDescriptors 1
  bDescriptorType34 Report
  wDescriptorLength  50
 Report Descriptors:
   ** UNAVAILABLE **
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes3
  Transfer TypeInterrupt
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0003  1x 3 bytes
bInterval  10
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfa

Re: [gentoo-user] Synaptic touchpad sensitive after upgrade to Xorg 1.5.3

2009-05-06 Thread Mike Mazur
Hi,

On Wed, May 6, 2009 at 3:42 AM, Alan McKinnon  wrote:
> Here's my current policy file for comparison (mostly untouched
> from default):

Thanks for pasting that. Comparing your config to mine, I noticed my
MaxTapMove was set to 2000, much higher than yours. Somehow I
uncommented that in the example fdi policy file. This setting so
large, every time I moved my mouse pointer across the screen in
multiple swipes, synaptics treated it as a double-click.

Thanks again,
Mike



[gentoo-user] Synaptic touchpad sensitive after upgrade to Xorg 1.5.3

2009-05-05 Thread Mike Mazur
Hi,

After my upgrade to Xorg 1.5.3 I reconfigured my synaptic touchpad to
be controlled with hal. I copied the fdi policy found in
/usr/share/hal/fdi/policy/11-x11-synaptics.fdi to /etc/hal/fdi/policy.
My only changes are disabling VertTwoFingerScroll and setting
TapButton1 and TapButton2 to 1 and 2, respectively.

Now my touchpad is extremely sensitive: when moving the cursor from
one end of the screen to another, I sometimes make multiple sweeps
across the touchpad with my thumb, and I find that all of a sudden I'm
inadvertently dragging a desktop icon or highlighting a block of text
in the browser. I tried increasing the FingerHigh option, but this
seemed to disable the click-drag feature altogether.

Which option do I need to tweak to turn down this sensitivity?

Thanks,
Mike



[gentoo-user] Locations section of GNOME calendar dropdown always hidden

2009-04-02 Thread Mike Mazur
Hi,

The "Locations" part of the drop-down calendar in GNOME is always
closed when I look at it. Is there an option somewhere I'm missing
which controls this behavior? I'd like it to always stay open.

Thanks,
Mike



Re: [gentoo-user] media-video/gspcav1 or kernel module?

2009-02-08 Thread Mike Mazur
Hi,

On Sun, Feb 8, 2009 at 12:24 PM, Iain Buchanan  wrote:
> I recently upgraded from 2.6.26 to 2.6.28.  My el-cheapo webcam (lsusb:
> 0c45:602c Microdia Clas Ohlson TWC-30XOP WebCam) used the
> media-video/gspcav1 driver, but that no longer compiles:

Maybe this page will point you to the right driver:

http://cateee.net/lkddb/web-lkddb/VIDEO_DEV.html

HTH,
Mike



Re: [gentoo-user] Firefox 3 automatic spell check broken

2008-11-21 Thread Mike Mazur
Hi,

On Fri, Nov 21, 2008 at 9:24 AM, Paul Hartman
<[EMAIL PROTECTED]> wrote:
> I may have already missed it in this thread -- but I must ask the obvious:
>
> If you right-click in a text-entry field, is "Check spelling" enabled?

This was it.

When I right clicked in a text area, I didn't see the "Check spelling"
option, but I did see "Add dictionaries..." which brought me to the
addons.mozilla.com Dictionary & Language Packs site[1]. I installed
the US English pack and now spell checking works as expected.

I had no clue I had to install the language pack myself. Isn't that
portage's job?

Thank you so much for that pointer!
Mike

[1] https://addons.mozilla.org/en-US/firefox/browse/type:3



[gentoo-user] Re: Firefox 3 automatic spell check broken

2008-11-20 Thread Mike Mazur
Hi,

On Tue, Nov 18, 2008 at 6:54 PM, Mike Mazur <[EMAIL PROTECTED]> wrote:
> With Firefox 2.x whenever I typed into a text area and misspelled
> something, the word would be underlined. Ever since I updated to
> Firefox 3 this no longer happens.
>
> I've looked at USE flags for mozilla-firefox and xulrunner and don't
> see anything that indicates aspell or similar.
>
> What am I missing?

I thought maybe it was some extension preventing the automatic spell
check, so I moved my ~/.mozilla folder and started a brand new
Firefox, but the issue remains.

Mike



Re: [gentoo-user] Firefox 3 automatic spell check broken

2008-11-20 Thread Mike Mazur
Hi,

On Wed, Nov 19, 2008 at 1:19 AM, Kevin O'Gorman <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 18, 2008 at 7:00 AM, Albert Hopkins <[EMAIL PROTECTED]> wrote:
>> On Tue, 2008-11-18 at 18:54 +0900, Mike Mazur wrote:
>>> With Firefox 2.x whenever I typed into a text area and misspelled
>>> something, the word would be underlined. Ever since I updated to
>>> Firefox 3 this no longer happens.
>>
>> In Epiphany at least I was able to enable it with the following
>> about:config options:
>>
>> spellchecker.dictionary = "en_US"
>> layout.spellcheckDefault = 2
>>
>> You may want to specify 1 instead of 2 if you only want spellchecking in
>> s
>
> Interesting.  Spelling has been working here just fine as in "it just
> works", but I checked my settings, and I had
> spellchecker.dictionary = "en-US"
> with a hyphen instead of underscore. It said "user set" but I didn't
> do it. Significant?

I also found spellchecker.dictionary = "en-US" in my settings. No
combination of layout.spellcheckDefault and spellchecker.dictionary as
suggested above fixes the issue, though.

Mike



Re: [gentoo-user] Firefox 3 automatic spell check broken

2008-11-20 Thread Mike Mazur
Hi,

On Tue, Nov 18, 2008 at 8:09 PM, Alan McKinnon <[EMAIL PROTECTED]> wrote:
> Well, my ff-3.0.4 works correctly, so you at least have a working install to
> compare to. Mine was a case of 'emerge mozilla-firefox", oh look, it works

Yeah, I haven't been able to find any bugs or threads on this issue,
so it seems I got unlucky.

> What linguas do you have in USE, and what spell checkers are installed?

I added LINGUAS="en en_US" into my make.conf, I never had LINGUAS
specified before today. The issue persists with this LINGUAS setting.

The packages I have installed that match "spell" are:
$ equery l spell
[ Searching for package 'spell' in all categories among: ]
 * installed packages
[I--] [  ] app-dicts/aspell-en-6.0.0 (0)
[I--] [  ] app-text/aspell-0.60.5 (0)
[I--] [  ] app-text/gtkspell-2.0.14 (0)
[I--] [  ] app-text/hunspell-1.2.6 (0)

I should also note that spell checking works fine in Pidgin, though I
think Pidgin has its own spell checker somehow. I also just tried in
Opera, and automatic spell checking doesn't seem to work either, but
I'm not sure if it ever worked, I only use Opera seldom for testing.

Mike



Re: [gentoo-user] Firefox 3 automatic spell check broken

2008-11-18 Thread Mike Mazur
Hi,

On Tue, Nov 18, 2008 at 7:05 PM, Alan McKinnon <[EMAIL PROTECTED]> wrote:
> On Tuesday 18 November 2008 11:54:15 Mike Mazur wrote:
>> With Firefox 2.x whenever I typed into a text area and misspelled
>> something, the word would be underlined. Ever since I updated to
>> Firefox 3 this no longer happens.
>>
>
> edit -> preferences -> Advanced -> Network -> Browsing

Unfortunately, this is not the culprit. This setting has always been
set, and still no spell check.

Mike

PS Apologies for re-replying, this time to all



[gentoo-user] Firefox 3 automatic spell check broken

2008-11-18 Thread Mike Mazur
Hi,

With Firefox 2.x whenever I typed into a text area and misspelled
something, the word would be underlined. Ever since I updated to
Firefox 3 this no longer happens.

I've looked at USE flags for mozilla-firefox and xulrunner and don't
see anything that indicates aspell or similar.

What am I missing?

Thanks,
Mike



[gentoo-user] Re: Mono/C#: cannot listen with TcpChannel

2008-04-28 Thread Mike Mazur
Hi,

On Mon, Apr 28, 2008 at 3:15 PM, Mike Mazur <[EMAIL PROTECTED]> wrote:
> Hi,
>
>  Having trouble with TcpChannel throwing an exception:
>
> [...]
>
>  Unhandled Exception: System.Net.Sockets.SocketException: No such host is 
> known
>   at System.Net.Dns.GetHostByName (System.String hostName) [0x0]
>   at System.Net.Dns.Resolve (System.String hostName) [0x0]
>   at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.Init
>  (IServerChannelSinkProvider serverSinkProvider) [0x0]
>   at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor
>  (IDictionary properties, IServerChannelSinkProvider
>  serverSinkProvider) [0x0]
>   at System.Runtime.Remoting.Channels.Tcp.TcpChannel.Init (IDictionary
>  properties, IClientChannelSinkProvider clientSink,
>  IServerChannelSinkProvider serverSink) [0x0]
>   at System.Runtime.Remoting.Channels.Tcp.TcpChannel..ctor (Int32
>  port) [0x0]
>   at MainClass.Main () [0x0]

The fix was to put my machine's hostname in /etc/hosts.

Mike
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Mono/C#: cannot listen with TcpChannel

2008-04-27 Thread Mike Mazur
Hi,

Having trouble with TcpChannel throwing an exception:

$ cat temp_test.cs
using System;
using System.Net;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;

public class MainClass
{
public static void Main()
{
try
{
TcpChannel ch = new TcpChannel(8895);
}
catch (Exception ex)
{
Console.WriteLine("Exception while attempting to
listen on TCP port 8895.");
throw (ex);
}
}
}
$ mcs -r:System.Runtime.Remoting.dll temp_test.cs
temp_test.cs(13,28): warning CS0219: The variable `ch' is assigned but
its value is never used
Compilation succeeded - 1 warning(s)
$ mono temp_test.exe
Exception while attempting to listen on TCP port 8895.

Unhandled Exception: System.Net.Sockets.SocketException: No such host is known
  at System.Net.Dns.GetHostByName (System.String hostName) [0x0]
  at System.Net.Dns.Resolve (System.String hostName) [0x0]
  at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.Init
(IServerChannelSinkProvider serverSinkProvider) [0x0]
  at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor
(IDictionary properties, IServerChannelSinkProvider
serverSinkProvider) [0x0]
  at System.Runtime.Remoting.Channels.Tcp.TcpChannel.Init (IDictionary
properties, IClientChannelSinkProvider clientSink,
IServerChannelSinkProvider serverSink) [0x0]
  at System.Runtime.Remoting.Channels.Tcp.TcpChannel..ctor (Int32
port) [0x0]
  at MainClass.Main () [0x0]

I also tried the example at
http://www.gotmono.com/docs/remoting/introduction.html but this
exhibits the same problem.

I'm new to Mono development, so I'm not too familiar with all its
libraries and/or components. Could I be missing something that's in
portage?

Thanks in advance,
Mike
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Help with mounting an ISO file as non-root

2008-04-23 Thread Mike Mazur
Hi Norberto,

On Thu, Apr 24, 2008 at 11:22 AM, Norberto Bensa <[EMAIL PROTECTED]> wrote:
> > What can I do to be able to mount an arbitrary ISO image to an
> > arbitrary mount point from the command line as non-root user?
>
>  fuse-iso ?

While fuse-iso would certainly do this for me, I was hoping it's
possible with the mount command directly.

The reason for this is that this mounting/unmounting is also in some
automated tests which will find their way onto machines of others who
may not have fuse-iso configured. Currently we simply require the
tests to be run as root. I won't be adding another dependency just to
get around this.

Thanks though,
Mike
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Help with mounting an ISO file as non-root

2008-04-23 Thread Mike Mazur
Hi,

I'd like to mount an ISO image from the command line as non-root user.
Here are my attempts, each failing with the "only root can do that"
error message:

$ mount -o loop image.iso /mnt/
mount: only root can do that
$ mount -o user,loop image.iso /mnt/
mount: only root can do that
$ mount -o users,loop image.iso /mnt/
mount: only root can do that
$ mount -o user -o loop image.iso /mnt/
mount: only root can do that
$ mount -o users -o loop image.iso /mnt/
mount: only root can do that

I keep reading about how the mount and umount commands need the suid
bit set, which it already is:

$ ll /bin/mount /bin/umount
-rws--x--x 1 root root 51480 2008-04-10 14:11 /bin/mount
-rws--x--x 1 root root 34584 2008-04-10 14:11 /bin/umount

Furthermore, adding the following line to my /etc/fstab allows me to
mount the image as non-root:

/path/to/image.iso   /mnt/  udf,iso9660 user,loop   0 0

However, this is not an option for me as I work with different
images/mount points all the time.

What can I do to be able to mount an arbitrary ISO image to an
arbitrary mount point from the command line as non-root user?

Thanks!
Mike
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Status of Gentoo

2008-03-11 Thread Mike Mazur
Hi,

On Tue, Mar 11, 2008 at 4:22 PM, Jamie Dobbs <[EMAIL PROTECTED]> wrote:
> I've been away from Gentoo for the last year or so and using Ubuntu but
>  find that I want to return to Gentoo simply because of the level of
>  customization that I can do with it.
>  However, I do have a few worries - why has there been no 2007.1 release
>  (there was a 2006.1 from what I recall)? There also appears to have been
>  a bit of turmoil in the Gentoo 'management;' - has this affected the
>  long term viability of running Gentoo?

Gentoo is doing just fine. Welcome back!

Mike
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] date and gentoo running under vmplayer

2008-03-05 Thread Mike Mazur
Hi,

What could also help in this is installing vmware-workstation-tools[1]
in your Gentoo instance.

Not directly related to your specific problem, but I've been running
RHEL 5 x86_64 in a VM on a CentOS 5 i386 host. The time in RHEL flows
slowly, and soon the clock is way behind. I have tried setting up ntpd
to keep the time in sync with the host machine, but it crashed
silently right away.

To work around this, I have a cron job that sets the correct time with
the ntpdate command every 2 minutes. It's good enough for my needs.

[1] http://gentoo-portage.com/app-emulation/vmware-workstation-tools

Good luck!
Mike


On Thu, Mar 6, 2008 at 1:00 PM, Chris Brennan <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
>  Hash: SHA1
>
>  you need to make sure ntp-client and ntpd (from openntpd) have been
>  started, and you have a valid time server.
>
>  Below I have included everything I hope will help you
>
>  - 
>  [EMAIL PROTECTED] ~ $ emerge -vp openntpd
>
>  These are the packages that would be merged, in order:
>
>  Calculating dependencies... done!
>  [ebuild   R   ] net-misc/openntpd-3.9_p1-r1  USE="ssl (-selinux)" 150 kB
>
>  Total: 1 package (1 reinstall), Size of downloads: 150 kB
>  [EMAIL PROTECTED] ~ $ cat /etc/conf.d/ntpd
>  # /etc/conf.d/ntpd: config file for openntpd's ntpd
>
>  NTPD_HOME=/var/empty
>
>  # See ntpd(8) man page ... some popular options:
>  #  -s   Set the time immediately at startup
>  NTPD_OPTS=""
>  [EMAIL PROTECTED] ~ $ cat /etc/conf.d/ntp-client
>  # /etc/conf.d/ntp-client
>
>  # Command to run to set the clock initially
>  # Most people should just leave this line alone ...
>  # however, if you know what you're doing, and you
>  # want to use ntpd to set the clock, change this to 'ntpd'
>  NTPCLIENT_CMD="ntpdate"
>
>  # Options to pass to the above command
>  # This default setting should work fine but you should
>  # change the default 'pool.ntp.org' to something closer
>  # to your machine.  See http://www.pool.ntp.org/ or
>  # try running `netselect -s 3 pool.ntp.org`.
>  NTPCLIENT_OPTS="-s -b -u pool.ntp.org"
>  [EMAIL PROTECTED] ~ $ cat /etc/ntp
>  ntp.conf   ntp.conf~  ntpd.conf
>  [EMAIL PROTECTED] ~ $ cat /etc/ntpd.conf
>  # $OpenBSD: ntpd.conf,v 1.7 2004/07/20 17:38:35 henning Exp $
>  # sample ntpd configuration file, see ntpd.conf(5)
>
>  # Addresses to listen on (ntpd does not listen by default)
>  #listen on *
>  #listen on 127.0.0.1
>  #listen on ::1
>
>  # sync to a single server
>  #server ntp.example.org
>
>  # use a random selection of 8 public stratum 2 servers
>  # see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
>  servers pool.ntp.org
>  [EMAIL PROTECTED] ~ $ cat /etc/ntp.conf
>  # NOTES:
>  #  - you should only have to update the server line below
>  #  - if you start getting lines like 'restrict' and 'fudge'
>  #and you didnt add them, AND you run dhcpcd on your
>  #network interfaces, be sure to add '-Y -N' to the
>  #dhcpcd_ethX variables in /etc/conf.d/net
>
>  # Name of the servers ntpd should sync with
>  # Please respect the access policy as stated by the responsible person.
>  #server ntp.example.tld iburst
>
>  server pool.ntp.org
>  netselect -s 3 pool.ntp.org
>
>  ##
>  # A list of available servers can be found here:
>  # http://www.pool.ntp.org/
>  # http://www.pool.ntp.org/#use
>  # A good way to get servers for your machine is:
>  # netselect -s 3 pool.ntp.org
>  ##
>
>  # you should not need to modify the following paths
>  driftfile   /var/lib/ntp/ntp.drift
>
>  #server ntplocal.example.com prefer
>  #server timeserver.example.org
>
>  # Warning: Using default NTP settings will leave your NTP
>  # server accessible to all hosts on the Internet.
>
>  # If you want to deny all machines (including your own)
>  # from accessing the NTP server, uncomment:
>  #restrict default ignore
>
>
>  # To deny other machines from changing the
>  # configuration but allow localhost:
>  restrict default nomodify nopeer
>  restrict 127.0.0.1
>
>
>  # To allow machines within your network to synchronize
>  # their clocks with your server, but ensure they are
>  # not allowed to configure the server or used as peers
>  # to synchronize against, uncomment this line.
>  #
>  restrict 192.168.1.0 mask 255.255.255.0 nomodify nopeer notrap
>  [EMAIL PROTECTED] ~ $
>
>  - -
>  EOF
>
>
>
>
>  John J. Foster wrote:
>  | Hi all - it's been awhile
>  |
>  | This past week I've set up Gentoo running in a VM built by
>  | http://www.easyvmx.com/ under a XP host. Installation and configuration
>  | went fine. I normally leave the VM running when I walk away from the
>  | machine, but when I return, time is way off. Shutting down Gentoo & the
>  | VM & rebooting solvles the problem, as vmplayer must initially get the
>  | date and time from the host, but it sure doesn't keep it right after
>  | that. I tried openntpd, but it kept setting the time further and further
>  | off. I live in Fort Collins

Re: [gentoo-user] Is there really no way to search http://packages.gentoo.org ?!

2008-03-03 Thread Mike Mazur
Hi,

On Tue, Mar 4, 2008 at 1:07 PM, Dale <[EMAIL PROTECTED]> wrote:
>  And I get this when I go there:

Looks like they might be experiencing some downtime at the moment. Try
again later.

I can't even remember how long I've been using gentoo-portage.com now...

Mike
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] best circuit drawing software

2008-02-29 Thread Mike Mazur
Hi,

On Sat, Mar 1, 2008 at 9:15 AM, maxim wexler <[EMAIL PROTECTED]> wrote:
>  I need to post some drawings of a circuit I'm working
>  on to an electronics group.
>
>  Nothing too elaborate, just sketches really, but with
>  the proper symbology.

You could try app-office/dia[1][2]. It has some circuit symbols.

>  Oh, and output files will have to be visible to the
>  Micro$hafted too.

Your sketches can be saved as .png or .jpg so anyone should be able to
view them.

HTH
Mike

[1] http://gentoo-portage.com/app-office/dia
[2] http://www.gnome.org/projects/dia/
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] [Probably off-topic] How do I find out what is consuming the bandwidth?

2008-02-29 Thread Mike Mazur
Hi,

On Sat, Mar 1, 2008 at 2:26 AM, Steve <[EMAIL PROTECTED]> wrote:
> Situation: There's a LAN with a Netgear ADSL router... heterogenous OS,
>  including Gentoo, are installed on various PCs on the LAN.
>
>  I'd like to know what communicating IPs are consuming most bandwidth,
>  and to quantify how much bandwidth they are using... Ideally, I'd like
>  to see a real-time list of the main bandwidth consuming communicators...

So you want to monitor the traffic going through your router?

I imagine that would be difficult to do from one of the endpoints in
your LAN (your Gentoo box). The switch should only route to your
machine traffic destined for it, so how to measure the bandwidth the
other machines are consuming between themselves and the outside world?

If there is a way to do this I'd be very interested :)

Mike
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] OpenVPN setup

2008-02-13 Thread Mike Mazur
Hi Grant,

On Thu, Feb 14, 2008 at 1:19 AM, Grant <[EMAIL PROTECTED]> wrote:
>  Thanks a lot for everyone's help.  Here is a more to-the-point list of
>  what I'd like to accomplish:
>
>  1. encrypt CUPS printouts between remote server and local print server
>  2. add an additional layer of security around SSH and CUPS on local
>  firewall/print server
>  3. add an additional layer of security around SSH, IMAP, and
>  non-standard port HTTPS on remote server
>  4. enable access to SMTP on remote server for me which is blocked by
>  my local ISP
>
>  It sounds like I have 3 choices:
>
>  1. VPN
>  2. SSH tunneling
>  3. Zebedee tunneling
>
>  Would all 3 of these choices accomplish all 4 requirements?  I would
>  think SSH tunneling can't really add an additional layer around SSH.

I'd just like to reiterate that most of those don't need any extra
security. SSH and HTTPS are already secure, and IMAP and SMTP can be
accessed over SSL (like HTTPS). These are all secure enough to be
widely used without extra layers of encryption.

Routing your printing over a tunnel is perfectly valid and, in my
opinion, reason enough to set up OpenVPN and play with it :D

>  I'd like to have something I can leave up all the time so the services
>  are always protected and I don't have to go through an extra step to
>  use email or print from the remote server.  Can all 3 of these be left
>  up all the time?  Is there any reason not to leave this type of
>  functionality up all the time?

I can't speak for all of those options, but OpenVPN should be able to
stay up all the time. I currently have an established OpenVPN
connection to my work, it's been up for some five days now. I also
have experience with a Cisco VPN, for which I use vpnc[1]... that
thing goes down all the time.

[1] http://www.unix-ag.uni-kl.de/~massar/vpnc/

>  It sounds like VPN would be the most difficult to set up and maintain,
>  followed by SSH tunneling, followed by Zebedee tunneling.  Maybe I'm
>  wrong though.  With tunneling, would I need to set up 4 or 5 different
>  tunnels for CUPS, IMAP, SMTP, non-standard port HTTPS, and SSH (if I'm
>  using Zebedee)?

You can establish only one tunnel. Think of it this way, creating a
tunnel is analogous to adding a NIC to your system. It will be called
tun0 or tap0 (depending on whether you're tunneling or bridging). Then
your system has an IP on your physical NIC (eth0) and your tun/tap
interface as well. Your machine is now part of two network segments,
the physical one and the virtual one.

You only need one VPN tunnel; configure all your apps to route their
CUPS, IMAP, SMTP, HTTPS and SSH connections through that virtual
network.

>  To send me mail, mail servers need to connect to my remote server's
>  SMTP right?  Would setting up a tunnel or VPN for my SMTP access
>  interfere with that?

I would imagine your SMTP port needs to be accessible from the outside
world in order to receive mail... so as long as packets bound for that
machine's IP on port 25 (is it?) will reach the machine, you'll be OK.
Perhaps someone more knowledgeable on mail servers can clarify this.

At any rate, why not just go ahead with OpenVPN, set it up and see how
it works for you? You'll be in a much better position then to
determine whether it's really what you want or need.

Have fun!
Mike
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] OpenVPN setup

2008-02-11 Thread Mike Mazur
Hi Grant,

On Tue, Feb 12, 2008 at 8:11 AM, Grant <[EMAIL PROTECTED]> wrote:
> > >  I'm hoping to use the vpn in three few ways:
>  > >
>  > >  1. imap and smtp between my laptop and the mail server
>  > >  2. ssh from my laptop to the remote server
>  > >  3. cups printing from the remote server to the print server
>  >
>  > I don't think you need a VPN to SSH from your laptop to the remote
>  > server -- SSH is already encrypted.
>
>  For sure, but it seems like running SSH inside a VPN is better for
>  security than running SSH on a non-standard port or even port
>  knocking.  If I need to set up a VPN for printing, shouldn't I use it
>  for other stuff too?  Maybe not, I have yet to actually use a VPN so
>  please correct me if I'm wrong.

There are other ways to make SSH more "secure". For example, you could
only enable PubkeyAuthentication while disabling all other methods of
Authentication, then use a large (4096-bit?) key pair with a strong
passphrase[1] and use keychain[2] so you don't have to type in the
passphrase all the time. OK, I'm exaggerating a bit with those
passwords from GRC, but you get the idea.

[1] https://www.grc.com/passwords.htm
[2] http://www.gentoo.org/proj/en/keychain/

Also keep in mind the added overhead with OpenVPN -- your encrypted
SSH traffic is again encrypted by the VPN.

>  > If your laptop is always behind your local firewall, then it should be
>  > sufficient to have an OpenVPN tunnel established between your local
>  > firewall/print server and your remote server. This should allow you to
>  > print.
>  >
>  > Configuring the routes on your laptop to go through your local
>  > firewall and VPN to the remote server should allow you to grab your
>  > mail.
>  >
>  > If you move around with your laptop then you'll need to establish the
>  > VPN tunnel to your remote server anytime you need to grab your mail
>  > from anywhere else but home (behind your local firewall).
>
>  Ah, tunnels, OK.  I need to think in terms of tunnels.  I'll
>  definitely be moving around and won't be behind my local firewall too
>  much of the time.  Can I set up the openvpn server on my remote system
>  and keep a tunnel open between it and the firewall/print server for
>  printing, and also initiate a tunnel between the laptop and the remote
>  system whenever I need to mail or SSH?  Does that sound like a good
>  plan?

Yep, that should work. With a 'permanent' tunnel established between
your remote server and your local firewall/print server, you'll always
have access to those too simply by connecting via VPN to your remote
server. You can print from your laptop to your printer at home while
overseas, for example.

Mike
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] OpenVPN setup

2008-02-11 Thread Mike Mazur
Hi Grant,

On Tue, Feb 12, 2008 at 5:41 AM, Grant <[EMAIL PROTECTED]> wrote:
>  I'm hoping to use the vpn in three few ways:
>
>  1. imap and smtp between my laptop and the mail server
>  2. ssh from my laptop to the remote server
>  3. cups printing from the remote server to the print server

I don't think you need a VPN to SSH from your laptop to the remote
server -- SSH is already encrypted.

If your laptop is always behind your local firewall, then it should be
sufficient to have an OpenVPN tunnel established between your local
firewall/print server and your remote server. This should allow you to
print.

Configuring the routes on your laptop to go through your local
firewall and VPN to the remote server should allow you to grab your
mail.

If you move around with your laptop then you'll need to establish the
VPN tunnel to your remote server anytime you need to grab your mail
from anywhere else but home (behind your local firewall).

On Tue, Feb 12, 2008 at 5:53 AM, Alan McKinnon <[EMAIL PROTECTED]> wrote:
>  IMHO you should always go with routed first, then bridged if you need
>  it.
>
>  Ask yourself this question: do you really need ethernet traffic to go
>  through the vpn? There are cases where it could be useful, but I'm hard
>  pressed to find a general case.
>
>  With a routed vpn, you work with IP addresses, just like you do on the
>  internet.

As Alan said, try going with routed first.

Also, think about whether you really need this. As mentioned above,
SSH doesn't need to be tunneled over a VPN. IMAP and SMTP can be
encrypted too. That leaves printing, for which you could use VPN.

Have fun!
Mike
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] ruby gems versus emerge

2008-02-08 Thread Mike Mazur
Hi Thufir,

On Feb 8, 2008 8:56 AM, Thufir <[EMAIL PROTECTED]> wrote:
> I installed the "fastercsv" gem via gems rather than emerge :(
>
> From http://packages.gentoo.org/category/dev-ruby?full_cat I don't even
> see that package listed.
>
> Are gems supposed to be installed via emerge?

I think the gems that make it into portage are ones the devs need.
There's been a few that I've used that aren't in portage.

As to which one you should use, I'm not sure. Personal preference?

Mike
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Choppy video playback

2008-01-29 Thread Mike Mazur
Hi,

On Jan 30, 2008 7:24 AM, Mike Mazur <[EMAIL PROTECTED]> wrote:
[ -- SNIP -- ]
> For completeness, the .config for my 2.6.23-gentoo-r3 kernel is here:
> http://pastebin.ca/881174

Oh, I just found the IO scheduler setting. The scheduler in use is CFQ.

I can't find the CPU scheduler though. I guess that Processor type and
features -> Preemption Model (Preemptible Kernel) isn't it? That is
currently set to Low Latency Desktop.

Also, my notebook is an ASUS A8Js [1][2].

Mike

[1] http://www.rothlaender.net/a8js.html
[2] http://gentoo-wiki.com/HARDWARE_Asus_A8Js
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Choppy video playback

2008-01-29 Thread Mike Mazur
Hi James,

On Jan 30, 2008 5:26 AM, James Ausmus <[EMAIL PROTECTED]> wrote:
[ -- SNIP -- ]
> Portage *does not* look at CFLAGS in determining what to rebuild (even
> with -uDN) - portage only looks at USE flags and dependency
> upgrades/versions. Mike is correct in saying that, for packages to be
> recompiled with the new CFLAGS, he would have to recompile that
> package directly. emerge -e world is a good way to do this.\
>
> -James

Yeah, that's what I thought. CFLAGS are only passed to gcc when it's
executed by portage. I would expect that for any change to CFLAGS, all
packages will need to be recompiled for those new CFLAGS to be
utilized. Whether they will have any effect on the compiled result is
another matter.

> Removing Pango will almost definitely increase the render/scroll speed
> of Firefox.
>
> However, from the symptoms that Mike is describing (system-wide
> momentary pauses, after which the system resumes normal
> responsiveness) sounds much more like a kernel-level issue - either
> I/O speed issues (check to make sure your hard drive is running at
> full speed and you have native controller supported compiled in to
> your kernel - also, what is your I/O scheduler set to by default?) or
> the Scheduler (process scheduler). What version of which kernel are
> you running? What does your .config look like?
>
> I had similar issues with momentarily frozen responsiveness on my
> laptop, until I upgraded to 2.6.23.x, which has the new CFS scheduler
> in it - seems to help responsiveness quite a bit.

Looking around `make menuconfig` I found a few settings which I'm not
sure about, so I'll post them here:
[*] Processor type and features -> Tickless System (Dynamic Ticks)
[ ] Processor type and features -> High Resolution Timer Support
[*] Processor type and features -> 64 bit Memory and IO resources (EXPERIMENTAL)
Processor type and features -> Timer frequency -- currently set to 250 Hz

For completeness, the .config for my 2.6.23-gentoo-r3 kernel is here:
http://pastebin.ca/881174

Thanks!
Mike
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Choppy video playback

2008-01-29 Thread Mike Mazur
Hi Ionut,

On Jan 28, 2008 5:04 PM, ionut cucu <[EMAIL PROTECTED]> wrote:
[ -- SNIP -- ]
> Firstly this is an overkill. secondly it has again nothing to do with
> the choppy mplayer issue. Think about it: an vo=gl2 means mplayer will
> not use the CPU for video rendering but the GPU hence the Cpu
> optimisations are withou purpose on this driver. Furthermore even is
> you use something like xv there are archs on wich mplayer runs(arm, or
> 686 or k7) where such optimisations are out of the question but mplayer
> runs well. Also most linux distros don't have these cflags enabled and
> yet mplayer works fine.
>
> Mike does glxinfo|grep render gives an yes? do glxgears work properly ?
> Will and opengl game work?(tuxrace)

$ glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: GeForce Go 7700/PCI/SSE2
GL_NVX_conditional_render, GL_SGIS_generate_mip map, GL_SGIS_texture_lod,

Yep, glxinfo says I can render. glxgears seems to run fine. Although I
haven't looked into it much, it seems my framerates are low when I
compare with some random person who posts theirs on IRC or this
mailing list.

When I watch glxgears while not doing anything else on the computer,
it will get around 6200 FPS. If I switch to another workspace, that
will (naturally :) jump to around 10500 FPS. But if glxgears is
running on my current workspace and I'm doing other things, like
moving other windows around or switching tabs in Firefox, the
framerate can drop to below 5000 FPS.

I haven't really tried any games, not tuxrace, but I have launched
Frets on Fire [1] once and fount it sluggish. Haven't had time to play
that since.

Mike

[1] http://fretsonfire.sourceforge.net/
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Choppy video playback

2008-01-28 Thread Mike Mazur
Hi Walter, Paul,

On Jan 28, 2008 11:08 AM, Walter Dnes <[EMAIL PROTECTED]> wrote:
[ -- SNIP -- ]
>   This is to be expected.  Since you have "-xv" in USE, xv support is
> blocked.  Did you have any problems with xv that caused you to block it?
> If not, change "-xv" to "xv" in USE in /etc/make.conf.  And while you're
> at it, add...

*slaps forehead* of course that's why. I can't remember why I disabled
it, I don't remember any problems with it.

> mmx sse sse2
>
> to your USE parameters.  In /etc/portage/package.use, add the line...
>
> media-video/mplayer ssse3
>
> > I guess I'll need to recompile everything if I want any changes to
> > come into effect?
>
>   Hopefully, not everything.  *AFTER MAKING ALL THE ABOVE CHANGES* try...
>
> emerge --ask --deep --newuse --update --world
>

Thanks for the pointers. Only 19 packages are being recompiled, so it
should be done soon and I can test out the new settings.

But the list of packages being recompiled have mostly to do with
video, audio and transcoding. I understand it's the --newuse flag
that's causing those, not the additional parameters in CFLAGS. Will
the CFLAGS have benefits on other packages? Such as Firefox or maybe
netscape-flash? For those I might want to do an emerge --emptytree
world...

On Jan 28, 2008 7:33 PM, Paul Sobey <[EMAIL PROTECTED]> wrote:
> I had exactly the same kind of problem and recompiled mplayer with the xv use
> flag, then used vo=xv, in fact it defaults to it on my system. CPU usage then
> came right down. I have an older nvidia card than you so I hope you also see
> a benefit!

Sounds good, thanks for chiming in :)

I'll report back soon,
Mike
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Choppy video playback

2008-01-27 Thread Mike Mazur
Hi,

On Jan 28, 2008 7:55 AM, ionut cucu <[EMAIL PROTECTED]> wrote:
>
> On Mon, 28 Jan 2008 07:28:35 +0900
> "Mike Mazur" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > On Jan 27, 2008 9:55 PM, ionut cucu <[EMAIL PROTECTED]> wrote:
> > > True as that is, is think it's kind a of the point. I have been
> > > using mplayer to see movies since k7-2(I think it as a k7-2 don't
> > > remember for sure). I've seldom got the error about CPU being to
> > > slow and always it was another reason for mplayer not being able to
> > > play it. I would rather say you should look in mplayer -vo help and
> > > try different drivers until you get the one it suites you. If you
> > > have a 3d card choose gl or gl2, if not xv. Also please check that
> > > you have setup preperly the graphics card.
> >
> > Ah yes you reminded me that I wanted to include my mplayer settings in
> > my original email. My /etc/mplayer/mplayer.conf contains:
> >
> > vo=gl2
> > monitoraspect=16:10
> > mixer = hw:0
> > fontconfig=1
> > subfont-osd-scale=4
> > subfont-text-scale=3
> >
> > I have an nVidia graphics card in my laptop:
> >
> > # lspci | grep -i nvidia
> > 01:00.0 VGA compatible controller: nVidia Corporation GeForce Go 7700
> > (rev a1)
> >
> > I set it up by basically installing x11-drivers/nvidia-drivers,
> > currently I'm at version 100.14.19.
> 
> I to am using the same version of it and using vo=gl2 on mplayer gets
> me a choppy playback. But vo=gl or xv works fine for me.

In my case, vo=gl2, vo=gl and vo=x11 all behave the same, with regular
pauses. xv is not listed when I type `mplayer -vo help`.

So doesn't this indicate that it's perhaps not mplayer itself causing
trouble, but rather something system-wide instead? Especially since
this regular pause also occurs while I type in text fields in Firefox.

Thanks,
Mike
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Choppy video playback

2008-01-27 Thread Mike Mazur
Hi,

On Jan 27, 2008 9:55 PM, ionut cucu <[EMAIL PROTECTED]> wrote:
> True as that is, is think it's kind a of the point. I have been using
> mplayer to see movies since k7-2(I think it as a k7-2 don't remember
> for sure). I've seldom got the error about CPU being to slow and always
> it was another reason for mplayer not being able to play it. I would
> rather say you should look in mplayer -vo help and try different
> drivers until you get the one it suites you. If you have a 3d card
> choose gl or gl2, if not xv. Also please check that you have setup
> preperly the graphics card.

Ah yes you reminded me that I wanted to include my mplayer settings in
my original email. My /etc/mplayer/mplayer.conf contains:

vo=gl2
monitoraspect=16:10
mixer = hw:0
fontconfig=1
subfont-osd-scale=4
subfont-text-scale=3

I have an nVidia graphics card in my laptop:

# lspci | grep -i nvidia
01:00.0 VGA compatible controller: nVidia Corporation GeForce Go 7700 (rev a1)

I set it up by basically installing x11-drivers/nvidia-drivers,
currently I'm at version 100.14.19.

Some sections from /etc/X11/xorg.conf (if you would like more, let me know):

Section "Module"
Load  "record"
Load  "xtrap"
Load  "glx"
Load  "extmod"
Load  "dbe"
Load  "freetype"
Load  "type1"
EndSection

Section "Device"
Identifier  "GeForce 7700 Go"
Driver  "nvidia"
VendorName  "nVidia Corporation"
BoardName   "GeForce 7700 Go"
BusID   "PCI:1:0:0"
Option  "NoLogo" "true"
Option  "BackingStore" "true"
Option  "AddARGBGLXVisuals" "true"
Option  "TwinView"
Option  "HorizSync" "LCD: 31.5-79; Ext: 31.5-80; TV: 47.7"
Option  "VertRefresh" "LCD: 60-60; Ext: 70-75; TV: 60"
Option  "MetaModes" "Ext: 1280x1024 +1440+0, LCD: 1440x900
@1440x1024 +0+0; LCD: 1440x900, Ext: NULL"
Option  "TwinViewXineramaInfoOrder" "LCD"
Option  "RenderAccel" "true"
EndSection

Currently I'm not using twin displays, just my laptop.

As I'm typing this email in Firefox, I notice every second or so a
pause. My cursor freezes, even though I continue to type, and only
after hanging for a split-second, the display catches up with what I
have been typing. This is after Firefox has been used yesterday and
sat idle overnight and doesn't involve mplayer at all.

Thanks for the help so far guys :)
Mike
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Choppy video playback

2008-01-27 Thread Mike Mazur
Hi Walter,

On Jan 27, 2008 3:55 PM, Walter Dnes <[EMAIL PROTECTED]> wrote:
> On Sat, Jan 26, 2008 at 07:39:47PM +0900, Mike Mazur wrote
>
> > CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
>
>   The -march option may or may not invoke mmx, sse, sse2, etc in the
> CFLAGS line but it definitely does *NOT* invoke them in the USE variable.
>
> > USE="gtk gtk2 gnome -apm -eds -emboss -gstreamer -qt -qt3 -qt4 -kde
> > -ldap -arts -esd -oss -xv X a52 aac acpi alsa avahi bash-completion
> > bluetooth cdr cjk crypt dbus dvd dvdr exif firefox gphoto hal ipod
> > jpeg mbox mp3 nptl nptlonly ogg opengl png pulseaudio spell ssl
> > startup-notification svg theora tiff vorbis wifi xinerama"
>
>   I have mmx, sse, sse2, and a few AMD-specific options in my USE
> variable.  Can you show us the output of the command...
>
> grep flags /proc/cpuinfo

The output of `grep flags /proc/cpuinfo` is:

flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx
lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2
ssse3 cx16 xtpr lahf_lm

>   Then we can see what to add.  If you are *NOT* taking advantage of the
> available extensions, you won't get the available oomph out of your cpu.
> It's not so much a matter of raw speed as ability to do complex
> calculations in the chipset microcode, rather than painfully emulating
> it in software.  One of the features of Gentoo is customizing your build
> to get the most out of your cpu.  Use it... within reason.

This enters a realm I haven't visited before...

Makes lots of sense. I guess I'll need to recompile everything if I
want any changes to come into effect?

>   mplayer also takes a few custom flags.  In /etc/portage/package.use I
> have the entry
>
> media-video/mplayer custom-cflags i8x0 real 3dnowext mmxext
>
>   With an Intel cpu, you obviously don't want "3dnowext", but there may
> be other stuff worth using.  To find out what's available, use...
>
> grep mplayer /usr/portage/profiles/use.local.desc | less

Looks like I have lots of reading ahead of me :) Need to figure out
what those CPU extensions mean or do and how not to abuse that power!

Thanks a lot,
Mike
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Choppy video playback

2008-01-26 Thread Mike Mazur
Hi Tomas,

On Jan 25, 2008 8:55 PM, Tomas Papan <[EMAIL PROTECTED]> wrote:
> can you send us your /etc/make.conf ?

Here it is (with comments stripped out):

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

USE="gtk gtk2 gnome -apm -eds -emboss -gstreamer -qt -qt3 -qt4 -kde
-ldap -arts -esd -oss -xv X a52 aac acpi alsa avahi bash-completion
bluetooth cdr cjk crypt dbus dvd dvdr exif firefox gphoto hal ipod
jpeg mbox mp3 nptl nptlonly ogg opengl png pulseaudio spell ssl
startup-notification svg theora tiff vorbis wifi xinerama"

MAKEOPTS="-j3"
FEATURES="parallel-fetch ccache"

VIDEO_CARDS="nvidia"
INPUT_DEVICES="keyboard mouse evdev synaptics"

Thanks,
Mike
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Choppy video playback

2008-01-25 Thread Mike Mazur
Hi,

I'm having choppy video playback in mplayer, vlc and also in Firefox
on YouTube and the like. I notice a video freeze every 1-2 seconds or
so, then the video snaps back to where it should be. The audio sounds
fine. Mplayer often spits out a warning message[1].

I also noticed that typing into forms (like an email in Gmail) in
Firefox, after Firefox has been running a few hours also suffers from
this freeze every 1-2 seconds.

A typical workload is Gnome, Firefox, Claws-Mail, Pidgin, Tomboy,
xmms2 and a bunch of terminals with SSH sessions and irssi.

I have an Intel Core 2 Duo 2GHz with 2 GB of RAM, so this shouldn't be
happening. I'm running kernel 2.6.23-gentoo-r3. I don't remember when
exactly this started, I don't really watch video too often.

Could it be the scheduler with which my kernel is compiled? Currently
it's set to "Preemptible Kernel (Low-Latency Desktop)".

Any ideas? What to start tweaking with?

Thanks for any help,
Mike


[1] Mplayer warning message:
   
    Your system is too SLOW to play this!  
   

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Routing problem ?

2008-01-10 Thread Mike Mazur
Hi,

On Jan 11, 2008 12:14 PM, kashani <[EMAIL PROTECTED]> wrote:
> Holla wrote:
> > 192.168.1.1
> > +-+   ++
> > | |---|  Router1   |=ASDL conn
> > | |   ++
> > | |
> > | |
> > | |
> > | |192.168.1.23  +---+  192.168.2.43
> > | |--|  PC1  |))).
> > +-+  +---+   .
> >  .
> > Passive Hub  .
> >   192.168.2.1.
> >  ++  .
> >  | Router2|--)))..
> >  ++
> > |
> > |
> >  +--+
> >  | PC2  |
> >  +--+
> >  192.168.2.24
>
> Yep it's a routing problem.
>
> Router1 needs a route to point back to PC2 so when traffic bound for it
> comes it, it'll know what to do with it.
> route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.23

Also if you want PC2 to access the net, you would need PC1 to be smart
enough to route/NAT packets from PC2 to Router 1.

Mike
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] PulseAudio not detecting hotplugged USB headset

2007-12-11 Thread Mike Mazur
Hi,

Running PulseAudio with module-hal-detect loaded doesn't detect my USB
headset when I plug it in.

If I start PulseAudio while the headset is plugged in, it shows up as
a device in PulseAudio Manager and I can move streams to it or from
it. If I unplug the headset, it remains in PA's device list. I have to
restart PA (/etc/init.d/pulseaudio restart) for any changes I make
(plugging, unplugging the headset) to take effect.

I also tried everything above with module-detect loaded instead of
module-hal-detect, but the behavior is the same.

Any ideas where to begin troubleshooting this?

Thanks,
Mike
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Problem with keychain

2007-07-28 Thread Mike Mazur
Hi,

On 7/28/07, Mike Mazur <[EMAIL PROTECTED]> wrote:
> -the public key id_dsa.pub should be appended to ~/.ssh/authorized_hosts
> -permissions of ~/.ssh/authorized_hosts should be 600

My mistake, that should be authorized_keys instead of authorized_hosts.
Mike
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Problem with keychain

2007-07-28 Thread Mike Mazur
Hi,

On 7/28/07, Marc Blumentritt <[EMAIL PROTECTED]> wrote:
> I have a problem with keychain. It is set up following the wiki. I start
> keychain:
>
> 
>
> Looking with ssh-add, I see my key:
> hive ~ # ssh-add -l
> 1024 dd:f2:12:2a:bc:8a:55:7e:18:43:03:dd:e9:dd:27:4d /root/.ssh/id_dsa (DSA)
>
>
> So what's wrong? Any ideas?

There are a few things you might want to check first:
-the permissions of the ~/.ssh folder on the remote system should be
700 (chmod 700 ~/.ssh)
-the public key id_dsa.pub should be appended to ~/.ssh/authorized_hosts
-permissions of ~/.ssh/authorized_hosts should be 600

If you're using a different flavor of SSH than OpenSSH, the keys might
go into a different file; have a look at the man page in that case :)

Hope that helps!
Mike
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Where did this volume come from?

2007-06-29 Thread Mike Mazur

Hi,

On 6/29/07, Canek Peláez <[EMAIL PROTECTED]> wrote:

If I'm not wrong, that would be your boot partition (or another small
partition you have declared in /etc/fstab).


I think you're right, I had thought my boot partition was larger...

Mystery solved :)

Thanks!
Mike
--
[EMAIL PROTECTED] mailing list



[gentoo-user] Where did this volume come from?

2007-06-28 Thread Mike Mazur

Hi,

When I point Nautilus at location 'computer:///' I see my CD-ROM
drive, my filesystem, a network, and something that says '39.2 MB
Volume'. I'd like to mount this volume to see what's there but I can't
because I'm not root.

Where did this volume come from? How can I explore what's there as
root? Where does Nautilus look to display the contents of
'computer:///'?

Thanks,
Mike
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] pidgin

2007-06-23 Thread Mike Mazur

Hi,

On 6/23/07, Arturo 'Buanzo' Busleiman <[EMAIL PROTECTED]> wrote:

Any idea when pidgin will make it to stable?

Or, is it safe enough to unmask it for the time being?


I'm running the latest ~x86 version (2.0.2) and it's working OK for
me. I'm only using MSN and GoogleTalk though.

Of course, YMMV.

Mike
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] No torrent upload

2007-06-12 Thread Mike Mazur

Hi,

On 6/12/07, Albert Hopkins <[EMAIL PROTECTED]> wrote:

Are you running something on your end that may be blocking
incoming TCP/21?


Port 21 is the default FTP server, do you have one running?

Mike
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Somehow my local portage tree is out of sync

2007-06-07 Thread Mike Mazur

Hi,

On 6/7/07, Bo Ørsted Andresen <[EMAIL PROTECTED]> wrote:

An overlay?


Yep, that was it. Feeling pretty silly right now.

Thanks a lot!
Mike
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: Somehow my local portage tree is out of sync

2007-06-07 Thread Mike Mazur

Hi,

On 6/7/07, Xavier Parizet <[EMAIL PROTECTED]> wrote:

Try running your emerge -pvuDN world as this :
ACCEPT_KEYWORDS="~x86" emerge -pvuDN world
or add ACCEPT_KEYWORDS="~x86" to your /etc/make.conf .


Sure, adding '=x11-libs/libwnck-2.16.3 ~x86' to my
/etc/packages/package.keywords allows me to update, no problems there.
What I don't understand is that libwnck-2.16.3 is not marked ~x86 in
portage:
http://packages.gentoo.org/ebuilds/?libwnck-2.16.3

Also, the ebuild on my system claims that libwnck2.16.3 is stable on my system:
# cat /usr/portage/x11-libs/libwnck/libwnck-2.16.3.ebuild | grep
KEYWORDSKEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 ~sh sparc x86
~x86-fbsd"

But yet somehow portage thinks that libwnck-2.16.3 is masked by the
~x86 keyword.

Still puzzled,
Mike
--
[EMAIL PROTECTED] mailing list



[gentoo-user] Somehow my local portage tree is out of sync

2007-06-07 Thread Mike Mazur

Hi,

I've had this issue for a few days now...

`emerge -pvuDN world` tells me that "x11-libs/libwnck-2.16.3 (masked
by: ~x86 keyword)". But when looking inside
/usr/portage/x11-libs/libwnck/libwnck-2.16.3.ebuild I see
KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 ~sh sparc x86
~x86-fbsd". I've done `emerge --sync` and `emerge --metadata`, but
still this persists.

I've never come across such a situation before. How do I fix this? `rm
-rf /usr/portage/x11-libs && emerge --sync`, perhaps?

Thanks!
Mike
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] ipw3945 and wpa_supplicant issues

2007-05-16 Thread Mike Mazur

Hi,


"Brian Johnson" <[EMAIL PROTECTED]> wrote:
> > ioctl[SIOCSIWMODE]: Resource temporarily unavailable
> > Could not configure driver to use managed mode
> > ioctl[SIOCGIWRANGE]: Resource temporarily unavailable
> > ioctl[SIOCSIWAUTH]: Resource temporarily unavailable
> > WEXT auth param 7 value 0x1 - ioctl[SIOCSIWENCODEEXT]: Resource
> > temporarily unavailable ioctl[SIOCSIWENCODEEXT]: Resource
> > temporarily unavailable ioctl[SIOCSIWENCODEEXT]: Resource
> > temporarily unavailable ioctl[SIOCSIWENCODEEXT]: Resource
> > temporarily unavailable ioctl[SIOCSIWAUTH]: Resource temporarily
> > unavailable WEXT auth param 4 value 0x0 - ioctl[SIOCSIWAUTH]:
> > Resource temporarily unavailable
> >   [ ok ]th param 5 value 0x1 -
> > *   Starting wpa_cli on eth1...   [ ok ]


I'm seeing the same issues with my network card as well. I have this
wireless adapter:

Network controller: Intel Corporation PRO/Wireless 3945ABG Network
Connection (rev 02)

My adapter works fine on first boot, but should it crash (sometimes
ipw3945d crashes) and requires me to /etc/init.d/net.eth1 restart, it
never works. I'm forced to reboot.

It'd be great figure this out :)
Mike
--
[EMAIL PROTECTED] mailing list