Skip to content

some comments trying to make keebie run #34

@ZaidaZadkiel

Description

@ZaidaZadkiel

is issue: no

Issue description

Im trying to use a NEC point-of-sale keyboard
OS: Linux Mint 20.1 x86_64
Kernel: 5.11.0-27-generic

Tried just installing python3-evdev didnt work, had to use
pip install evdev

Then right after installing the permission for the /dev/input was not set properly, i read elsewhere it could fix with log-out or reboot, so i tried rebooting and it read proper

Next the NEC keyboard has no leds in hardware, and keebie uses a hardcoded index 17 in line L#311

            leds = self.device.capabilities()[17] # Get a list of LEDs the device has

added a line and increased tab space on the rest of this scope

            if(17 in self.device.capabilities().keys()):
                leds = self.device.capabilities()[17] # Get a list of LEDs the device has
                ...

next running
keebie --install
breaks with error because it attempts to copy files that already exists, added on L#1011

def firstUses(): # Setup to be run when a user first runs keebie
    if os.path.exists(dataDir):
        print("files already installed in ", dataDir)
        return
    shutil.copytree(installDataDir + "data/", dataDir) # Copy template configuration files to user
    print(f"configuration files copied from {installDataDir}/data/ to {dataDir}") # And inform the user

next, because of the reboot the evdev input id number changed from what it autodetected (input30) and running
keebie --detect
returns /dev/input//event2

Then edited the files by hand in /home/zaida/.config/keebie/
Suggestion that i have no idea how to make: use /dev/input/by-id/* instead of input/event*

then running as root
sudo chown zaida /dev/input/event2

then running keebie works properly. This last part is probably fixed with editing the udev rules but i havent rebooted and idek lel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions