:: Re: [DNG] vdev - scanner
Top Page
Delete this message
Reply to this message
Author: shraptor
Date:  
To: dng
Subject: Re: [DNG] vdev - scanner
On 2016-08-16 18:11, shraptor wrote:
>> I got the scanner working.
>>
>> If I boot with udev, the scanner works, and the permissions on the
>> device
>> look like this:
>>
>> ls -l /dev/bus/usb/002/
>> crw-rw-r--+ 1 root root 189, 137 Aug 16 10:30 010
>>
>> and with vdev, it looks like this:
>> crw------- 1 root root 189, 131 Aug 16 10:39 004
>>
>> I changed the permissions and added myself to the scanner group
>> (oops!)
>> and now xsane finds the scanner when I'm running vdev. I hope someone
>> knows what to do with this information, because I'm in new territory
>> here.
>> (and I don't know C.)
>>
>> If udevadm output for the scanner would help, I'll post it. The udev
>> rules
>> for scanners are in /lib/udev/rules.d/60-libsane.rules
>
>
> Maybe you should write a vdev action for your scanner
> on my system they actions are in /etc/vdev/actions
>
> for instance optical.act contains
>
> [vdev-action]
> event=any
> path=^sr[0-9]*$
> VAR_OPTICAL_OWNER=root
> VAR_OPTICAL_GROUP=optical
> VAR_OPTICAL_MODE=0660
> helper=optical.sh
> daemonlet=true
> if_exists=run
>
>
>
> No C is needed. Write something that matches path like for optical
> path=^sr[0-9]*$
> then set needed permissions and group and vdev will fix it for you
>
>
> When you succeed you may contribute that .act file for others, yeah?



Maybe you can use something like null.act

[vdev-action]
event=add
path=^null$
VAR_PERMISSIONS_MODE=0666
helper=permissions.sh
if_exists=run



I mean the permissions.sh


so something like

scanner.act

[vdev-action]
event=add
path=^null$
VAR_PERMISSIONS_MODE=0664
helper=permissions.sh
if_exists=run

Dunnow wot path you should use but maybe you could figure it out?

>
>
>
>>
>> -fsr
>>
>> _______________________________________________
>> Dng mailing list
>> Dng@???
>> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng