Monitoimi laite

Ei, kun se on taustapalvelu, joka ilmeisestikin pitää laittaa päälle.

Jotta tietäisimme miten nuo taustapalveluhommat on Linpusissa järjestetty, niin viitsisitkö ajaa komennon

ls /etc/init.d; cat /etc/inittab; ls /etc/rc*

ja kopioida sen tuottaman tekstin tänne.

Itselläni on tässä Fedora 10 ja siinä ainakin on niinkin mielenkiintoisesti, että saned:tä ei ole rekisteröity palveluksi, eli esimerkiksi service- tai chkconfig-työkaluilla sitä ei voi hallita. Saned on paketissa sane-backends. Siellä näkyy olevan myös työkalu [tt]sane-find-scanner[/tt].

Miksu3 voisi ehkä kokeilla myös komentaa

ja liittää tulosteen tänne.

Noin muuten, olisikohan tarkoitus, että jokin sanea tarvitseva ohjelma käynnistää saned:n itse? Minulla ei oikein ole skannereista kokemusta.

[user@localhost Documents]$ ls /etc/init.d; cat /etc/inittab; ls /etc/rc* acpid haldaemon netconsole rdisc avahi-daemon halt netfs restorecond ConsoleKit hsqldb netplugd rsyslog crond killall network single cups lirc NetworkManager smb cups-config-daemon lm_sensors NetworkManagerDispatcher udev-post functions messagebus nmb winbind fuse named ntpd wpa_supplicant gpm nasd openvpn # # inittab This file describes how the INIT process should set up # the system in a certain run-level. # # Author: Miquel van Smoorenburg, # Modified for RHS Linux by Marc Ewing and Donnie Barnes #

Default runlevel. The runlevels used by RHS are:

0 - halt (Do NOT set initdefault to this)

1 - Single User mode

2 - MultiUser, without NFS (The same as 3, if you do not have networking)

3 - Full multiUser mode

4 - unused

5 - X11

6 - reboot (Do NOT set initdefault to this)

id:5:initdefault:

System initialization.

si::sysinit:/etc/rc.d/rc.S

l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc.5 5
l6:6:wait:/etc/rc.d/rc 6

Trap CTRL-ALT-DELETE

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

When our UPS tells us power has failed, assume we have a few minutes

of power left. Schedule a shutdown for 2 minutes from now.

This does, of course, assume you have powerd installed and your

UPS connected and working correctly.

pf::powerfail:/sbin/shutdown -f -h +2 “Power Failure; System Shutting Down”

If power was restored before the shutdown kicked in, cancel it.

pr:12345:powerokwait:/sbin/shutdown -c “Power Restored; Shutdown Cancelled”

Run gettys in standard runlevels

1:2345:respawn:/sbin/mingetty --autologin user tty1
#2:2345:respawn:/sbin/mingetty tty2
#3:2345:respawn:/sbin/mingetty tty3
#4:2345:respawn:/sbin/mingetty tty4
#5:2345:respawn:/sbin/mingetty tty5
#6:2345:respawn:/sbin/mingetty tty6

Run xdm in runlevel 5

#x:5:respawn:/etc/X11/prefdm -nodaemon
/etc/rc /etc/rc.local /etc/rc.sysinit

/etc/rc0.d:
K01NetworkManager K35smb K73winbind K88nasd
K02avahi-daemon K50netconsole K74lm_sensors K89netplugd
K02haldaemon K56acpid K74ntpd K89rdisc
K02NetworkManagerDispatcher K60crond K74rsyslog K90network
K10ConsoleKit K71lirc K75netfs S00killall
K10cups K72wpa_supplicant K75udev-post S01halt
K15gpm K73messagebus K76openvpn
K35nmb K73named K87restorecond

/etc/rc1.d:
K01NetworkManager K35smb K73winbind K88nasd
K02avahi-daemon K50netconsole K74lm_sensors K89netplugd
K02haldaemon K56acpid K74ntpd K89rdisc
K02NetworkManagerDispatcher K60crond K74rsyslog K90network
K10ConsoleKit K71lirc K75netfs S99single
K10cups K72wpa_supplicant K75udev-post
K15gpm K73messagebus K76openvpn
K35nmb K73named K87restorecond

/etc/rc2.d:
K01NetworkManager K72wpa_supplicant K88nasd S85gpm
K02avahi-daemon K73named K89netplugd S90ConsoleKit
K02haldaemon K73winbind K89rdisc S90crond
K02NetworkManagerDispatcher K74lm_sensors S10network S98cups
K35nmb K74ntpd S12restorecond S99local
K35smb K75netfs S26rsyslog
K50netconsole K75udev-post S27messagebus
K71lirc K76openvpn S44acpid

