Hi, working on a driver/library for a USB keyboard in C/C++
When i'm issuing this with libusb;
Code:
libusb_set_auto_detach_kernel_driver(device_handle, 1);
libusb_claim_interface(device_handle, 0);
...
...
libusb_release_interface(device_handle, 0);
libusb_close(device_handle);
libusb_exit(NULL);
As the kernel driver is reattached, all the xorg related settings for the keyboard are reset?
For example in my window manager startup commands i have these:
Code:
setxkbmap gb
xset r rate 400 25
But those settings are reset each time i'm running those function in a libusb program, and i end up on a US keyboard layout. Is there some way to stop this happening?
Possibly, i may need to include an xorg header to grab the current settings, and reapply them at the end of the program? But i'm not sure how to go about that if that
is a potential solution...
Any help would be much appreciated, thanks.