Re: [gentoo-user] USB automount

2012-09-26 Thread Stefan G. Weichinger
Am 25.09.2012 18:49, schrieb Canek Peláez Valdés:
 On Tue, Sep 25, 2012 at 3:32 AM, Stefan G. Weichinger li...@xunil.at wrote:
 Am 25.09.2012 10:09, schrieb Stefan G. Weichinger:

 So if I don't use systemd right now, it would be better to keep
 consolekit? I give it a try now ... compiling stuff without that flag
 for a test.

 Did not work. Rather easy to understand, if neither systemd or
 consolekit is there, how should things work ...

 Re-enabled USE-flag consolekit for now, re-emerged 4 pkgs, ok now.

 Maybe I will try systemd again soon ...
 
 It's not only the use flag; if you set USE=systemd, you need to boot
 with systemd. Otherwise, set USE=consolekit -systemd.

I think this should go into the wiki or so.

I always assumed that adding the flag systemd just somehow enhanced my
packages with systemd-compatibility and I could then simply switch
between init-systems as I like. It wasn't clear to me that it somehow
disabled stuff or made my binaries incompatible with eg. consolekit.

For now I stay with my working openrc-based setup, I have other things
to test and will only re-compile stuff for systemd when I find more time
again.

Thanks so far for your investigation on this bug, Stefan




Re: [gentoo-user] Problems with update

2012-09-26 Thread Michael Hampicke
Am 26.09.2012 00:19, schrieb Silvio Siefke:
 Hello, 
 
 i want run the update and emerge ever give message:
 
 gentoo-desk doxygen # emerge --update --newuse --deep --with-bdeps=y @world
 Calculating dependencies... done!
 
 !!! All ebuilds that could satisfy =gnome-base/gvfs-1.10.1[udisks,udev] 
 have been masked.
 !!! One of the following masked packages is required to complete your request:
 - gnome-base/gvfs-1.14.0::gentoo (masked by: package.mask, ~x86 keyword)
 /usr/portage/profiles/package.mask:
 # Alexandre Rostovtsev tetrom...@gentoo.org (25 Sep 2012)
 # GNOME 3.6 mask
 # Core libraries to be unmasked first:
 
 - gnome-base/gvfs-1.12.3::gentoo (masked by: ~x86 keyword)
 - gnome-base/gvfs-1.12.2-r1::gentoo (masked by: ~x86 keyword)
 
 (dependency required by xfce-base/thunar-1.4.0[udev] [installed])
 (dependency required by xfce-extra/thunar-volman-0.8.0 [installed])
 (dependency required by @selected [set])
 (dependency required by @world [argument])
 For more information, see the MASKED PACKAGES section in the emerge
 man page or refer to the Gentoo Handbook.

Try disabling the udisks useflag for gnome-base/gvfs



[gentoo-user] udev not reading the rules files

2012-09-26 Thread Bill Kenworthy
I udev problems after updating to udev 191 on an almost fresh install,
then downgraded to 189 in order to match a working system.  This was
working before the latest upgrade cycle.

The problem is most (not all !) device nodes getting root/root
owner/group.  So /dev/snd, /dev/video belongs to root and not the
official groups.  So any kind of desktop interaction (webcams, audio
etc) fails unless its the root user.

