Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • pmaports pmaports
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 635
    • Issues 635
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 58
    • Merge requests 58
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • postmarketOSpostmarketOS
  • pmaportspmaports
  • Issues
  • #1444
Closed
Open
Issue created Feb 25, 2022 by Adam@elagostContributor

linux-postmarketos-allwinner: build kb151 as module? (Suggestion)

Currently pinephone keyboard is unable to be added after the phone has booted. Using it requires a full reboot. If it was a module, one could run modprobe -r kb151;modprobe kb151 and be able to use the keyboard without reboot. Mobian works like this currently. https://gitlab.com/mobian1/devices/sunxi64-linux/-/blob/mobian-5.15/debian/patches/defconfig/0223-pine64_defconfig-enable-Pine64-keyboard-case-and-re-.patch#L45

The change would be to change this line: https://gitlab.com/postmarketOS/pmaports/-/blob/master/device/main/linux-postmarketos-allwinner/config-postmarketos-allwinner.aarch64#L1999 to CONFIG_KEYBOARD_KB151=m to make kb151 a module. I don't build kernels frequently so I'm not sure if this will work as intended or if there's a reason for it to be builtin.

What's the expected behaviour?

When pinephone keyboard is added after boot, modprobe -r kb151;modprobe kb151 should be able to reload the module and rediscover the keyboard.

What's the current behaviour?

kb151 is builtin, so it cannot be unloaded.

How to reproduce your issue?

Boot pinephone. Attach keyboard. Try to press keys and see it doesn't work. Try to unload/reload module - doesn't work because kb151 is builtin.

What device are you using?

pine64-pinephone

On what postmarketOS version did you encounter the issue?

  • edge (master branch)
  • v21.12

On what environment did you encounter the issue?

Phone environments

  • Phosh
  • Plasma Mobile
  • Sxmo (Wayland/Sway)

Other

  • No environment
  • GNOME
  • KDE Plasma
  • Kodi
  • MATE
  • Shelli
  • Sway
  • Weston
  • Xfce4
  • fbkeyboard
  • i3wm
  • Sxmo (Xorg/Dwm)

How did you get postmarketOS image?

  • from https://images.postmarketos.org
  • I built it using pmbootstrap
  • It was preinstalled on my device

What's the build date of the image? (in yyyy-mm-dd format)

Additional information

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking