Sorry to be a pain, but can somebody explain the output of lsmod. I am trying to get better management of my SuSE 9.1 ( and bother others a little less :-) A doc reference would do fine, if it explains what each line does. I understand lsmod (I think) . What I need is an explanation of each line so I know what is going on in my system. For example I don't know (I know - ignorant) when CUPS is running. I can guess the use/meaning of some things, but will leave the true interpretation to you guys. My lsmod output follows. Regards, Colin Module Size Used by appletalk 38000 2 ax25 67236 2 ipx 29016 2 snd_seq 59840 1 joydev 11264 0 st 41764 0 sr_mod 17700 0 usbserial 34424 0 floppy 63728 0 parport_pc 39616 1 lp 12008 0 parport 45196 2 parport_pc,lp snd_pcm_oss 63908 0 snd_mixer_oss 21376 1 snd_pcm_oss snd_ioctl32 17920 0 cpufreq_userspace 6880 0 powernow_k8 9480 0 freq_table 5128 1 powernow_k8 thermal 14348 0 processor 18108 2 powernow_k8,thermal fan 4488 0 button 7200 0 battery 9608 0 ac 5640 0 snd_via82xx 27744 4 snd_pcm 113036 3 snd_pcm_oss,snd_ioctl32,snd_via82xx snd_timer 27400 2 snd_seq,snd_pcm snd_ac97_codec 72324 1 snd_via82xx snd_page_alloc 13192 2 snd_via82xx,snd_pcm gameport 5248 1 snd_via82xx snd_mpu401_uart 9088 1 snd_via82xx snd_rawmidi 28192 1 snd_mpu401_uart snd_seq_device 9612 2 snd_seq,snd_rawmidi snd 66440 20 snd_seq,snd_pcm_oss,snd_mixer_oss,snd_ioctl32,snd_via82xx,snd_pcm,snd_timer,snd_ac97_codec,snd_mpu401_uart,snd_rawmidi,snd_seq_device soundcore 10784 1 snd ppp_generic 31904 0 slhc 8192 1 ppp_generic af_packet 23052 2 ipt_TOS 2816 9 ipt_MASQUERADE 4224 1 ipt_LOG 6272 1 ipt_TCPMSS 4736 1 ipt_state 2304 13 hid 43776 0 ehci_hcd 29444 0 uhci_hcd 32800 0 usbcore 113520 6 usbserial,hid,ehci_hcd,uhci_hcd ohci1394 33412 0 ieee1394 114392 1 ohci1394 r8169 18564 0 evdev 10752 0 ip6t_LOG 6016 2 ip6t_REJECT 7680 3 ip6table_mangle 3200 0 ipt_REJECT 7424 3 iptable_mangle 3456 1 iptable_filter 3328 1 ip_nat_ftp 5712 0 iptable_nat 23756 3 ipt_MASQUERADE,ip_nat_ftp ip_conntrack_ftp 73072 1 ip_nat_ftp ip_conntrack 35660 5 ipt_MASQUERADE,ipt_state,ip_nat_ftp,iptable_nat,ip_conntrack_ftp ip_tables 18304 9 ipt_TOS,ipt_MASQUERADE,ipt_LOG,ipt_TCPMSS,ipt_state,ipt_REJECT,iptable_mangle,iptable_filter,iptable_nat ip6table_filter 3072 1 ip6_tables 19728 4 ip6t_LOG,ip6t_REJECT,ip6table_mangle,ip6table_filter ipv6 279144 13 ip6t_REJECT,ip6_tables subfs 8960 3 dm_mod 55480 0 reiserfs 239472 1 sata_via 8196 0 libata 41984 1 sata_via,[permanent] sd_mod 20992 0 scsi_mod 127392 4 st,sr_mod,libata,sd_mod
Colin Carter writes:
Sorry to be a pain, but can somebody explain the output of lsmod. I am trying to get better management of my SuSE 9.1 ( and bother others a little less :-)
A doc reference would do fine, if it explains what each line does. I understand lsmod (I think) . What I need is an explanation of each line so I know what is going on in my system. For example I don't know (I know - ignorant) when CUPS is running. ...
lsmod shows the _kernel modules_ that are currently loaded, and which other loaded kernel modules are dependent on it. lsmod is not the correct command to check whether "CUPS is running", because CUPS is a user-space service, not provided by a kernel module. If the host on which you're logged in is the CUPS server, then a "ps aux | grep cupsd" should show the /usr/sbin/cupsd daemon process running. If you're logged in to a client machine that accesses a remote CUPS server, then there may not be a local CUPS daemon (depending on the specific CUPS configuration). In any case a "lpstat -t" command should show whether the printer(s), whether local or remote, are ready to print and whether they have jobs on their queues. The "info" or "man" command is your friend, when it comes to looking for help on specific commands. E.g., "man lsmod", "man lpstat", "man cupsd", etc. -Ti -- Ti Kan http://www.amb.org/ti Vorsprung durch Technik
Thanks Ti, On Thursday 05 May 2005 21:51, Ti Kan wrote:
Colin Carter writes:
Sorry to be a pain, but can somebody explain the output of lsmod. I am trying to get better management of my SuSE 9.1 A doc reference would do fine, if it explains what each line does. I understand lsmod (I think) . What I need is an explanation of each line so I know what is going on in my system. For example I don't know (I know - ignorant) when CUPS is running.
lsmod shows the _kernel modules_ that are currently loaded, and which other loaded kernel modules are dependent on it.
lsmod is not the correct command to check whether "CUPS is running", because CUPS is a user-space service, not provided by a kernel module.
If the host on which you're logged in is the CUPS server, then a "ps aux | grep cupsd" should show the /usr/sbin/cupsd daemon process running. yep - this worked - so it is running but I actually thought this because I had tried the previous suggestion to restart it snip> "lpstat -t" command should show whether the printer(s), whether I tried this and got: printer OfficejetColor disabled since Jan 01 00:00 - Unable to open USB device "usb://Hewlett-Packard/OfficeJet%20600%20Series?serial=MY33AF20J42R" No such device
This is interesting because I have used the printer recently; as recently as 14 April. snip>
-Ti Regards, Colin
On Thursday 05 May 2005 16:31, Colin Carter wrote:
Unable to open USB device "usb://Hewlett-Packard/OfficeJet%20600%20Series?serial=MY33AF20J42R" No such device
Try changing the printer port to /dev/usblp0 instead of that. What you have is some new way to access usb peripherals that does not always work.
On Thu, 5 May 2005 23:31, Colin Carter wrote:
Thanks Ti, snip>
"lpstat -t" command should show whether the printer(s), whether
I tried this and got: printer OfficejetColor disabled since Jan 01 00:00 - Unable to open USB device "usb://Hewlett-Packard/OfficeJet%20600%20Series?serial=MY33AF20J42R" No such device
This is interesting because I have used the printer recently; as recently as 14 April. snip>
When you get the above message, I suggest either rebooting your computer or to use Yast and re-install the printer. -- Regards, Graham Smith
Colin Carter wrote:
Thanks Ti, On Thursday 05 May 2005 21:51, Ti Kan wrote:
Colin Carter writes:
Sorry to be a pain, but can somebody explain the output of lsmod. I am trying to get better management of my SuSE 9.1 A doc reference would do fine, if it explains what each line does. I understand lsmod (I think) . What I need is an explanation of each line so I know what is going on in my system. For example I don't know (I know - ignorant) when CUPS is running.
lsmod shows the _kernel modules_ that are currently loaded, and which other loaded kernel modules are dependent on it.
lsmod is not the correct command to check whether "CUPS is running", because CUPS is a user-space service, not provided by a kernel module.
If the host on which you're logged in is the CUPS server, then a "ps aux | grep cupsd" should show the /usr/sbin/cupsd daemon process running.
yep - this worked - so it is running but I actually thought this because I had tried the previous suggestion to restart it snip>
"lpstat -t" command should show whether the printer(s), whether
I tried this and got: printer OfficejetColor disabled since Jan 01 00:00 - Unable to open USB device "usb://Hewlett-Packard/OfficeJet%20600%20Series?serial=MY33AF20J42R" No such device
This is interesting because I have used the printer recently; as recently as 14 April. snip>
-Ti
Regards, Colin Your server is running, good, but it can't see the printer.
# lpstat -t scheduler is running system default destination: deskjet840c device for deskjet840c: usb://HP/DeskJet%20840C?serial=HU05V1T104KV deskjet840c accepting requests since Jan 01 00:00 printer deskjet840c is idle. enabled since Jan 01 00:00 Does it show up with "lsusb"?. # ls -l /dev/.udevdb/*lp* -rw-r--r-- 1 root root 56 2005-05-04 02:08 /dev/.udevdb/class@printer@lp0 -rw-r--r-- 1 root root 58 2005-05-04 17:03 /dev/.udevdb/class@usb@lp0 Check the module is loaded. # lsmod|grep usblp usblp 12672 0 Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Keen licensed Private Pilot Retired IBM Mainframes and Sun Servers Tech Support Specialist Microsoft Windows Free Zone - Linux for all Computing Tasks
Hi fellows, I am sorry to be late getting back to you. I have been trying those things suggested in response to the request: "9.3, usb, scanners" and reading the recommended documentation and making trials. but no luck anywhere. The results of my efforts are within. On Friday 06 May 2005 06:30, Sid Boyce wrote:
Colin Carter wrote:
Thanks Ti,
On Thursday 05 May 2005 21:51, Ti Kan wrote:
Colin Carter writes:
Sorry to be a pain, but can somebody explain the output of lsmod. I am trying to get better management of my SuSE 9.1 A doc reference would do fine, if it explains what each line does. I understand lsmod (I think) . What I need is an explanation of each line so I know what is going on in my system. For example I don't know (I know - ignorant) when CUPS is running.
If the host on which you're logged in is the CUPS server, then a "ps aux | grep cupsd" should show the /usr/sbin/cupsd daemon process running.
yep - this worked - so it is running but I actually thought this because I had tried the previous suggestion to restart it However, since more mucking around I don't think it is running now :-( snip>
"lpstat -t" command should show whether the printer(s), whether I tried this and got: printer OfficejetColor disabled since Jan 01 00:00 - Unable to open USB device "usb://Hewlett-Packard/OfficeJet%20600%20Series?serial=MY33AF20J42R" No such device
This is interesting because I have used the printer recently; as recently as 14 April. snip>
Your server is running, good, but it can't see the printer.
# lpstat -t snip> The above now gives me a "Connection refused" error message.
Does it show up with "lsusb"?. lsusb produces the following:
Bus 005 Device 002: ID 050d:0224 Belkin Components F5U224 USB 2.0 4-Port Hub Bus 005 Device 001: ID 0000:0000 Bus 004 Device 001: ID 0000:0000 Bus 003 Device 001: ID 0000:0000 Bus 002 Device 004: ID 046d:c03d Logitech, Inc. Bus 002 Device 003: ID 03f0:2d11 Hewlett-Packard Bus 002 Device 001: ID 0000:0000 Bus 001 Device 001: ID 0000:0000 (Logitech is my mouse, The hp is my 6110 all-in-one) sane-find-scanner produces the following (plus irrelevant lines): found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x2d11 [OfficeJet 6100 Series]) at libusb:002:003 scanimage -L produces the following output: No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages).
Check the module is loaded. lsmod|grep usblp produces: usblp 13568 0 usbcore 113520 7 usbserial,hid,usblp,ehci_hdc,uhci_hcd
my /dev contains: /dev/scanners/cuecat am I supposed to have a matching entry in my /media directory as I have for other usb devices? what is udev ? Yast detects and installs my hp 6110 scanner. But then The GIMP says "No devices available" should I have an entry in fstab? The only usb entry I have in fstab is: usbfs /proc/bus/usb usbfs noauto 0 0 The quoted reference: http://www.avasys.jp/cgi-bin/lx/bbs/en/scanner-bbs/hyperbbs.cgi?mode=view;Co... says that I should have an entry /etc/hotplug/usb/libusbscanner script I have the directory(s), but no script. I went into Yast to try to re-install the printer and the scanner but am presented with a lot of jargon It recognises the scanner and applies the SANE driver: hpoj It then offers me a test button, but that fails. Then Yast says it is installed and Connected to PTAL (But it isn't) Yast auto-detects the correct printer. If I try to connect directly via usb the test printer fails, if I try CUPS I have the choice of CUPS client only (which I chose) or networked. This asked for the server's name - what is that? I gave it the name of my machine - which hung Yast. (The promised time-out didn't) On re-visiting Yast the system says it is connected to /dev/usb/lp0 The offered printer test fails. Part of my confusion might be in not understanding the jargon: since it is a stand-alone machine, my machine is the server for CUPS - right? I have asked this before, and am embarrassed to ask it again: When I set up my ADSL I was prompted for something like "Server name" and I gave my ISP name, which now appears in my root prompt. How do I change it back? Sid, I think it was you who told me how to change it back, but I cannot find the method :-) I am sorry that this is so complex. Thanks for all your efforts. Regards, Colin
Colin Carter wrote:
Hi fellows, I am sorry to be late getting back to you. I have been trying those things suggested in response to the request: "9.3, usb, scanners" and reading the recommended documentation and making trials. but no luck anywhere. The results of my efforts are within.
On Friday 06 May 2005 06:30, Sid Boyce wrote:
Puzzling, let's see what else we can do.
snip> The above now gives me a "Connection refused" error message.
Did you issue "lppasswd -a root"?.
Does it show up with "lsusb"?.
lsusb produces the following:
Bus 005 Device 002: ID 050d:0224 Belkin Components F5U224 USB 2.0 4-Port Hub Bus 005 Device 001: ID 0000:0000 Bus 004 Device 001: ID 0000:0000 Bus 003 Device 001: ID 0000:0000 Bus 002 Device 004: ID 046d:c03d Logitech, Inc. Bus 002 Device 003: ID 03f0:2d11 Hewlett-Packard Bus 002 Device 001: ID 0000:0000 Bus 001 Device 001: ID 0000:0000 (Logitech is my mouse, The hp is my 6110 all-in-one)
sane-find-scanner produces the following (plus irrelevant lines): found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x2d11 [OfficeJet 6100 Series]) at libusb:002:003
scanimage -L produces the following output: No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages).
I'm getting the same here and I've been at it for a couple of hours, without getting it to work, I may try building xscanimage and see if that will do it. As always, vuescan from http://www.hamrick.com automatically finds and is able to use the scanner without any need for configuration.
Check the module is loaded.
lsmod|grep usblp produces: usblp 13568 0 usbcore 113520 7 usbserial,hid,usblp,ehci_hdc,uhci_hcd
my /dev contains: /dev/scanners/cuecat
That's always there, presumably for if you have a cuecat.
am I supposed to have a matching entry in my /media directory as I have for other usb devices?
My /media is empty as I haven't got anything mounted, it's only for mounted devices like floppies and CD's.
what is udev ?
udev builds devices in /dev whenever you boot up.
Yast detects and installs my hp 6110 scanner.
YaST says it's configuring drivers for it, but doesn't detect my scanner.
But then The GIMP says "No devices available"
should I have an entry in fstab? The only usb entry I have in fstab is: usbfs /proc/bus/usb usbfs noauto 0 0
/etc/fstab is OK.
The quoted reference: http://www.avasys.jp/cgi-bin/lx/bbs/en/scanner-bbs/hyperbbs.cgi?mode=view;Co... says that I should have an entry /etc/hotplug/usb/libusbscanner script I have the directory(s), but no script.
Same here.
I went into Yast to try to re-install the printer and the scanner but am presented with a lot of jargon It recognises the scanner and applies the SANE driver: hpoj It then offers me a test button, but that fails. Then Yast says it is installed and Connected to PTAL (But it isn't)
YaST doesn't even see mine.
Yast auto-detects the correct printer. If I try to connect directly via usb the test printer fails, if I try CUPS I have the choice of CUPS client only (which I chose) or networked. This asked for the server's name - what is that? I gave it the name of my machine - which hung Yast. (The promised time-out didn't) On re-visiting Yast the system says it is connected to /dev/usb/lp0 The offered printer test fails.
No errors under /var/log/cups/ ?
Part of my confusion might be in not understanding the jargon: since it is a stand-alone machine, my machine is the server for CUPS - right? yes it is.
I have asked this before, and am embarrassed to ask it again: When I set up my ADSL I was prompted for something like "Server name" and I gave my ISP name, which now appears in my root prompt. How do I change it back? Sid, I think it was you who told me how to change it back, but I cannot find the method :-)
Your server name should be what your local machine is called rather than the ISP's as you are setting up the machine as a firewall for any other boxes on the LAN.
I am sorry that this is so complex. Thanks for all your efforts. Regards, Colin
It's quite frustrating, for the printer, all I can think of at present is to have another go at "lppasswd -a root". On the scanner, all seems to be as it should be, but it's not working for "scanimage -L" or xsane, but is fine with vuescan. Hmmmmmmm.... after running vuescan, kooka now finds my scanner with the epson setup in YaST. barrabas:/ftp/May05 # scanimage -L device `epson:libusb:002:009' is a Epson Perfection610 flatbed scanner For vuesca82.tgz .... # mkdir /usr/local/vuescan # cd /usr/local/vuescan # tar zxfv vuescan82.tgz in that directory, then # ln -s /usr/local/vuescan/vuescan /usr/local/bin/ # vuescan Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Keen licensed Private Pilot Retired IBM Mainframes and Sun Servers Tech Support Specialist Microsoft Windows Free Zone - Linux for all Computing Tasks
The Thursday 2005-05-05 at 21:41 +1000, Colin Carter wrote:
A doc reference would do fine, if it explains what each line does.
man lsmod But man pages are a good example of "terse" documentation, they seem to be designed for people that already know the stuff - and this one is a fine example of this fact.
I understand lsmod (I think) . What I need is an explanation of each line so I know what is going on in my system. For example I don't know (I know - ignorant) when CUPS is running.
Ah, only that? :-) Much easier, try, as root: nimrodel:~ # rccups status Checking for cupsd: running Or, as user: cer@nimrodel:~> lpstat -t scheduler is running system default destination: lp device for lp: parallel:/dev/lp0 device for lpg: parallel:/dev/lp0 lp accepting requests since Jan 01 00:00 lpg accepting requests since Jan 01 00:00 printer lp is idle. enabled since Jan 01 00:00 printer lpg is idle. enabled since Jan 01 00:00 -- Cheers, Carlos Robinson
Colin Carter wrote:
Sorry to be a pain, but can somebody explain the output of lsmod. I am trying to get better management of my SuSE 9.1 ( and bother others a little less :-)
A doc reference would do fine, if it explains what each line does. I understand lsmod (I think) . What I need is an explanation of each line so I know what is going on in my system. For example I don't know (I know - ignorant) when CUPS is running. I can guess the use/meaning of some things, but will leave the true interpretation to you guys.
My lsmod output follows. Regards, Colin
Module Size Used by appletalk 38000 2 ax25 67236 2 ipx 29016 2 snd_seq 59840 1 joydev 11264 0 st 41764 0 sr_mod 17700 0 usbserial 34424 0 floppy 63728 0 parport_pc 39616 1 lp 12008 0 parport 45196 2 parport_pc,lp snd_pcm_oss 63908 0 snd_mixer_oss 21376 1 snd_pcm_oss snd_ioctl32 17920 0 cpufreq_userspace 6880 0 powernow_k8 9480 0 freq_table 5128 1 powernow_k8 thermal 14348 0 processor 18108 2 powernow_k8,thermal fan 4488 0 button 7200 0 battery 9608 0 ac 5640 0 snd_via82xx 27744 4 snd_pcm 113036 3 snd_pcm_oss,snd_ioctl32,snd_via82xx snd_timer 27400 2 snd_seq,snd_pcm snd_ac97_codec 72324 1 snd_via82xx snd_page_alloc 13192 2 snd_via82xx,snd_pcm gameport 5248 1 snd_via82xx snd_mpu401_uart 9088 1 snd_via82xx snd_rawmidi 28192 1 snd_mpu401_uart snd_seq_device 9612 2 snd_seq,snd_rawmidi snd 66440 20 snd_seq,snd_pcm_oss,snd_mixer_oss,snd_ioctl32,snd_via82xx,snd_pcm,snd_timer,snd_ac97_codec,snd_mpu401_uart,snd_rawmidi,snd_seq_device soundcore 10784 1 snd ppp_generic 31904 0 slhc 8192 1 ppp_generic af_packet 23052 2 ipt_TOS 2816 9 ipt_MASQUERADE 4224 1 ipt_LOG 6272 1 ipt_TCPMSS 4736 1 ipt_state 2304 13 hid 43776 0 ehci_hcd 29444 0 uhci_hcd 32800 0 usbcore 113520 6 usbserial,hid,ehci_hcd,uhci_hcd ohci1394 33412 0 ieee1394 114392 1 ohci1394 r8169 18564 0 evdev 10752 0 ip6t_LOG 6016 2 ip6t_REJECT 7680 3 ip6table_mangle 3200 0 ipt_REJECT 7424 3 iptable_mangle 3456 1 iptable_filter 3328 1 ip_nat_ftp 5712 0 iptable_nat 23756 3 ipt_MASQUERADE,ip_nat_ftp ip_conntrack_ftp 73072 1 ip_nat_ftp ip_conntrack 35660 5 ipt_MASQUERADE,ipt_state,ip_nat_ftp,iptable_nat,ip_conntrack_ftp ip_tables 18304 9 ipt_TOS,ipt_MASQUERADE,ipt_LOG,ipt_TCPMSS,ipt_state,ipt_REJECT,iptable_mangle,iptable_filter,iptable_nat ip6table_filter 3072 1 ip6_tables 19728 4 ip6t_LOG,ip6t_REJECT,ip6table_mangle,ip6table_filter ipv6 279144 13 ip6t_REJECT,ip6_tables subfs 8960 3 dm_mod 55480 0 reiserfs 239472 1 sata_via 8196 0 libata 41984 1 sata_via,[permanent] sd_mod 20992 0 scsi_mod 127392 4 st,sr_mod,libata,sd_mod
Didn't read this before responding, usblp seems to be missing, the lp module is for a parallel port printer, "modprobe usblp", check it's loaded and then try "rccups restart" and "lpstat -t". In some previous cases, I had to "insmod /lib/modules/`uname -r`/kernel/drivers/usb/class/usblp.ko". Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Keen licensed Private Pilot Retired IBM Mainframes and Sun Servers Tech Support Specialist Microsoft Windows Free Zone - Linux for all Computing Tasks
participants (6)
-
Carlos E. R.
-
Colin Carter
-
Graham Smith
-
Sid Boyce
-
Silviu Marin-Caea
-
ti@amb.org