/etc/rc3.d:
K35nmb K74ntpd S26rsyslog S98cups
K35smb K76openvpn S26udev-post S98haldaemon
K50netconsole K88nasd S27messagebus S98NetworkManagerDispatcher
K71lirc K89netplugd S44acpid S99local
K72wpa_supplicant K89rdisc S85gpm S99NetworkManager
K73named S10network S90ConsoleKit
K73winbind S12restorecond S90crond
K74lm_sensors S25netfs S96avahi-daemon

/etc/rc4.d:
K35nmb K74ntpd S26rsyslog S98cups
K35smb K76openvpn S26udev-post S98haldaemon
K50netconsole K88nasd S27messagebus S98NetworkManagerDispatcher
K71lirc K89netplugd S44acpid S99local
K72wpa_supplicant K89rdisc S85gpm S99NetworkManager
K73named S10network S90ConsoleKit
K73winbind S12restorecond S90crond
K74lm_sensors S25netfs S96avahi-daemon

/etc/rc5.d:
K15gpm K74lm_sensors S26rsyslog S98cups
K35nmb K74ntpd S26udev-post S98haldaemon
K35smb K76openvpn S27messagebus S98NetworkManagerDispatcher
K50netconsole K89netplugd S44acpid S99local
K71lirc K89rdisc S88nasd S99NetworkManager
K72wpa_supplicant S10network S90ConsoleKit
K73named S12restorecond S90crond
K73winbind S25netfs S96avahi-daemon

/etc/rc6.d:
K01NetworkManager K35smb K73winbind K88nasd
K02avahi-daemon K50netconsole K74lm_sensors K89netplugd
K02haldaemon K56acpid K74ntpd K89rdisc
K02NetworkManagerDispatcher K60crond K74rsyslog K90network
K10ConsoleKit K71lirc K75netfs K91rmdriver
K10cups K72wpa_supplicant K75udev-post S00killall
K15gpm K73messagebus K76openvpn S01reboot
K35nmb K73named K87restorecond

/etc/rc.d:
init.d rc1.d rc4.d rc.6 rc.last.ctrl rc.sysinit session
rc rc2.d rc.5 rc6.d rc.local rc.udev slim
rc0.d rc3.d rc5.d rc.last rc.S rc.udev_new
[user@localhost Documents]$

[user@localhost Documents]$ [user@localhost Documents]$ sudo sane-find-scanner
bash: [user@localhost: command not found
[user@localhost Documents]$
[user@localhost Documents]$ # sane-find-scanner will now attempt to detect your scanner. If the
[user@localhost Documents]$ # result is different from what you expected, first make sure your
[user@localhost Documents]$ # scanner is powered up and properly connected to your computer.
[user@localhost Documents]$
[user@localhost Documents]$ # No SCSI scanners found. If you expected something different, make sure that
[user@localhost Documents]$ # you have loaded a kernel SCSI driver for your SCSI adapter.
[user@localhost Documents]$
[user@localhost Documents]$ # No USB scanners found. If you expected something different, make sure that
[user@localhost Documents]$ # you have loaded a kernel driver for your USB host controller and have setup
[user@localhost Documents]$ # the USB system correctly. See man sane-usb for details.
[user@localhost Documents]$
[user@localhost Documents]$ # Not checking for parallel port scanners.
[user@localhost Documents]$
[user@localhost Documents]$ # Most Scanners connected to the parallel port or other proprietary ports
[user@localhost Documents]$ # can’t be detected by this program.
[user@localhost Documents]$ [user@localhost Documents]$
bash: [user@localhost: command not found
[user@localhost Documents]$
[user@localhost Documents]$

Vpv oli näköjään oikeassa, eli saned-nimistä “normaalia” taustapalvelua ei ole tuolla tarjolla.

Mitä sitten tehdään? :-\

Tuo xsanen tuottama virheilmoitus “Failed to open devices `v4I:/dev/video0’” oli niin erikoinen, ettei netin hakukoneillakaan mitään siihen liittyvää löytynyt. Vaikeapa tuon suhteen siis on mitään keksiä…

Seuraava askel voisi olla jonkin toisen skannausohjelman kokeileminen, mutta minkä?

Veikkaan, että todellinen virheilmoitus lienee ollut “Failed to open devices `v4l:/dev/video0’” eli L niin kuin Lauri eikä I niin kuin Ilpo. V4L = Video for Linux.

Lisäys: Kysyn varmuuden vuoksi: Oliko miksu3:lla monitoimilaitteessa virrat päällä ja laite yhdistettynä koneeseen, kun kokeilit tuota sane-find-scanner komentoa?

Äsken kokeilin eikä toiminut kun oli virrat päällä…

[user@localhost Documents]$ sane-find-scanner

sane-find-scanner will now attempt to detect your scanner. If the

result is different from what you expected, first make sure your

scanner is powered up and properly connected to your computer.

No SCSI scanners found. If you expected something different, make sure that

you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x04a9 [Canon], product=0x1734 [MP190 series]) at libusb:001:004

Your USB scanner was (probably) detected. It may or may not be supported by

SANE. Try scanimage -L and read the backend’s manpage.

Not checking for parallel port scanners.

Most Scanners connected to the parallel port or other proprietary ports

can’t be detected by this program.

You may want to run this program as root to find all devices. Once you

found the scanner devices, be sure to adjust access permissions as

necessary.

[user@localhost Documents]$

[quote=“miksu3, post:49, topic:637”][quote][user@localhost Documents]$ sane-find-scanner

sane-find-scanner will now attempt to detect your scanner. If the

result is different from what you expected, first make sure your

scanner is powered up and properly connected to your computer.

No SCSI scanners found. If you expected something different, make sure that

you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x04a9 [Canon], product=0x1734 [MP190 series]) at libusb:001:004

