2016年5月11日 星期三

[minicom][Archlinux] How to solve ttyUSB0 is locked

Q:

[freeman@localhost script]$ sudo minicom -D /dev/ttyUSB1
[sudo] password for freeman: 
Device /dev/ttyUSB1 is locked.

A:
Please type minicom -s to see the settings of minicom.

            +-----[configuration]------+
            | Filenames and paths      |
            | File transfer protocols  |
            | Serial port setup        |
            | Modem and dialing        |
            | Screen and keyboard      |
            | Save setup as dfl        |
            | Save setup as..          |
            | Exit                     |
            | Exit from Minicom        |
            +--------------------------+

Please choose Serial port setup, and will see "Lockfile Location".

    +-----------------------------------------------------------------------+
    | A -    Serial Device      : /dev/modem                                |
    | B - Lockfile Location     : /var/run                                  |
    | C -   Callin Program      :                                           |
    | D -  Callout Program      :                                           |
    | E -    Bps/Par/Bits       : 115200 8N1                                |
    | F - Hardware Flow Control : Yes                                       |
    | G - Software Flow Control : No                                        |
    |                                                                       |
    |    Change which setting?                                              |
    +-----------------------------------------------------------------------+
            | Screen and keyboard      |
            | Save setup as dfl        |
            | Save setup as..          |
            | Exit                     |
            | Exit from Minicom        |
            +--------------------------+
Exit the settings of minicom.

Go to /var/run and delete LCK..ttyUSB0.

0 意見:

張貼留言