New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am getting "FATAL: Module ads7846_device not found." #260
Comments
The latest kernel doesn't have ads7846_device anymore. The same can be achieved with a Device Tree overlay. Lookup ads7846-overlay in /boot/overlays/README |
Hi Notro. I have the TS working now, by loading ads7846-overlay.dtb. The only issue I still having is that in order to avoid having the X axe inverted, I have to to execute the comand: $ DISPLAY=:0 xinput --set-prop 'ADS7846 Touchscreen' 'Evdev Axis Inversion' 1 0 It works ok if I run this command from a terminal within the session. However if I add this line to /etc/X11/xinit/xinitrc (before $. /etc/X11/Xsession), it has no effect. Where else can I place this command?. Thanks again for your help, and all the work you have put on fbtft. |
Try /etc/xdg/lxsession/LXDE-pi/autostart You can also use xinput-calibrator: https://github.com/notro/fbtft/wiki/FBTFT-on-Raspian#x-windows-touch-calibration |
Hi folks, Screen works fine but can't get the touch bit working. end of config.txt: device_tree=ads7846-overlay.dtb end of /etc/modules: flexfb nobacklight width=480 height=320 regwidth=16 init=-1,0xb0,0x0,-1,0x11,-2,250,-1,0x3A,0x55,-1,0xC2,0x44,-1,0xC5,0x00,0x00,0x00,0x00,-1,0xE0,0x0F,0x1F,0x1C,0x0C,0x0F,0x08,0x48,0x98,0x37,0x0A,0x13,0x04,0x11,0x0D,0x00,-1,0xE1,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0xE2,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0x36,0x28,-1,0x11,-1,0x29,-3 reboot $sudo vcdbg log msg 001068.180: Read command line from file 'cmdline.txt' 001069.109: Loading 'kernel.img' from SD card so it looks like the message dtoverlay_merge_overlay('ads7846') failed - err -1 is failing and there also is another error line in there: I don't know what to try next although lsmod does show the module is loaded it just isn't being used by anything and there is no INPUT driver and no touch control. $lsmod Any help greatly received john |
Hi John. I am not very advanced fbtft or Linux user but here are my recomendations:
https://github.com/raspberrypi/linux/blob/rpi-3.18.y/arch/arm/boot/dts/ads7846-overlay.dts the instructions for compiling the dtb are here: https://github.com/notro/fbtft/wiki/FBTFT-RPI-overlays
|
@Ferite config.txt dtdebug=1 Anyway all working now |
Hi.
I have installed a HY28A display to my Raspberry Pi B+, and I am having problems getting the Touchpanel to work. As the TFT worked without problems with the standard Foundation image, I just compiled the touch driver (runned make in the ads7846_device directory) and then installed them.
As I have not clear how installed then I just copied the resulting ads7846_device.ko in /lib/modules/3.18.0-trunk-rpi/kernel, and then runned $depmod in that directory. Then I tried to run the instruction in https://github.com/notro/fbtft/wiki/Touchpanel:
$sudo modprobe ads7846
Seems to work ok.
$sudo modprobe ads7846_device
Produces "FATAL: Module ads7846_device not found."
If I run:
$lsmod
I get ads7846 listed (not ads7846_device, off course) .
If I run:
$dmesg | grep -i ads7846
I don't get any message.
I hope I can get some help about what I am doing wrong.
Thanks.
The text was updated successfully, but these errors were encountered: