mirror of
https://xff.cz/git/pinephone-keyboard
synced 2024-12-21 20:38:48 -05:00
ENOENT means the i2c userspace device driver is missing
This commit is contained in:
parent
75b7cdaed2
commit
f681795424
2
common.c
2
common.c
@ -231,7 +231,7 @@ static int pogo_i2c_open(void)
|
||||
|
||||
int fd = open(path, O_RDWR);
|
||||
if (fd < 0 && errno == ENOENT)
|
||||
printf("WARNING: The distribution you are using probably uses the kernel driver for pinephone keyboard, and is blocking access to the POGO I2C from userspace. You need to disable the driver to gain access.\n");
|
||||
printf("WARNING: You may need to load the i2c-dev module (modprobe i2c-dev).\n");
|
||||
syscall_error(fd < 0, "open(%s) failed", path);
|
||||
|
||||
return fd;
|
||||
|
Loading…
Reference in New Issue
Block a user