#557171 make chvt work within X windows

Package:
kbd
Source:
kbd
Description:
Linux console font and keytable utilities
Submitter:
Date:
2024-03-07 16:06:03 UTC
Severity:
normal
Tags:
#557171#5
Date:
2009-11-19 23:57:28 UTC
From:
To:
The man page should mention why chvt can't be made to work within X
windows. (Or better yet, please make it work.)

I.e., one cannot do
$ chvt 1
Couldn't get a file descriptor referring to the console

But from outside X windows one can do
$ chvt 7
to get back in.

#557171#10
Date:
2009-11-24 19:54:17 UTC
From:
To:
forcemerge 522453 557171
thanks

Hi!

This is a fundamental limitation of all kbd tools which need a console
file descriptor to work; it is most obvious with tools like openvt,
fgconsole and chvt.  I’m merging this report with #522453.

Cheers,

#557171#17
Date:
2009-11-28 17:19:58 UTC
From:
To:
MS> This is a fundamental limitation of all kbd tools which need a console
MS> file descriptor to work; it is most obvious with tools like openvt,
MS> fgconsole and chvt.  I’m merging this report with #522453.
Well maybe some program could write something in /var/run where another
program could read it or something...

#557171#22
Date:
2024-03-07 16:02:37 UTC
From:
To:
request tag accessability security important

I am restriced to one hand and forced to enable stickykeys everywhere

It's too difficult to switch consoles with three finget hotkey and sometimes impossible.

as emergency action I set suid root on chvt which setting suid on a binary not designed for it is a bad idea