It appears that udev isnt reading the rules files - whilst on another
much older system with 189 all is fine :(

The guides I have found so far seem way out of date, even bugzilla.

*  sys-fs/udev
  Latest version available: 191
  Latest version installed: 189
  Size of downloaded files: 1,370 kB
  Homepage:http://www.freedesktop.org/wiki/Software/systemd
  Description: Linux dynamic and persistent device naming support
(aka userspace devfs)
  License: LGPL-2.1 MIT GPL-2

*  sys-fs/udev-init-scripts
  Latest version available: 16
  Latest version installed: 16
  Size of downloaded files: 4 kB
  Homepage:http://www.gentoo.org
  Description: udev startup scripts for openrc
  License: GPL-2

BillK






Re: [gentoo-user] udev not reading the rules files

2012-09-26 Thread Neil Bothwick
On Wed, 26 Sep 2012 16:07:14 +0800, Bill Kenworthy wrote:

 The problem is most (not all !) device nodes getting root/root
 owner/group.  So /dev/snd, /dev/video belongs to root and not the
 official groups.  So any kind of desktop interaction (webcams, audio
 etc) fails unless its the root user.
 
 It appears that udev isnt reading the rules files - whilst on another
 much older system with 189 all is fine :(

Have you tried running udevadm test on one of the affected nodes?

For example

% sudo udevadm info --name=/dev/video0  | grep '^P:'
P: /devices/pci:00/:00:1c.3/:03:00.0/:04:01.0/video4linux/video0

% sudo udevadm test 
/devices/pci:00/:00:1c.3/:03:00.0/:04:01.0/video4linux/video0
[lots of output about rules being read and actions done]


-- 
Neil Bothwick

Quality control, n.:
  Assuring that the quality of a product does not get out of hand
   and add to the cost of its manufacture or design.


signature.asc
Description: PGP signature


Re: [gentoo-user] udev not reading the rules files

2012-09-26 Thread William Kenworthy
On Wed, 2012-09-26 at 09:36 +0100, Neil Bothwick wrote:
 On Wed, 26 Sep 2012 16:07:14 +0800, Bill Kenworthy wrote:
 
  The problem is most (not all !) device nodes getting root/root
  owner/group.  So /dev/snd, /dev/video belongs to root and not the
  official groups.  So any kind of desktop interaction (webcams, audio
  etc) fails unless its the root user.
  
  It appears that udev isnt reading the rules files - whilst on another
  much older system with 189 all is fine :(
 
 Have you tried running udevadm test on one of the affected nodes?
 
 For example
 
 % sudo udevadm info --name=/dev/video0  | grep '^P:'
 P: 
 /devices/pci:00/:00:1c.3/:03:00.0/:04:01.0/video4linux/video0
 
 % sudo udevadm test 
 /devices/pci:00/:00:1c.3/:03:00.0/:04:01.0/video4linux/video0
 [lots of output about rules being read and actions done]
 
 
Brilliant! - worked and noticing the paths involved was the hint I
needed.  Turned out the old style init.d file for udev was present and
had to be deleted before the emerge would replace it with the new one.
I am wondering if sys-fs/udev-init-scripts-16 is doing something
non-standard or has some bug as its not creating an update file (or
whatever its called :) for etc-update and there are some errors in a
compress routine ... will look further tomorrow.

Thanks.

BillK






Re: [gentoo-user] Problems with update

2012-09-26 Thread Silvio Siefke
On Wed, 26 Sep 2012 09:54:40 +0200
Michael Hampicke gentoo-u...@hadt.biz wrote:

 Try disabling the udisks useflag for gnome-base/gvfs

Have the prob is same. Why i must unmask gvfs, i understand it not. 
When i set autounmask=y and autounmask-write portage write this
configuration:

/etc/portage/package.use
#required by sys-fs/cryptsetup-1.4.1[static], required by sys-fs/udisks-1.99.0-$
=sys-fs/lvm2-2.02.88 static-libs
#required by sys-fs/cryptsetup-1.4.1[static], required by sys-fs/udisks-1.99.0-$
=dev-libs/libgcrypt-1.5.0-r2 static-libs
#required by sys-fs/cryptsetup-1.4.1[static], required by sys-fs/udisks-1.99.0-$
=sys-apps/util-linux-2.21.2 static-libs
#required by sys-fs/cryptsetup-1.4.1[static], required by sys-fs/udisks-1.99.0-$
=dev-libs/popt-1.16-r1 static-libs
#required by sys-fs/cryptsetup-1.4.1[static], required by sys-fs/udisks-1.99.0-$
=dev-libs/libgpg-error-1.10 static-libs
#required by xfce-base/thunar-1.4.0[udev], required by @selected, required by @$
=gnome-base/gvfs-1.12.3 udisks udev

/etc/portage/package.accept_keywords
#required by sys-fs/udisks-1.99.0-r1, required by 
gnome-base/gvfs-1.12.3[udisks], required by @selected, required by @world 
(argument)
=sys-auth/polkit-0.107-r1 ~x86
#required by gnome-base/gvfs-1.12.3[udisks], required by @selected, required by 
@world (argument)
=sys-fs/udisks-1.99.0-r1 ~x86
#required by x11-libs/vte-0.30.1-r3, required by dev-util/anjuta-3.2.2, 
required by @selected, required by @world (argument)
=dev-libs/glib-2.32.4 ~x86
#required by sys-fs/udev-191[openrc], required by sys-fs/udisks-1.99.0-r1, 
required by gnome-base/gvfs-1.12.3[udisks], required by @selected, r$
=sys-fs/udev-init-scripts-16 ~x86
#required by sys-fs/udev-191, required by sys-fs/udev-init-scripts-16
=sys-apps/kmod-10 ~x86
#required by sys-apps/kmod-10[zlib], required by sys-fs/udev-191, required by 
sys-fs/udev-init-scripts-16
=sys-libs/zlib-1.2.7 ~x86
#required by xfce-base/thunar-1.4.0[dbus,xfce_plugins_trash], required by 
@selected, required by @world (argument)
=gnome-base/gvfs-1.12.3 ~x86
#required by sys-fs/udisks-1.99.0-r1, required by 
gnome-base/gvfs-1.12.3[udisks], required by @selected, required by @world 
(argument)
=dev-util/gdbus-codegen-2.32.4 ~x86
#required by sys-fs/udev-191[hwdb], required by sys-fs/udev-init-scripts-16
=sys-apps/hwids-20120922 ~x86
#required by sys-fs/udev-init-scripts-16
=sys-fs/udev-191 ~x86
#required by sys-auth/polkit-0.107-r1, required by sys-fs/udisks-1.99.0-r1, 
required by gnome-base/gvfs-1.12.3[udisks], required by @selected, $
=dev-lang/spidermonkey-1.8.5-r1 ~x86

I do not understand why Portage goes this way. I have in make.conf 
-static-libs. Now I have to put unmask and static-libs use. Rely 
primarily static-libs at the end require more and more programs.
Where hides the error? Thank you for help.


Silvio



[gentoo-user] Re: systemd question

2012-09-26 Thread walt

On 09/25/2012 08:21 PM, Canek Peláez Valdés wrote:


 Do
you need remote filesystem support? If not, then don't worry about it;
but if you want to find the problem, send the output from systemctl
status remote-fs.target. Mine is:

# systemctl status remote-fs.target
remote-fs.target - Remote File Systems
  Loaded: loaded (/usr/lib64/systemd/system/remote-fs.target; enabled)
  Active: active since Mon, 24 Sep 2012 18:33:09 -0500; 1 day and 3h ago
Docs: man:systemd.special(7)


I mount /usr/portage by nfs, so I do want remote-fs support.

The problem is listed by journalctl:

Sep 26 05:44:27 a6v rpc.statd[1658]: Running as root.  chown /var/lib/nfs to 
choose different user
Sep 26 05:44:27 a6v rpc.statd[1658]: failed to create RPC listeners, exiting
Sep 26 05:44:27 a6v mount[1655]: mount.nfs: rpc.statd is not running but is 
required for remote locking.
Sep 26 05:44:27 a6v mount[1655]: mount.nfs: Either use '-o nolock' to keep 
locks local, or start statd.
Sep 26 05:44:27 a6v mount[1655]: mount.nfs: an incorrect mount option was 
specified
Sep 26 05:44:27 a6v systemd[1]: usr-portage.mount mount process exited, 
code=exited status=32
Sep 26 05:44:27 a6v systemd[1]: Failed to mount /usr/portage.
Sep 26 05:44:27 a6v systemd[1]: Dependency failed for Remote File Systems.
Sep 26 05:44:27 a6v systemd[1]: Job remote-fs.target/start failed with result 
'dependency'.
Sep 26 05:44:27 a6v systemd[1]: Unit usr-portage.mount entered failed state.

# systemctl status remote-fs.target
remote-fs.target - Remote File Systems
  Loaded: loaded (/usr/lib64/systemd/system/remote-fs.target; enabled)
  Active: inactive (dead)
Docs: man:systemd.special(7)

# grep nfs /etc/fstab
a6:/usr/portage /usr/portagenfs rw,auto 0 0
(BTW, this works correctly when booting with openrc.)

Any hints would be much appreciated, thanks.





[gentoo-user] Re: OT: new printer suggestions?

2012-09-26 Thread James
Neil Bothwick neil at digimed.co.uk writes:


 I have a Brother MFC-7460DN network laser AIO. Both printing and scanning
 work fine, using modified ebuilds from b.g.o. Duplex printing also works
 as expected.


So I started looking at the drivers at the bgo overlay,
I did fine: brother-mfc-j265w-drivers-1

http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#DCP-J315W

Is that the drive you used?
How will I know it works with the printer I'm looking at?
(MFC-J6710DW )

Will I have to hack an ebuild to get my specific printer to work?
And I ended up here:

http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-J6710DW


Since I did not see a specific overlay for the 
MFC-J6710DB, I did browse the brother linux drivers
here:

http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html

So, I guess I'm looking for advice on rolling my own hacked
ebuild for this brother printer, or did I miss how all Brother
printers are supported on gentoo?

Looking in CUPS, I did not see





Re: [gentoo-user] Re: OT: new printer suggestions?

2012-09-26 Thread Michael Mol
On Wed, Sep 26, 2012 at 12:01 PM, James wirel...@tampabay.rr.com wrote:
 Neil Bothwick neil at digimed.co.uk writes:


 I have a Brother MFC-7460DN network laser AIO. Both printing and scanning
 work fine, using modified ebuilds from b.g.o. Duplex printing also works
 as expected.


 So I started looking at the drivers at the bgo overlay,
 I did fine: brother-mfc-j265w-drivers-1

 http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#DCP-J315W

 Is that the drive you used?
 How will I know it works with the printer I'm looking at?
 (MFC-J6710DW )

 Will I have to hack an ebuild to get my specific printer to work?
 And I ended up here:

 http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-J6710DW


 Since I did not see a specific overlay for the
 MFC-J6710DB, I did browse the brother linux drivers
 here:

 http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html

 So, I guess I'm looking for advice on rolling my own hacked
 ebuild for this brother printer, or did I miss how all Brother
 printers are supported on gentoo?

 Looking in CUPS, I did not see


For my Brother printers, having net-print/cups and
net-print/foomatic-filters, is sufficient. I'm not doing anything with
scanning or the like, though.

Isn't there a page on one of the Gentoo wikis for this? At the very
least, there's the printer compatibility database[1] at the Linux
foundation. (Apparently, that's where linuxprinting.org went.)

[1] 
http://www.linuxfoundation.org/collaborate/workgroups/openprinting/database/databaseintro

-- 
:wq



Re: [gentoo-user] Re: systemd question

2012-09-26 Thread Canek Peláez Valdés
On Wed, Sep 26, 2012 at 8:11 AM, walt w41...@gmail.com wrote:
 On 09/25/2012 08:21 PM, Canek Peláez Valdés wrote:

  Do
 you need remote filesystem support? If not, then don't worry about it;
 but if you want to find the problem, send the output from systemctl
 status remote-fs.target. Mine is:

 # systemctl status remote-fs.target
 remote-fs.target - Remote File Systems
   Loaded: loaded (/usr/lib64/systemd/system/remote-fs.target;
 enabled)
   Active: active since Mon, 24 Sep 2012 18:33:09 -0500; 1 day and
 3h ago
 Docs: man:systemd.special(7)


 I mount /usr/portage by nfs, so I do want remote-fs support.

 The problem is listed by journalctl:

 Sep 26 05:44:27 a6v rpc.statd[1658]: Running as root.  chown /var/lib/nfs to
 choose different user
 Sep 26 05:44:27 a6v rpc.statd[1658]: failed to create RPC listeners, exiting
 Sep 26 05:44:27 a6v mount[1655]: mount.nfs: rpc.statd is not running but is
 required for remote locking.
 Sep 26 05:44:27 a6v mount[1655]: mount.nfs: Either use '-o nolock' to keep
 locks local, or start statd.
 Sep 26 05:44:27 a6v mount[1655]: mount.nfs: an incorrect mount option was
 specified
 Sep 26 05:44:27 a6v systemd[1]: usr-portage.mount mount process exited,
 code=exited status=32
 Sep 26 05:44:27 a6v systemd[1]: Failed to mount /usr/portage.
 Sep 26 05:44:27 a6v systemd[1]: Dependency failed for Remote File Systems.
 Sep 26 05:44:27 a6v systemd[1]: Job remote-fs.target/start failed with
 result 'dependency'.
 Sep 26 05:44:27 a6v systemd[1]: Unit usr-portage.mount entered failed state.


 # systemctl status remote-fs.target
 remote-fs.target - Remote File Systems
   Loaded: loaded (/usr/lib64/systemd/system/remote-fs.target;
 enabled)
   Active: inactive (dead)
 Docs: man:systemd.special(7)

 # grep nfs /etc/fstab
 a6:/usr/portage /usr/portagenfs rw,auto 0 0
 (BTW, this works correctly when booting with openrc.)

 Any hints would be much appreciated, thanks.

I believe you have your answer:

 Sep 26 05:44:27 a6v mount[1655]: mount.nfs: rpc.statd is not running but is
 required for remote locking.
 Sep 26 05:44:27 a6v mount[1655]: mount.nfs: Either use '-o nolock' to keep
 locks local, or start statd.

Put nolock in the mount options in fstab (rw,auto,nolock), or get
rpc.statd running. For the later, you will need the service file for
it: a quick googling turned out:

http://en.gentoo-wiki.com/wiki/Systemd#NFS

Put the necessary service files in /etc/systemd/system, make a link to
them in /etc/systemd/system/remote-fs.target.wants (you need to do
this by hand, since they don't seem to have an [Install] section), and
then do a 'systemctl --system daemon-reload'. Afterwards, you should
be able to mount your NFS partition with 'systemctl start
usr-portage.mount'.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] openmp flag

2012-09-26 Thread Florian Philipp
Am 25.09.2012 17:01, schrieb Michael Mol:
 On Tue, Sep 25, 2012 at 10:42 AM, James wirel...@tampabay.rr.com wrote:
 Hello,

 background:
 It seems there is a major push now to put openmp:
 [1,2] into  embedded systems [3].

 So I looked at these [4] packages to find something
 interesting to look deeper into related to openMP.

 Blender immediately jumped out at me as a good example,
 cause an old friend Ken Hughes is, imho, one of the
 world's most amazing C programmers, and a stalwart at
 the blender project.


 OK, here's the question, I went to emerge blender
 and found that the openmp flag is already set. {?}
 Yet I looked everywhere and did not see the openmp flag
 set (/etc/make.conf, /etc/portage/package.use)
 so where is it getting set on my AMD workstation?

 [ebuild  N ] media-gfx/blender-2.49b-r2  USE=ffmpeg
  nls ogg openmp -blender-game -openal -verse

 I feel like I should know (profiles etc) but, I'm a little
 bit brain_dead this am, so any help is appreciated.
 
 Packages can choose to have USE flags enabled or disabled for them by
 default. So blender likely has openmp enabled by default, without that
 affecting any other packages.
 

 OH, anyone is encouraged to chime in about openmp
 and your thoughts as to it's viability and usefulness.
 Do you believe it will become a core technology,
 embedded into GCC? Used widely?
 
 If you can use it, use it. OpenMP is little more than a set of
 extensions to C (and C++) which allows the normally-scalar language to
 do some things in a parallel fashion without resorting to the costs of
 multithreading. This is good, because vector instructions have been
 available in x86 since MMX came out, and improvements to the vector
 instructions available to x86 still goes on.
 

I guess this is just poorly phrased but to clarify: OpenMP *does* use
multithreading and nothing else. It does not, in any way, make more use
of vector instructions than GCC without -fopenmp. I guess what you mean
is avoiding the costs of *manual* multithreading using POSIX threads and
the like.

If you want to use vector instructions for your own code, you should
look into compiler intrinsics (i.e. vector instructions as built-in C
functions).
http://ds9a.nl/gcc-simd/

And, just to nit-pick: OpenMP also works for Fortran.

 Related are CUDA and OpenCL, which are two other systems for
 parallelizing code. CUDA assumes you have access to an nVidia GPU (and
 have a CUDA-enabled driver installed). OpenCL is a big more generic,
 and supports dispatching to CUDA, CPU vector instructions or even
 thread pools.
 
 Personally, my recommendation is to enable everything you can get
 working (be it, OpenMP, CUDA or OpenCL); vector processing is going to
 be generally more efficient than scalar processing. You don't need to
 worry about which is better unless you're a software developer. (And
 if you're a software developer, go study up on their differences;
 tradeoffs happen.)
 

+1

By the way: Did anyone get good results out of dev-util/intel-ocl-sdk
for OpenCL? Some time ago I tested it with a package that supported both
OpenMP and OpenCL (not sure which) and OpenCL didn't really make an
impact on my Core i5.

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] openmp flag

2012-09-26 Thread Michael Mol
On Wed, Sep 26, 2012 at 2:25 PM, Florian Philipp li...@binarywings.net wrote:
 Am 25.09.2012 17:01, schrieb Michael Mol:
 On Tue, Sep 25, 2012 at 10:42 AM, James wirel...@tampabay.rr.com wrote:
 Hello,

 background:
 It seems there is a major push now to put openmp:
 [1,2] into  embedded systems [3].

 So I looked at these [4] packages to find something
 interesting to look deeper into related to openMP.

 Blender immediately jumped out at me as a good example,
 cause an old friend Ken Hughes is, imho, one of the
 world's most amazing C programmers, and a stalwart at
 the blender project.


 OK, here's the question, I went to emerge blender
 and found that the openmp flag is already set. {?}
 Yet I looked everywhere and did not see the openmp flag
 set (/etc/make.conf, /etc/portage/package.use)
 so where is it getting set on my AMD workstation?

 [ebuild  N ] media-gfx/blender-2.49b-r2  USE=ffmpeg
  nls ogg openmp -blender-game -openal -verse

 I feel like I should know (profiles etc) but, I'm a little
 bit brain_dead this am, so any help is appreciated.

 Packages can choose to have USE flags enabled or disabled for them by
 default. So blender likely has openmp enabled by default, without that
 affecting any other packages.


 OH, anyone is encouraged to chime in about openmp
 and your thoughts as to it's viability and usefulness.
 Do you believe it will become a core technology,
 embedded into GCC? Used widely?

 If you can use it, use it. OpenMP is little more than a set of
 extensions to C (and C++) which allows the normally-scalar language to
 do some things in a parallel fashion without resorting to the costs of
 multithreading. This is good, because vector instructions have been
 available in x86 since MMX came out, and improvements to the vector
 instructions available to x86 still goes on.


 I guess this is just poorly phrased but to clarify: OpenMP *does* use
 multithreading and nothing else. It does not, in any way, make more use
 of vector instructions than GCC without -fopenmp. I guess what you mean
 is avoiding the costs of *manual* multithreading using POSIX threads and
 the like.

Fair point.


 If you want to use vector instructions for your own code, you should
 look into compiler intrinsics (i.e. vector instructions as built-in C
 functions).
 http://ds9a.nl/gcc-simd/

Personally, I don't like compiler intrinsics; they're specific to
given compilers. I've tended to write code which is supposed to
compile on multiple compilers. (There's a world outside GCC...)

 And, just to nit-pick: OpenMP also works for Fortran.

True; this slipped my mind. :)


 Related are CUDA and OpenCL, which are two other systems for
 parallelizing code. CUDA assumes you have access to an nVidia GPU (and
 have a CUDA-enabled driver installed). OpenCL is a big more generic,
 and supports dispatching to CUDA, CPU vector instructions or even
 thread pools.

 Personally, my recommendation is to enable everything you can get
 working (be it, OpenMP, CUDA or OpenCL); vector processing is going to
 be generally more efficient than scalar processing. You don't need to
 worry about which is better unless you're a software developer. (And
 if you're a software developer, go study up on their differences;
 tradeoffs happen.)


 +1

 By the way: Did anyone get good results out of dev-util/intel-ocl-sdk
 for OpenCL? Some time ago I tested it with a package that supported both
 OpenMP and OpenCL (not sure which) and OpenCL didn't really make an
 impact on my Core i5.

Haven't tried it, no. I've got a Radeon 6870, and I can only have one
OpenCL driver loaded at a time. (IBM has a middleman driver which
supports dispatching to multiple backends, but I believe its a for-pay
package.)

-- 
:wq



Re: [gentoo-user] Re: OT: new printer suggestions?

2012-09-26 Thread Chris Stankevitz
On Wed, Sep 26, 2012 at 9:15 AM, Michael Mol mike...@gmail.com wrote:
 For my Brother printers, having net-print/cups and
 net-print/foomatic-filters, is sufficient. I'm not doing anything with
 scanning or the like, though.


Michael,

Are you saying that you were able to print to your brother printers by
more or less following these steps:
1. buy a computer, install gentoo
2. buy a brother printer, plug it into computer via usb
3. emerge net-print/cups and net-print/foomatic-filters
4. Visit the local cups webpage, add new printer, select brother
5. print

Notably missing from my list is a visit to brother's website (or any
other website) to download drivers/binaries/confs/etc.

Thank you,

Chris



[gentoo-user] OT: shot an XFS-filesystem, oh my

2012-09-26 Thread Stefan G. Weichinger

I had an XFS-filesystem within a KVM-VM (32 bit Gentoo, so it isn't that
off-topic, btw ;-) )

