Re: Can't input '\', '|', '_' symbol in Japanese keyboard

2020-02-25 Thread Minoru TANABE
Hi.

I applied ukbd.c patch, then rebuild world and kernel.
The result is "Every symbols on keyboard can input as I expected".

In attached file,  check result with the same procedure below are described.
See attachment file for detail.
It seems that my problem is fixed.

Thanks.

2020年2月25日(火) 21:06 Hans Petter Selasky :

> On 2020-02-25 12:37, Minoru TANABE wrote:
> > Hi, all.
> >
> > I rebuild my system, using current ukbd.c.
> > The results are same as Subject. No '\', no '|', no '_'.
> >
> > See attachment for detail.
> > Line240 shows "ugen0.3:  at usbus0 (disconnected)"
> >
> > I press keys '\', '|',(right of '^' '~')
> > '\', '_' (right of '/' ''?') order.
> >
> > I can't input underscore on console keyboard.
> > So, "usbconfig -d X.Y dump_device_desc" command was executed via ssh.
> >
> > Thank you.
> >
>
> Hi,
>
> It looks like the scancodes are bigger than 128, so this might be
> treated like a negative value. Solution: Use hid_get_data_unsigned().
>
> Can you try the attached patch?
>
> --HPS
>


-- 
mtan (Minoru TANABE)
EMail  kotana...@gmail.com
 
FreeBSD pico.mtan.com 12.1-STABLE FreeBSD 12.1-STABLE #0 r358300M: Wed Feb 26 
03:06:26 JST 2020 r...@pico.mtan.com:/usr/obj/usr/src/amd64.amd64/sys/PICO  
amd64
 
Path: /usr/src
Working Copy Root Path: /usr/src
URL: https://svn.freebsd.org/base/stable/12
Relative URL: ^/stable/12
Repository Root: https://svn.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 358300
Node Kind: directory
Schedule: normal
Last Changed Author: kib
Last Changed Rev: 358288
Last Changed Date: 2020-02-24 21:35:58 +0900 (月, 24  2月 2020)

---<>---
Copyright (c) 1992-2020 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.1-STABLE #0 r358300M: Wed Feb 26 03:06:26 JST 2020
r...@pico.mtan.com:/usr/obj/usr/src/amd64.amd64/sys/PICO amd64
FreeBSD clang version 9.0.1 (g...@github.com:llvm/llvm-project.git 
c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1)
VT(efifb): resolution 1920x1200
CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz (3696.15-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x906ea  Family=0x6  Model=0x9e  Stepping=10
  
Features=0xbfebfbff
  
Features2=0x7ffafbff
  AMD Features=0x2c100800
  AMD Features2=0x121
  Structured Extended 
Features=0x29c6fbf
  Structured Extended Features2=0x4000
  Structured Extended Features3=0x9c002400
  XSAVE Features=0xf
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
  TSC: P-state invariant, performance statistics
real memory  = 68719476736 (65536 MB)
avail memory = 66778271744 (63684 MB)
CPU microcode: updated from 0xb4 to 0xca
Event timer "LAPIC" quality 600
ACPI APIC Table: 
FreeBSD/SMP: Multiprocessor System Detected: 12 CPUs
FreeBSD/SMP: 1 package(s) x 6 core(s) x 2 hardware threads
random: unblocking device.
ioapic0  irqs 0-119 on motherboard
Launching APs: 1 7 6 10 11 8 9 2 3 4 5
Timecounter "TSC-low" frequency 1848072926 Hz quality 1000
random: entropy device external interface
000.24 [4336] netmap_init   netmap: loaded module
[ath_hal] loaded
module_register_init: MOD_LOAD (vesa, 0x8111b170, 0) error 19
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
kbd1 at kbdmux0
nexus0
efirtc0:  on motherboard
efirtc0: registered as a time-of-day clock, resolution 1.00s
cryptosoft0:  on motherboard
aesni0:  on motherboard
acpi0:  on motherboard
acpi0: Power Button (fixed)
cpu0:  on acpi0
hpet0:  iomem 0xfed0-0xfed003ff on acpi0
Timecounter "HPET" frequency 2400 Hz quality 950
Event timer "HPET" frequency 2400 Hz quality 350
Event timer "HPET1" frequency 2400 Hz quality 340
Event timer "HPET2" frequency 2400 Hz quality 340
Event timer "HPET3" frequency 2400 Hz quality 340
Event timer "HPET4" frequency 2400 Hz quality 340
Event timer "HPET5" frequency 2400 Hz quality 340
Event timer "HPET6" frequency 2400 Hz quality 340
Event timer "HPET7" frequency 2400 Hz quality 340
atrtc0:  port 0x70-0x77 irq 8 on acpi0
atrtc0: Warning: Couldn't map I/O.
atrtc0: registered as a time-of-day clock, resolution 1.00s
Event timer "RTC" frequency 32768 Hz quality 0
attimer0:  port 0x40-0x43,0x50-0x53 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1808-0x180b on acpi0
pcib0:  port 0xcf8-0xcff on acpi0
pci0:  on pcib0
pcib1:  irq 16 at device 1.0 on pci0
pci1:  on pcib1
vgapci0:  port 0xe000-0xe07f mem 
0xde00-0xdeff,0xc000-0xcfff,0xd000-0xd1ff irq 16 at 
device 0.0 on pci1
vgapci0: Boot video device
hdac0:  mem 0xdf08-0xdf083fff irq 17 at 
device 0.1 on pci1
xhci0:  mem 0xdf13-0xdf13 irq 16 
at 

Re: Can't input '\', '|', '_' symbol in Japanese keyboard

2020-02-25 Thread Minoru TANABE
Ok, I will try tomorrow.
# It's over 21:00 at JST-9, Sorry.

2020年2月25日(火) 21:06 Hans Petter Selasky :

> On 2020-02-25 12:37, Minoru TANABE wrote:
> > Hi, all.
> >
> > I rebuild my system, using current ukbd.c.
> > The results are same as Subject. No '\', no '|', no '_'.
> >
> > See attachment for detail.
> > Line240 shows "ugen0.3:  at usbus0 (disconnected)"
> >
> > I press keys '\', '|',(right of '^' '~')
> > '\', '_' (right of '/' ''?') order.
> >
> > I can't input underscore on console keyboard.
> > So, "usbconfig -d X.Y dump_device_desc" command was executed via ssh.
> >
> > Thank you.
> >
>
> Hi,
>
> It looks like the scancodes are bigger than 128, so this might be
> treated like a negative value. Solution: Use hid_get_data_unsigned().
>
> Can you try the attached patch?
>
> --HPS
>


