Comments (2)
I recently face the same issue. I solved using /sbin/agetty instead of /bin/login.
ExecStart=/usr/bin/kmscon "--vt=%I" --seats=seat0 --no-switchvt -l /sbin/agetty -- -o '-p -- \u' --noclear - linux
Unfortunately doing this, no terminal identifier is printed (only a '-'). I developed a patch (https://github.com/kreijack/kmscon/tree/ptsname) which allow to pass '{ptsname}' in agetty command line, which will be replace by the terminal name (like 'pts/1').
'
ExecStart=/usr/bin/kmscon "--vt=%I" --seats=seat0 --no-switchvt -l /sbin/agetty -- -o '-p -- \u' --noclear {ptsname} linux
'
I even tried to implement the printing of /etc/issue in kmscon (https://github.com/kreijack/kmscon/tree/random-dev), but it is a lot of code (you have to take care of a lot of '<character>' code); moreover /bin/login has a timeout so if no key is pressed at login time, it exit and kmscon has to restart it.
Both of these issues disappear using /sbin/agetty instead of /bin/login.
Unfortunately, there is still noway to show the tty.
from kmscon.
@kreijack
If the only thing you really care about is printing, not actually passing the terminal value to agetty, you can do:
/usr/bin/kmscon "--vt=/dev/tty2" --seats=seat0 --no-switchvt -l /bin/bash -- -c "tty; /sbin/agetty -o \"-p -- \u\" - linux"
For some reason, substituting it like this:
/usr/bin/kmscon "--vt=/dev/tty2" --seats=seat0 --no-switchvt -l /bin/bash -- -c "/sbin/agetty -o \"-p -- \u\" `tty` linux"
did not really work.
You can get the VT (not PT) number with $XDG_VTNR instead.
from kmscon.
Related Issues (20)
- Window manager crashes when pressing Ctrl+Shift+C HOT 1
- Way to specify bold font HOT 8
- Mouse support? HOT 14
- Mouse cursor from the graphical session not cleared when switch to VT HOT 2
- Allow quoting to preserve spaces in the login option in config file
- Can't use backspace & CTRL+backspace as intended HOT 7
- Bad rendering of font width and incomplete rendering of glyphs with pango font engine HOT 1
- wrong install path for .service files HOT 1
- Line height has extra padding
- meson.build fails to respect pkg-config xkbcommon --cflags HOT 1
- Errors on building because of missing HOT 3
- Build error
- Still multiple issues with multi-head
- Can antialiasing be disabled with pango? HOT 2
- The color of the default text is too bright, how to change it HOT 1
- Console screen is not updated, but kmscon is working HOT 2
- Bugs of `Esc[nE` and `Esc[nF` HOT 3
- Function not implemented (display_activate() in ../kmscon-9.0.0/src/uterm_drm3d_video.c:171) HOT 1
- kmscon enters zombie state HOT 1
- does this project still alive HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kmscon.