... and I did a lot of work within that filesystem over the last 2 days.

Unfortunately it ran full so I decided to shutdown the VM, use qemu-img
to resize that image-file (raw format), reboot the VM  ... and deleted
the partition /dev/vdb1 (virtio ...) and recreated vdb1 with the full
size of the underlying image-file.

XFS doesn't like that.

Now I lost my xfs-superblock and xfs_check/xfs_repair tell me that they
find candidates for 2nd superblock but can't decide to actually use
them :-(

The XFS-fs was fine before, unmounted correctly ...

I am googling and trying ... does anyone have a hint on this?

If I lose it, OK. No backup (ok, maybe one from a week ago ... without
the latest work of today), but it was mostly a pulled git-repo I worked
with. I got the generated binaries and have the learned steps documented
so I can live with it. But it would be great to somehow get that stuff
online again.

Thanks, greets, Stefan



Re: [gentoo-user] Re: OT: new printer suggestions?

2012-09-26 Thread Neil Bothwick
On Wed, 26 Sep 2012 16:01:05 + (UTC), James wrote:

  I have a Brother MFC-7460DN network laser AIO. Both printing and
  scanning work fine, using modified ebuilds from b.g.o. Duplex
  printing also works as expected.  
 
 
 So I started looking at the drivers at the bgo overlay,
 I did fine: brother-mfc-j265w-drivers-1
 
 http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#DCP-J315W
 
 Is that the drive you used?
 How will I know it works with the printer I'm looking at?
 (MFC-J6710DW )

I looked at the Brother site to find the driver to use, then looked at
the wiki and bgo and found an ebuild for the previous model, which I
edited to use the drivers for my printer.


-- 
Neil Bothwick

Love and Trust: Oral sex between cannibals.


signature.asc
Description: PGP signature


Re: [gentoo-user] OT: new printer suggestions?

2012-09-26 Thread Thanasis
Have you checked EPSON as an option?



Re: [gentoo-user] Re: OT: new printer suggestions?

2012-09-26 Thread Michael Mol
On Wed, Sep 26, 2012 at 4:13 PM, Chris Stankevitz
chrisstankev...@gmail.com wrote:
 On Wed, Sep 26, 2012 at 9:15 AM, Michael Mol mike...@gmail.com wrote:
 For my Brother printers, having net-print/cups and
 net-print/foomatic-filters, is sufficient. I'm not doing anything with
 scanning or the like, though.


 Michael,

 Are you saying that you were able to print to your brother printers by
 more or less following these steps:
 1. buy a computer, install gentoo
 2. buy a brother printer, plug it into computer via usb
 3. emerge net-print/cups and net-print/foomatic-filters
 4. Visit the local cups webpage, add new printer, select brother
 5. print

 Notably missing from my list is a visit to brother's website (or any
 other website) to download drivers/binaries/confs/etc.

