LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-21-2022, 10:52 PM   #1
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,068

Rep: Reputation: 147Reputation: 147
Question getty bug


If you go to login (maybe just first time) on pure (non-X/-Wayland) terminal and accidentally press <PgDn/Up> first, the cursor goes down (or up?) a line and input is halted. You have to go to another terminal and kill getty. I emailed the person mentioned in the getty manpage but the email was undeliverable.
 
Old 01-22-2022, 06:04 AM   #2
lecho
Member
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Slackware
Posts: 32

Rep: Reputation: Disabled
I confirm such a bit strange behaviour but after some seconds (less than 10) everything is OK without killing getty.
 
1 members found this post helpful.
Old 01-22-2022, 06:14 AM   #3
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,902

Rep: Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025
When I try it, the cursor stays where it is and you can continue to enter characters, but when you press enter you get a short delay and /var/log/secure shows this:
agetty[2483]: tty2: invalid character 0x1b in login name

ctrl-u should clear all entered input,so there should be no need to console switch and kill the getty process.

ctrl-u (just like backspacing repeatedly) will result in the cursor being mispositioned into the login prompt, but that's just a cosmetic issue and it won't prevent login.

Clearly agetty is not handling/filtering out the escape sequence the pgup/down generate.

If all else fails altgr-sysrq k will save the day (but never do it on tty1!)

Last edited by GazL; 01-22-2022 at 06:17 AM.
 
1 members found this post helpful.
Old 01-22-2022, 06:43 AM   #4
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,068

Original Poster
Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by GazL View Post
If all else fails altgr-sysrq k will save the day (but never do it on tty1!)
What is altgr?
 
Old 01-22-2022, 06:50 AM   #5
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,902

Rep: Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025
Quote:
Originally Posted by dchmelik View Post
What is altgr?
The rightmost alt key on your keyboard, typically labelled: "Alt Gr" on a PC.

You need to keep the alt-gr depressed while pressing sysrq then 'k'


Google "Magic sysrq" if you want to know more.
 
Old 01-22-2022, 07:27 AM   #6
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,068

Original Poster
Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by GazL View Post
The rightmost alt key on your keyboard, typically labelled: "Alt Gr" on a PC.
I've only seen them labelled Alt.

Is there any other way to contact the getty programmer?
 
Old 01-22-2022, 07:36 AM   #7
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,902

Rep: Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025
Quote:
Originally Posted by dchmelik View Post
I've only seen them labelled Alt.

Is there any other way to contact the getty programmer?
Perhaps it depends on the country layout. With GB they're usually 'Alt Gr'


agetty is part of util-linux which has a github repo. You could go over there and log an "issue", though I doubt an issue like this will get a very high-priority on their todo list.
 
  


Reply



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
[BUG] getty-ps crash guanx Slackware 4 10-05-2013 08:41 PM
getty in RedHat 8.0 kprocter Linux - General 1 06-02-2003 10:23 AM
switch x getty consoles? gongli Linux - Software 0 06-01-2003 04:16 PM
Autologin Getty rch Linux - Security 5 04-15-2003 01:04 AM
ititilize ttySX using other than getty frieza Linux - Software 3 10-01-2002 11:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:14 AM.

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