You are not logged in.
Kernel 3.4.4-2, Picocom 1.7-1
# picocom -b 57600 /dev/ttyUSB0
picocom v1.7
port is : /dev/ttyUSB0
flowcontrol : none
baudrate is : 57600
parity is : none
databits are : 8
escape is : C-a
local echo is : no
noinit is : no
noreset is : no
nolock is : no
send_cmd is : sz -vv
receive_cmd is : rz -vv
imap is :
omap is :
emap is : crcrlf,delbs,
FATAL: cannot lock /dev/ttyUSB0: Permission denied
# ll /run/lock
total 4
drwxrwxr-x 2 root lock 40 Jul 13 11:15 lockdev
drwxr-xr-x 2 root root 40 Jul 13 11:15 lvm
-rw-r--r-- 1 root root 4 Jul 13 11:15 slim.lock
drwxr-xr-x 2 root root 40 Jul 13 11:15 subsys
I'm in the lock group. I'd previously tried to change /run/lock/lockdev to group lock and group writable, which seemed to work once. What's going on? I'd prefer not to use the --nolock option. I suppose it's worth noting that /var/lock is a symlink to /run/lock.
Offline
I think you may need to check to see if you are in the permission group for /dev/ttyUSB0
I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.
Offline
I'm 99% sure it's picocom. I can open the serial port using `cu` or from a Python script without a problem. Additionally, this seems to have started in the past month or so.
Offline
picocom tries to put a lock file in /run/lock:
# ll /run
...
drwxr-xr-x 5 root root 120 Jul 25 10:21 lock
...
If I set the group of /run/lock to lock and set it group writable, it works, but doesn't persist after reboot.
So is it picocom's fault or whatever sets the perms of /run/lock on boot?
Offline
drwxr-xr-x 5 root root 100 Jul 23 09:15 lock
kind of like this:
[ewaller@matrix latex]$ picocom /dev/ttyS0
picocom v1.7
port is : /dev/ttyS0
flowcontrol : none
baudrate is : 9600
parity is : none
databits are : 8
escape is : C-a
local echo is : no
noinit is : no
noreset is : no
nolock is : no
send_cmd is : sz -vv
receive_cmd is : rz -vv
imap is :
omap is :
emap is : crcrlf,delbs,
FATAL: cannot lock /dev/ttyS0: Permission denied
[ewaller@matrix latex]$
I think you should file a bug report. There are no bugs pending against picocom at this time
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
I would almost feel bad filing a bug report.
Offline
I would almost feel bad filing a bug report.
It is a great way to get involved and help.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline