[MPlayer-dev-eng] [PATCH] 0/5 VT switching in fbdev
Alan Curry
pacman at TheWorld.com
Thu Apr 20 22:10:47 CEST 2006
Rich Felker writes the following:
>
>> Patch summary:
>>
>> 1/5 Add vtswitch_init/vtswitch_uninit
>
>Does this code work correctly if /dev/tty is not a linux console? Does
The current behavior is maintained in that case. (For those who don't know:
the current behavior is that VT switching is left in full automatic mode,
mplayer doesn't know when you've switched away, so it draws on top of the
text on whatever tty you switched to. If you pause before switching away,
things work pretty much OK)
Other possible behaviors in this case would be:
1. use VT_OPENQRY to find an unused VT and play the movie on that one (this
is what SDL's fb backend does)
2. Desparation search through /dev/tty[0-9]*, opening all of them until one
works, then use VT_GETSTATE to find out which one is active
3. refuse to run
>it work without root?
The VT_* ioctls require only access to a VT device. I haven't ever run it as
root.
More information about the MPlayer-dev-eng
mailing list