Re: [gentoo-user] scanning using the sheet feeder (HP 8600 + xsane)

2017-05-06 Thread Adam Carter
>
> Anyway it now works!  The only problem is that the max resolution for
> multipage using the ADT is 300 dpi.  Using the flatbed you can go much
> higher.
>

Ok that's good to know. (I have an 8620).


Re: [gentoo-user] scanning using the sheet feeder (HP 8600 + xsane)

2017-05-06 Thread allan gottlieb
On Sat, May 06 2017, Adam Carter wrote:

>>
>> I received many helpful replies, each of which recommend a tool other
>> than sane.  Is the point that sane can't use the document feeder or just
>> that you prefer (or simply have used) other tools.
>>
> $ qfile /usr/bin/scanimage
> media-gfx/sane-backends (/usr/bin/scanimage)
>
> And xsane depends on sane-backends, so you already have it.
>
> In my case i haven't investigated other tools.

xscan is essentially the gui version of scanimage.
So I had the same trouble with scanimage.  It would only do one page
from the document tray.

I had looked at the xscan docs before but didn't solve the problem.
This time I looked some other docs and looked at the buttons on the gui
and it seems I should have set the number of pages.

Anyway it now works!  The only problem is that the max resolution for
multipage using the ADT is 300 dpi.  Using the flatbed you can go much
higher.

Thank you all, this will prove very useful and will save considerable
time in doing multipage docs.

allan



Re: [gentoo-user] scanning using the sheet feeder (HP 8600 + xsane)

2017-05-06 Thread Adam Carter
>
> I received many helpful replies, each of which recommend a tool other
> than sane.  Is the point that sane can't use the document feeder or just
> that you prefer (or simply have used) other tools.
>
>
$ qfile /usr/bin/scanimage
media-gfx/sane-backends (/usr/bin/scanimage)

And xsane depends on sane-backends, so you already have it.

In my case i haven't investigated other tools.


Re: [gentoo-user] new scanner : how to activate for Gentoo : further thoughts

2017-05-06 Thread allan gottlieb
On Sat, May 06 2017, Philip Webb wrote:

> 170506 Mick wrote:
>> On Friday 05 May 2017 19:27:47 Philip Webb wrote:
>>> There is a pkg  media-gfx/iscan-plugin-gt-x820  for a V600 :
>>> I could take the V550 back & exchange it for a V600
>>> & try to install Iscan + data + that plugin.
>> If you are going to change it, isn't there a HP device out there
>> that Just Works™ with the hplip and potentially the hplip-plugin packages?
>
> Very unlikely : I have an HP printer, which also copies & can scan,
> but it isn't supported by Sane-backends & would require much work.

Do you have hplip and hplip-plugin merged?
I have SANE_BACKENDS="" and can scan from the glass with no problems
  (I can't figure out how to use the sheet feeder for multiple pages)

My hp all-in-one is an 8600.

allan



Re: [gentoo-user] scanning using the sheet feeder (HP 8600 + xsane)

2017-05-06 Thread allan gottlieb
On Fri, May 05 2017, allan gottlieb wrote:

> I have an hp 8600 all-in-one and use net-print/hplip.
> Printing is fine.
>
> I use xsane for scanning, which also works well ...
>
> ... except I can't figure out how to use the sheet feeder for multipage
> scanning.
>
> I can select multipage and can the scan each page singly and hit
> "save multipage file".  This works.  But I can't put say 10 pages in the
> feeder, hit something, get coffee, and find a 10 page document on my
> computer.
>
> In case it is relevant, I run gentoo stable / gnome-3 / systemd.
>
> thanks in advance,
> allan

I received many helpful replies, each of which recommend a tool other
than sane.  Is the point that sane can't use the document feeder or just
that you prefer (or simply have used) other tools.

thanks,
allan



Re: [gentoo-user] scanning using the sheet feeder (HP 8600 + xsane)

2017-05-06 Thread Neil Bothwick
On Sat, 6 May 2017 10:08:36 -0400, Philip Webb wrote:

> >> I use xsane for scanning, which also works well ...
> >> I can't figure out how to use the sheet feeder for multipage
> >> scanning.  
> > I use gscan2pdf for that. I've used it to scan hundreds of pages
> > into a single document, only stopping to top up the document feeder.  
> 
> It wants to install  49 pkgs  of Perl +  1  more as requirements
> (grimace).

Yes, but Perl packages are tiny.
 
> Why do PDF utilities seem to demand so much external support ?

It's a Perl script, most of what it does is handled by existing modules.
What's wrong with that? If the program did it all itself, it would be
bigger than the dependencies it uses, and they wouldn't be available for
anything else.


-- 
Neil Bothwick

Hey, Odo! Got anymore of that Jell-O in the fridge? Odo?


pgpbst22THqV1.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] new scanner : how to activate for Gentoo : further thoughts

2017-05-06 Thread Daniel Frey
On 05/06/2017 10:45 AM, Philip Webb wrote:
> Thanks for trying to help, but I've bought a new scanner
> & don't want the trouble of taking it back to the store.
> It works on Mint, so at most I'll have to reboot to use it.
> However, given that it works on Mint, it should work on Gentoo.

No worries, I thought it was this thread that was contemplating
returning it and getting a different model. Probably my fault for mixing
up threads again, not the first time for me. ;-)

Dan




Re: [gentoo-user] Re: new scanner : how to activate for Gentoo : solved

2017-05-06 Thread Philip Webb
170506 Gene Hannan wrote:
> On 05/05/2017 04:27 PM, Philip Webb wrote:
>> I want to get my new Epson V550 working on Gentoo,
>> having successfully installed Epson's driver on Mint.
>>
>> I installed the Gentoo pkg 'dpkg', which handles .deb archives,
>> & listed the content of the  3  .deb files in the Epson driver pkg.
>> They cb viewed at  http://chass.utoronto.ca/~purslow/test/
>> with names beginning with 'v550'.
>>
>> It appears that the pkg installs a utility 'iscan',
>> a Sane plugin called 'epkowa', which is not available via Sane-backends
>> ( /etc/hotplug/usb/libsane.usermap  doesn't list it),
>> plus some further data files + a lot of dox.
>>
>> I've tried  3  methods without success :
>> (1) install Iscan via Portage & copy the other files in the .deb ;
>> (2) copy all the files in the .deb  (apart from dox) (list checked) ;
>> (3) try to run the  install.sh  script.
> I have an Epson 4490 which is supported by epkowa plugin 
> iscan-plugin-gt-x750.  I found that ebuild on an overlay long ago.
> That ebuild looks much like those currently in the tree for newer models. 
> In each of the ebuilds I looked at, there is an "iscan-registry" command 
> executed subsequent to installing all the files
> which registers the plugin. Perhaps this is what is missing.
> The registration command includes a USB identifier
> which will differ with scanner model.

Thanks ! -- that's the solution after doing (2) above.

I had to run 'iscan-registry --add interpreter usb 0x04b8 0x013b \
/usr/lib/iscan/libiscan-plugin-perfection-v550'.
The whole line is essential & the help file is not very clear,
but once I got it right the scanner woke up & I completed a scan
(my usual test photo of the Canadian Foreign Minister + the IMF Chief
talking past an awkward-looking Ms Trump : see my I/net site above).

As usual with Gentoo, problems are  1  layer deep.
You have to find the correct item to change, then everything works.

HTH others who may find it via Google etc.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] Re: Receiving syslog entries over network with systemd