More or less. The Brother printers happen to be attached to a Debian
box, but the Gentoo box doesn't require any additional drivers in
order to feed the content to the Debian box over IPP. (And the Debian
box isn't doing any PCL-Brother or PostScript-Brother translation.)

-- 
:wq



Re: [gentoo-user] openmp flag

2012-09-26 Thread Florian Philipp
Am 26.09.2012 21:46, schrieb Michael Mol:
 On Wed, Sep 26, 2012 at 2:25 PM, Florian Philipp li...@binarywings.net 
 wrote:
 Am 25.09.2012 17:01, schrieb Michael Mol:
 On Tue, Sep 25, 2012 at 10:42 AM, James wirel...@tampabay.rr.com wrote:
 Hello,

 background:
 It seems there is a major push now to put openmp:
 [1,2] into  embedded systems [3].

 So I looked at these [4] packages to find something
 interesting to look deeper into related to openMP.

 Blender immediately jumped out at me as a good example,
 cause an old friend Ken Hughes is, imho, one of the
 world's most amazing C programmers, and a stalwart at
 the blender project.


 OK, here's the question, I went to emerge blender
 and found that the openmp flag is already set. {?}
 Yet I looked everywhere and did not see the openmp flag
 set (/etc/make.conf, /etc/portage/package.use)
 so where is it getting set on my AMD workstation?

 [ebuild  N ] media-gfx/blender-2.49b-r2  USE=ffmpeg
  nls ogg openmp -blender-game -openal -verse

 I feel like I should know (profiles etc) but, I'm a little
 bit brain_dead this am, so any help is appreciated.

 Packages can choose to have USE flags enabled or disabled for them by
 default. So blender likely has openmp enabled by default, without that
 affecting any other packages.


 OH, anyone is encouraged to chime in about openmp
 and your thoughts as to it's viability and usefulness.
 Do you believe it will become a core technology,
 embedded into GCC? Used widely?

 If you can use it, use it. OpenMP is little more than a set of
 extensions to C (and C++) which allows the normally-scalar language to
 do some things in a parallel fashion without resorting to the costs of
 multithreading. This is good, because vector instructions have been
 available in x86 since MMX came out, and improvements to the vector
 instructions available to x86 still goes on.


 I guess this is just poorly phrased but to clarify: OpenMP *does* use
 multithreading and nothing else. It does not, in any way, make more use
 of vector instructions than GCC without -fopenmp. I guess what you mean
 is avoiding the costs of *manual* multithreading using POSIX threads and
 the like.
 
 Fair point.
 

 If you want to use vector instructions for your own code, you should
 look into compiler intrinsics (i.e. vector instructions as built-in C
 functions).
 http://ds9a.nl/gcc-simd/
 
 Personally, I don't like compiler intrinsics; they're specific to
 given compilers. I've tended to write code which is supposed to
 compile on multiple compilers. (There's a world outside GCC...)
 

Yes. I haven't used it, either. I guess you could autoconf it and
replace it with vanilla C macros in most cases. Or as an easier
solution: #ifdef a vanilla C implementation together with the vector
code. Bonus points for added readability.

Kind of makes you wonder how well GCC can vectorize programs on its own
when you lay out your code in a way suitable for its own intrinsics
without actually using them.

 And, just to nit-pick: OpenMP also works for Fortran.
 
 True; this slipped my mind. :)
 

 Related are CUDA and OpenCL, which are two other systems for
 parallelizing code. CUDA assumes you have access to an nVidia GPU (and
 have a CUDA-enabled driver installed). OpenCL is a big more generic,
 and supports dispatching to CUDA, CPU vector instructions or even
 thread pools.

 Personally, my recommendation is to enable everything you can get
 working (be it, OpenMP, CUDA or OpenCL); vector processing is going to
 be generally more efficient than scalar processing. You don't need to
 worry about which is better unless you're a software developer. (And
 if you're a software developer, go study up on their differences;
 tradeoffs happen.)


 +1

 By the way: Did anyone get good results out of dev-util/intel-ocl-sdk
 for OpenCL? Some time ago I tested it with a package that supported both
 OpenMP and OpenCL (not sure which) and OpenCL didn't really make an
 impact on my Core i5.
 
 Haven't tried it, no. I've got a Radeon 6870, and I can only have one
 OpenCL driver loaded at a time. (IBM has a middleman driver which
 supports dispatching to multiple backends, but I believe its a for-pay
 package.)
 

