starting mag in l4con virtual console

Valery V. Sedletski _valerius at
Tue Jun 26 18:01:47 CEST 2012

Adam Lackorzynski wrote:
> Also, I found that there is two input plugins, one of them using event 
> interface, other using libinput library. I suspect that I must to use 
> the event one, but how?
> Yes. It's somewhat automatic. The input-plugin will not work if there's
> no vbus, and the event plugin will work when it finds 'ev'.
>> I found in the event input plugin source that it requires the "ev"
>> cap. But where I can get it from?
> The framebuffer is actually a L4Re::Console which is a combination of
> the Goos interface and events. So just use the same for both.
>> I start Mag this way:
>> loader = L4.default_loader;
>> ...
>> local mag_svc = loader:new_channel();
>> -- Start mag
>    local conwin = con_svc:create(L4.Proto.Goos, "g=800x600");
>> loader:start(
>>    {
>>      caps = {
>          fb = conwin;
> 	ev = conwin;
>>        svc = mag_svc:svr();
>>      },
>>      l4re_dbg = L4.Dbg.Warn,
>>      log = {"mag", "green"},
>>     },
>>     "rom/mag");
> Adam
I tried this way, but Mag still gets no mouse input. :( Maybe, Mag it is 
broken? (DOpE  works this way, even without 'ev' to be assigned, but Mag 
doesn't) Or, is it correct to assign the same object to 'fb' and 'ev'? 
Is it automatically typecasted? (As I understood, 'conwin' is 
L4Re::Console, which is derived from L4Re::Video::Goos and L4Re::Event, 
so here is the implicit typecast)

More information about the l4-hackers mailing list