Find the answer to your Linux question:
Results 1 to 6 of 6
I have debian testing. I have installed Ups Software "Upsilon 2000". Communication port is serial port and not usb. When I try to start demone, in the console there is ...
  1. #1
    Just Joined!
    Join Date
    Jul 2011
    Posts
    3

    Ups Atlantis Land and software Upsilon2000

    I have debian testing.
    I have installed Ups Software "Upsilon 2000".
    Communication port is serial port and not usb.
    When I try to start demone, in the console there is this message:
    Code:
    UPS Adapter No Response!!, type [upsilon stop] to stop this process
    the manual is written in case of error:
    Code:
    Trouble Shoot the Communication Port
    What to do when a "UPS adapter no response" message appears after running UPSilon. (Linux OS was used as an example). Please refer to the system documentation if you do not have the same Unix system as serial port setup procedures may vary from system to system.
    1. Make sure no other process uses the same serial port.
    2. Turn off function 'getty' of the serial port.
    For Linux OS, check the file ‘/etc/ttytab’ for the line below, and change ”respawn” to ”off”:
    ttya:2345:respawn:/sbin/getty 9600 ttys0
    Execute this command if you modified the ‘/etc/ttytab’ file. This will force an initial process that closes and re-opens the terminals.
    kill -1 1
    3. Change the file permission of ‘/dev/ttya’
    chmod 666 /dev/ttya
    and other:
    Code:
    $ dmesg | grep tty
    [    0.000000] console [tty0] enabled
    [    0.718712] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
    [    0.718943] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

  2. #2
    Linux Newbie
    Join Date
    Sep 2007
    Posts
    137
    Hello and welcome!

    From the manual you posted:
    For Linux OS, check the file ‘/etc/ttytab’ for the line below, and change ”respawn” to ”off”: ttya:2345:respawn:/sbin/getty 9600 ttys0
    Debian's system getty file is /etc/inittab. To edit the file in a GUI text application, open a terminal and enter (as root):
    Code:
     # gedit /etc/inittab
    Or in the console or a terminal with an editor application (nano, vi) (as root):
    Code:
     # nano /etc/inittab
    For more information, open a terminal and enter (as user):
    Code:
     $ man inittab

  3. #3
    Just Joined!
    Join Date
    Jul 2011
    Posts
    3
    This is my /etc/inittab

    # cat /etc/inittab
    # /etc/inittab: init(8) configuration.
    # $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

    # The default runlevel.
    id:2:initdefault:

    # Boot-time system configuration/initialization script.
    # This is run first except when booting in emergency (-b) mode.
    si::sysinit:/etc/init.d/rcS

    # What to do in single-user mode.
    ~~:S:wait:/sbin/sulogin

    # /etc/init.d executes the S and K scripts upon change
    # of runlevel.
    #
    # Runlevel 0 is halt.
    # Runlevel 1 is single-user.
    # Runlevels 2-5 are multi-user.
    # Runlevel 6 is reboot.

    l0:0:wait:/etc/init.d/rc 0
    l1:1:wait:/etc/init.d/rc 1
    l2:2:wait:/etc/init.d/rc 2
    l3:3:wait:/etc/init.d/rc 3
    l4:4:wait:/etc/init.d/rc 4
    l5:5:wait:/etc/init.d/rc 5
    l6:6:wait:/etc/init.d/rc 6
    # Normally not reached, but fallthrough in case of emergency.
    z6:6:respawn:/sbin/sulogin

    # What to do when CTRL-ALT-DEL is pressed.
    ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

    # Action on special keypress (ALT-UpArrow).
    #kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."

    # What to do when the power fails/returns.
    pf::powerwait:/etc/init.d/powerfail start
    pn::powerfailnow:/etc/init.d/powerfail now
    po::powerokwait:/etc/init.d/powerfail stop

    # /sbin/getty invocations for the runlevels.
    #
    # The "id" field MUST be the same as the last
    # characters of the device (after "tty").
    #
    # Format:
    # <id>:<runlevels>:<action>:<process>
    #
    # Note that on most Debian systems tty7 is used by the X Window System,
    # so if you want to add more getty's go ahead but skip tty7 if you run X.
    #
    1:2345:off:/sbin/getty 38400 tty1
    2:23:respawn:/sbin/getty 38400 tty2
    3:23:respawn:/sbin/getty 38400 tty3
    4:23:respawn:/sbin/getty 38400 tty4
    5:23:respawn:/sbin/getty 38400 tty5
    6:23:respawn:/sbin/getty 38400 tty6

    # Example how to put a getty on a serial line (for a terminal)
    #
    #T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
    #T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100

    # Example how to put a getty on a modem line.
    #
    #T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3
    I hace modified the red line.
    But don't work.
    If I push alt+ctrl+F1 the console is blocked.

  4. #4
    Linux Newbie
    Join Date
    Sep 2007
    Posts
    137
    I hace modified the red line.
    But don't work.
    If I push alt+ctrl+F1 the console is blocked.
    The F1 console is blocked because it is turned off:
    Code:
     1:2345:off:/sbin/getty 38400 tty1
    From the manual you posted:
    For Linux OS, check the file ‘/etc/ttytab’ for the line below, and change ”respawn” to ”off”: ttya:2345:respawn:/sbin/getty 9600 ttys0
    I think you want a terminal getty... below the 6 user consoles in /etc/inittab:
    # Example how to put a getty on a serial line (for a terminal)
    #
    #T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
    #T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100

  5. #5
    Just Joined!
    Join Date
    Jul 2011
    Posts
    3
    I must uncomment the red line?

    # Example how to put a getty on a serial line (for a terminal)
    #
    #T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
    #T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100

  6. #6
    Linux Newbie
    Join Date
    Sep 2007
    Posts
    137
    I must uncomment the red line?
    Beyond pointing you to the inittab file and the 'ttyS0 9600' line for serial communication, I cannot help. There may be others here who can. If you have the option of using another application, you might want to check out the UPS monitoring packages in the Squeeze repo (with the package manager)... upsd, apcupsd, nut and a few others. I checked the Upsilon 2000 manual and I think you will find better and more up-to-date Linux documentation from the repo applications.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •