From: David I. <dm...@do...> - 2006-01-18 00:05:43
|
Michael, I've tried to get the code to work, and it compiles, but then LCD4Linux segfaults! I'm not entirely sure where or why this happens, but when run from the CVS source (from a few hours ago) directory as: $ ./lcd4linux -f ./lcd4linux.conf -vvF This is what I get as output: Version 0.10.1-CVS starting plugin_cfg.c: Variable minute = '60000' (60000) plugin_cfg.c: Variable tack = '100' (100) plugin_cfg.c: Variable tick = '500' (500) lcd4linux.c: initializing driver G-15 drv_G15.c: drv_G15_init(): entered drv_G15.c: drv_G15_start(): entered G-15: Scanning USB for G-15 keyboard... drv_G15.c: drv_G15_start(): clearing display drv_G15.c: drv_G15_update_img(): entered drv_G15.c: drv_G15_update_img(): left drv_G15.c: drv_G15_start(): done drv_G15.c: drv_G15_start(): left drv_G15.c: drv_G15_blit(): entered drv_G15.c: drv_G15_blit(): updating image drv_G15.c: drv_G15_update_img(): entered drv_G15.c: drv_G15_update_img(): left drv_G15.c: drv_G15_blit(): left drv_G15.c: drv_G15_blit(): entered drv_G15.c: drv_G15_blit(): updating image drv_G15.c: drv_G15_update_img(): entered drv_G15.c: drv_G15_update_img(): left drv_G15.c: drv_G15_blit(): left drv_G15.c: drv_G15_init(): left initializing layout 'Default' drv_G15.c: drv_G15_blit(): entered drv_G15.c: drv_G15_blit(): updating image drv_G15.c: drv_G15_update_img(): entered drv_G15.c: drv_G15_update_img(): left drv_G15.c: drv_G15_blit(): left lcd4linux.c: starting main loop Evaluator: internal error: unhandled token <256> Evaluator: internal error: unhandled token <0> uname: unknown field '' drv_G15.c: drv_G15_blit(): entered drv_G15.c: drv_G15_blit(): updating image drv_G15.c: drv_G15_update_img(): entered drv_G15.c: drv_G15_update_img(): left drv_G15.c: drv_G15_blit(): left Segmentation fault I've snipped out much of my debugging output, just leaving enough to show you when my functions begin and end. I'm running on Gentoo Linux with a 2.6.14-gentoo-r5 kernel on an Intel P4 3GHz. I wasn't running LCD4Linux as root. My configure command was: ./configure --with-drivers=G15 because the X11 driver was complaining about not being able to find its functions when linking, even though the includes seemed to be correct. My config file is the lcd4linux default config, with all Display sections removed and replaced with: Display G15 { Driver 'G-15' Port 'libusb' Size '160x43' Icons 1 } and only Layout 'default' enabled, although it doesn't seem to matter which layout I choose. Any suggestions? Sorry to be awkward! I'll send you the driver code if you want to look at it, but I don't think it's my code that's broken. Can't remember offhand how to create the complete patch though. Dave On Tue, 17 Jan 2006 08:08:33 -0000, Michael Reinelt <re...@eu...> wrote: > Hi Dave, > >> I've been working on getting the Logitech G-15 keyboard's graphical LCD >> display to work under Linux, and I've recently been linked to your >> page. It's a true USB display, and your site says to email you about >> inclusion. I currently use libusb to access the display, and set >> images. > Sounds cool! > >> What needs to be done to include the driver in your code? I must admit >> that I haven't written the base driver code yet, but I will do in the >> near future. > > There's a page at the Wiki named "How to write new drivers", I think > there's a quite good explanation. > > The most important point is that you do use the CVS version, otherwise > it's hard for me to apply your patches. > > as you're using libusb, which requires special handling with the > autoconf stuff, take a look at the BWCT section in drivers.m4 for how to > test for libusb availability. > > > If you have any further questions, feel free to ask! > > > bye, Michael > |