udev-ish replacement for hal-cups-utils?
Tim Waugh
twaugh at redhat.com
Fri Jul 17 04:08:20 PDT 2009
On Tue, 2009-07-14 at 18:32 +0200, Martin Pitt wrote:
> So, one immediate workaround would be to not pass the device ID
> itself, but the path (%p) and just read that value plus "/ieee1284_id"
> from the python program. That's a little tricky with identifying the
> ID at removal time, though (you'd need to remember the quoted one as
> well, i. e. consider that an abstract identifier for the real device
> ID).
Please take a look at the 'udev' branch of system-config-printer:
http://git.fedorahosted.org/git/?p=system-config-printer.git;a=shortlog;h=refs/heads/udev
I'm trying to use libudev to read the ieee1284_id attribute but am
failing. The devpath I'm given is:
/devices/pci0000:00/0000:00:1d.3/usb5/5-1
I can see that the file I need is:
/sys/devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/ieee1284_id
but I can't see how to get to it. How do I find out the name "5-1:1.0"?
(The code is currently trying usb_interface which is obviously wrong.)
Tim.
*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/devkit-devel/attachments/20090717/e4699b1e/attachment.pgp
More information about the devkit-devel
mailing list