
I'll edit the OP to reflect your very useful feedback -- thanks!
total 0
lrwxrwxrwx 1 root root 34 Jul 19 15:01 getty@tty1.service -> /lib/systemd/system/getty@.service
ExecStart=-/sbin/agetty -a <user name> %I $TERM
ls -lR /etc/systemd/system | grep -i tty
[Login]
NAutoVTs=2
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
drwxr-xr-x 2 root root 4096 Jul 19 15:01 getty.target.wants
/etc/systemd/system/getty.target.wants:
lrwxrwxrwx 1 root root 34 Jul 19 15:01 getty@tty1.service -> /lib/systemd/system/getty@.service
Nili wrote:if you remember a thread and a chat that we have done therefore I have two because i choosed to use two tty.
I wrote:Disabling TTYs via /etc/logind.conf saves *no resources whatsoever*
Head_on_a_Stick wrote:From that thread:I wrote:Disabling TTYs via /etc/logind.conf saves *no resources whatsoever*
mythtv ~ # cat /etc/systemd/system/getty.target.wants/getty@tty1.service | grep ExecStart
ExecStart=-/sbin/agetty -a mythtv %I $TERM
mythtv@mythtv:~$ cat ~/.profile
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx 'which /usr/bin/kodi'
milomak wrote:like this?
[...]
- Code: Select all
mythtv@mythtv:~$ cat ~/.profile
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx 'which /usr/bin/kodi'
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx /usr/bin/kodi
[[ -z $DISPLAY -a $XDG_VTNR -eq 1 ]] && exec startx /usr/bin/kodi
Head_on_a_Stick wrote:milomak wrote:like this?
[...]
- Code: Select all
mythtv@mythtv:~$ cat ~/.profile
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx 'which /usr/bin/kodi'
Not quite, try:
- Code: Select all
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx /usr/bin/kodi
Docs, Howtos, Tips & Tricks
Share your own howto's etc. Not for support questions!
Post by lachlanp » 2016-05-09 06:21
The topic is old and I have a slightly different need.
Return to Docs, Howtos, Tips & Tricks
Users browsing this forum: No registered users and 8 guests