Isn't that what app-admin/eselect-opencl is for? I mean simple
switching, not dual application (which would be awesome, too).

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: OT: new printer suggestions?

2012-09-26 Thread Michael Trausch
To add to the list of recommendations, I have used Lexmark lasers (mono and
color) for a long time and been very happy with them. They work with
standard PostScript drivers out of the box, with duplex support for those
models that have it. Their inkjets are crap, but then again they all are; i
don't use ink jet printers at all.
On Sep 24, 2012 6:15 PM, Peter Humphrey pe...@humphrey.ukfsn.org wrote:

 On Monday 24 September 2012 18:45:29 James wrote:

  So now I'll have to think about all of this some more
  HP printers have worked for me for over 14 years with linux,
  unix and bsd systems..
 
  I just cannot find an HP printer that fits my previously
  described needs...
 
  I may just get 2 for less than 500.00 as the HP 7000 officejet
  does handle the large 11x17 (A3 ledger) paper..
 
  thanks to all for the input; other can still make some suggestions.

 I don't remember what you said you wanted, but I have a Kyocera FS1020-D
 mono laser which has performed faultlessly these last five years or so.
 It has a duplexer which also is driven properly. I also have a next-to
 useless HP D4260 inkjet. It purports to work properly but it's used so
 seldom that I can't get an even ink deposition.

 HTH.

 --
 Rgds
 Peter




