- Saved searches
- Use saved searches to filter your results more quickly
- haloboy777/keyboard-driver
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- About
- Saved searches
- Use saved searches to filter your results more quickly
- raleighlittles/Linux_Obscure_Keyboards_Drivers
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- About
- How to install Mac keyboard and trackpad drivers
- 2 Answers 2
- Preparation
- Installation
- Making the modules load at boot time — optional
- Configuring the Touchbar module
- Fixing suspend
- Possible Issues
- Saved searches
- Use saved searches to filter your results more quickly
- raleighlittles/Linux_Obscure_Keyboards_Drivers
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- About
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Implementation of linux USB keyboard driver for Even sem evaluation.
haloboy777/keyboard-driver
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
NOTICE: THIS CODE is not working. I am not sure what changed in recent times. but this project doesn’t work.
Implementation of linux USB keyboard driver for Even sem evaluation. Major code has been inspired from linux kernel USB keyboard driver.
sudo make sudo insmod usbkbd.ko
Generally this will not work cause the inbuilt module will always be called first by the usbcore. So to make it work. Install libhid module on your linux PC. By installing libhid, You will also automatically install a programme named
and then its all easy-peasy, type the following commands
sudo libhid-detach-device [VENDOR ID]:[PRODUCT ID] sudo insmod usbkbd.ko [remove it first if you already inserted the driver first and insert it again]
Type to your heart’s content.. 😀
Some links for further read
- Use ‘sudo modprobe usbmon’ and then wireshark to monitor ‘usbmon/usbmon0’ to capture USB request block for better understanding
- Insert print statemnets in the usbkbd.c code to print the scancode of the key as it is pressed. THIS WILL GREATLY HELP YOU TO MAP THE KEYBOARD.
- Use a USB keyboard if its not obvious by this point, Because if you tamper with your original PC keyboard which is driven by atkbd.c in the kernel you will have to reinstall the whole kernel via SSh (belive me you don’t want that headache if you are on a deadline/or use a virtual machine[lol])
If you have any questions hit me up in issues.
About
Implementation of linux USB keyboard driver for Even sem evaluation.
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
My collection of Linux keyboard drivers for older/niche keyboards
raleighlittles/Linux_Obscure_Keyboards_Drivers
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
This repository contains some keyboard drivers for particularly old or niche keyboards. These keyboards have legacy buttons and such that aren’t supported by the regular kernel driver, hence the need for a separate one.
Each directory has it’s own README.
About
My collection of Linux keyboard drivers for older/niche keyboards
How to install Mac keyboard and trackpad drivers
I have recently installed Ubuntu on my Mac book Pro 2016, and noticed that the built in keyboard, and the track-pad are frozen. I have looked up how to install the drivers but I don’t understand a how to use GitHub and got lost really quick. What is the fastest way I can get these drivers installed and working? I am using an external keyboard and mouse for now but would not like to in the long run.
After spending many hours on the exact same issue, I finally ran across this link: wiki.t2linux.org/guides/dkms/#installing-modules I am using a Macbook 15,1 (15″ 2018 MBP) and Ubuntu 20.04.
2 Answers 2
Note that two of the steps (about loading the modules either at boot or immediately) are optional (and have been marked as such), and should not be necessary for Ubuntu.
Preparation
First install the dkms module
Next check that your kernel isn’t outdated (or your distribution uses different module versions from those used later) by running:
dkms status or ls -l /usr/src
If the version of apple-bce is 0.1 then uninstall the old modules (to avoid incompatibility issues):
sudo dkms uninstall -m apple-bce -v 0.1 sudo dkms uninstall -m apple-ibridge -v 0.1 sudo rm -r /usr/src/apple-bce-0.1 sudo rm -r /usr/src/apple-ibridge-0.1 sudo rm -r /var/lib/dkms/apple-bce sudo rm -r /var/lib/dkms/apple-ibridge
Installation
- Install the BCE (Buffer Copy Engine) module for Keyboard and Audio
- If you are on Arch, then use Aunali1’s apple-bce-dkms-git package
- Otherwise, run
sudo git clone https://github.com/t2linux/apple-bce-drv /usr/src/apple-bce-r183.c884d9c
PACKAGE_NAME="apple-bce" PACKAGE_VERSION="r183.c884d9c" MAKE[0]="make KVERSION=$kernelver" CLEAN="make clean" BUILT_MODULE_NAME[0]="apple-bce" DEST_MODULE_LOCATION[0]="/kernel/drivers/misc" AUTOINSTALL="yes"
- Run sudo git clone https://github.com/t2linux/apple-ib-drv /usr/src/apple-ibridge-0.1
- Run sudo dkms install -m apple-ibridge -v 0.1 . If on a live ISO, use sudo dkms install -m apple-ibridge -v 0.1 -k x.x.x-mbp instead and change x.x.x-mbp to the kernel that you have installed, as by default dkms will try to build the module for the kernel that the live ISO is using, which will most likely be older.
sudo modprobe apple_bce sudo modprobe apple_ib_tb sudo modprobe apple_ib_als
The touchbar and the keyboard should now work.
For audio some additional configuration is required, see Audio config files.
Making the modules load at boot time — optional
In Ubuntu, these should already be set:
echo "apple-bce apple-ib_tb apple-ib-als brcmfmac" >> /etc/modules-load.d/t2.conf
If you don’t want (for example) the touch bar modules, you can omit them from this command. brcmfmac is needed to use the internal Wi-Fi chip, refer to the Wi-Fi guide for details on how to set that up.
Configuring the Touchbar module
The Touchbar module offers some modes to set. In /etc/modprobe.d/apple-tb.conf , set fnmode (options apple-ib-tb fnmode=x) to one of the following options:
- 0: Only show F1-F12
- 1: Show media and brightness controls, use the fn key to switch to F1-12
- 2: Show F1-F12, use the fn key to switch to media and brightness controls
- 3: Only show media and brightness controls
- 4: Only show the escape key
Fixing suspend
#!/bin/sh if [ "$" = "pre" ]; then modprobe -r apple_ib_tb hid_apple elif [ "$" = "post" ]; then modprobe hid_apple apple_ib_tb fi
sudo chmod 755 /lib/systemd/system-sleep/rmmod_tb.sh sudo chown root:root /lib/systemd/system-sleep/rmmod_tb.sh
This unloads the Touchbar modules as they can cause issues for suspend.
Possible Issues
The apple_ib_als module can cause issues, if you find your computer hanging at shutdown, or having BCE errors at boot, try blacklisting it by running
sudo sh -c "echo blacklist apple-ib-als" >> /etc/modprobe.d/blacklist.conf
or removing it from /etc/modules-load.d/t2.conf .
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
My collection of Linux keyboard drivers for older/niche keyboards
raleighlittles/Linux_Obscure_Keyboards_Drivers
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
This repository contains some keyboard drivers for particularly old or niche keyboards. These keyboards have legacy buttons and such that aren’t supported by the regular kernel driver, hence the need for a separate one.
Each directory has it’s own README.
About
My collection of Linux keyboard drivers for older/niche keyboards