2017-05-06 Thread Alan McKinnon
On 06/05/2017 19:41, Mick wrote:
> On Thursday 04 May 2017 15:35:58 Mick wrote:
>> Hi All,
>>
>> I hope this post is not completely off topic.  I have a small LAN server
>> (with Kodi) running systemd and I want to use it to receive and store
>> syslog entries from other devices over the LAN.  I want to keep this system
>> as lightweight as possible, due to its constrained hardware.  What is the
>> best way to go about it and how should I configure systemd?  Please be
>> detailed with your explanations on systemd - my knowledge on this init
>> system and its manifold applications is quite limited.
> 
> It was straight forward.  Install syslog-ng, add a configuration to accept 
> logs over UDP and install logrotate, which brought in cron and configured the 
> required cron job.
> 
> This is the additional configuration file I had to create:
> 
> $ cat /etc/syslog-ng/conf.d/remote.conf
> source net { source net { udp(); };
> destination remote { file("/var/log/remote/${FULLHOST}-log"); };
> log { source(net); destination(remote); };
> 
> I also tried this stanza to bind a LAN IP address for the syslog-ng host to 
> listen to for connections from the LAN devices, but then syslog-ng failed to 
> start:
> 
> source net { syslog(ip(192.168.1.25) transport ("udp")); }; 
> 
> Perhaps the ethernet was not up at the time and after a few attempts 
> syslog-ng 
> gave up.  I was able to start it manually after boot though.
> 

You might need to tweak your startup order in conf.d
a syslogger normally starts very early in the boot process, before even
networking so that it can log network-y errors.

A remote syslogger needs to start after networking.

-- 
Alan McKinnon
alan.mckin...@gmail.com




[gentoo-user] Re: new scanner : how to activate for Gentoo : no success

2017-05-06 Thread Gene Hannan

On 05/05/2017 04:27 PM, Philip Webb wrote:

170504 Philip Webb wrote:

I want to get my new Epson V550 working on Gentoo,
having successfully installed Epson's driver on Mint.

I installed the Gentoo pkg 'dpkg', which handles .deb archives,
& listed the content of the  3  .deb files in the Epson driver pkg.
They cb viewed at  http://chass.utoronto.ca/~purslow/test/
with names beginning with 'v550'.

It appears that the pkg installs a utility 'iscan',
a Sane plugin called 'epkowa', which is not available via Sane-backends
( /etc/hotplug/usb/libsane.usermap  doesn't list it),
plus some further data files + a lot of dox.


I've tried  3  methods without success :
(1) install Iscan via Portage & copy the other files in the .deb ;
(2) copy all the files in the .deb  (apart from dox) (list checked) ;
(3) try to run the  install.sh  script.

None of them succeeds in getting the scanner recognised.

There is a pkg  media-gfx/iscan-plugin-gt-x820  for a V600 :
I could take the V550 back & exchange it for a V600
& try to install Iscan + data + that plugin.

Any suggestions are very welcome.



I have an Epson 4490 which is supported by epkowa plugin 
iscan-plugin-gt-x750.  I found that ebuild on an overlay long ago.  That 
ebuild looks much like the ones currently in the tree for newer models. 
In each of the ebuilds I looked at, there is an "iscan-registry" command 
executed subsequent to installing all the files which registers the 
plugin. Perhaps this is what is missing. The registration command 
includes a USB identifier which will differ with scanner model.




[gentoo-user] layman: cannot properly execute...

2017-05-06 Thread John Blinka
Hi, all,

For some time I've been getting messages like:

cannot properly execute
/var/lib/layman/science/virtual/lapack/lapack-3.6-r100.ebuild

for *every* package in the science overlay.  This happened on 2 of 3
very similar gentoo
systems I maintain, but not the third.  As far as I could tell, the
permissions and
ownership of all /etc/portage and /usr/portage and /var/lib/layman
files and directories
are identical.  All the machines have the same /etc/passwd and /etc/group files,
the same /var/lib/portage/world files, and so on.  I've gone to some
effort to make these
machines as identical as possible.  I have done layman -d science then layman -a
science to see if wiping out the overlay then reinstalling it would
help, but that makes no
difference.

Googling the error produces just a few hits that recommend permissions
and ownerships
that helped solve this problem for others, but don't help me.

It appears that this error message comes from /usr/bin/eix.  I've
looked through the
source code a bit, but it's been long enough since I've messed with C
that this didn't
yield any answers.

strace indicates that eix does an lstat on every element of
/var/lib/layman/science/virtual/lapack/lapack-3.6-r100.ebuild before
deciding to print the
error message.  It also indicates that eix does a setuid and setgid to
portage:portage
early in its execution.  As far as I can tell, portage:portage ought
to be able to both read
and execute this ebuild (and all the other ones eix complains about).

And now, out of the blue apparently, the third system has started
spitting out this error
message as well.

Any ideas on how to debug this?

John Blinka



Re: [gentoo-user] new scanner : how to activate for Gentoo : further thoughts

2017-05-06 Thread Philip Webb
170506 Daniel Frey wrote:
> I had to buy a new scanner in late 2015 (I believe)
> and found a Canon LiDE 200. I got mine on sale for $90 here in Canada.
> This scanner doesn't have as high a resolution
> (it's only 4800dpi vs. the Epson you have's 6400) and there's no ADF.
> It comes with a bracket to make it sit upright.
> Main reason I bought it is because it uses the genesys backend
> in sane-backends and no additional configuration was required on my end.
> Do note that newer models than mine require some proprietary crap.
> I had to search out this model specifically. I've scanned many pictures
> and used it to restore an old user manual even, works pretty well for $90.
> Correction: my model is the LiDE 220, a 200 series model.
> From what I remember it wasn't listed on the compatibility site
> but it did indeed work. I don't remember having to do anything
> other than maybe added the USB IDs so the genesys driver would use it.
> # scanimage -L
> device `genesys:libusb:001:002' is a Canon LiDE 220 flatbed scanner

Thanks for trying to help, but I've bought a new scanner
& don't want the trouble of taking it back to the store.
It works on Mint, so at most I'll have to reboot to use it.
However, given that it works on Mint, it should work on Gentoo.

I've audited the files carefully & everything in the file lists,
which I created using 'dpkg -c', is present in the Gentoo dirs
& everything in the Mint dirs corresponds to the files in the Gentoo dirs ;
I did check ownership + permissions, incl 'x', & all seems the same.
The version of Xsane is different in Mint
& I don't know what its equivalent of Gentoo use-flags were ;
also, Mint uses Systemd & my Gentoo uses Openrc.

I've put the install script on my Internet site
at  http://www.chass.utoronto.ca/~purslow/test/ .
Can anyone interpret it & check whether it does anything with the files
which might make them work differently ?

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




[gentoo-user] Re: Receiving syslog entries over network with systemd

2017-05-06 Thread Mick
On Thursday 04 May 2017 15:35:58 Mick wrote:
> Hi All,
> 
> I hope this post is not completely off topic.  I have a small LAN server
> (with Kodi) running systemd and I want to use it to receive and store
> syslog entries from other devices over the LAN.  I want to keep this system
> as lightweight as possible, due to its constrained hardware.  What is the
> best way to go about it and how should I configure systemd?  Please be
> detailed with your explanations on systemd - my knowledge on this init
> system and its manifold applications is quite limited.

It was straight forward.  Install syslog-ng, add a configuration to accept 
logs over UDP and install logrotate, which brought in cron and configured the 
required cron job.

This is the additional configuration file I had to create:

$ cat /etc/syslog-ng/conf.d/remote.conf
source net { source net { udp(); };
destination remote { file("/var/log/remote/${FULLHOST}-log"); };
log { source(net); destination(remote); };

I also tried this stanza to bind a LAN IP address for the syslog-ng host to 
listen to for connections from the LAN devices, but then syslog-ng failed to 
start:

source net { syslog(ip(192.168.1.25) transport ("udp")); }; 

Perhaps the ethernet was not up at the time and after a few attempts syslog-ng 
gave up.  I was able to start it manually after boot though.
-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: FreeCAD permission problems

2017-05-06 Thread tuxic
On 05/06 06:40, Kai Krakow wrote:
> Am Sat, 6 May 2017 16:23:19 +0200
> schrieb tu...@posteo.de:
> 
> > It's there
> > -rw-r--r-- 1 root root 141 May  6 10:37 /etc/env.d/000opengl
> > 
> > and its contents is:
> > # Configuration file for eselect
> > # This file has been automatically generated.
> > LDPATH="/usr/lib64/opengl/nvidia/lib"
> > OPENGL_PROFILE="nvidia"
> > 
> > Contents of ld.so.conf:
> > 
> > # ld.so.conf autogenerated by env-update; make all changes to
> > # contents of /etc/env.d directory
> > /usr/lib64/opengl/nvidia/lib
> > /lib64
> > /usr/lib64
> > /usr/local/lib64
> > /lib
> > /usr/lib
> > /usr/local/lib
> > include ld.so.conf.d/*.conf
> > /usr/lib64/OpenCL/vendors/nvidia
> > /usr/lib/llvm/4/lib64
> > /usr/lib64/itcl4.0.3/
> > /usr/lib64/itk4.0.1/
> > /usr/lib64/qt4
> > /opt/nvidia-cg-toolkit/lib64
> > /usr/games/lib64
> > /usr/games/lib
> > /opt/cuda/lib64
> > /opt/cuda/lib
> > /opt/cuda/nvvm/lib64
> > /usr/lib64/fltk
> > /usr/lib64/libgig/
> > 
> > 
> > 
> > No, no ACLs here:
> > 
> > ls -l /dev/input/*   (excerpt)
> > 
> > crw-rw 1 root input 13, 64 May  6 12:11 /dev/input/event0
> > crw-rw 1 root input 13, 65 May  6 12:11 /dev/input/event1
> > 
> > 
> > crw-rw 1 root video 195,   0 May  6 12:11 /dev/nvidia0
> > crw-rw 1 root video 195,   1 May  6 12:11 /dev/nvidia1
> > crw-rw 1 root video 195, 255 May  6 12:11 /dev/nvidiactl
> > crw-rw-rw- 1 root root  195, 254 May  6 12:11 /dev/nvidia-modeset
> > crw-rw-rw- 1 root root  246,   0 May  6 12:20 /dev/nvidia-uvm
> > crw-rw-rw- 1 root root  246,   1 May  6 12:20 /dev/nvidia-uvm-tools
> > 
> > 
> > I have two nvidia-cards in my PC. One (the slower,older) is for
> > everytyhing except rendering, the newer and faster one is for
> > rendering except anything else.
> > 
> > The above shows both permissions:
> > root:root and root:portage...
> > 
> > 
> > Video-group settings are ok it seems:
> > NVreg_DeviceFileGID=27
> > 
> > 27(video)
> 
> Okay, this looks all good.
> 
> > (as user)
> > glxgears -info:
> > Running synchronized to the vertical refresh.  The framerate should be
> > approximately the same as the monitor refresh rate.
> > GL_RENDERER   = GeForce GT 430/PCIe/SSE2  <<<= this is
> > the older, slower graphics card!
> 
> Is this what you expected?
> 
> I'm not sure how to handle multiple nvidia cards properly and assign
> them to different tasks. My best guess is using nvidia-settings.
> 
> I guess one GPU is used for X11, the other is not. So, if you want one
> application to use the idle GPU, it may not be initialized.
> 
> I think this is when you use persistenced:
> https://docs.nvidia.com/deploy/driver-persistence/
> 
> > GL_VERSION= 4.5.0 NVIDIA 381.09
> > GL_VENDOR = NVIDIA Corporation
> > GL_EXTENSIONS = GL_AMD_multi_draw_indirect GL_ARB_arrays_of_arrays
> [...snip...]
> 
> I guess this is all not Gentoo related. Your graphics stack looks
> correct. I guess that FreeCAD chokes because of your special setup
> with two GPUs. You may want to contact their support forum.
> Everything related to the basic configuration looks correct.
> 
> 
> -- 
> Regards,
> Kai
> 
> Replies to list-only preferred.
> 
> 

Hi Kai,

thanks for all your help and analyzes!
Yes, it looks like FreeCAD creates the problem.
No other program (Blender for example) has any
problem with my setup...just another part
of this puzzle...

Have a nice weekend!
Cheers
Meino







[gentoo-user] Re: FreeCAD permission problems

2017-05-06 Thread Kai Krakow
Am Sat, 6 May 2017 16:23:19 +0200
schrieb tu...@posteo.de:

> It's there
> -rw-r--r-- 1 root root 141 May  6 10:37 /etc/env.d/000opengl
> 
> and its contents is:
> # Configuration file for eselect
> # This file has been automatically generated.
> LDPATH="/usr/lib64/opengl/nvidia/lib"
> OPENGL_PROFILE="nvidia"
> 
> Contents of ld.so.conf:
> 
> # ld.so.conf autogenerated by env-update; make all changes to
> # contents of /etc/env.d directory
> /usr/lib64/opengl/nvidia/lib
> /lib64
> /usr/lib64
> /usr/local/lib64
> /lib
> /usr/lib
> /usr/local/lib
> include ld.so.conf.d/*.conf
> /usr/lib64/OpenCL/vendors/nvidia
> /usr/lib/llvm/4/lib64
> /usr/lib64/itcl4.0.3/
> /usr/lib64/itk4.0.1/
> /usr/lib64/qt4
> /opt/nvidia-cg-toolkit/lib64
> /usr/games/lib64
> /usr/games/lib
> /opt/cuda/lib64
> /opt/cuda/lib
> /opt/cuda/nvvm/lib64
> /usr/lib64/fltk
> /usr/lib64/libgig/
> 
> 
> 
> No, no ACLs here:
> 
> ls -l /dev/input/*   (excerpt)
> 
> crw-rw 1 root input 13, 64 May  6 12:11 /dev/input/event0
> crw-rw 1 root input 13, 65 May  6 12:11 /dev/input/event1
> 
> 
> crw-rw 1 root video 195,   0 May  6 12:11 /dev/nvidia0
> crw-rw 1 root video 195,   1 May  6 12:11 /dev/nvidia1
> crw-rw 1 root video 195, 255 May  6 12:11 /dev/nvidiactl
> crw-rw-rw- 1 root root  195, 254 May  6 12:11 /dev/nvidia-modeset
> crw-rw-rw- 1 root root  246,   0 May  6 12:20 /dev/nvidia-uvm
> crw-rw-rw- 1 root root  246,   1 May  6 12:20 /dev/nvidia-uvm-tools
> 
> 
> I have two nvidia-cards in my PC. One (the slower,older) is for
> everytyhing except rendering, the newer and faster one is for
> rendering except anything else.
> 
> The above shows both permissions:
> root:root and root:portage...
> 
> 
> Video-group settings are ok it seems:
> NVreg_DeviceFileGID=27
> 
> 27(video)

Okay, this looks all good.

> (as user)
> glxgears -info:
> Running synchronized to the vertical refresh.  The framerate should be
> approximately the same as the monitor refresh rate.
> GL_RENDERER   = GeForce GT 430/PCIe/SSE2  <<<= this is
> the older, slower graphics card!

Is this what you expected?

I'm not sure how to handle multiple nvidia cards properly and assign
them to different tasks. My best guess is using nvidia-settings.

I guess one GPU is used for X11, the other is not. So, if you want one
application to use the idle GPU, it may not be initialized.

I think this is when you use persistenced:
https://docs.nvidia.com/deploy/driver-persistence/

> GL_VERSION= 4.5.0 NVIDIA 381.09
> GL_VENDOR = NVIDIA Corporation
> GL_EXTENSIONS = GL_AMD_multi_draw_indirect GL_ARB_arrays_of_arrays
[...snip...]

I guess this is all not Gentoo related. Your graphics stack looks
correct. I guess that FreeCAD chokes because of your special setup
with two GPUs. You may want to contact their support forum.
Everything related to the basic configuration looks correct.


-- 
Regards,
Kai

Replies to list-only preferred.




Re: [gentoo-user] new scanner : how to activate for Gentoo : further thoughts

2017-05-06 Thread Daniel Frey
On 05/06/2017 09:15 AM, Daniel Frey wrote:
> On 05/06/2017 06:15 AM, Philip Webb wrote:
>> 170506 Mick wrote:
>>> On Friday 05 May 2017 19:27:47 Philip Webb wrote:
 There is a pkg  media-gfx/iscan-plugin-gt-x820  for a V600 :
 I could take the V550 back & exchange it for a V600
 & try to install Iscan + data + that plugin.
>>> If you are going to change it, isn't there a HP device out there
>>> that Just Works™ with the hplip and potentially the hplip-plugin packages?
>>
>> Very unlikely : I have an HP printer, which also copies & can scan,
>> but it isn't supported by Sane-backends & would require much work.
>>
>> I plan to audit what I've installed carefully today
>> & if I still can't get it to work on Gentoo, I'll file a bug :
>> hopefully, whoever created the plugin for V600 can do another for V550.
>>
>> Also, I'll put the Epson install script on my Internet site
>> ( http://www.chass.utoronto.ca/~purslow/test/ ).
>> I can't make sense of it, but perhaps someone here can tell me
>> what it does with the .deb files when it installs them.
>>
>> If it works on Mint, it sb possible to get it to work on Gentoo.
>> Usually in such cases, the secret is finding  1  small item
>> which needs to be fixed & then everything is ok : that's Gentoo's strength.
>>
> 
> I had to buy a new scanner in late 2015 (I believe) and found a Canon
> LiDE 200. I got mine on sale for $90 here in Canada.
> 
> This scanner doesn't have as high a resolution (it's only 4800dpi vs.
> the Epson you have's 6400) and there's no ADF. It comes with a bracket
> to make it sit upright.
> 
> Main reason I bought it is because it uses the genesys backend in
> sane-backends and no additional configuration was required on my end.
> 
> Do note that newer models than mine require some proprietary crap. I had
> to search out this model specifically. I've scanned many pictures and
> used it to restore an old user manual even, works pretty well for $90.
> 
> Dan
> 

Correction: my model is the LiDE 220, a 200 series model. From what I
remember it wasn't listed on the compatibility site but it did indeed
work. I don't remember having to do anything to get it to work, other
than maybe added the USB IDs so the genesys driver would use it.

# scanimage -L
device `genesys:libusb:001:002' is a Canon LiDE 220 flatbed scanner

Dan



Re: [gentoo-user] new scanner : how to activate for Gentoo : further thoughts

2017-05-06 Thread Daniel Frey
On 05/06/2017 06:15 AM, Philip Webb wrote:
> 170506 Mick wrote:
>> On Friday 05 May 2017 19:27:47 Philip Webb wrote:
>>> There is a pkg  media-gfx/iscan-plugin-gt-x820  for a V600 :
>>> I could take the V550 back & exchange it for a V600
>>> & try to install Iscan + data + that plugin.
>> If you are going to change it, isn't there a HP device out there
>> that Just Works™ with the hplip and potentially the hplip-plugin packages?
> 
> Very unlikely : I have an HP printer, which also copies & can scan,
> but it isn't supported by Sane-backends & would require much work.
> 
> I plan to audit what I've installed carefully today
> & if I still can't get it to work on Gentoo, I'll file a bug :
> hopefully, whoever created the plugin for V600 can do another for V550.
> 
> Also, I'll put the Epson install script on my Internet site
> ( http://www.chass.utoronto.ca/~purslow/test/ ).
> I can't make sense of it, but perhaps someone here can tell me
> what it does with the .deb files when it installs them.
> 
> If it works on Mint, it sb possible to get it to work on Gentoo.
> Usually in such cases, the secret is finding  1  small item
> which needs to be fixed & then everything is ok : that's Gentoo's strength.
> 

I had to buy a new scanner in late 2015 (I believe) and found a Canon
LiDE 200. I got mine on sale for $90 here in Canada.

This scanner doesn't have as high a resolution (it's only 4800dpi vs.
the Epson you have's 6400) and there's no ADF. It comes with a bracket
to make it sit upright.

Main reason I bought it is because it uses the genesys backend in
sane-backends and no additional configuration was required on my end.

Do note that newer models than mine require some proprietary crap. I had
to search out this model specifically. I've scanned many pictures and
used it to restore an old user manual even, works pretty well for $90.

Dan



Re: [gentoo-user] Re: FreeCAD permission problems

2017-05-06 Thread tuxic
On 05/06 03:20, Kai Krakow wrote:
> Am Sat, 6 May 2017 14:42:59 +0200
> schrieb tu...@posteo.de:
> 
> > On 05/06 02:16, Kai Krakow wrote:
> > > Am Sat, 6 May 2017 12:55:24 +0200
> > > schrieb tu...@posteo.de:
> > >   
> > > > On 05/06 12:28, Kai Krakow wrote:  
> >  [...]  
> >  [...]  
> > > >  [...]  
> > > >  [...]
> >  [...]  
> > > >  [...]
> >  [...]  
> > > >  [...]
> >  [...]  
> > > >  [...]
> >  [...]  
> > > >  [...]  
> > > >  [...]
> >  [...]  
> >  [...]  
> >  [...]  
> >  [...]  
> > > > 
> > > > Hi,
> > > > 
> > > > ...it runs now at least for root (called as user it crashes
> > > > still).
> > > > 
> > > > I did the following:
> > > > 
> > > > 
> > > > mv /usr/lib64/libGL.so  /usr/lib64/off.libGL.so 
> > > > 
> > > > for all libGL.so* in /usr/lib64/libGL.so*  
> > > 
> > > You shouldn't shuffle those files around. They are controlled by the
> > > package manager.
> > > 
> > > I think it's a bug of the software that it overwrites ld paths.
> > > With a Gentoo standard configuration and eselect opengl switched to
> > > nvidia, every software should find and load the nvidia opengl stuff
> > > first.
> > > 
> > > Could you show the output of
> > > 
> > > # lddtree $(which FreeCAD)
> > > 
> > > E.g., lddtree $(which kwin_x11) shows a line for me:
> > > 
> > > libGL.so.1 => /usr/lib64/opengl/nvidia/lib/libGL.so.1
> > > 
> > > which clearly says it's linking libGL.so.1 from nvidia first.
> > > 
> > > If a libGL line is missing for FreeCAD, it is dynamically loaded by
> > > the application itself. Then it's a FreeCAD bug that should be
> > > fixed.
> > > 
> > > If it's loading from /usr/lib64/libGL* for you, then some paths and
> > > configs are borked in your system.
> > > 
> > >   
> > > > Addtionally I added 06nvidia to /etc/ld.so.config.d/. with this
> > > > contents:
> > > > /usr/lib64/opengl/nvidia/lib
> > > > and did a ldconfig afterwards and reboot to release any
> > > > filehandle.  
> > > 
> > > I wonder why these paths are missing for you... My ld.so.conf has
> > > nvidia paths right in the beginning (first two lines). It's
> > > actually made from /etc/env.d/000opengl. There's nothing nvidia
> > > specific in the .d directory.
> > > 
> > >   
> > > > One question remains:
> > > > It works for root but not for any other user.
> > > > I (as user) am in the video group.
> > > > 
> > > > I checked the directory/file permissions of opencascade and they
> > > > seem to be ok.  
> > > 
> > > I don't think that modern kernels and desktop managers still use the
> > > video group. It should be handled by ACLs. Please have a look at the
> > > ACLs of the device nodes.
> > > 
> > > It all depends on your login manager and pam configuration. You
> > > should check that if things don't work right. If you're using
> > > systemd, you are using systemd-logind, otherwise you're probably
> > > using consolekit.
> > > 
> > > If you're not using either of those, the system would fall back to
> > > standard unix group permissions. But I'm not sure if this works
> > > correctly if you didn't configure the whole chain to work that way.
> > > 
> > >   
> > > > I straced FreeCAD...but...I fear not to see anything suspicious
> > > > because the output contains a lot of noise (much more as normally
> > > > seen in such traces)...  
> > > 
> > > You can use call filters to limit that to what you want to see.
> > > Also, there's ltrace which could be interesting.
> > > 
> > >   
> > > > The eselects show:  
> >  [...]  
> > > > Available OpenGL implementations:
> > > >   [1]   nvidia *
> > > >   [2]   xorg-x11  
> >  [...]  
> > > > i915 (Intel 915, 945)
> > > > i965 (Intel GMA 965, G/Q3x, G/Q4x, HD)
> > > > r300 (Radeon R300-R500)
> > > > r600 (Radeon R600-R700, Evergreen, Northern Islands)
> > > > sw (Software renderer)
> > > >   [1]   classic
> > > >   [2]   gallium *
> > > > 
> > > > Why is nvidia not listed with the second command?  
> > > 
> > > Afaik, it does not provide mesa drivers. That's probably why it
> > > cannot find an "swrast" driver/visual then. Directly using nvidia
> > > OpenGL fixes that, which is what you did now.
> > > 
> > > I think the bug with FreeCAD is, that it cannot properly handle
> > > multiple opengl implementations which it tries to do itself. It
> > > should be left to the system to correctly load the correct opengl
> > > implementation.
> > > 
> > > I guess FreeCAD looks up visuals by loading libGL from /usr/lib,
> > > then it loads libGL again using means provided by the system, which
> > > ends up loading the nvidia implementation. But that does not
> > > provide swrast. I can only guess why they did that. But I could
> > > also be totally wrong.
> > > 
> > > 
> > > -- 
> > > Regards,
> > > Kai
> > > 
> > > Replies to list-only preferred.
> > >   
> > 
> > 
> > 
> > 
> > Hi Kai,
> > 
> > NO PANIC! :) the renaming of libGL and friends was for
> > testing/experimenting purposes only! :)
> > 
> > After renaming those back to normal and doing a ldconfig
> > 

Re: [gentoo-user] scanning using the sheet feeder (HP 8600 + xsane)

2017-05-06 Thread Philip Webb
170506 Neil Bothwick wrote:
> On Fri, 05 May 2017 22:05:26 -0400, allan gottlieb wrote:
>> I have an hp 8600 all-in-one and use net-print/hplip.
>> Printing is fine.
>> I use xsane for scanning, which also works well ...
>> I can't figure out how to use the sheet feeder for multipage scanning.
> I use gscan2pdf for that. I've used it to scan hundreds of pages
> into a single document, only stopping to top up the document feeder.

It wants to install  49 pkgs  of Perl +  1  more as requirements (grimace).

Why do PDF utilities seem to demand so much external support ?
-- 'pdftk' is very useful iff you're willing to install Java.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] scanning using the sheet feeder (HP 8600 + xsane)

2017-05-06 Thread Neil Bothwick
On Fri, 05 May 2017 22:05:26 -0400, allan gottlieb wrote:

> I have an hp 8600 all-in-one and use net-print/hplip.
> Printing is fine.
> 
> I use xsane for scanning, which also works well ...
> 
> ... except I can't figure out how to use the sheet feeder for multipage
> scanning.
> 
> I can select multipage and can the scan each page singly and hit
> "save multipage file".  This works.  But I can't put say 10 pages in the
> feeder, hit something, get coffee, and find a 10 page document on my
> computer.

I use gscan2pdf for that. I've used it to scan hundreds of pages into a
single document, only stopping to top up the document feeder.


-- 
Neil Bothwick

Hyperbole is absolutely the worst mistake you can possibly make


pgpKVsSjby0fn.pgp
Description: OpenPGP digital signature


[gentoo-user] Re: FreeCAD permission problems

2017-05-06 Thread Kai Krakow
Am Sat, 6 May 2017 14:42:59 +0200
schrieb tu...@posteo.de:

> On 05/06 02:16, Kai Krakow wrote:
> > Am Sat, 6 May 2017 12:55:24 +0200
> > schrieb tu...@posteo.de:
> >   
> > > On 05/06 12:28, Kai Krakow wrote:  
>  [...]  
>  [...]  
> > >  [...]  
> > >  [...]
>  [...]  
> > >  [...]
>  [...]  
> > >  [...]
>  [...]  
> > >  [...]
>  [...]  
> > >  [...]  
> > >  [...]
>  [...]  
>  [...]  
>  [...]  
>  [...]  
> > > 
> > > Hi,
> > > 
> > > ...it runs now at least for root (called as user it crashes
> > > still).
> > > 
> > > I did the following:
> > > 
> > > 
> > > mv /usr/lib64/libGL.so  /usr/lib64/off.libGL.so 
> > > 
> > > for all libGL.so* in /usr/lib64/libGL.so*  
> > 
> > You shouldn't shuffle those files around. They are controlled by the
> > package manager.
> > 
> > I think it's a bug of the software that it overwrites ld paths.
> > With a Gentoo standard configuration and eselect opengl switched to
> > nvidia, every software should find and load the nvidia opengl stuff
> > first.
> > 
> > Could you show the output of
> > 
> > # lddtree $(which FreeCAD)
> > 
> > E.g., lddtree $(which kwin_x11) shows a line for me:
> > 
> > libGL.so.1 => /usr/lib64/opengl/nvidia/lib/libGL.so.1
> > 
> > which clearly says it's linking libGL.so.1 from nvidia first.
> > 
> > If a libGL line is missing for FreeCAD, it is dynamically loaded by
> > the application itself. Then it's a FreeCAD bug that should be
> > fixed.
> > 
> > If it's loading from /usr/lib64/libGL* for you, then some paths and
> > configs are borked in your system.
> > 
> >   
> > > Addtionally I added 06nvidia to /etc/ld.so.config.d/. with this
> > > contents:
> > > /usr/lib64/opengl/nvidia/lib
> > > and did a ldconfig afterwards and reboot to release any
> > > filehandle.  
> > 
> > I wonder why these paths are missing for you... My ld.so.conf has
> > nvidia paths right in the beginning (first two lines). It's
> > actually made from /etc/env.d/000opengl. There's nothing nvidia
> > specific in the .d directory.
> > 
> >   
> > > One question remains:
> > > It works for root but not for any other user.
> > > I (as user) am in the video group.
> > > 
> > > I checked the directory/file permissions of opencascade and they
> > > seem to be ok.  
> > 
> > I don't think that modern kernels and desktop managers still use the
> > video group. It should be handled by ACLs. Please have a look at the
> > ACLs of the device nodes.
> > 
> > It all depends on your login manager and pam configuration. You
> > should check that if things don't work right. If you're using
> > systemd, you are using systemd-logind, otherwise you're probably
> > using consolekit.
> > 
> > If you're not using either of those, the system would fall back to
> > standard unix group permissions. But I'm not sure if this works
> > correctly if you didn't configure the whole chain to work that way.
> > 
> >   
> > > I straced FreeCAD...but...I fear not to see anything suspicious
> > > because the output contains a lot of noise (much more as normally
> > > seen in such traces)...  
> > 
> > You can use call filters to limit that to what you want to see.
> > Also, there's ltrace which could be interesting.
> > 
> >   
> > > The eselects show:  
>  [...]  
> > > Available OpenGL implementations:
> > >   [1]   nvidia *
> > >   [2]   xorg-x11  
>  [...]  
> > > i915 (Intel 915, 945)
> > > i965 (Intel GMA 965, G/Q3x, G/Q4x, HD)
> > > r300 (Radeon R300-R500)
> > > r600 (Radeon R600-R700, Evergreen, Northern Islands)
> > > sw (Software renderer)
> > >   [1]   classic
> > >   [2]   gallium *
> > > 
> > > Why is nvidia not listed with the second command?  
> > 
> > Afaik, it does not provide mesa drivers. That's probably why it
> > cannot find an "swrast" driver/visual then. Directly using nvidia
> > OpenGL fixes that, which is what you did now.
> > 
> > I think the bug with FreeCAD is, that it cannot properly handle
> > multiple opengl implementations which it tries to do itself. It
> > should be left to the system to correctly load the correct opengl
> > implementation.
> > 
> > I guess FreeCAD looks up visuals by loading libGL from /usr/lib,
> > then it loads libGL again using means provided by the system, which
> > ends up loading the nvidia implementation. But that does not
> > provide swrast. I can only guess why they did that. But I could
> > also be totally wrong.
> > 
> > 
> > -- 
> > Regards,
> > Kai
> > 
> > Replies to list-only preferred.
> >   
> 
> 
> 
> 
> Hi Kai,
> 
> NO PANIC! :) the renaming of libGL and friends was for
> testing/experimenting purposes only! :)
> 
> After renaming those back to normal and doing a ldconfig
> these were back for root and user:
> 
> libGL error: No matching fbConfigs or visuals found
> libGL error: failed to load driver: swrast
> *** Abort *** an exception was raised, but no catch was found.
> ... The exception is:SIGSEGV 'segmentation violation'
> detected. Address 0
> 
> I checked for the 000opengl file in 

