Open fredfortier opened 5 years ago
did you push program button on the pcb?
You should get output like below in /var/log/kern.log or other log file when you press the button.
Jun 20 10:18:36 desk kernel: [2251082.558167] usb 3-3.2: USB disconnect, device number 70
Jun 20 10:18:36 desk kernel: [2251083.034435] usb 3-3.2: new full-speed USB device number 71 using xhci_hcd
Jun 20 10:18:36 desk kernel: [2251083.184019] usb 3-3.2: New USB device found, idVendor=03eb, idProduct=2ff4
Jun 20 10:18:36 desk kernel: [2251083.184023] usb 3-3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jun 20 10:18:36 desk kernel: [2251083.184026] usb 3-3.2: Product: ATm32U4DFU
Jun 20 10:18:36 desk kernel: [2251083.184028] usb 3-3.2: Manufacturer: ATMEL
Jun 20 10:18:36 desk kernel: [2251083.184030] usb 3-3.2: SerialNumber: 1.0.0
did you push program button on the pcb
I'm ashamed to say that I don't know what this means. Are you referring to the red button on the back of the Hasu controller?
yes, the red button. Refer to this also. https://github.com/tmk/tmk_keyboard/wiki#flash-firmware
Same problem:
$ sudo dfu-programmer atmega32u4 erase --force
dfu-programmer: no device present.
I unplugged cable and plugged in back when holding the red button. I can tell that it booted in an alternate mode because I could no longer use the keyboard. However, I got the same error when typing the command above my built-in keyboard.
It looks like the OS isn't releasing the device properly when I press the red button.
Jun 24 11:21:29 localhost.localdomain kernel: usb 1-3.1.7.2: USB disconnect, device number 16
Jun 24 11:21:29 localhost.localdomain gnome-shell[6277]: Could not release device (13,80): GDBus.Error:org.freedesktop.login1.DeviceNotTaken: Device not taken
Here is what happens after I reset it (without the red button):
Jun 24 11:22:37 localhost.localdomain kernel: usb 1-3.1.7.2: new full-speed USB device number 17 using xhci_hcd
Jun 24 11:22:37 localhost.localdomain kernel: usb 1-3.1.7.2: New USB device found, idVendor=feed, idProduct=cafe, bcdDevice= 1.04
Jun 24 11:22:37 localhost.localdomain kernel: usb 1-3.1.7.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jun 24 11:22:37 localhost.localdomain kernel: usb 1-3.1.7.2: Product: HHKB mod
Jun 24 11:22:37 localhost.localdomain kernel: usb 1-3.1.7.2: Manufacturer: t.m.k.
Jun 24 11:22:37 localhost.localdomain kernel: input: t.m.k. HHKB mod as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1.7/1-3.1.7.2/1-3.1.7.2:1.0/0003:FEED:CAFE.001D/input/input54
Jun 24 11:22:37 localhost.localdomain kernel: hid-generic 0003:FEED:CAFE.001D: input,hidraw5: USB HID v1.11 Keyboard [t.m.k. HHKB mod] on usb-0000:00:14.0-3.1.7.2/input0
Jun 24 11:22:37 localhost.localdomain kernel: input: t.m.k. HHKB mod as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1.7/1-3.1.7.2/1-3.1.7.2:1.1/0003:FEED:CAFE.001E/input/input55
Jun 24 11:22:37 localhost.localdomain kernel: hid-generic 0003:FEED:CAFE.001E: input,hidraw6: USB HID v1.11 Mouse [t.m.k. HHKB mod] on usb-0000:00:14.0-3.1.7.2/input1
Jun 24 11:22:37 localhost.localdomain kernel: input: t.m.k. HHKB mod System Control as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1.7/1-3.1.7.2/1-3.1.7.2:1.2/0003:FEED:CAFE.001F/input/input56
Jun 24 11:22:37 localhost.localdomain kernel: input: t.m.k. HHKB mod Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1.7/1-3.1.7.2/1-3.1.7.2:1.2/0003:FEED:CAFE.001F/input/input57
Jun 24 11:22:37 localhost.localdomain kernel: hid-generic 0003:FEED:CAFE.001F: input,hidraw7: USB HID v1.11 Device [t.m.k. HHKB mod] on usb-0000:00:14.0-3.1.7.2/input2
Jun 24 11:22:37 localhost.localdomain kernel: hid-generic 0003:FEED:CAFE.0020: hiddev98,hidraw8: USB HID v1.11 Device [t.m.k. HHKB mod] on usb-0000:00:14.0-3.1.7.2/input3
Jun 24 11:22:37 localhost.localdomain kernel: input: t.m.k. HHKB mod as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1.7/1-3.1.7.2/1-3.1.7.2:1.4/0003:FEED:CAFE.0021/input/input58
Jun 24 11:22:37 localhost.localdomain kernel: hid-generic 0003:FEED:CAFE.0021: input,hidraw9: USB HID v1.11 Keyboard [t.m.k. HHKB mod] on usb-0000:00:14.0-3.1.7.2/input4
Jun 24 11:22:37 localhost.localdomain mtp-probe[3081]: checking bus 1, device 17: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1.7/1-3.1.7.2"
Jun 24 11:22:37 localhost.localdomain mtp-probe[3081]: bus: 1, device: 17 was not an MTP device
Jun 24 11:22:37 localhost.localdomain systemd-logind[1677]: Watching system buttons on /dev/input/event15 (t.m.k. HHKB mod System Control)
Jun 24 11:22:37 localhost.localdomain systemd-logind[1677]: Watching system buttons on /dev/input/event13 (t.m.k. HHKB mod)
Jun 24 11:22:37 localhost.localdomain systemd-logind[1677]: Watching system buttons on /dev/input/event17 (t.m.k. HHKB mod)
Jun 24 11:22:37 localhost.localdomain mtp-probe[3149]: checking bus 1, device 17: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1.7/1-3.1.7.2"
Jun 24 11:22:37 localhost.localdomain mtp-probe[3149]: bus: 1, device: 17 was not an MTP device
Jun 24 11:22:37 localhost.localdomain systemd-logind[1677]: Watching system buttons on /dev/input/event16 (t.m.k. HHKB mod Consumer Control)
Please let me know if anything stands out as abnormal. If not, I'll try restarting the OS without the keyboard on. How do I verify that Hasu is using an atmega32u4
microcontroller? Or is it just well-known that all their controllers use this chip?
Yes, TMK HHKB Alt Controller uses 'atmega32u4'.
Just plug usb cable normally and then push the button to start bootloader(program/flash mode).
Do you see a line like below in output of 'lsusb' command?
$ lsusb
...
Bus 003 Device 049: ID 03eb:2ff4 Atmel Corp. atmega32u4 DFU bootloader
...
which os are you using?
'mtp-probe' or 'systemd-logind' may cause, you can try removing these.
I have seen 'mtp' or something like that before and don't have it on my ubuntu now at least. It is called as 'mtp-tools' package in ubuntu. I never seen 'systemd-logind' in my os, stopping/removing this may be worth to try if possible. Not possible probably.
And can you post some closeup pics of your controller to check if there are any hardware problem, perhaps ?
Just plug usb cable normally and then push the button to start bootloader(program/flash mode).
That's what I'm doing but the removing issues occur after pushing the button.
Do you see a line like below in output of 'lsusb' command?
No
which os are you using?
Fedora 30
I'll try plugging the keyboard after a system restart to see if it resolves the remove issue. I'll also try on my other Thinkpad which is running Debian. If none of those work, I'll re-open the keyboard and take the pics.
Also try it on Windows if possible.
I'm trying to configure the Hasu USB controller installed in my HHKB Pro 2. I'm unfamiliar with the HHKB internals so I'm just naively following the instructions. I'm using Linux on a recent Thinkpad X1 (also tried with an X400). My HHKB Pro 2 is connected to the computer via the USB port of the Hash controller. Here what happens when I type following command from the HHKB:
I have no idea where to go from here. Any pointers would be appreciated.