Comment 30 for bug 85488

Revision history for this message
renbag (renbag) wrote : Re: Canon Lide25 (plustek backend) scanner does not scan via gui

I have recompiled the ubuntu feisty kernel disabling the 'USB selective suspend/resume and wakeup' option, but in my case the problem remained. With my HP ScanJet 4070 (hp3900 backend) xsane freezes while triyng to find the device. xscanimage, instead, works if the correct device name is supplied.
I then used strace to see what happens with xsane and found that it was continuosly writing to /dev/parport0:

...
open("./geniusvp2.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/sane.d/geniusvp2.conf", O_RDONLY) = 6
fstat64(6, {st_mode=S_IFREG|0644, st_size=877, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7329000
read(6, "# geniusvp2 backend configuratio"..., 4096) = 877
read(6, "", 4096) = 0
close(6) = 0
munmap(0xb7329000, 4096) = 0
open("/dev/parport0", O_RDWR) = 6
ioctl(6, PPCLAIM, 0x825a1c8) = 0
ioctl(6, PPGETMODES, 0xbf98baac) = 0
ioctl(6, PPWCONTROL, 0xbf98ba80) = 0
ioctl(6, PPWDATA, 0xbf98ba80) = 0
...
ioctl(6, PPWDATA, 0xbf98ba80) = 0
ioctl(6, PPSETMODE, 0xbf98ba80) = 0
write(6, "\0", 1) = 0
write(6, "\0", 1) = 0
...
write(6, "\0", 1) = 0
write(6, "\0", 1) = 0
write(6, "\0", 1 <unfinished ...>

Finally I found that removing the 'ppdev' kernel module (rmmod ppdev) solved the problem.
This module was not automatically loaded in edgy, but I have read that it has been introduced in feisty to allow automatic detection of parallel printers.
I tried this also for an Epson Perfection 1260 (plustek backend) and it works too.
So maybe that the problem is not the 'USB selective suspend/resume and wakeup' option but the 'ppdev' kernel module.