Your USB scanner was (probably) detected. It may or may not be supported by

SANE. Try scanimage -L and read the backend’s manpage.

Not checking for parallel port scanners.

Most Scanners connected to the parallel port or other proprietary ports

can’t be detected by this program.

You may want to run this program as root to find all devices. Once you

found the scanner devices, be sure to adjust access permissions as

necessary.

[user@localhost Documents]$
[/quote][/quote]

eli laite tunnistuu ok, toimiiko se myös?


Eero

[quote=“miksu3, post:49, topic:637”][quote][user@localhost Documents]$ sane-find-scanner

sane-find-scanner will now attempt to detect your scanner. If the

result is different from what you expected, first make sure your

scanner is powered up and properly connected to your computer.

No SCSI scanners found. If you expected something different, make sure that

you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x04a9 [Canon], product=0x1734 [MP190 series]) at libusb:001:004

Your USB scanner was (probably) detected. It may or may not be supported by

SANE. Try scanimage -L and read the backend’s manpage.

Not checking for parallel port scanners.

Most Scanners connected to the parallel port or other proprietary ports

can’t be detected by this program.

You may want to run this program as root to find all devices. Once you

found the scanner devices, be sure to adjust access permissions as

necessary.

[user@localhost Documents]$
[/quote][/quote]

Voisi varmaan kokeilla, mitä tuossa mainittu komento

sanoo?

[user@localhost Documents]$ scanimage -L
device `v4l:/dev/video0’ is a Noname Acer Crystal Eye webcam virtual device
[user@localhost Documents]$

[quote=“miksu3, post:52, topic:637”][user@localhost Documents]$ scanimage -L
device `v4l:/dev/video0’ is a Noname Acer Crystal Eye webcam virtual device
[user@localhost Documents]$[/quote]

Scanimage-komento ja xsane löytävät siis skannerin sijasta web-kameran. Kummallista…

[quote=“miksu3, post:52, topic:637”][user@localhost Documents]$ scanimage -L
device `v4l:/dev/video0’ is a Noname Acer Crystal Eye webcam virtual device
[user@localhost Documents]$[/quote]

Varmuuden vuoksi kysyn, oliko monitoimilaitteessa taas virta päällä ja oliko se kytkettynä koneeseen, kun ajoit tämän komennon?

Periaatteessa monitoimilaite ja web-kamera voivat tavallaan “kilpailla” /dev/video-laitetiedostoista, mutta silloinkin pitäisi käydä niin, että näitä laitetiedostoja luodaan kaksi ja scanimage näkisi molemmat.

[quote=“vpv, post:54, topic:637”][quote author=miksu3 link=topic=648.msg3488#msg3488 date=1242223082]
[user@localhost Documents]$ scanimage -L
device `v4l:/dev/video0’ is a Noname Acer Crystal Eye webcam virtual device
[user@localhost Documents]$
[/quote]

Varmuuden vuoksi kysyn, oliko monitoimilaitteessa taas virta päällä ja oliko se kytkettynä koneeseen, kun ajoit tämän komennon?

Periaatteessa monitoimilaite ja web-kamera voivat tavallaan “kilpailla” /dev/video-laitetiedostoista, mutta silloinkin pitäisi käydä niin, että näitä laitetiedostoja luodaan kaksi ja scanimage näkisi molemmat.[/quote]

Kannattaa myös kokeilla komentoria r00ttina, mikäli ongelma on käyttöoikeuksissa.


Eero

Eli vaikkapa

sudo scanimage -L

ja

sudo xsane

Monitoimi laite on päällä ja kiinni koneessa. Kokeilin noita mutta tuli sama vastaus.

Keksiikö kukaan mitään?

Noita on hieman hankala testata, kun ei ole rautaa tässä käden ulottuvilla.


Eero

Minulle tulee lähinnä mieleen, että voisi koittaa googlettaa että toimiiko tuo laite miten vaikkapa Ubuntussa, 9.04-versiossa on kuitenkin melko varmasti uudemmat ajuri- ja ohjelmaversiot kuin Linpuksessa ja Ubuntu Netbook Remix vaikuttaisi olevan noille miniläppäreille aika sopiva käyttöjärjestelmä.