Re: [gentoo-user] openmp flag

2012-09-26 Thread Michael Mol
On Wed, Sep 26, 2012 at 5:03 PM, Florian Philipp li...@binarywings.net wrote:
 Am 26.09.2012 21:46, schrieb Michael Mol:
 On Wed, Sep 26, 2012 at 2:25 PM, Florian Philipp li...@binarywings.net 
 wrote:
 Am 25.09.2012 17:01, schrieb Michael Mol:
 On Tue, Sep 25, 2012 at 10:42 AM, James wirel...@tampabay.rr.com wrote:

[snip]


 If you want to use vector instructions for your own code, you should
 look into compiler intrinsics (i.e. vector instructions as built-in C
 functions).
 http://ds9a.nl/gcc-simd/

 Personally, I don't like compiler intrinsics; they're specific to
 given compilers. I've tended to write code which is supposed to
 compile on multiple compilers. (There's a world outside GCC...)


 Yes. I haven't used it, either. I guess you could autoconf it and
 replace it with vanilla C macros in most cases. Or as an easier
 solution: #ifdef a vanilla C implementation together with the vector
 code. Bonus points for added readability.

And the added maintenance, doubling the number of builds to test. :)


 Kind of makes you wonder how well GCC can vectorize programs on its own
 when you lay out your code in a way suitable for its own intrinsics
 without actually using them.

