[Bug 246121] [bhyve][PATCH] Append Keyboard Layout specified option for using VNC.

2021-02-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246121

--- Comment #25 from Koine Yuusuke  ---
(In reply to Michael Reifenberger from comment #24)

Thank you for reporting the results.

> Hi,do you have by chance updated patches for stable/12 and main?
>
> For me bhyve_kbdlayout_option_fbsd122r.patch doesn't seem to work as intended.
>
> Running a Windows 10 VM with '-k de' and setting the Windows KBD-Lang to 'deu'
> seems to work for the intended Layout for Keys like '\|-_' but I don't get
> Umlauts or ???...

Currently, bhyve_kbdlayout_option_fbsd***.patch doesn't support
language-specific keys other than alphabets, numbers, ASCII code symbols(e.g.
!/#/$/etc), and control keys (Enter, Escape, Space, etc.) that are also found
on US keyboards.
Because I only have a Japanese keyboard, I don't know what keys are on
keyboards in other languages, how to type them, and what keycodes are output as
a result.
For this reason, you should not be able to enter umlauts, etc.

If possible, I would be grateful if you could add the settings specific to the
German keyboard to the "/usr/share/bhyve/kbdlayout/de" file.

This file has the following syntax.

'', hex (1byte); comment
hex (1or2byte), hex (1byte); comment

The first data is the state of the console that does not start Xorg, and if the
character is displayed by pressing the key, enter the character separated by
quotes.
If the control key does not display characters, enter the value of keysym
displayed when the corresponding key is entered with the xev command in
hexadecimal.
However, since umlauts are one letter in German, not control keys, I'm sorry I
don't know if they can be represented by Xorg's keysym.

For the second data, enter the scancode (type2) value of the keyboard of each
language corresponding to that key.
The value of scancode differs depending on the keyboard of each language, so
please check it with google etc.
Then write a semicolon to mark the end of the line.
The line after the semicolon is considered a comment.

I'm sorry I think it's difficult, but if you understand it, please set it.


> Also the bhyve_qemu_ext_key_event_msg patch doesn't apply cleanly on top of 
> the
> hyve_kbdlayout_option patch:
>
> Patching file bhyve/ps2kbd.c using Plan A...
> Hunk #1 succeeded at 185 (offset 7 lines).
> Hunk #2 failed at 339.
> Hunk #3 succeeded at 382 (offset 7 lines).
> Hunk #4 succeeded at 393 (offset 7 lines).
> 1 out of 4 hunks failed--saving rejects to bhyve/ps2kbd.c.rej

bhyve_kbdlayout_option_fbsd***.patch does not assume apply prior to
bhyve_qemu_ext_key_event_msg_fbsd***.patch.
For this reason, I'm sorry, but I would like you to apply
bhyve_qemu_ext_key_event_msg_fbsd***.patch first and then
bhyve_kbdlayout_option_fbsd***.patch to the original bhyve source code.


Finally, I launched the git site for this patch, and in addition to the patch,
I also released a tool to generate a layout file from a kbd file for FreeBSD's
vt, so please refer to it.
https://osdn.net/users/koinec/pf/bhyve_keyboard_layout_patch/wiki/FrontPage

Best regards.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: sysutils/uefi-edk2-bhyve isssue

2021-02-22 Thread The Doctor via freebsd-virtualization
On Mon, Feb 22, 2021 at 12:30:55AM -0700, Rebecca Cran wrote:
> Oh, yes - I???ve had problems building software with the gcc48 port installed 
> too. Similar to the build error reported.
> 
> Rebecca
> 
> Sent from my iPhone
> 
> > On Feb 21, 2021, at 11:40 PM, Dustin Marquess  wrote:
> > 
> > ???I had the same issue if the gcc48 port was installed, but removing
> > that somehow resolved it for me.
> > 
> > -Dustin
> > 
> >> On Mon, Feb 22, 2021 at 12:08 AM The Doctor via freebsd-virtualization
> >>  wrote:
> >> 
> >>> On Sun, Feb 21, 2021 at 09:38:29PM -0700, Rebecca Cran wrote:
> >>> On 2/18/2021 6:22 PM, The Doctor via freebsd-ports wrote:
>  ld-elf.so.1: /usr/local/lib/compat/libstdc++.so.6: version CXXABI_1.3.8 
>  required by 
>  /usr/ports/sysutils/uefi-edk2-bhyve/work/edk2-2e1e8c35f3178df95d79da81ac6deec242da74c2/BaseTools/Source/C/bin/VfrCompile
>   not found
>  make[2]: *** [GNUmakefile:315: 
>  /usr/ports/sysutils/uefi-edk2-bhyve/work/Build/BhyveX64/RELEASE_GCC5/X64/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib/DEBUG/BootMaintenanceManager.c]
>   Error 1
>  make[2]: Leaving directory 
>  '/usr/ports/sysutils/uefi-edk2-bhyve/work/Build/BhyveX64/RELEASE_GCC5/X64/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib'
>  
>  
>  build.py...
>   : error 7000: Failed to execute command
>  make tbuild 
>  [/usr/ports/sysutils/uefi-edk2-bhyve/work/Build/BhyveX64/RELEASE_GCC5/X64/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib]
>  BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py:654: 
>  ResourceWarning: unclosed file <_io.BufferedReader name=13>
>  ResourceWarning: Enable tracemalloc to get the object allocation 
>  traceback
> >>> 
> >>> What version of FreeBSD are you running? And what version of GCC?
> >>> 
> >> 
> >> 12.2 and I tried both GCC 9 and 10 !
> >> 

Just did a pkg delete in gcc48

> >>> 
> >>> --
> >>> Rebecca Cran
> >>> 
> >>> 
> >>> ___
> >>> freebsd-po...@freebsd.org mailing list
> >>> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> >>> To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
> >> 
> >> --
> >> Member - Liberal International This is doctor@@nl2k.ab.ca Ici 
> >> doctor@@nl2k.ab.ca
> >> Yahweh, Queen & country!Never Satan President Republic!Beware AntiChrist 
> >> rising!
> >> Look at Psalms 14 and 53 on Atheism 
> >> https://www.empire.kred/ROOTNK?t=94a1f39b
> >> NFLD on 13 Feb vote Liberal !
> >> ___
> >> freebsd-virtualization@freebsd.org mailing list
> >> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> >> To unsubscribe, send any mail to 
> >> "freebsd-virtualization-unsubscr...@freebsd.org"
> 
> 

-- 
Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
Yahweh, Queen & country!Never Satan President Republic!Beware AntiChrist rising!
Look at Psalms 14 and 53 on Atheism https://www.empire.kred/ROOTNK?t=94a1f39b  
NFLD on 13 Feb vote Liberal !
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: sysutils/uefi-edk2-bhyve isssue

2021-02-22 Thread The Doctor via freebsd-virtualization
On Mon, Feb 22, 2021 at 08:04:06AM -0700, The Doctor via freebsd-virtualization 
wrote:
> On Mon, Feb 22, 2021 at 12:30:55AM -0700, Rebecca Cran wrote:
> > Oh, yes - I???ve had problems building software with the gcc48 port 
> > installed too. Similar to the build error reported.
> > 
> > Rebecca
> > 
> > Sent from my iPhone
> > 
> > > On Feb 21, 2021, at 11:40 PM, Dustin Marquess  wrote:
> > > 
> > > ???I had the same issue if the gcc48 port was installed, but removing
> > > that somehow resolved it for me.
> > > 
> > > -Dustin
> > > 
> > >> On Mon, Feb 22, 2021 at 12:08 AM The Doctor via freebsd-virtualization
> > >>  wrote:
> > >> 
> > >>> On Sun, Feb 21, 2021 at 09:38:29PM -0700, Rebecca Cran wrote:
> > >>> On 2/18/2021 6:22 PM, The Doctor via freebsd-ports wrote:
> >  ld-elf.so.1: /usr/local/lib/compat/libstdc++.so.6: version 
> >  CXXABI_1.3.8 required by 
> >  /usr/ports/sysutils/uefi-edk2-bhyve/work/edk2-2e1e8c35f3178df95d79da81ac6deec242da74c2/BaseTools/Source/C/bin/VfrCompile
> >   not found
> >  make[2]: *** [GNUmakefile:315: 
> >  /usr/ports/sysutils/uefi-edk2-bhyve/work/Build/BhyveX64/RELEASE_GCC5/X64/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib/DEBUG/BootMaintenanceManager.c]
> >   Error 1
> >  make[2]: Leaving directory 
> >  '/usr/ports/sysutils/uefi-edk2-bhyve/work/Build/BhyveX64/RELEASE_GCC5/X64/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib'
> >  
> >  
> >  build.py...
> >   : error 7000: Failed to execute command
> >  make tbuild 
> >  [/usr/ports/sysutils/uefi-edk2-bhyve/work/Build/BhyveX64/RELEASE_GCC5/X64/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib]
> >  BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py:654:
> >   ResourceWarning: unclosed file <_io.BufferedReader name=13>
> >  ResourceWarning: Enable tracemalloc to get the object allocation 
> >  traceback
> > >>> 
> > >>> What version of FreeBSD are you running? And what version of GCC?
> > >>> 
> > >> 
> > >> 12.2 and I tried both GCC 9 and 10 !
> > >> 
> 
> Just did a pkg delete in gcc48
> 
> > >>> 
> > >>> --
> > >>> Rebecca Cran
> > >>> 
> > >>> 
> > >>> ___
> > >>> freebsd-po...@freebsd.org mailing list
> > >>> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> > >>> To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
> > >> 
> > >> --
> > >> Member - Liberal International This is doctor@@nl2k.ab.ca Ici 
> > >> doctor@@nl2k.ab.ca
> > >> Yahweh, Queen & country!Never Satan President Republic!Beware AntiChrist 
> > >> rising!
> > >> Look at Psalms 14 and 53 on Atheism 
> > >> https://www.empire.kred/ROOTNK?t=94a1f39b
> > >> NFLD on 13 Feb vote Liberal !
> > >> ___
> > >> freebsd-virtualization@freebsd.org mailing list
> > >> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> > >> To unsubscribe, send any mail to 
> > >> "freebsd-virtualization-unsubscr...@freebsd.org"
> > 
> > 
>

Same result and now looking to reinstall gcc48
in the csm version!

> -- 
> Member - Liberal International This is doctor@@nl2k.ab.ca Ici 
> doctor@@nl2k.ab.ca
> Yahweh, Queen & country!Never Satan President Republic!Beware AntiChrist 
> rising!
> Look at Psalms 14 and 53 on Atheism https://www.empire.kred/ROOTNK?t=94a1f39b 
>  
> NFLD on 13 Feb vote Liberal !
> ___
> freebsd-virtualization@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to 
> "freebsd-virtualization-unsubscr...@freebsd.org"

-- 
Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
Yahweh, Queen & country!Never Satan President Republic!Beware AntiChrist rising!
Look at Psalms 14 and 53 on Atheism https://www.empire.kred/ROOTNK?t=94a1f39b  
NFLD on 13 Feb vote Liberal !
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: sysutils/uefi-edk2-bhyve isssue

2021-02-22 Thread Rebecca Cran

On 2/22/2021 8:43 AM, The Doctor wrote:


Same result and now looking to reinstall gcc48
in the csm version!


I just installed a fresh copy of FreeBSD 12.2 and ran 'make' in 
/usr/ports/sysutils/uefi-edk2-bhyve and it completed without any errors.


I'm trying using synth next.


--
Rebecca Cran


___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: sysutils/uefi-edk2-bhyve isssue

2021-02-22 Thread Rebecca Cran

On 2/22/2021 9:21 PM, Rebecca Cran wrote:

On 2/22/2021 8:43 AM, The Doctor wrote:


Same result and now looking to reinstall gcc48
in the csm version!


I just installed a fresh copy of FreeBSD 12.2 and ran 'make' in 
/usr/ports/sysutils/uefi-edk2-bhyve and it completed without any errors.


I'm trying using synth next.


That worked too.

Do you have anything in /etc/make.conf that could be affecting the build?


--
Rebecca Cran


___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"