Re: [gentoo-user] new scanner : how to activate for Gentoo : further thoughts

2017-05-06 Thread Philip Webb
170506 Mick wrote:
> On Friday 05 May 2017 19:27:47 Philip Webb wrote:
>> There is a pkg  media-gfx/iscan-plugin-gt-x820  for a V600 :
>> I could take the V550 back & exchange it for a V600
>> & try to install Iscan + data + that plugin.
> If you are going to change it, isn't there a HP device out there
> that Just Works™ with the hplip and potentially the hplip-plugin packages?

Very unlikely : I have an HP printer, which also copies & can scan,
but it isn't supported by Sane-backends & would require much work.

I plan to audit what I've installed carefully today
& if I still can't get it to work on Gentoo, I'll file a bug :
hopefully, whoever created the plugin for V600 can do another for V550.

Also, I'll put the Epson install script on my Internet site
( http://www.chass.utoronto.ca/~purslow/test/ ).
I can't make sense of it, but perhaps someone here can tell me
what it does with the .deb files when it installs them.

If it works on Mint, it sb possible to get it to work on Gentoo.
Usually in such cases, the secret is finding  1  small item
which needs to be fixed & then everything is ok : that's Gentoo's strength.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] scanning using the sheet feeder (HP 8600 + xsane)

