LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-22-2017, 09:26 PM   #1
enableshowrun
LQ Newbie
 
Registered: Jun 2017
Posts: 7

Rep: Reputation: Disabled
Turning off the visual bell with a GNU Screen serial session


Hello! I am trying to turn off GNU Screen's visual bell while it is connected to a serial connection. The command I am using is "screen /dev/ttyUSB0" the connection defaults to 9600 baud which is what the other side defaults to as well. When ~/.screenrc does not exist it connects fine, but the visual bell of the entire screen flashing is very annoying and gives me a headache after a short while.

When I try to add "vbell off" to ~/.screenrc (it being the only line in the file) screen terminates right away. I am at a loss of what to do from here. Any suggestions?

I have tried this both on a Raspberry Pi 2 with Raspbian and a Powerbook G4 running Debian with the same issue. The device on the other end of the serial connection is a Cisco Catalyst 2960 switch. The USB-to-Serial chip used is the PL2303.
 
Old 09-22-2017, 11:29 PM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,308
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
ctrl-a ctrl-g should manually toggle the visual bell on and off.

But what is your full .screenrc file and the actuall command you use to launch screen with? Those might give clues as to why it is not working as expected.
 
Old 09-23-2017, 02:47 AM   #3
enableshowrun
LQ Newbie
 
Registered: Jun 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
My screenrc file has "vbell off" as it's only line.

The command I am using to start screen is "screen /dev/ttyUSB0"

Ideally I'd like to avoid using a per- session control for this as I will be in and out of the serial connection fairly often.
 
Old 09-23-2017, 03:10 AM   #4
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,308
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Ok. I have a similar setup but can only duplicate the symptoms you describe if I leave off the speed or if screen is already running.

Is a session already running, but detached?

Code:
screen -ls
When there is no session already in place, what happens when you launch while specifying the speed as well?

Code:
screen /dev/ttyUSB0 9600
 
1 members found this post helpful.
Old 09-23-2017, 03:29 AM   #5
enableshowrun
LQ Newbie
 
Registered: Jun 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
There was another serial session that was running on the system. Killing it made screen work as I wanted it too! Thank you! I didn't even think to check if there was another screen session running.

To stop the one already running it was a simple pkill screen.
 
  


Reply

Tags
screen, serial, ttyusb



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set xterm title to gnu screen session name WindAndTiger Linux - Software 6 12-02-2022 11:39 AM
[SOLVED] How to save a GNU screen session? binladen_vn88 Linux - Software 2 09-17-2013 08:26 PM
Can I take a text screenshot of a GNU Screen session? FireRaven Linux - Server 3 03-04-2012 08:13 PM
GNU Screen: send "stuff" command to detached screen session? metaf5 Linux - General 3 01-23-2012 08:44 PM
Trying to start a GNU screen session at startup th_alton Linux - Newbie 2 09-10-2009 03:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration