Bug 11985

Summary: Refkit wayland image: failed to return into virtual terminal after terminate wayland (ctrl+alt+backspace)
Product: [Yocto Project Subprojects] IoT Reference OS Kit Reporter: yeoh ee peng <ee.peng.yeoh>
Component: intel-iot-refkit-platform-supportAssignee: Jussi Laako <jussi.laako>
Status: RESOLVED OBSOLETE QA Contact: yeoh ee peng <ee.peng.yeoh>
Severity: normal    
Priority: Undecided CC: jku, richard.purdie
Version: 2.4   
Target Milestone: Future   
Hardware: MinnowBoard Max   
OS: x86   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description yeoh ee peng 2017-08-28 08:03:00 UTC
After successful bootup and automatically loaded into weston compositor, click on shortcut key (ctrl+alt+backspace) to terminate weston, the weston termination face exception with message "coult not create XKB compose table for locale 'C'. Disabiling compose".  

Expected behavior: Once select shortcut key (ctrl+alt+backspace) to terminate weston, it shall return to the virtual terminal

This happen on both intel joule 570 and minnowmax.
Comment 1 yeoh ee peng 2017-08-28 08:14:49 UTC
Environment:
Image: refkit-image-common-wayland-intel-corei7-64-2017-08-04_06-28-07-build-244.wic.xz 
Boards: Intel Joule 570x & MinnowMax
Comment 2 Jussi Kukkonen 2017-09-04 13:17:25 UTC
> Expected behavior: Once select shortcut key (ctrl+alt+backspace) to terminate
> weston, it shall return to the virtual terminal

Is this really a designed feature of refkit? that escaping to login is just a keypress away?
Comment 3 yeoh ee peng 2017-09-05 01:55:19 UTC
At bootup, one of the virtual terminal was used to launch weston. 

If you switch to another virtual terminal and launch weston manually, you can exit weston cleanly by press key sequence (ctrl+alt+backspace). This quit weston
key sequence was documented at below URL. 
https://wiki.archlinux.org/index.php/wayland

But in the default virtual terminal used at bootup, when you press quit weston key sequence (ctrl+alt+backspace), it does not exit weston cleanly, instead it was showing exception message "coult not create XKB compose table for locale 'C'. Disabiling compose".

Is this the designed feature of refkit?
Comment 4 Jussi Laako 2017-09-05 08:01:33 UTC
By design, I would like to disable such key combinations, and VT switching altogether. But I don't know if this is possible with Weston...

But overall, Weston is on RefKit just as a demo that graphics output works. It is not configured to do anything useful, because there's nothing it would be used for included in RefKit. So it is just for developers so they can start adding things there that would actually use it and configure it to their liking.

Only RefKit requirement is "Wayland/Weston is there and can be started".
Comment 5 Jussi Kukkonen 2017-09-05 08:34:49 UTC
(In reply to comment #4)
> By design, I would like to disable such key combinations, and VT switching
> altogether. But I don't know if this is possible with Weston...
> 
> But overall, Weston is on RefKit just as a demo that graphics output works.
> It is not configured to do anything useful, because there's nothing it would
> be used for included in RefKit. So it is just for developers so they can
> start adding things there that would actually use it and configure it to
> their liking.

So I'd say don't spend too much time on this one then :)

It is easily configurable in weston.ini:

  [shell]
  allow-zap=false
  vt-switching=false

The file can be put in e.g. /etc/xdg/weston/weston.ini
Comment 6 Jussi Laako 2017-09-05 14:51:17 UTC
OK, thanks! I'll add that to RefKit through a bbappend...
Comment 7 Richard Purdie 2018-10-11 19:28:36 UTC
Refkit work isn't continuing so mark as obsolete.