-- 
mtan (Minoru TANABE)
EMail  kotana...@gmail.com
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Can't input '\', '|', '_' symbol in Japanese keyboard

2020-02-25 Thread Minoru TANABE
Hi, all.

I rebuild my system, using current ukbd.c.
The results are same as Subject. No '\', no '|', no '_'.

See attachment for detail.
Line240 shows "ugen0.3:  at usbus0 (disconnected)"

I press keys '\', '|',(right of '^' '~')
'\', '_' (right of '/' ''?') order.

I can't input underscore on console keyboard.
So, "usbconfig -d X.Y dump_device_desc" command was executed via ssh.

Thank you.
-- 
mtan (Minoru TANABE)
Phone 03-3601-3475
EMail  kotana...@gmail.com
uname -a:
FreeBSD pico.mtan.com 12.1-STABLE FreeBSD 12.1-STABLE #0 r358300: Tue Feb 25 
19:13:15 JST 2020 m...@pico.mtan.com:/usr/obj/usr/src/amd64.amd64/sys/PICO  
amd64
 
svnlite info /usr/src:
Path: /usr/src
Working Copy Root Path: /usr/src
URL: https://svn.freebsd.org/base/stable/12
Relative URL: ^/stable/12
Repository Root: https://svn.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 358300
Node Kind: directory
Schedule: normal
Last Changed Author: kib
Last Changed Rev: 358288
Last Changed Date: 2020-02-24 21:35:58 +0900 (月, 24  2月 2020)

