How to load linux driver module in java

Hi
I am currently trying to load a Linux driver module dynamically from java to enable some kind of wireless communication using the System.load() method. But unfortunately, the module is a .ko file rather than a dynamic loadable library .so file in Linux, So that when I try to load this module, I get an error:
Can't load IA 32-bit .so on a IA 32-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
at java.lang.Runtime.load0(Runtime.java:769)
at java.lang.System.load(System.java:968)
at test.main(test.java:10)
I wonder if this error is caused purely by the type of file or there might be some other reasons? It seems that all the linux drivers are .ko files, can any one help me to figure out a way of loading such linux drivers?
Thank you
Song

Can any one give me some hint?
I am thinking about one possible solution: write a c program to load this module, then compile the c program to be a shared object library, and use jni to load this shared object library.
Does this work?
Thank you

Similar Messages

  • How to load specific driver for specific device not having PnP-ID?

    Hello,
    as mentoined in a previous post I'm up to adapt an exisiting PCMCIA-based PC Card driver so that it can be used with a PCMCIA/USB adaptor (by using it's driver's IOCTLs), and already had
    some success on it: My driver loads and I can read files (for example, in Windows Explorer) from the card as it did before in "PCMCIA version" (I intend to support both with the same driver, which seems
    to work at the moment). As it did before, the driver currently creates a MTD (memory technology device). My main "problem" is how to load the driver.
    The situation is a bit complicated, I try to give as much details as possible.
    For better understanding
    The PCMCIA/USB adaptor's driver usually has following device stack: PCMCIA/SUB adaptors driver -> USB mass storage device (USBSTOR.SYS) -> Diskdrive (DISK.SYS [->PARTMGR.SYS]). For more ease - to see if my driver works in general - I installed my driver
    via INF using the PnP ID of the "USB mass storage device", with other words I "replaced" the USB mass storage driver with my own driver.
    This is my problem
    This means - and that is currently my problem - that may driver gets loaded regardless of what is attached to the PCMCIA/USB adaptor. Usually, when attached to PCMCIA, the PC card has a PnP ID the driver can be assigned to. In my case, I have no PnP ID for
    the PC card, and the driver may stop because the attached device is not supported The driver will unload properly, but the device remains with error code (in device manager).
    What I want to avoid
    I already thought about filter drivers between USBSTOR and the PCMCIA/USB adaptor's driver (#1), or above the USB mass storage device (#2). If I'm correct, that means that I have to handle URB/CBW requests for case #1 or at least SCSI requests for case #2 -
    but I'm currently not familiar with filter drivers, URB/CBW and/or SCSI. Porting the driver was quiete frustating until yet and I had to get familiar with a couple of technologies that belongs to the driver's functinaliy itselfs -
    I hope you understand that I want to avoid getting familiar with more technologies than required.
    I think there must be a way to check the device (PC card) at the PCMCIA/USB adaptor
    before my driver will be loaded, as well as removing the deivce completely if the PC card was removed (so that it disappears in device manager). But I'm currently have no idea how to do that. Is it possible to
    load my driver along the device/driver stack usually created by the PCMCIA/USB adaptor's driver?
    Some answerers likes to refer to WDK documentation and samples. In such case - because of their complexity, it would be nice to get a hint about where to start.
    Have much thanks in before for any suggestions!
    Regards,
    Willi K.

    Today's memory cards (like CFC) manage their FTL (flash translation layer) in their firmware. Our PC card is quiete old technology and does not have such firmware, this is why Windows cannot recognize the file system (FAT). For example, a request to offset
    0 may be somewhere else on our PC Card.
    I followed your suggestion and used the HWID of device that appears "above" the USB mass storage device, and my driver seems to work as it did before - OK, made no difference.
    But if my driver does not recognize the card (because it is not present or it is another PCMCIA device -> STATUS_NOT_SUPPORTED or STATUS_NO_MEDIA in driver entry), and the device is shown with exclamation mark in device manager.
    Two questions remain:
    - How can I ensure that other drivers may attach if my driver does not support the device inserted in the adapter?
    - How can I force a "re-check" of my driver if there was no card present when driver was loaded?? -> Note: A disk drive always appears in device manager - regardless if a device is attached to the apator or not

  • Cannot load nvidia driver module [SOLVED]

    OK so for some reason I can no longer load the nvidia (proprietary) driver.
    I have a laptop with optimus, on board intel and discrete nvidia GTX680M. I use this laptop for cuda development so I don't care about games etc, I just need the driver loaded to debug and run my cuda  apps. bbswitch still works fine as does bumblebee which I don't use normally but I do have it setup and running in case. Also I didn't really work much on coding last week so not sure exactly when this started.
    So here is what happens when I try to insert the nvidia module or use optirun:
    $ sudo modprobe nvidia
    modprobe: ERROR: could not insert 'nvidia': No such device
    $ sudo insmod nvidia
    insmod: ERROR: could not load module nvidia: No such file or directory
    $ optirun -vv glxspheres
    [ 27.485342] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
    [ 27.485506] [INFO]Configured driver: nvidia
    [ 27.485635] [DEBUG]optirun version 3.2.1 starting...
    [ 27.485642] [DEBUG]Active configuration:
    [ 27.485645] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
    [ 27.485662] [DEBUG] X display: :8
    [ 27.485674] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia:/usr/lib32/nvidia
    [ 27.485676] [DEBUG] Socket path: /var/run/bumblebee.socket
    [ 27.485679] [DEBUG] Accel/display bridge: primus
    [ 27.485681] [DEBUG] VGL Compression: xv
    [ 27.485684] [DEBUG] VGLrun extra options:
    [ 27.485686] [DEBUG] Primus LD Path: /usr/lib:/usr/lib32
    [ 27.560627] [INFO]Response: No - error: Could not load GPU driver
    [ 27.560647] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver
    [ 27.560651] [DEBUG]Socket closed.
    [ 27.560666] [ERROR]Aborting because fallback start is disabled.
    [ 27.560671] [DEBUG]Killing all remaining processes.
    I don't have an xorg file for the intel gpu.
    device nodes are created:
    $ ls /dev/ | grep nv
    crw-rw-rw- 1 root root 195, 0 Sep 24 14:58 nvidia0
    crw-rw-rw- 1 root root 195, 255 Sep 24 14:58 nvidiactl
    log info:
    $cat /var/log/Xorg.0.log | grep EE
    [ 3.385] Current Operating System: Linux gpumonster 3.11.1-1-ARCH #1 SMP PREEMPT Sat Sep 14 19:30:21 CEST 2013 x86_64
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [ 4.299] Initializing built-in extension MIT-SCREEN-SAVER
    [ 4.308] (EE) Failed to load module "vesa" (module does not exist, 0)
    [ 4.308] (EE) Failed to load module "modesetting" (module does not exist, 0)
    [ 4.309] (EE) Failed to load module "fbdev" (module does not exist, 0)
    $ cat /var/log/Xorg.8.log
    [ 11367.762]
    X.Org X Server 1.14.3
    Release Date: 2013-09-12
    [ 11367.762] X Protocol Version 11, Revision 0
    [ 11367.762] Build Operating System: Linux 3.11.0-1-ARCH x86_64
    [ 11367.762] Current Operating System: Linux gpumonster 3.11.1-1-ARCH #1 SMP PREEMPT Sat Sep 14 19:30:21 CEST 2013 x86_64
    [ 11367.762] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=1c3a736e-6aab-45e1-a9ad-5d2f6195cd7d ro quiet
    [ 11367.762] Build Date: 13 September 2013 01:28:59PM
    [ 11367.762]
    [ 11367.762] Current version of pixman: 0.30.2
    [ 11367.762] Before reporting problems, check [url]http://wiki.x.org[/url]
    to make sure that you have the latest version.
    [ 11367.762] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [ 11367.762] (==) Log file: "/var/log/Xorg.8.log", Time: Thu Sep 19 23:04:24 2013
    [ 11367.762] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
    [ 11367.762] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
    [ 11367.762] (==) ServerLayout "Layout0"
    [ 11367.762] (==) No screen section available. Using defaults.
    [ 11367.762] (**) |-->Screen "Default Screen Section" (0)
    [ 11367.762] (**) | |-->Monitor "<default monitor>"
    [ 11367.762] (==) No device specified for screen "Default Screen Section".
    Using the first device section listed.
    [ 11367.762] (**) | |-->Device "DiscreteNvidia"
    [ 11367.762] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
    [ 11367.762] (**) Option "AutoAddDevices" "false"
    [ 11367.762] (**) Option "AutoAddGPU" "false"
    [ 11367.762] (**) Not automatically adding devices
    [ 11367.762] (==) Automatically enabling devices
    [ 11367.762] (**) Not automatically adding GPU devices
    [ 11367.762] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
    [ 11367.762] Entry deleted from font path.
    [ 11367.762] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
    [ 11367.762] Entry deleted from font path.
    [ 11367.762] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
    [ 11367.762] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
    [ 11367.762] Entry deleted from font path.
    [ 11367.762] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
    [ 11367.762] (==) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/,
    /usr/share/fonts/Type1/
    [ 11367.762] (++) ModulePath set to "/usr/lib/nvidia/xorg/,/usr/lib/xorg/modules"
    [ 11367.762] (==) |-->Input Device "<default pointer>"
    [ 11367.763] (==) |-->Input Device "<default keyboard>"
    [ 11367.763] (==) The core pointer device wasn't specified explicitly in the layout.
    Using the default mouse configuration.
    [ 11367.763] (==) The core keyboard device wasn't specified explicitly in the layout.
    Using the default keyboard configuration.
    [ 11367.763] (II) Loader magic: 0x7fdc20
    [ 11367.763] (II) Module ABI versions:
    [ 11367.763] X.Org ANSI C Emulation: 0.4
    [ 11367.763] X.Org Video Driver: 14.1
    [ 11367.763] X.Org XInput driver : 19.1
    [ 11367.763] X.Org Server Extension : 7.0
    [ 11367.763] (II) xfree86: Adding drm device (/dev/dri/card1)
    [ 11367.763] (II) xfree86: Adding drm device (/dev/dri/card0)
    [ 11367.763] setversion 1.4 failed
    [ 11367.764] (--) PCI:*(0:1:0:0) 10de:11a0:1558:5105 rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
    [ 11367.764] Initializing built-in extension Generic Event Extension
    [ 11367.764] Initializing built-in extension SHAPE
    [ 11367.764] Initializing built-in extension MIT-SHM
    [ 11367.764] Initializing built-in extension XInputExtension
    [ 11367.764] Initializing built-in extension XTEST
    [ 11367.764] Initializing built-in extension BIG-REQUESTS
    [ 11367.764] Initializing built-in extension SYNC
    [ 11367.764] Initializing built-in extension XKEYBOARD
    [ 11367.764] Initializing built-in extension XC-MISC
    [ 11367.764] Initializing built-in extension SECURITY
    [ 11367.764] Initializing built-in extension XINERAMA
    [ 11367.764] Initializing built-in extension XFIXES
    [ 11367.764] Initializing built-in extension RENDER
    [ 11367.764] Initializing built-in extension RANDR
    [ 11367.764] Initializing built-in extension COMPOSITE
    [ 11367.764] Initializing built-in extension DAMAGE
    [ 11367.764] Initializing built-in extension MIT-SCREEN-SAVER
    [ 11367.764] Initializing built-in extension DOUBLE-BUFFER
    [ 11367.764] Initializing built-in extension RECORD
    [ 11367.764] Initializing built-in extension DPMS
    [ 11367.764] Initializing built-in extension X-Resource
    [ 11367.764] Initializing built-in extension XVideo
    [ 11367.764] Initializing built-in extension XVideo-MotionCompensation
    [ 11367.764] Initializing built-in extension XFree86-VidModeExtension
    [ 11367.764] Initializing built-in extension XFree86-DGA
    [ 11367.764] Initializing built-in extension XFree86-DRI
    [ 11367.764] Initializing built-in extension DRI2
    [ 11367.764] (II) LoadModule: "glx"
    [ 11367.764] (II) Loading /usr/lib/nvidia/xorg/modules/extensions/libglx.so
    [ 11367.773] (II) Module glx: vendor="NVIDIA Corporation"
    [ 11367.773] compiled for 4.0.2, module version = 1.0.0
    [ 11367.773] Module class: X.Org Server Extension
    [ 11367.773] (II) NVIDIA GLX Module 325.15 Wed Jul 31 18:12:00 PDT 2013
    [ 11367.773] Loading extension GLX
    [ 11367.773] (II) LoadModule: "nvidia"
    [ 11367.773] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
    [ 11367.773] (II) Module nvidia: vendor="NVIDIA Corporation"
    [ 11367.773] compiled for 4.0.2, module version = 1.0.0
    [ 11367.773] Module class: X.Org Video Driver
    [ 11367.773] (II) LoadModule: "mouse"
    [ 11367.773] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
    [ 11367.773] (II) Module mouse: vendor="X.Org Foundation"
    [ 11367.773] compiled for 1.14.0, module version = 1.9.0
    [ 11367.773] Module class: X.Org XInput Driver
    [ 11367.773] ABI class: X.Org XInput driver, version 19.1
    [ 11367.773] (II) LoadModule: "kbd"
    [ 11367.774] (WW) Warning, couldn't open module kbd
    [ 11367.774] (II) UnloadModule: "kbd"
    [ 11367.774] (II) Unloading kbd
    [ 11367.774] (EE) Failed to load module "kbd" (module does not exist, 0)
    [ 11367.774] (II) NVIDIA dlloader X Driver 325.15 Wed Jul 31 17:50:57 PDT 2013
    [ 11367.774] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
    [ 11367.774] (--) using VT number 7
    [ 11367.774] (II) Loading sub module "fb"
    [ 11367.774] (II) LoadModule: "fb"
    [ 11367.774] (II) Loading /usr/lib/xorg/modules/libfb.so
    [ 11367.774] (II) Module fb: vendor="X.Org Foundation"
    [ 11367.774] compiled for 1.14.3, module version = 1.0.0
    [ 11367.774] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 11367.774] (WW) Unresolved symbol: fbGetGCPrivateKey
    [ 11367.774] (II) Loading sub module "wfb"
    [ 11367.774] (II) LoadModule: "wfb"
    [ 11367.774] (II) Loading /usr/lib/xorg/modules/libwfb.so
    [ 11367.774] (II) Module wfb: vendor="X.Org Foundation"
    [ 11367.774] compiled for 1.14.3, module version = 1.0.0
    [ 11367.774] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 11367.774] (II) Loading sub module "shadow"
    [ 11367.774] (II) LoadModule: "shadow"
    [ 11367.774] (II) Loading /usr/lib/xorg/modules/libshadow.so
    [ 11367.774] (II) Module shadow: vendor="X.Org Foundation"
    [ 11367.774] compiled for 1.14.3, module version = 1.1.0
    [ 11367.774] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 11367.774] (II) Loading sub module "ramdac"
    [ 11367.774] (II) LoadModule: "ramdac"
    [ 11367.774] (II) Module "ramdac" already built-in
    [ 11367.774] (II) NVIDIA(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
    [ 11367.774] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
    [ 11367.775] (==) NVIDIA(0): RGB weight 888
    [ 11367.775] (==) NVIDIA(0): Default visual is TrueColor
    [ 11367.775] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
    [ 11367.775] (**) NVIDIA(0): Option "NoLogo" "true"
    [ 11367.775] (**) NVIDIA(0): Option "ProbeAllGpus" "false"
    [ 11367.775] (**) NVIDIA(0): Option "UseEDID" "false"
    [ 11367.775] (**) NVIDIA(0): Option "UseDisplayDevice" "none"
    [ 11367.775] (**) NVIDIA(0): Enabling 2D acceleration
    [ 11367.775] (**) NVIDIA(0): Ignoring EDIDs
    [ 11367.775] (**) NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout
    [ 11367.775] (**) NVIDIA(0): mode
    [ 11368.299] (II) NVIDIA(GPU-0): Found DRM driver nvidia-drm (20130102)
    [ 11368.300] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 680M (GK104) at PCI:1:0:0 (GPU-0)
    [ 11368.300] (--) NVIDIA(0): Memory: 4194304 kBytes
    [ 11368.300] (--) NVIDIA(0): VideoBIOS: 80.04.29.00.01
    [ 11368.300] (II) NVIDIA(0): Detected PCI Express Link width: 16X
    [ 11368.300] (--) NVIDIA(0): Valid display device(s) on GeForce GTX 680M at PCI:1:0:0
    [ 11368.300] (--) NVIDIA(0): none
    [ 11368.300] (II) NVIDIA(0): Validated MetaModes:
    [ 11368.300] (II) NVIDIA(0): "nvidia-auto-select"
    [ 11368.300] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
    [ 11368.300] (WW) NVIDIA(0): Unable to get display device for DPI computation.
    [ 11368.300] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
    [ 11368.300] (--) Depth 24 pixmap format is 32 bpp
    [ 11368.300] (II) NVIDIA: Using 3072.00 MB of virtual memory for indirect memory
    [ 11368.300] (II) NVIDIA: access.
    [ 11368.304] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
    [ 11368.304] (II) NVIDIA(0): may not be running or the "AcpidSocketPath" X
    [ 11368.304] (II) NVIDIA(0): configuration option may not be set correctly. When the
    [ 11368.304] (II) NVIDIA(0): ACPI event daemon is available, the NVIDIA X driver will
    [ 11368.304] (II) NVIDIA(0): try to use it to receive ACPI event notifications. For
    [ 11368.304] (II) NVIDIA(0): details, please see the "ConnectToAcpid" and
    [ 11368.304] (II) NVIDIA(0): "AcpidSocketPath" X configuration options in Appendix B: X
    [ 11368.304] (II) NVIDIA(0): Config Options in the README.
    [ 11368.304] (II) NVIDIA(0): Setting mode "nvidia-auto-select"
    [ 11368.308] Loading extension NV-GLX
    [ 11368.312] (==) NVIDIA(0): Disabling shared memory pixmaps
    [ 11368.312] (==) NVIDIA(0): Backing store disabled
    [ 11368.312] (==) NVIDIA(0): Silken mouse enabled
    [ 11368.312] (==) NVIDIA(0): DPMS enabled
    [ 11368.312] Loading extension NV-CONTROL
    [ 11368.312] (II) Loading sub module "dri2"
    [ 11368.312] (II) LoadModule: "dri2"
    [ 11368.312] (II) Module "dri2" already built-in
    [ 11368.312] (II) NVIDIA(0): [DRI2] Setup complete
    [ 11368.312] (II) NVIDIA(0): [DRI2] VDPAU driver: nvidia
    [ 11368.312] (--) RandR disabled
    [ 11368.316] (II) Initializing extension GLX
    [ 11368.342] (II) Using input driver 'mouse' for '<default pointer>'
    [ 11368.342] (**) Option "CorePointer" "on"
    [ 11368.342] (**) <default pointer>: always reports core events
    [ 11368.342] (WW) <default pointer>: No Device specified, looking for one...
    [ 11368.422] (II) <default pointer>: Setting Device option to "/dev/input/mice"
    [ 11368.422] (--) <default pointer>: Device: "/dev/input/mice"
    [ 11368.422] (==) <default pointer>: Protocol: "Auto"
    [ 11368.422] (**) <default pointer>: always reports core events
    [ 11368.422] (**) Option "Device" "/dev/input/mice"
    [ 11368.475] (==) <default pointer>: Emulate3Buttons, Emulate3Timeout: 50
    [ 11368.475] (**) <default pointer>: ZAxisMapping: buttons 4 and 5
    [ 11368.475] (**) <default pointer>: Buttons: 9
    [ 11368.475] (II) XINPUT: Adding extended input device "<default pointer>" (type: MOUSE, id 6)
    [ 11368.475] (**) <default pointer>: (accel) keeping acceleration scheme 1
    [ 11368.475] (**) <default pointer>: (accel) acceleration profile 0
    [ 11368.475] (**) <default pointer>: (accel) acceleration factor: 2.000
    [ 11368.475] (**) <default pointer>: (accel) acceleration threshold: 4
    [ 11368.475] (II) <default pointer>: Setting mouse protocol to "ExplorerPS/2"
    [ 11368.769] (II) <default pointer>: ps2EnableDataReporting: succeeded
    [ 11368.769] (II) LoadModule: "kbd"
    [ 11368.769] (WW) Warning, couldn't open module kbd
    [ 11368.769] (II) UnloadModule: "kbd"
    [ 11368.769] (II) Unloading kbd
    [ 11368.769] (EE) Failed to load module "kbd" (module does not exist, 0)
    [ 11368.769] (EE) No input driver matching `kbd'
    [ 11368.771] (II) config/udev: Adding input device Power Button (/dev/input/event6)
    [ 11368.771] (II) AutoAddDevices is off - not adding device.
    [ 11368.771] (II) config/udev: Adding input device Video Bus (/dev/input/event11)
    [ 11368.771] (II) AutoAddDevices is off - not adding device.
    [ 11368.771] (II) config/udev: Adding input device Video Bus (/dev/input/event9)
    [ 11368.771] (II) AutoAddDevices is off - not adding device.
    [ 11368.771] (II) config/udev: Adding input device Power Button (/dev/input/event5)
    [ 11368.771] (II) AutoAddDevices is off - not adding device.
    [ 11368.771] (II) config/udev: Adding input device Lid Switch (/dev/input/event3)
    [ 11368.771] (II) AutoAddDevices is off - not adding device.
    [ 11368.772] (II) config/udev: Adding input device Sleep Button (/dev/input/event4)
    [ 11368.772] (II) AutoAddDevices is off - not adding device.
    [ 11368.772] (II) config/udev: Adding drm device (/dev/dri/card1)
    [ 11368.772] (II) config/udev: Adding drm device (/dev/dri/card0)
    [ 11368.772] (II) xfree86: Adding drm device (/dev/dri/card0)
    [ 11368.772] setversion 1.4 failed
    [ 11368.772] (II) config/udev: Adding input device HP HP Link-5 micro dongle (/dev/input/event1)
    [ 11368.772] (II) AutoAddDevices is off - not adding device.
    [ 11368.773] (II) config/udev: Adding input device HP HP Link-5 micro dongle (/dev/input/event2)
    [ 11368.773] (II) AutoAddDevices is off - not adding device.
    [ 11368.773] (II) config/udev: Adding input device HP HP Link-5 micro dongle (/dev/input/mouse0)
    [ 11368.773] (II) AutoAddDevices is off - not adding device.
    [ 11368.773] (II) config/udev: Adding input device HDA Digital PCBeep (/dev/input/event12)
    [ 11368.773] (II) AutoAddDevices is off - not adding device.
    [ 11368.773] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=7 (/dev/input/event13)
    [ 11368.773] (II) AutoAddDevices is off - not adding device.
    [ 11368.773] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event14)
    [ 11368.773] (II) AutoAddDevices is off - not adding device.
    [ 11368.773] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event15)
    [ 11368.773] (II) AutoAddDevices is off - not adding device.
    [ 11368.774] (II) config/udev: Adding input device HDA Intel PCH Line Out (/dev/input/event16)
    [ 11368.774] (II) AutoAddDevices is off - not adding device.
    [ 11368.774] (II) config/udev: Adding input device HDA Intel PCH Line (/dev/input/event17)
    [ 11368.774] (II) AutoAddDevices is off - not adding device.
    [ 11368.774] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event18)
    [ 11368.774] (II) AutoAddDevices is off - not adding device.
    [ 11368.774] (II) config/udev: Adding input device BisonCam, NB Pro (/dev/input/event8)
    [ 11368.774] (II) AutoAddDevices is off - not adding device.
    [ 11368.774] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
    [ 11368.774] (II) AutoAddDevices is off - not adding device.
    [ 11368.774] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event10)
    [ 11368.774] (II) AutoAddDevices is off - not adding device.
    [ 11368.775] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse1)
    [ 11368.775] (II) AutoAddDevices is off - not adding device.
    [ 11368.775] (II) config/udev: Adding input device PC Speaker (/dev/input/event7)
    [ 11368.775] (II) AutoAddDevices is off - not adding device.
    [ 11374.183] (II) UnloadModule: "mouse"
    [ 11374.199] (II) NVIDIA(GPU-0): Deleting GPU-0
    [ 11374.200] (EE) Server terminated successfully (0). Closing log file.
    I'm not willing to give up and install/build the drivers from the cuda SDK just yet so any help would be greatly appreciated.
    Last edited by tim (2013-10-02 08:20:49)

    So in simple terms, the fix invovled ensuring the nvidia module is loaded before the bbswitch module. I'm not sure about the necessity of the things that follow but the fix may possibly also require removing bumblebee and possibly requires removing nvidia from repos and building the driver downloaded from nvidia.
    This fix could be completely unrelated to the problems I was having with arch but I cannot verify the fix on arch specifically cos I installed every distro under the sun trying to get it all working and I got it to work on a non arch distro.
    So... I'm not sure if I should really mark this a solved because I haven't/can't verify it on arch and technically the solution involved changing to another distro but in fact, I know it has absolutely nothing to do with arch since I saw the same behaviour on 3 other distros. If I have time, I will reinstall arch and verify but for the moment, I have a lot of work to catch up on now that I have a working nvidia driver I can actually use for dev
    Anyway, what I think is going on is there is some bizarre issue with bbswitch that stops the nvidia driver from being found because on the current distro I have installed, if I have no bbswitch, no bumblebee and no nvidia modules loaded or services running etc. I can modprobe the nvidia driver and all works fine. I can then modprobe the bbswitch driver and that works too. IF I modprobe the bbswitch driver first and then modprobe the nvidia driver, I get this error that says the nvidia module cant be found. The location it prints is in some updates directory whcih is odd too because I installed from nvidia source and never installed updates at all and made sure that there were absolutely no repo nvidia drivers or updates etc.
    Last edited by tim (2013-10-02 08:35:39)

  • Fglrx: How to load intel driver with various options, e.g. AccelMethod

    Hi,
    When using fglrx and pxpress on a system with hybrid graphics, how can options be set for the intel device?
    Normally in the "xorg.conf" I could just put something like
    Section "Device"
    Identifier "Intel Graphics"
    Driver "intel"
    Option "AccelMethod" "sna"
    EndSection
    But with fglrx installed the xorg.conf looks like
    Section "ServerLayout"
    Identifier "Radeon Layout"
    Screen 0 "aticonfig-Screen[0]-0" 0 0
    EndSection
    Section "Monitor"
    Identifier "aticonfig-Monitor[0]-0"
    Option "VendorName" "ATI Proprietary Driver"
    Option "ModelName" "Generic Autodetecting Monitor"
    Option "DPMS" "true"
    EndSection
    Section "Device"
    Identifier "aticonfig-Device[0]-0"
    Driver "fglrx"
    BusID "PCI:6:0:0"
    EndSection
    Section "Screen"
    Identifier "aticonfig-Screen[0]-0"
    Device "aticonfig-Device[0]-0"
    Monitor "aticonfig-Monitor[0]-0"
    DefaultDepth 24
    SubSection "Display"
    Viewport 0 0
    Depth 24
    EndSubSection
    EndSection
    (Adding an intel device section in here would cause major problems(I get segfaults). I guess because both fglrx/pxpress and xorg try to launch the i915 driver)
    So how can I configure options for the intel driver?
    Why do I want to do this?
    Well aside from the ability to tweak the integrated GPU performance in the usual manner, I have a bug that occurs when UXA is used as the accleration method, but not when SNA is used for the intel driver (even before fglrx is installed on the system). Without fglrx SNA is the default anyway, but fglrx for some reason likes to use UXA.
    Last edited by fpghost84 (2014-01-27 15:16:34)

    Hi, thanks for the new link. Yes, this is completely relevant, but unfortunately it's incomplete & didn't work for me. Please pass this along to the documentation team. Referring to the document, here are the steps I followed:
    A) Starting at section "Restore your computer when Windows 8 cannot start normally" ...
    B) I turned the laptop on & pressed F11 : "System Recovery"
    C) Spinning dots never end, just like during normal start-up, as I reported in original post 
    D) -> Document should mention the option of booting from Windows 8 installation DVD
    E) Booting from Windows 8 DVD, I was able to reach step 7 : "On the Advanced options screen, click System Restore ."
    F) I was unable to reach step 8 in the section :  "Click Windows 8 as the target operating system." b/c I need to load the Intel storage driver for the RAID array that's configured in the BIOS, so that System Restore can see my hard drive.
    How can I load that driver??
    Thanks,
    Brad

  • How to load externally libraries on a java application

    Hi,
    I've created a java application which i've compiled as an executable file. I want to cut the size of the exe down, and so i'm trying to load some libraries externally, instead of the IDE including it on the executable i created. So basically i've got my application.exe file, and in the same directory i have an images directory and a lib directory. How do i access the jar files on the lib directory? Some examples of code would be great. At the moment my lib directory contains mssql.jar files.
    thanks

    no it hasn't bundled the jvm into the app. the app is 438kb without the jar libs included. The libs add another 400+kb . i've separated the image files without problems. This loads the images from a directory called images. The issue is just how load the libs.

  • How to load mysql driver in netbeans 5.0

    I configured mysql driver(com.mysql.jdbc.Driver) in netbeans 5.0. but i got this type of errors
    (run:
    Exception in thread "main" java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at gdb.gdbop.main(gdbop.java:20))
    plz help me for this...............

    IDEs such as netbeans and eclipse require you to add any external jars to the project's classpath.
    for netbeans 5.0, see here:
    http://www.netbeans.org/kb/50/using-netbeans/project_setup.html#pgfId-1157099

  • How to load a FS module in solaris with modload

    I've built a new FS module with the appropriate functions
    and structs (i.e. _init(), ...  struct modlfs, etc ...).
    I move the binary to /kernel/fs/sparcv9/my_mod_name
    since it is a 64 bit binary and a 64 bit target.
    When I run modload:
    # modload -p /kernel/fs/sparcv9/my_mod_name
    can't load module: No such file or directory
    I can't find any docs or info in the writing a DD manual.
    Anyone know what I'm doing wrong ???
    Thanks.

    See /var/adm/messages file for error message from krtld - this message from modload usually indicates some missing symbols in your module.

  • Can't load line6usb driver module after installing from AUR

    I downloaded the line6usb package from the AUR. After building then installing with pacman I should be able to load the module ala modprobe line6usb, but I get the error:
    FATAL: MOdule line6usb not found.
    I looked for the module itself and found it here(assuming this is it):
    /lib/modules/2.6.27-ARCH/extra/line6usb.ko
    Does anyone have an idea why I can't load this module? I'm still quite the noob with concerning things like this and I'm assuming it's something obvious I need to do.

    I downloaded the line6usb package from the AUR. After building then installing with pacman I should be able to load the module ala modprobe line6usb, but I get the error:
    FATAL: MOdule line6usb not found.
    I looked for the module itself and found it here(assuming this is it):
    /lib/modules/2.6.27-ARCH/extra/line6usb.ko
    Does anyone have an idea why I can't load this module? I'm still quite the noob with concerning things like this and I'm assuming it's something obvious I need to do.

  • How to load word .doc-files into java applications?

    Hi,
    I want to load a word .doc-file (or any other type of document) into a java application, as part of the application.
    Is there any java special library to do it?
    Any solution or hint?
    Thank you.

    No, there is no existing Java library to do it that I am aware of. You could write your own, however, as the Word 97 binary file format is published. I am not sure that the Word 2000, or XP formats are as well, but since they put out the 97 presumably they'd do the same with the rest -- although I am suprised that Micro$$$oft even published the 97 format.
    A library such as this would take quite some time write, due to the extensive format, but here's a link to a copy of it just so you can see what it'd take: http://www.redbrick.dcu.ie/~bob/Tech/wword8.html
    Also keep in mind that Micro$$$oft has never remained binary compatable between versions. In short, this means that you'd have to parse each version's documents differently. Not a fun task.
    If a Java library to read Micro$$$oft file formats already does exist, I'm willing to bet that it costs $$$ mucho dinero $$$.
    Hey, aren't proprietary file formats just wonderful?

  • How to load jdbc driver?

    I don't really understand the tutorial when it says to download a driver.
    (I use mySql)
    http://java.sun.com/docs/books/tutorial/jdbc/basics/connecting.html
    That really doesnt describe it well, since i really am new to JDBC.
    What do i need to do in order to make the "driver" work with mysql databases?
    What about other databases, such as oracle?

    What do i need to do in order to make the "driver" work with mysql databases?
    What about other databases, such as oracle? For any database you want to use, the driver needs to be accessible in your classpath/buildpath
    and what do i need to import?You need to import java.sql.*;
    In standard java code there are two important lines to get the connection
    String jdbcDriverClass = "com.myql.jdbc.Driver";
    String url = "jdbc:mysql://localhost:3306/myDatabase"
    String userName = "username";
    String password = "password"
    Class.forName(jdbcDriverClass);
    Connection con = DriverManager.getConnection(url, userName, password);The DriverClass name is different for every database
    The url connection is different for every database. For Oracle there are even two different connection strings you can use, depending upon whether you want to use their "thin" driver or the "oci" driver.
    Both the driver class name, and the URL connection string will be available from the documentation with the JDBC driver.
    Cheers,
    evnafets

  • How to create linux console/terminal using Java

    Please help, give some ideas or something...I would like to develop my own linux console/terminal to make connection to linux server.
    Please help me.
    Thanks

    That doesn't make any sense.
    Are you just trying to write output to the terminal, as you mentioned in this thread?
    http://forum.java.sun.com/thread.jspa?threadID=5287785

  • How to call a perl module from Java program.

    Hi,
    I create a simple java program as follows
    class test{
    public static void main(String args[])
    {try {                    
    Runtime r = Runtime.getRuntime();
    r.exec("perl test.pl");
    catch(Exception e)
    {e.printStackTrace();}
    and test.pl is located in the same directory as the java program. The program compiles but with no return as I execute it. I am not sure what is wrong.
    Thanks,

    I think the wrong line is here; r.exec("perl test.pl");
    Usually the JVM needs the full path.If the path for either the executable or the script was wrong then, given the code posted, it would not hang.
    >
    To automatticaly get the path (if the file is in the
    class path) use
    System.getProperty("java.class.path")
    That gets paths(plural).
    Try this:
    r.exec("perl " +
    System.getProperty("java.class.path") + "\test.pl");I am rather certain that that won't work on any standard operating system.

  • How to load the nvidia module with options?

    Hello!
    I'm testing around to find the perfect configuration for my nvdia agp card.
    The gentoo wiki told me to active FastWrites and SBA. These are options for the nvidia module, but I don't in which config file the options must written. In Gentoo:
    File: /etc/module.d/nvidia
    The String "options NVdriver NVreg_EnableAGPSBA=1 NVreg_EnableAGPFW=1"
    But in arch there isn't a directory "module.d"
    Thanks for help
    Best regards,
    Flasher

    Use /etc/modprobe.conf.
    man modprobe.conf
    Last edited by lucke (2007-12-16 15:25:30)

  • Independent modules in java?

    Hello,
    How do you program independent modules in Java?
    With that I mean a module that can be loaded during run-time which extends the functionality of the program.
    What I want to do is a small "desktop-friend" which is animated and new animations/functionality can be added to it without recompiling the code.
    thanx in advance
    Freerider

    Hi,
    How do you program independent modules in Java?
    With that I mean a module that can be loaded during
    run-time which extends the functionality of the
    program. If I understood correctly what you could probably do is to write an interface which describes the basic set of services or functionality what you implementing classes (modules) have. Then you can have some abstract class which implements this interface (or interfaces even) and has some basic common methods and basic implementation for all your upcoming classes (modules).
    In the interface you could have a separate method or methods that return the services available to this specific class (module). Then you need to use the reflection api to dynamically instantiate the classes and invoke the services.
    Of course you need to have a store (db, file system etc.) from which you build the list of available modules and maintain it.
    Well, there are a lot of things to consider and this is just something to begin with... And of course, there are always many different ways to do the task...
    Good luck!
    Greets, Janne

  • External Enclosure for Drive Module?

    We are setting up an emergency contingency strategy and we would like to be able to remove a drive module from our Xserve, then use it on another computer. Ideally we would like an external Firewire drive enclosure that would accept the Apple Drive Module as is. That's vs. unscrewing the drive from the module and installing it in an enclosure or in another computer. Has anyone seen anything like this? A carry bag or case for the drive module would be handy also. Thanks for any pointers.
    Xserve G5   Mac OS X (10.4.5)  

    Joseph-
    Not trying to be an arse, but what about another XServe? I do not know how backwards compatible your drive modules are (as in a used G4 XServe), but certainly even a single processor node with no license would probably end up costing about the same as a specialty-type external housing.
    Heck, that would possibly give you an entire contingency strategy in a box.
    Just a thought. I know a nice case in the 300 dollar or less range would be superb, but I think they get you on that Apple proprietary thing.
    -DaddyPaycheck

Maybe you are looking for