[snip]

 By the way: Did anyone get good results out of dev-util/intel-ocl-sdk
 for OpenCL? Some time ago I tested it with a package that supported both
 OpenMP and OpenCL (not sure which) and OpenCL didn't really make an
 impact on my Core i5.

 Haven't tried it, no. I've got a Radeon 6870, and I can only have one
 OpenCL driver loaded at a time. (IBM has a middleman driver which
 supports dispatching to multiple backends, but I believe its a for-pay
 package.)


 Isn't that what app-admin/eselect-opencl is for? I mean simple
 switching, not dual application (which would be awesome, too).

Dual-application is the circumstance IBM handles. Including
dispatching over the network. :)

-- 
:wq



[gentoo-user] trouble with custom keyboard shortcuts in gnome 3.4

2012-09-26 Thread Allan Gottlieb
My new install is gnome 3.4, which is running pretty well.
I am having trouble with an (important-to-me) custom keyboard shortcut.

I am an emacs user so changed many of the shortcuts to use the Windows
key, i.e. super.  This works Super+Up moves to the workspace above,
etc.

However, I have had 2 custom keyboards with previous gnome's

Super+T gnome-terminal
Super+E emacs

This does not work.  Pressing Super+T gives t, Super+E gives e.

However if I set the shortcuts to be
alt+T gnome-terminal
alt+e emacs
it works fine.  However, I can't give up alt+T and alt+e as they are
used in emacs.

