You are not logged in.

#1 2014-07-08 18:23:57

stevenhoneyman
Member
From: England
Registered: 2014-05-25
Posts: 240

anyone use KMSCON (or similar)?

I've just found kmscon, and apart from a few initial troubles, it's running fine. I can't seem to get an image viewer to run though sad

For example, without it, just using the framebuffer, I can run "fbi" "fbv" "fim" etc to display images. If I try the same under kmscon, I get:

ioctl VT_GETSTATE: Inappropriate ioctl for device (not a linux console?)

So now I have more text colors... but much less functionality sad
Anyone have any suggestions if this can be fixed? I'm presuming it's just something simple I'm missing here

Offline

#2 2014-07-08 23:58:36

crondog
Member
Registered: 2011-04-21
Posts: 127

Re: anyone use KMSCON (or similar)?

It's because kmscon is not the kernel console. It is just a terminal emulator like fbterm

Offline

#3 2014-07-09 05:41:07

stevenhoneyman
Member
From: England
Registered: 2014-05-25
Posts: 240

Re: anyone use KMSCON (or similar)?

I know... But the image viewers I mentioned are designed for framebuffer terminals (that's what the fb stands for!)

Offline

#4 2014-07-10 00:18:48

crondog
Member
Registered: 2011-04-21
Posts: 127

Re: anyone use KMSCON (or similar)?

True. But in this case fbi etc checks to see if it is running from a virtual terminal and then proceeds (fbtools.c:331)

The below should work (it does for me inside X). It will switch to a new tty and then display the image

sudo fbi -T 6 -d /dev/fb0 image.jpg

Offline

#5 2014-09-05 08:38:08

hoschi
Member
From: Ulm (Germany)
Registered: 2008-11-03
Posts: 358
Website

Re: anyone use KMSCON (or similar)?

I'm interested in KMSCON for a long time, but never had enough time to try it out. Sadly it was clear to me, that fbi and smiliar tools which rely on the framebuffer and VT can't work with the modern approach of KMSCON. Would be interessting to see, if that workaround works. I'm pretty sure this type of applications (fbi or mplayer) which rely on VT/FB needs to be rewritten, possibly using directly OpenGL (hey, let use the shiny new parts) or some sort of Layer (SDL2).

Intel prepared the kernel for dusk of the framebuffer device already:
CONFIG_DRM_I915_FBDEV=y # of course still on for compatibility

I hope I'm not to lazy and maybe investigate how to write some kind of new image viewer, which could run inside KMSCON without FBDEV.

Offline

#6 2014-09-06 00:24:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,428

Re: anyone use KMSCON (or similar)?

crondog's workaround works as long as the vt you're switching to is not running kmscon but the linux console. I've managed to lock myself out (non-responsive keyboard) from my system a couple times while using it.

KMSCON is nice, but rather heavy and it seems you have to kill it (not just 'exit', like a linux console) to get the memory back. I can't even start X from it:

/usr/bin/Xorg.wrap: Only console users are allowed to run the X server
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
(II) AIGLX: Suspending AIGLX clients for VT switch
(II) AIGLX: Suspending AIGLX clients for VT switch

You can try it on one tty and see if you like it:

# sysmtectl disable getty@tty3.service
# systemctl enable kmsconvt@tty3.service

Adjust the service to your needs.

Offline

Board footer

Powered by FluxBB