dmesg: 
---<>---
Copyright (c) 1992-2020 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.1-STABLE #0 r358300: Tue Feb 25 19:13:15 JST 2020
m...@pico.mtan.com:/usr/obj/usr/src/amd64.amd64/sys/PICO amd64
FreeBSD clang version 9.0.1 (g...@github.com:llvm/llvm-project.git 
c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1)
VT(efifb): resolution 1920x1200
CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz (3696.17-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x906ea  Family=0x6  Model=0x9e  Stepping=10
  
Features=0xbfebfbff
  
Features2=0x7ffafbff
  AMD Features=0x2c100800
  AMD Features2=0x121
  Structured Extended 
Features=0x29c6fbf
  Structured Extended Features2=0x4000
  Structured Extended Features3=0x9c002400
  XSAVE Features=0xf
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
  TSC: P-state invariant, performance statistics
real memory  = 68719476736 (65536 MB)
avail memory = 66778271744 (63684 MB)
CPU microcode: updated from 0xb4 to 0xca
Event timer "LAPIC" quality 600
ACPI APIC Table: 
FreeBSD/SMP: Multiprocessor System Detected: 12 CPUs
FreeBSD/SMP: 1 package(s) x 6 core(s) x 2 hardware threads
random: unblocking device.
ioapic0  irqs 0-119 on motherboard
Launching APs: 1 11 10 6 7 4 5 8 9 2 3
Timecounter "TSC-low" frequency 1848084469 Hz quality 1000
random: entropy device external interface
000.24 [4336] netmap_init   netmap: loaded module
[ath_hal] loaded
module_register_init: MOD_LOAD (vesa, 0x8111b170, 0) error 19
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
kbd1 at kbdmux0
nexus0
efirtc0:  on motherboard
efirtc0: registered as a time-of-day clock, resolution 1.00s
cryptosoft0:  on motherboard
aesni0:  on motherboard
acpi0:  on motherboard
acpi0: Power Button (fixed)
cpu0:  on acpi0
hpet0:  iomem 0xfed0-0xfed003ff on acpi0
Timecounter "HPET" frequency 2400 Hz quality 950
Event timer "HPET" frequency 2400 Hz quality 350
Event timer "HPET1" frequency 2400 Hz quality 340
Event timer "HPET2" frequency 2400 Hz quality 340
Event timer "HPET3" frequency 2400 Hz quality 340
Event timer "HPET4" frequency 2400 Hz quality 340
Event timer "HPET5" frequency 2400 Hz quality 340
Event timer "HPET6" frequency 2400 Hz quality 340
Event timer "HPET7" frequency 2400 Hz quality 340
atrtc0:  port 0x70-0x77 irq 8 on acpi0
atrtc0: Warning: Couldn't map I/O.
atrtc0: registered as a time-of-day clock, resolution 1.00s
Event timer "RTC" frequency 32768 Hz quality 0
attimer0:  port 0x40-0x43,0x50-0x53 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1808-0x180b on acpi0
pcib0:  port 0xcf8-0xcff on acpi0
pci0:  on pcib0
pcib1:  irq 16 at device 1.0 on pci0
pci1:  on pcib1
vgapci0:  port 0xe000-0xe07f mem 
0xde00-0xdeff,0xc000-0xcfff,0xd000-0xd1ff irq 16 at 
device 0.0 on pci1
vgapci0: Boot video device
hdac0:  mem 0xdf08-0xdf083fff irq 17 at 
device 0.1 on pci1
xhci0:  mem 0xdf13-0xdf13 irq 16 
at device 20.0 on pci0
xhci0: 32 bytes context size, 64-bit DMA
usbus0: waiting for BIOS to give up control
xhci_interrupt: host controller halted
usbus0 on xhci0
usbus0: 5.0Gbps Super Speed USB v3.0
pci0:  at device 22.0 (no driver attached)
ahci0:  port 
0xf050-0xf057,0xf040-0xf043,0xf020-0xf03f mem 
0xdf148000-0xdf149fff,0xdf14c000-0xdf14c0ff,0xdf14b000-0xdf14b7ff irq 16 at 
device 23.0 on pci0
ahci0: AHCI v1.31 with 6 6Gbps ports, Port Multiplier not supported
ahcich0:  at channel 0 on ahci0
ahcich1:  at channel 1 on ahci0
ahcich2:  at channel 2 on ahci0
ahcich3: 

Re: Can't input '\', '|', '_' symbol in Japanese keyboard

2020-02-25 Thread Minoru TANABE
O.K.
I'll rebuild my system and check them.
Please wait for a result.

BTW, "plug the keyboard" means "Physically detach and attach the keyboard" ?

Thank you for your reply.

2020年2月25日(火) 17:41 Hans Petter Selasky :

>
> Hi,
>
> Can you enable ukbd debug in 12-stable?
>
> sysctl hw.usb.ukbd.debug=20
>
> Then plug the keyboard and then press \ | _ symbols and send me the
> resulting dmesg.
>
> Also:
>
> usbconfig -d X.Y dump_device_desc
>
> Where X.Y are the numbers after ugen
>
> --HPS
>


-- 
mtan (Minoru TANABE)
EMail  kotana...@gmail.com
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Can't input '\', '|', '_' symbol in Japanese keyboard

2020-02-24 Thread Eugene Grosbein
25.02.2020 4:37, Minoru TANABE wrote:

CC'ing to author of mentioned revision.

> Hi, all.
> I'm 12-stable user.
> My system upgrade from 12.1-stable_r357351(2020-02-01) to
> r358294(2020-02-24).
> After upgrading, I can't input '\', '|', '_' symbol.
> 
> I use vt console driver and jp.capsctrl.kbd keymap.
> These symbols are defined as scancode 115 and 125 in keymap.
> I checked source, and find /stable/12/sys/dev/usb/input/ukbd.c was changed.
> I revert Revision 358211
> (Modified
> Fri Feb 21 08:30:34 2020 UTC) to Revision 356020
> (Modified
> Sun Dec 22 19:06:45 2019 UTC),
> everything works fine.
> Does anyone have better workaround?
> 
> I'm poor at English, excuse me.
> Thanks.
> 

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