Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157608 - cups "usb"-backend can not open usb-printer Kyocera FS-820
Summary: cups "usb"-backend can not open usb-printer Kyocera FS-820
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Daniel Drake (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-09 06:21 UTC by Martin
Modified: 2007-01-29 18:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for getting Kyocera FS 820 with cups-1.2 (kernel issue) based on kernel 2.6.18-r4 (usblp_fs820.patch,457 bytes, patch)
2006-12-21 15:36 UTC, Martin
Details | Diff
patch in diff -up style based on vanilla 2.6.19 sources (usblp.patch,477 bytes, patch)
2006-12-22 04:28 UTC, Martin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin 2006-12-09 06:21:30 UTC
Don
Comment 1 Martin 2006-12-09 06:21:30 UTC
Don´t know if this is an upstream bug or gentoo-specific.
Facts:

printer Kyocera FS-820 worked with cups 1.1
does not work with cups 1.2, because an ioctl in the usb-backend fails:

------------------------------
heinrich backend # pwd
/usr/libexec/cups/backend
heinrich backend # ./usb
heinrich backend # emerge -pv cups

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-print/cups-1.2.6  USE="X dbus jpeg nls pam png ppds slp ssl tiff -php -samba" 0 kB

Total size of downloads: 0 kB
heinrich backend # lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 007: ID 05e3:0606 Genesys Logic, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 0482:0010 Kyocera Corp.
Bus 001 Device 001: ID 0000:0000
heinrich backend # ls -l /dev/usb
insgesamt 0
crw-rw---- 1 root lp 180, 0  9. Dez 14:59 lp0
heinrich backend # strace ./usb
[...]
open("/dev/usblp0", O_RDWR|O_EXCL|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/dev/usb/lp0", O_RDWR|O_EXCL|O_LARGEFILE) = 3
ioctl(3, SNDCTL_DSP_SYNC, 0xbfeb0281)   = -1 EIO (Input/output error)
close(3)                                = 0
[...]
Process 27965 detached
heinrich backend #
-----------------------------

emerge --info:heinrich backend # emerge --info
Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r4 i686)
=================================================================
System uname: 2.6.18-gentoo-r4 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.12.6
Last Sync: Thu, 07 Dec 2006 20:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -Os -pipe -fomit-frame-pointer -falign-functions=64"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon-xp -Os -pipe -fomit-frame-pointer -falign-functions=64 -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.inode.at/ http://ftp.easynet.nl/mirror/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="de nds en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac aalib acpi alsa alsa_cards_ens1371 alsa_cards_via82xx arts asf berkdb bitmap-fonts bzip2 cairo cdparanoia cli cracklib crypt cups curl dbus directfb divx4linux dlloader dri dts dv dvd dvdread elibc_glibc encode fame fbcon ffmpeg flac foomaticdb fortran gdbm gif gimpprint gphoto2 gpm gstreamer gtk gtk2 hal iconv imagemagick input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog java joystick jpeg jpeg2k kde kernel_linux libg++ linguas_de linguas_en linguas_nds mad mbox mikmod mmx mmxext mozilla mp3 mpeg mysql ncurses nls nptl nptlonly nsplugin nvidia ogg opengl oss pam pcre pdf perl pic png ppds pppd python qt3 quicktime readline real reflection scanner sdl session slp speex spl sse ssl subtitles svg tcltk tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa vorbis win32codecs xine xinerama xml xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 Martin 2006-12-21 15:36:53 UTC
Created attachment 104542 [details, diff]
patch for getting Kyocera FS 820 with cups-1.2 (kernel issue) based on kernel 2.6.18-r4

The patch modifies the file usblp.c in /usr/src/linux/drivers/usb/class/. It adds a line that marks Kyocera FS-820 as "quirky".
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2006-12-21 16:14:53 UTC
Martin, can you please send this patch to the LKML?

dsd_, can you please include this patch in the gentoo sources?
Comment 4 Martin 2006-12-21 16:47:52 UTC
Stefan, I
Comment 5 Martin 2006-12-21 16:47:52 UTC
Stefan, I´ll try to send it. Have to read how to do that correctly. Will do it the next days.
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2006-12-21 19:11:51 UTC
I'm happy to submit it on your behalf if you would like, just provide a full name so that I can ensure you get credited
Comment 7 Martin 2006-12-22 04:28:35 UTC
Created attachment 104569 [details, diff]
patch in diff -up style based on vanilla 2.6.19 sources
Comment 8 Martin 2006-12-22 04:40:19 UTC
I have mailed the patch upstream in the hope that it gets included or a better solution can be found.
Comment 9 Daniel Drake (RETIRED) gentoo-dev 2007-01-29 18:17:39 UTC
Fixed in gentoo-sources-2.6.19-r5