VT calls failing on /dev/console

zhangchao at ubuntukylin.com zhangchao at ubuntukylin.com
Mon Apr 4 14:00:19 UTC 2016



Hi,
I found a similar problem at 1404 . if set console=ttys0 in cmdline , VT ioctls will fail and can't  switch user(Can't log in the original user) . 




At 2016-04-04 13:05:44, "Robert Ancell" <robert.ancell at canonical.com> wrote:

Hi all,


I've noticed in Xenial that VT ioctls that LightDM is using (VT_GETSTATE, VT_ACTIVATE, VT_WAITACTIVE) on /dev/console now seem to be failing (errno 5 - Input/output error). If I switch to /dev/tty0 they seem to work (this is what GDM and logind are using).


Two questions:

- Does anyone know what has changed that means these no longer work?

- What is the correct way to do these VT calls? Every time i try and work this out there seems to be no documentation anywhere and reading the kernel leaves me more confused.


--Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20160404/b5fe2056/attachment.html>


More information about the ubuntu-devel mailing list