thanks,
allan



Re: [gentoo-user] OT: shot an XFS-filesystem, oh my

2012-09-26 Thread Michael Orlitzky
On 09/26/2012 04:13 PM, Stefan G. Weichinger wrote:
 
 I had an XFS-filesystem within a KVM-VM (32 bit Gentoo, so it isn't that
 off-topic, btw ;-) )
 
 ... and I did a lot of work within that filesystem over the last 2 days.
 
 Unfortunately it ran full so I decided to shutdown the VM, use qemu-img
 to resize that image-file (raw format), reboot the VM  ... and deleted
 the partition /dev/vdb1 (virtio ...) and recreated vdb1 with the full
 size of the underlying image-file.
 
 XFS doesn't like that.

That won't work with any filesystem. I think instead of that last step,
you should have booted to a livecd and used GParted to resize the
partition. I went through this once:

 http://michael.orlitzky.com/articles/resizing_a_kvm_or_qemu_disk_image.php

That won't help you get your stuff back but it might help out the next time.

There's proprietary software that can scan the disk for the deleted
partition. They used to be included on Hiren's Boot CD circa 9.0, but
you could easily waste a few hours screwing around with it. If there was
nothing critical and nobody else has any clever ideas, you're probably
better off reinstalling. You should cherish the times you trash
something non-critical.



Re: [gentoo-user] trouble with custom keyboard shortcuts in gnome 3.4

2012-09-26 Thread Canek Peláez Valdés
On Wed, Sep 26, 2012 at 5:21 PM, Allan Gottlieb gottl...@nyu.edu wrote:
 My new install is gnome 3.4, which is running pretty well.
 I am having trouble with an (important-to-me) custom keyboard shortcut.

 I am an emacs user so changed many of the shortcuts to use the Windows
 key, i.e. super.  This works Super+Up moves to the workspace above,
 etc.

Be aware that Super+Up, Super+Left, and Super+Right work for maximize,
mazimize to the left, and maximize to the right.

 However, I have had 2 custom keyboards with previous gnome's

 Super+T gnome-terminal
 Super+E emacs

 This does not work.  Pressing Super+T gives t, Super+E gives e.

 However if I set the shortcuts to be
 alt+T gnome-terminal
 alt+e emacs
 it works fine.  However, I can't give up alt+T and alt+e as they are
 used in emacs.

Known bug:

https://bugzilla.gnome.org/show_bug.cgi?id=659899
https://bugzilla.gnome.org/show_bug.cgi?id=655615

Basically, GNOME Shell treats the Super key as special, and sometimes
shortcuts binded to it fail. It is a bug, however, and devs are
discussing how to handle it. In the mean time, may I recommend trying:

Ctrl+Alt+e  -  Emacs
Ctrl+Alt+t  - Terminal

It is not optimal, and the bug should be fixed. But it has a workaround.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] trouble with custom keyboard shortcuts in gnome 3.4

2012-09-26 Thread Canek Peláez Valdés
On Wed, Sep 26, 2012 at 9:11 PM, Canek Peláez Valdés can...@gmail.com wrote:
 On Wed, Sep 26, 2012 at 5:21 PM, Allan Gottlieb gottl...@nyu.edu wrote:
 My new install is gnome 3.4, which is running pretty well.
 I am having trouble with an (important-to-me) custom keyboard shortcut.

 I am an emacs user so changed many of the shortcuts to use the Windows
 key, i.e. super.  This works Super+Up moves to the workspace above,
 etc.

 Be aware that Super+Up, Super+Left, and Super+Right work for maximize,
 mazimize to the left, and maximize to the right.

 However, I have had 2 custom keyboards with previous gnome's

 Super+T gnome-terminal
 Super+E emacs

 This does not work.  Pressing Super+T gives t, Super+E gives e.

 However if I set the shortcuts to be
 alt+T gnome-terminal
 alt+e emacs
 it works fine.  However, I can't give up alt+T and alt+e as they are
 used in emacs.

 Known bug:

 https://bugzilla.gnome.org/show_bug.cgi?id=659899
 https://bugzilla.gnome.org/show_bug.cgi?id=655615

 Basically, GNOME Shell treats the Super key as special, and sometimes
 shortcuts binded to it fail. It is a bug, however, and devs are
 discussing how to handle it. In the mean time, may I recommend trying:

 Ctrl+Alt+e  -  Emacs
 Ctrl+Alt+t  - Terminal

 It is not optimal, and the bug should be fixed. But it has a workaround.

 Regards.

BTW, it can be done with an extension (according to the bug) using
global.display.add_keybinding(). I haven't wrote any GNOME Shell
extension, but I've heard it's not difficult.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] Re: OT: new printer suggestions?

2012-09-26 Thread Chris Stankevitz
On Wed, Sep 26, 2012 at 1:45 PM, Michael Mol mike...@gmail.com wrote:
 More or less.

Hrm.  I have the same printer and I had to visit brother's website and
download some kind of binary to get it working.  I was hoping to
emerge cups and have it just work but that was not the case for me.
Then again I don't even know what is PCL, IPP, PostScript, foomatic,
hplip, ppds, etc.

Chris