2017-05-06 Thread thelma

On 05/05/2017 10:51 PM, Adam Carter wrote:
> ... except I can't figure out how to use the sheet feeder for multipage
> scanning.
> 
> I can select multipage and can the scan each page singly and hit
> "save multipage file".  This works.  But I can't put say 10 pages in the
> feeder, hit something, get coffee, and find a 10 page document on my
> computer.
> 
> 
> scanimage has a batch option, but it will save each image in a separate
> file. You can walk away for coffee though.

Just select them all and use "pdfunite" to combine them.

--
Thelma



Re: [gentoo-user] Re: FreeCAD permission problems

2017-05-06 Thread tuxic
On 05/06 02:16, Kai Krakow wrote:
> Am Sat, 6 May 2017 12:55:24 +0200
> schrieb tu...@posteo.de:
> 
> > On 05/06 12:28, Kai Krakow wrote:
> > > Am Sat, 6 May 2017 04:18:57 +0200
> > > schrieb tu...@posteo.de:
> > >   
> > > > On 05/05 09:17, Kai Krakow wrote:  
> >  [...]  
> >  [...]  
> > > >  [...]  
> > > >  [...]
> >  [...]  
> > > >  [...]
> >  [...]  
> > > >  [...]
> >  [...]  
> > > >  [...]  
> > > >  [...]  
> > > >  [...]  
> > > >  [...]
> >  [...]  
> >  [...]  
> > > > 
> > > > Hi Kai,
> > > > 
> > > > 
> > > > here the results:
> > > > LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/. FreeCAD   
> > > > ERROR: ld.so: object '/usr/lib64/opengl/nvidia/lib/.' from
> > > > LD_PRELOAD cannot be preloaded (cannot read file data): ignored.
> > > > FreeCAD 0.16, Libs: 0.16RUnknown © Juergen Riegel, Werner Mayer,
> > > > Yorik van Havre 2001-2015 #   ###     
> > > >   ##  # #   #   # 
> > > >   # ##     # #   #  #   # 
> > > >     # # #  # #  #  # #  #   # 
> > > >   # #      ## # #   # 
> > > >   # #   ## ## # #   #  ##  ##  ##
> > > >   # #       ### # #    ##  ##  ##
> > > > 
> > > > libGL error: No matching fbConfigs or visuals found
> > > > libGL error: failed to load driver: swrast
> > > > using visual class 4, id 2b
> > > > [1]17990 segmentation fault
> > > > LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/. FreeCAD  
> > > 
> > > This makes no sense... You have to give an .so file.
> > >   
> > >  >LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/libGL.so FreeCAD  
> > > > FreeCAD 0.16, Libs: 0.16RUnknown
> > > > © Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
> > > >   #   ###     
> > > >   ##  # #   #   # 
> > > >   # ##     # #   #  #   # 
> > > >     # # #  # #  #  # #  #   # 
> > > >   # #      ## # #   # 
> > > >   # #   ## ## # #   #  ##  ##  ##
> > > >   # #       ### # #    ##  ##  ##
> > > > 
> > > > using visual class 4, id 2b
> > > > [1]17552 segmentation fault
> > > > LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/libGL.so FreeCAD  
> > > 
> > > Okay, so this fixes the problem with the visual as I expected. But
> > > now it's segfaulting.
> > > 
> > > Are you using an NVIDIA card with proprietary driver?
> > > 
> > > 
> > > -- 
> > > Regards,
> > > Kai
> > > 
> > > Replies to list-only preferred.
> > > 
> > > 
> > >   
> > 
> > Hi,
> > 
> > ...it runs now at least for root (called as user it crashes still).
> > 
> > I did the following:
> > 
> > 
> > mv /usr/lib64/libGL.so  /usr/lib64/off.libGL.so 
> > 
> > for all libGL.so* in /usr/lib64/libGL.so*
> 
> You shouldn't shuffle those files around. They are controlled by the
> package manager.
> 
> I think it's a bug of the software that it overwrites ld paths. With a
> Gentoo standard configuration and eselect opengl switched to nvidia,
> every software should find and load the nvidia opengl stuff first.
> 
> Could you show the output of
> 
> # lddtree $(which FreeCAD)
> 
> E.g., lddtree $(which kwin_x11) shows a line for me:
> 
> libGL.so.1 => /usr/lib64/opengl/nvidia/lib/libGL.so.1
> 
> which clearly says it's linking libGL.so.1 from nvidia first.
> 
> If a libGL line is missing for FreeCAD, it is dynamically loaded by the
> application itself. Then it's a FreeCAD bug that should be fixed.
> 
> If it's loading from /usr/lib64/libGL* for you, then some paths and
> configs are borked in your system.
> 
> 
> > Addtionally I added 06nvidia to /etc/ld.so.config.d/. with this
> > contents:
> > /usr/lib64/opengl/nvidia/lib
> > and did a ldconfig afterwards and reboot to release any filehandle.
> 
> I wonder why these paths are missing for you... My ld.so.conf has nvidia
> paths right in the beginning (first two lines). It's actually made
> from /etc/env.d/000opengl. There's nothing nvidia specific in the .d
> directory.
> 
> 
> > One question remains:
> > It works for root but not for any other user.
> > I (as user) am in the video group.
> > 
> > I checked the directory/file permissions of opencascade and they
> > seem to be ok.
> 
> I don't think that modern kernels and desktop managers still use the
> video group. It should be handled by ACLs. Please have a look at the
> ACLs of the device nodes.
> 
> It all depends on your login manager and pam configuration. You should
> check that if things don't work right. If you're using systemd, you are
> using systemd-logind, otherwise you're probably using consolekit.
> 
> If you're not using either of those, the system would fall back to
> standard unix group permissions. But I'm not sure if this works
> correctly if you didn't configure the whole chain to work that way.
> 
> 
> > I straced FreeCAD...but...I fear not to see anything suspicious
> > because the output contains a lot of noise (much more as 

[gentoo-user] Re: FreeCAD permission problems

2017-05-06 Thread Kai Krakow
Am Sat, 6 May 2017 12:55:24 +0200
schrieb tu...@posteo.de:

> On 05/06 12:28, Kai Krakow wrote:
> > Am Sat, 6 May 2017 04:18:57 +0200
> > schrieb tu...@posteo.de:
> >   
> > > On 05/05 09:17, Kai Krakow wrote:  
>  [...]  
>  [...]  
> > >  [...]  
> > >  [...]
>  [...]  
> > >  [...]
>  [...]  
> > >  [...]
>  [...]  
> > >  [...]  
> > >  [...]  
> > >  [...]  
> > >  [...]
>  [...]  
>  [...]  
> > > 
> > > Hi Kai,
> > > 
> > > 
> > > here the results:
> > > LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/. FreeCAD   
> > > ERROR: ld.so: object '/usr/lib64/opengl/nvidia/lib/.' from
> > > LD_PRELOAD cannot be preloaded (cannot read file data): ignored.
> > > FreeCAD 0.16, Libs: 0.16RUnknown © Juergen Riegel, Werner Mayer,
> > > Yorik van Havre 2001-2015 #   ###     
> > >   ##  # #   #   # 
> > >   # ##     # #   #  #   # 
> > >     # # #  # #  #  # #  #   # 
> > >   # #      ## # #   # 
> > >   # #   ## ## # #   #  ##  ##  ##
> > >   # #       ### # #    ##  ##  ##
> > > 
> > > libGL error: No matching fbConfigs or visuals found
> > > libGL error: failed to load driver: swrast
> > > using visual class 4, id 2b
> > > [1]17990 segmentation fault
> > > LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/. FreeCAD  
> > 
> > This makes no sense... You have to give an .so file.
> >   
> >  >LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/libGL.so FreeCAD  
> > > FreeCAD 0.16, Libs: 0.16RUnknown
> > > © Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
> > >   #   ###     
> > >   ##  # #   #   # 
> > >   # ##     # #   #  #   # 
> > >     # # #  # #  #  # #  #   # 
> > >   # #      ## # #   # 
> > >   # #   ## ## # #   #  ##  ##  ##
> > >   # #       ### # #    ##  ##  ##
> > > 
> > > using visual class 4, id 2b
> > > [1]17552 segmentation fault
> > > LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/libGL.so FreeCAD  
> > 
> > Okay, so this fixes the problem with the visual as I expected. But
> > now it's segfaulting.
> > 
> > Are you using an NVIDIA card with proprietary driver?
> > 
> > 
> > -- 
> > Regards,
> > Kai
> > 
> > Replies to list-only preferred.
> > 
> > 
> >   
> 
> Hi,
> 
> ...it runs now at least for root (called as user it crashes still).
> 
> I did the following:
> 
> 
> mv /usr/lib64/libGL.so  /usr/lib64/off.libGL.so 
> 
> for all libGL.so* in /usr/lib64/libGL.so*

You shouldn't shuffle those files around. They are controlled by the
package manager.

I think it's a bug of the software that it overwrites ld paths. With a
Gentoo standard configuration and eselect opengl switched to nvidia,
every software should find and load the nvidia opengl stuff first.

Could you show the output of

# lddtree $(which FreeCAD)

E.g., lddtree $(which kwin_x11) shows a line for me:

libGL.so.1 => /usr/lib64/opengl/nvidia/lib/libGL.so.1

which clearly says it's linking libGL.so.1 from nvidia first.

If a libGL line is missing for FreeCAD, it is dynamically loaded by the
application itself. Then it's a FreeCAD bug that should be fixed.

If it's loading from /usr/lib64/libGL* for you, then some paths and
configs are borked in your system.


> Addtionally I added 06nvidia to /etc/ld.so.config.d/. with this
> contents:
> /usr/lib64/opengl/nvidia/lib
> and did a ldconfig afterwards and reboot to release any filehandle.

I wonder why these paths are missing for you... My ld.so.conf has nvidia
paths right in the beginning (first two lines). It's actually made
from /etc/env.d/000opengl. There's nothing nvidia specific in the .d
directory.


> One question remains:
> It works for root but not for any other user.
> I (as user) am in the video group.
> 
> I checked the directory/file permissions of opencascade and they
> seem to be ok.

I don't think that modern kernels and desktop managers still use the
video group. It should be handled by ACLs. Please have a look at the
ACLs of the device nodes.

It all depends on your login manager and pam configuration. You should
check that if things don't work right. If you're using systemd, you are
using systemd-logind, otherwise you're probably using consolekit.

If you're not using either of those, the system would fall back to
standard unix group permissions. But I'm not sure if this works
correctly if you didn't configure the whole chain to work that way.


> I straced FreeCAD...but...I fear not to see anything suspicious
> because the output contains a lot of noise (much more as normally
> seen in such traces)...

You can use call filters to limit that to what you want to see. Also,
there's ltrace which could be interesting.


> The eselects show:
> >eselect opengl list  
> Available OpenGL implementations:
>   [1]   nvidia *
>   [2]   xorg-x11
> >eselect mesa list
> i915 (Intel 915, 945)
> i965 

Re: [gentoo-user] Re: FreeCAD permission problems

2017-05-06 Thread tuxic
On 05/06 12:28, Kai Krakow wrote:
> Am Sat, 6 May 2017 04:18:57 +0200
> schrieb tu...@posteo.de:
> 
> > On 05/05 09:17, Kai Krakow wrote:
> > > Am Fri, 5 May 2017 21:12:53 +0200
> > > schrieb tu...@posteo.de:
> > >   
> > > > On 05/05 09:03, Kai Krakow wrote:  
> >  [...]  
> >  [...]  
> > > >  [...]  
> > > >  [...]
> >  [...]  
> > > >  [...]
> >  [...]  
> > > >  [...]  
> > > >  [...]
> >  [...]  
> >  [...]  
> >  [...]  
> >  [...]  
> > > > 
> > > > Hi Kai,
> > > > 
> > > > sorry for the confusion I initiated...
> > > > 
> > > > This one I used
> > > > 
> > > > QT_GRAPHICSSYSTEM=raster freecad  
> > > 
> > > Please also try my other suggestion:
> > > 
> > > Find your GL drivers with "locate libGL.so" or "qfile -b libGL.so"
> > > and try those paths in the preloader:
> > > 
> > > # LD_PRELOAD=/path/to/libGL.so freecad
> > > 
> > > Try the libGL most specific to your graphics card first.
> > > 
> > > 
> > > -- 
> > > Regards,
> > > Kai
> > > 
> > > Replies to list-only preferred.
> > > 
> > > 
> > >   
> > 
> > Hi Kai,
> > 
> > 
> > here the results:
> > LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/. FreeCAD   
> > ERROR: ld.so: object '/usr/lib64/opengl/nvidia/lib/.' from LD_PRELOAD
> > cannot be preloaded (cannot read file data): ignored. FreeCAD 0.16,
> > Libs: 0.16RUnknown © Juergen Riegel, Werner Mayer, Yorik van Havre
> > 2001-2015 #   ###     
> >   ##  # #   #   # 
> >   # ##     # #   #  #   # 
> >     # # #  # #  #  # #  #   # 
> >   # #      ## # #   # 
> >   # #   ## ## # #   #  ##  ##  ##
> >   # #       ### # #    ##  ##  ##
> > 
> > libGL error: No matching fbConfigs or visuals found
> > libGL error: failed to load driver: swrast
> > using visual class 4, id 2b
> > [1]17990 segmentation fault
> > LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/. FreeCAD
> 
> This makes no sense... You have to give an .so file.
> 
>  >LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/libGL.so FreeCAD  
> > FreeCAD 0.16, Libs: 0.16RUnknown
> > © Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
> >   #   ###     
> >   ##  # #   #   # 
> >   # ##     # #   #  #   # 
> >     # # #  # #  #  # #  #   # 
> >   # #      ## # #   # 
> >   # #   ## ## # #   #  ##  ##  ##
> >   # #       ### # #    ##  ##  ##
> > 
> > using visual class 4, id 2b
> > [1]17552 segmentation fault
> > LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/libGL.so FreeCAD
> 
> Okay, so this fixes the problem with the visual as I expected. But now
> it's segfaulting.
> 
> Are you using an NVIDIA card with proprietary driver?
> 
> 
> -- 
> Regards,
> Kai
> 
> Replies to list-only preferred.
> 
> 
> 

Hi,

...it runs now at least for root (called as user it crashes still).

I did the following:


mv /usr/lib64/libGL.so  /usr/lib64/off.libGL.so 

for all libGL.so* in /usr/lib64/libGL.so*

Addtionally I added 06nvidia to /etc/ld.so.config.d/. with this
contents:
/usr/lib64/opengl/nvidia/lib
and did a ldconfig afterwards and reboot to release any filehandle.

One question remains:
It works for root but not for any other user.
I (as user) am in the video group.

I checked the directory/file permissions of opencascade and they
seem to be ok.

I straced FreeCAD...but...I fear not to see anything suspicious
because the output contains a lot of noise (much more as normally
seen in such traces)...

The eselects show:
>eselect opengl list
Available OpenGL implementations:
  [1]   nvidia *
  [2]   xorg-x11
>eselect mesa list  
i915 (Intel 915, 945)
i965 (Intel GMA 965, G/Q3x, G/Q4x, HD)
r300 (Radeon R300-R500)
r600 (Radeon R600-R700, Evergreen, Northern Islands)
sw (Software renderer)
  [1]   classic
  [2]   gallium *

Why is nvidia not listed with the second command?

Any ideas?

Cheers
Meino









[gentoo-user] Re: FreeCAD permission problems

2017-05-06 Thread Kai Krakow
Am Fri, 5 May 2017 20:55:42 -0400
schrieb Zhu Sha Zang :

> [rodolfo@asgard ~]$ eselect qtgraphicssystem list 20:55
> Available Qt Graphics Systems:
>[1]   native
>[2]   opengl (experimental)
>[3]   raster (default) *
> 
> Best Regards

This does not help, the software is trying to load the swrast GL
driver which is not there.

It would be helpful to see the output of

# eselect opengl list

and

# eselect mesa list


> On 05/05/2017 03:17 PM, Kai Krakow wrote:
> > Am Fri, 5 May 2017 21:12:53 +0200
> > schrieb tu...@posteo.de:
> >  
> >> On 05/05 09:03, Kai Krakow wrote:  
>  [...]  
>  [...]  
> >>   [...]
> >>   [...]  
>  [...]  
> >>   [...]  
>  [...]  
> >>   [...]
> >>   [...]  
>  [...]  
>  [...]  
>  [...]  
>  [...]  
> >> Hi Kai,
> >>
> >> sorry for the confusion I initiated...
> >>
> >> This one I used
> >>
> >> QT_GRAPHICSSYSTEM=raster freecad  
> > Please also try my other suggestion:
> >
> > Find your GL drivers with "locate libGL.so" or "qfile -b libGL.so"
> > and try those paths in the preloader:
> >
> > # LD_PRELOAD=/path/to/libGL.so freecad
> >
> > Try the libGL most specific to your graphics card first.
> >
> >  
> 
> 
> 



-- 
Regards,
Kai

Replies to list-only preferred.




[gentoo-user] Re: FreeCAD permission problems

2017-05-06 Thread Kai Krakow
Am Sat, 6 May 2017 04:18:57 +0200
schrieb tu...@posteo.de:

> On 05/05 09:17, Kai Krakow wrote:
> > Am Fri, 5 May 2017 21:12:53 +0200
> > schrieb tu...@posteo.de:
> >   
> > > On 05/05 09:03, Kai Krakow wrote:  
>  [...]  
>  [...]  
> > >  [...]  
> > >  [...]
>  [...]  
> > >  [...]
>  [...]  
> > >  [...]  
> > >  [...]
>  [...]  
>  [...]  
>  [...]  
>  [...]  
> > > 
> > > Hi Kai,
> > > 
> > > sorry for the confusion I initiated...
> > > 
> > > This one I used
> > > 
> > > QT_GRAPHICSSYSTEM=raster freecad  
> > 
> > Please also try my other suggestion:
> > 
> > Find your GL drivers with "locate libGL.so" or "qfile -b libGL.so"
> > and try those paths in the preloader:
> > 
> > # LD_PRELOAD=/path/to/libGL.so freecad
> > 
> > Try the libGL most specific to your graphics card first.
> > 
> > 
> > -- 
> > Regards,
> > Kai
> > 
> > Replies to list-only preferred.
> > 
> > 
> >   
> 
> Hi Kai,
> 
> 
> here the results:
> LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/. FreeCAD   
> ERROR: ld.so: object '/usr/lib64/opengl/nvidia/lib/.' from LD_PRELOAD
> cannot be preloaded (cannot read file data): ignored. FreeCAD 0.16,
> Libs: 0.16RUnknown © Juergen Riegel, Werner Mayer, Yorik van Havre
> 2001-2015 #   ###     
>   ##  # #   #   # 
>   # ##     # #   #  #   # 
>     # # #  # #  #  # #  #   # 
>   # #      ## # #   # 
>   # #   ## ## # #   #  ##  ##  ##
>   # #       ### # #    ##  ##  ##
> 
> libGL error: No matching fbConfigs or visuals found
> libGL error: failed to load driver: swrast
> using visual class 4, id 2b
> [1]17990 segmentation fault
> LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/. FreeCAD

This makes no sense... You have to give an .so file.

 >LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/libGL.so FreeCAD  
> FreeCAD 0.16, Libs: 0.16RUnknown
> © Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
>   #   ###     
>   ##  # #   #   # 
>   # ##     # #   #  #   # 
>     # # #  # #  #  # #  #   # 
>   # #      ## # #   # 
>   # #   ## ## # #   #  ##  ##  ##
>   # #       ### # #    ##  ##  ##
> 
> using visual class 4, id 2b
> [1]17552 segmentation fault
> LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/libGL.so FreeCAD

Okay, so this fixes the problem with the visual as I expected. But now
it's segfaulting.

Are you using an NVIDIA card with proprietary driver?


-- 
Regards,
Kai

Replies to list-only preferred.





Re: [gentoo-user] scanning using the sheet feeder (HP 8600 + xsane)

2017-05-06 Thread taii...@gmx.com
I am curious do you have the issue where the scanner light returns back 
to the docking area after every page scanned via ADF? it takes so long 
to scan with that problem and it wears down the gears.


- Thanks



Re: [gentoo-user] new scanner : how to activate for Gentoo : no success

2017-05-06 Thread Mick
On Friday 05 May 2017 19:27:47 Philip Webb wrote:
> 170504 Philip Webb wrote:
> > I want to get my new Epson V550 working on Gentoo,
> > having successfully installed Epson's driver on Mint.
> > 
> > I installed the Gentoo pkg 'dpkg', which handles .deb archives,
> > & listed the content of the  3  .deb files in the Epson driver pkg.
> > They cb viewed at  http://chass.utoronto.ca/~purslow/test/
> > with names beginning with 'v550'.
> > 
> > It appears that the pkg installs a utility 'iscan',
> > a Sane plugin called 'epkowa', which is not available via Sane-backends
> > ( /etc/hotplug/usb/libsane.usermap  doesn't list it),
> > plus some further data files + a lot of dox.
> 
> I've tried  3  methods without success :
> (1) install Iscan via Portage & copy the other files in the .deb ;
> (2) copy all the files in the .deb  (apart from dox) (list checked) ;
> (3) try to run the  install.sh  script.
> 
> None of them succeeds in getting the scanner recognised.
> 
> There is a pkg  media-gfx/iscan-plugin-gt-x820  for a V600 :
> I could take the V550 back & exchange it for a V600
> & try to install Iscan + data + that plugin.
> 
> Any suggestions are very welcome.

If you are going to change it, isn't there a HP device out there that Just 
Works™ with the hplip and potentially the hplip-plugin packages?

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] scanning using the sheet feeder (HP 8600 + xsane)

2017-05-06 Thread J. Roeleveld
On May 6, 2017 4:05:26 AM GMT+02:00, allan gottlieb  wrote:
>I have an hp 8600 all-in-one and use net-print/hplip.
>Printing is fine.
>
>I use xsane for scanning, which also works well ...
>
>... except I can't figure out how to use the sheet feeder for multipage
>scanning.
>
>I can select multipage and can the scan each page singly and hit
>"save multipage file".  This works.  But I can't put say 10 pages in
>the
>feeder, hit something, get coffee, and find a 10 page document on my
>computer.
>
>In case it is relevant, I run gentoo stable / gnome-3 / systemd.
>
>thanks in advance,
>allan

I use 'hp-scan' for that:
# hp-scan --adf -m color

It scans all the pages as ppm, then combines it into a single PDF.

It has a bunch of different options, but this is what I start with.

Downside is that the PDF is quite large. I solve that by reconverting the 
images to jpeg.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.