Pinebook Pro Revised Keyboard Firmware
#61
(10-15-2020, 10:22 AM)wrzomar Wrote: Is there a way to make Fn+F3 do what is suggested by its icon? I think it should send KEY_SWITCHVIDEOMODE defined in /usr/include/linux/input-event-codes.h file, but I can't find anything similar in include/keycodes.h.

EDIT:
OK, I 've figured it out. First I've changed keyboard firmware so it would send F15 when Fn+F3 is pressed, it will send 6a, then I've created file /etc/udev/hwdb.d/90-usb-kbd-custom.hwdb with contents:
Code:
evdev:input:b0003v258Ap001E*
  KEYBOARD_KEY_7006a=switchvideomode
It will translate F15 to KEY_SWITCHVIDEOMODE (but first I had to run: sudo systemd-hwdb update).
Now Fn+F3 works like Meta+P (in KDE).
I've tried with 0xBF because it was not used, but it was not send, either.

Thanks on the solution.
  Reply
#62
I am having issues with f 4-6. They seem to not work at all. There is no change in volume and nothing is displayed showing volume change.
  Reply
#63
(10-30-2020, 09:06 PM)erock22 Wrote: I am having issues with f 4-6. They seem to not work at all. There is no change in volume and nothing is displayed showing volume change.
Did you pressed Fn and one of these three keys or just them alone? You can use 
Code:
sudo showkey -s
or
Code:
sudo showkey -k
to display scancode or keycode of each key pressed. These commands will quit themselves 10s after last key pressed.
The second one should print out this:
Code:
keycode 113 press
keycode 113 release
keycode 114 press
keycode 114 release
keycode 115 press
keycode 115 release
if were pressed Fn+F4(mute), Fn+F5(volume down) and Fn+F6(volume up) or this:
Code:
^[OSkeycode  62 press
keycode  62 release
^[[15~keycode  63 press
keycode  63 release
^[[17~keycode  64 press
keycode  64 release
if F4, F5 and F6 were pressed alone.
  Reply
#64
Code:
keycode 113 press
keycode 113 release
keycode 114 press
keycode 114 release
keycode 115 press
keycode 115 release


Yes, I am holding fn and the f keys together. I get the same output as above when I run the command you suggested.
  Reply
#65
(10-31-2020, 08:25 PM)erock22 Wrote:
Code:
keycode 113 press
keycode 113 release
keycode 114 press
keycode 114 release
keycode 115 press
keycode 115 release


Yes, I am holding fn and the f keys together. I get the same output as above when I run the command you suggested.
These are the keycodes defined in /usr/include/linux/input-event-codes.h:

Code:
#define KEY_MUTE                113
#define KEY_VOLUMEDOWN          114
#define KEY_VOLUMEUP            115

It means the keyboard is working fine, the problem is the keys are not used to change volume in your system.
  Reply
#66
It means the keyboard is working fine, the problem is the keys are not used to change volume in your system.


Interesting, I have the same problem in both the stock Manjaro  OS and on Armbian from the SDcard.
  Reply
#67
I applied the suggested fix for this months ago.  Today, I installed a big update for Manjaro 20.10.  Something like 30 packages.  Upon reboot this issue remarkably appeared again.  I find that strange?  Worse yet that this now boots up with the numlock on!

Now:
pine-F9 =  keycode 69 -- should be "Print Screen" but is KEY_NUMLOCK
pine-F10 = keycode 70 -- should be "NumLK" but is KEY_SCROLLLOCK
pine-F11 = keycode 119 -- should be "ScrLK" but is KEY_PAUSE
pine-F12 = keycode 69 -- should be "Pause Break" but is KEY_NUMLOCK
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Photo PineBook Docking Deck charging port? ColoBill 3 386 3 hours ago
Last Post: Paull
  PineBook Pro 2.2 revision: Wishlist for the hardware issue fixes dsimic 34 4,792 02-24-2021, 01:25 AM
Last Post: esud
  Anyone have a microphone working on a Pinebook Pro? Rachel Stone 5 247 02-20-2021, 05:21 AM
Last Post: dsimic
  Microphone not working on Pinebook Pro vfr400racer 0 144 02-07-2021, 04:33 AM
Last Post: vfr400racer
Question Disassembling PineBook Pro Docking Deck (due to disappeared microSD card) gritibaenz 2 311 01-17-2021, 09:19 AM
Last Post: dsimic
  Pinebook Pro broken eDP connector Ocawesome101 4 542 01-16-2021, 11:42 PM
Last Post: dsimic
  Pinebook Pro screen failure? BBreeziN 1 403 01-08-2021, 03:21 PM
Last Post: member
  Spare parts / keyboard mbreese 2 421 01-07-2021, 07:40 AM
Last Post: dsimic
  Fix your Pinebook Pro speaker connection KC9UDX 7 1,417 01-07-2021, 02:09 AM
Last Post: ab1jx
  How to Fix Touch Capacitive Sticker on Pinebook Pro Trackpad? NM_ 4 612 12-17-2020, 06:26 AM
Last Post: KC9UDX

Forum Jump:


Users browsing this thread: 1 Guest(s)