Page 1 of 2 12 LastLast
Results 1 to 10 of 88

Thread: AlienFX Lite (Linux + Windows)

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Beans
    Hidden!

    AlienFX Lite (Linux + Windows)

    Hi,

    Since I received my Allpowerfull M15x laptop, I always wanted to use the alienFX lights as an indicator of whether I am currently busy or available to talk to/etc... The solution provided by alienware would be to load up the alienFX software (takes a relative long time), load up a previously created profile, hit the apply button and exit the application. Suffice to say that this is really impractical to be of any use. The other major problem was that I use mainly Linux as my working environment and alienfx is not available for linux and the alienware software seems not to work on Windows over a virtual machine installed(tried both Vmware and VMBox).

    Thus I decided to write my own alienFX program which would work under Windows and Linux. Here is the Result

    I would be grateful for any comments and opinions on how to make the application better. Also, please let me know if you think the application is useless, so that I know if there is any point in further developing this application.

    ****DISCLAIMER****
    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

    USE THIS SOFTWARE ON YOUR OWN RISK!


    AlienFX Lite


    Revision History:
    Code:
    Date       | Description            | version  | url
    15/03/2010 | Forth  Verison         | 0.4b     | http://progger.co.uk/alienfx/AlienFXLite-0.4b.jar
    12/02/2010 | Third  Verison         | 0.3      | http://progger.co.uk/alienfx/AlienFXLite-0.3.jar
    12/02/2010 | Second Verison         | 0.2      | http://progger.co.uk/alienfx/AlienFXLite-0.2.jar
    10/02/2010 | First version released | 0.1      |  http://progger.co.uk/alienfx/AlienFXLite-0.1.jar

    Description:
    AlienFX Lite is a simple cross-platform program to create profiles and set the AlienFX lightning to the set colors. This application was done for the Allpowerfull M15x and only tested on this machine. It should also work on the M17x. The application will most likely accept the Area 51 m15x but it was untested. The current supported platforms are:
    Linux (32 bit), Linux(64 bit), Mac OS X(UNTESTED), Windows 7(64 bit), Windows 7 (32 bit), Windows Vista (32bit), Windows Vista 64bit, Windows XP

    Special Thanks:
    Thanks go to Ingrater (http://3d.benjamin-thaut.de/) for providing me with the protocol for the alienFX device and some windows native code.

    Installation:
    The application can be installed on windows and on linux in the following way.

    Linux: (Ubuntu)

    This guide is for ubuntu only. For a different distribution (which doesnt use debian packages), you have to install the following things Java Runtime Environment 1.6 (6) and libusb-1.0-0.

    Step 1) ==CHECK FOR JVM 1.6==
    Check if you have have a java vm installed. This can be done by typing "java -version" into a terminal. If you get a "command not found" returned or the version is lower than 1.6 go to step 2. If the version is 1.6 or above, go to step 3.

    Step 2) ==INSTALLING JVM==
    To install the latest jvm type:

    Code:
    sudo apt-get install openjdk-6-jre
    Confirm your choice and wait until its installed.

    Step 3) ==INSTALL libusb-1.0==
    The linux native libraries are based of libusb. It has to be present on the system. This can be done by:

    Code:
    sudo apt-get install libusb-1.0-0

    Windows:

    Step 1) If you dont have java 1.6 then Go to: http://java.sun.com/javase/downloads/index.jsp and click on Download JRE. Install the JRE.

    Step 2) Place the AlienFXLite-0.1.jar into a suitable for you folder, and remember the path (e.g. C:\User\wattos\AlienFXLite-0.1.jar)

    Step 3) Unfortunately the application requires administrator powers or othrwise it will not be able to write to the alienfx device. Find the location of the JRE javaw.exe, which will most likely be somewhere here: C:\Program Files (x86)\Java\jdk1.6.0_18\bin\javaw.exe

    Step 4) Right click on your desktop, and do new->Shortcut. Now enter the path (e.g. "C:\Program Files (x86)\Java\jdk1.6.0_18\bin\javaw.exe") with the qoutes into the text field, followed by the location of the jar file. Thus all together it should look like:

    Code:
    "C:\Program Files (x86)\Java\jdk1.6.0_18\bin\javaw.exe" -jar "C:\User\wattos\AlienFXLite-0.1.jar"
    If you want the application to go directly to the system tray without opening, append an -s e.g.

    Code:
    "C:\Program Files (x86)\Java\jdk1.6.0_18\bin\javaw.exe" -jar "C:\User\wattos\AlienFXLite-0.1.jar" -s
    Thats it, you are done.

    Manual:
    To open the application in linux, do the following
    sudo java -jar AlienFXLite-0.1.jar
    or
    sudo java -jar AlienFXLite-0.1.jar -s
    for the silent version.

    On windows, rightclick on the created shortcut and press on "run as admin".


    Once the application is open, you can create new profiles. On the left you can see the color chooser, which is used to choose colors. When creating a new profile while having no profile selected, all lights will be defaulted to the color which was selected when pressing the new profile button. If you create a new profile while another profile is selected, then a copy of that profile will be created.

    Once you are happy with a profile you need to press the save button. This will write the changes to the hdd. The remove button allows you to remove profiles. Finally, click the apply button to apply the profile to the alienFX controller.

    If System trays are supported (usually they are) the application will not close when the window is closed. Instead it will hide. The application is only closable from the system tray. To close the application, right click on the system tray alienFX icon and then Exit. In this small menu, all profiles are also listed. Clicking on a profiles name will automatically apply the profile without having to open the applications window.

    In order to change the colors for selected regions, select a color on the left side, then press the button with the text of the region you want to change the color. Dont forget to hit the save buttons once you are happy with a profile. The apply button DOES not save your profile.

    Video Tutorial
    http://www.youtube.com/watch?v=3SPJAFx5Meo

    Misc:

    * The profiles are saved under (USER_HOME)/.alienFXprofiles.
    * On linux you can make your user able to access the usb devices without being a super user but part of a group which has access to the usb devices. I dont know how to do that


    Known Issues:
    * Sometimes the JVM will spit out a bug when opening the menu of the system tray. This is a bug in Swing and should be fixed with a new update of the JRE (hopefully).
    * It seems that the system look and feel does not work on ubuntu which runs inside a VM (??).
    * With some look and feels, its possible that the non-resizable window is too small.
    * The java functionality for system trays is generally crap. The balloon messages looks really bad and icon does not support transparency.
    * It only works with the 32 bit JRE on windows

    TODO:
    * change the format of the profiles from binary to xml
    * change the Ui to look better/different
    * Make the applying of the effects in a background thread so that the gui doesnt freeze

    Release History
    v. 0.4b:
    * Added support for M11x
    * Added support for active preview
    * Added support for Battery Monitoring
    * Added support for brightness
    * Added Turn off features
    * Fixed Windows visual bugs

    v. 0.3:
    * Added support for copying/pasting a sequence of actions
    * Added support for changing a lot of colors at once
    * Added reset function
    * Removed the info button and copy button

    v. 0.2:
    * Added support for 32 bit linux
    * Added support for sequences
    * Added support for copy/paste of action
    * Added support for right click on color to select the color from an action
    * Added support for "colors in profile"
    * Added support for morph/blink
    * Added support for speed
    * Changed the Gui layout


    Screen Shots:

    http://progger.co.uk/alienfx/linux.png

    System Tray:
    http://progger.co.uk/alienfx/tray.png


    DOWNLOAD LINK:
    Executable

    SOURCE LINK:
    Source
    Last edited by Wattos; March 15th, 2010 at 04:46 PM.

  2. #2
    Join Date
    Feb 2008
    Beans
    14

    Re: AlienFX Lite (Linux + Windows)

    Just trying this on a m17x running 9.10 and get this error


    Code:
    /Desktop$ sudo java -jar AlienFXLite-0.1.jar
    Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: /tmp/lib_libAlien.so.3452837222987380116.tmp: /tmp/lib_libAlien.so.3452837222987380116.tmp: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
    	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1747)
    	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1656)
    	at java.lang.Runtime.loadLibrary0(Runtime.java:840)
    	at java.lang.System.loadLibrary(System.java:1047)
    	at uk.co.progger.alienFXLite.led.LEDController.<clinit>(LEDController.java:7)
    	at uk.co.progger.alienFXLite.led.AlienFXControllerFactory.getAlienFXDevice(AlienFXControllerFactory.java:21)
    	at uk.co.progger.alienFXLite.alienfx.AlienFXEngine.<init>(AlienFXEngine.java:22)
    	at uk.co.progger.alienFXLite.gui.MainFrame.<init>(MainFrame.java:56)
    	at uk.co.progger.alienFXLite.Main$1.run(Main.java:23)
    	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

  3. #3
    Join Date
    Oct 2006
    Beans
    Hidden!

    Re: AlienFX Lite (Linux + Windows)

    Quote Originally Posted by gliderdad79 View Post
    Just trying this on a m17x running 9.10 and get this error


    Code:
    /Desktop$ sudo java -jar AlienFXLite-0.1.jar
    Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: /tmp/lib_libAlien.so.3452837222987380116.tmp: /tmp/lib_libAlien.so.3452837222987380116.tmp: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
    	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1747)
    	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1656)
    	at java.lang.Runtime.loadLibrary0(Runtime.java:840)
    	at java.lang.System.loadLibrary(System.java:1047)
    	at uk.co.progger.alienFXLite.led.LEDController.<clinit>(LEDController.java:7)
    	at uk.co.progger.alienFXLite.led.AlienFXControllerFactory.getAlienFXDevice(AlienFXControllerFactory.java:21)
    	at uk.co.progger.alienFXLite.alienfx.AlienFXEngine.<init>(AlienFXEngine.java:22)
    	at uk.co.progger.alienFXLite.gui.MainFrame.<init>(MainFrame.java:56)
    	at uk.co.progger.alienFXLite.Main$1.run(Main.java:23)
    	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
    It seems to me you are running 32-bit version of ubuntu? This release only supports the 64 bit release. The next release will have support for 32 bit.

  4. #4
    Join Date
    Oct 2006
    Beans
    Hidden!

    Re: AlienFX Lite (Linux + Windows)

    Version 0.2 is out!

    Unfortunately the profiles from 0.1 wont be read into 0.2.

    BUT:

    Now you can do sequences of actions, select colors from action (right click on an action), set the speed of the sequences, see all colors used in the profile (and select them), Add morphs and blinks.

    This tool is now almost as powerfull as the command center (and also adds some more features like copy/paste, insertion into any place on the sequence and you can CHANGE THE COLORS OF THE EYES of the powerbutton).

    Also, this version adds support for 32bit linux.

    Hope you like it. Next version will include a undo/redo functionality + revert changes to profile from last saved time and hopefully bugfixes.

    Enjoy. Please leave some feedback on what you like and dont like.

  5. #5
    Join Date
    Mar 2008
    Location
    Hawaii
    Beans
    806
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: AlienFX Lite (Linux + Windows)

    WOW

    This is Amazing !
    I didn't think you'd get the morph and flash working so fast.
    Way COOL !

    I am using Archlinux x86-64 and no problems at all on my Alienware M15x.

    This is just a powerful as the one that Alienware Ships. Heck it is loads easier to make themes with too. I love it. Alienware laptops have been around for a long time but as far as I can tell this is the fist and only AlienFX manager that anyone has written outside of Alienware corporation and it works on Linux

    Got to Love Open-source Development. Way faster and works way better every time.

    Keep up the good work

    Owe, hay could you post the C Modules/Classes/Libs... you know the C functions you are calling to do the work. I'd like to write one in Python-GTK. Not to steal your thunder but just because I need to practice programing and I don't like Java.
    Last edited by HunterThomson; February 13th, 2010 at 01:29 PM.
    Thinkpad W510, i7-720QM, Nvidia Quadro FX 880m (nouveau), Intel X25-M G2 80GB (OCZ are better), 1080p Wacom Multi-Touch Screen, Intel Centrino Advanced-N + WiMAX 6250, Yubikey OTP

  6. #6
    Join Date
    Oct 2006
    Beans
    Hidden!

    Re: AlienFX Lite (Linux + Windows)

    Quote Originally Posted by HunterThomson View Post
    WOW

    This is Amazing !
    I didn't think you'd get the morph and flash working so fast.
    Way COOL !

    I am using Archlinux x86-64 and no problems at all on my Alienware M15x.

    This is just a powerful as the one that Alienware Ships. Heck it is loads easier to make themes with too. I love it. Alienware laptops have been around for a long time but as far as I can tell this is the fist and only AlienFX manager that anyone has written outside of Alienware corporation and it works on Linux

    Got to Love Open-source Development. Way faster and works way better every time.

    Keep up the good work

    Owe, hay could you post the C Modules/Classes/Libs... you know the C functions you are calling to do the work. I'd like to write one in Python-GTK. Not to steal your thunder but just because I need to practice programing and I don't like Java.

    I will post the code on sourceforge as soon as I fix some issues with the amount of garbage the gui is generating. Should be up today

  7. #7
    Join Date
    Feb 2008
    Beans
    14

    Re: AlienFX Lite (Linux + Windows)

    Quote Originally Posted by Wattos View Post
    It seems to me you are running 32-bit version of ubuntu? This release only supports the 64 bit release. The next release will have support for 32 bit.
    Yup, that was my mistake, I switched over after this post to 64 bit and just grabbed the new version. Working great on m17x 64 bit, Thank you!!

  8. #8
    Join Date
    Oct 2006
    Beans
    Hidden!

    Re: AlienFX Lite (Linux + Windows)

    Released another version. This will probably be the last version unless there are severe bugs or a high demand for some kind of functionality.

    Once I get someone to help me to add support for the M11x I will do that.

    In the 0.3 version expect the following changes:

    *Now you can select multiple actions and then paste them.
    The selection has a SHIFT and CTRL modifier. If shift is pressed, you only add actions to the selection. If CTRL is pressed, you only remove actions from the selection.

    *Pressing with the left mouse button on any color in the "used color panel" will change all actions with that color to the currently selected color

    *Pressing with the right mouse button on any color (including the actions) will select that color

    *you can now reset the lights in case something funny is happening.

    *a faster gui

  9. #9
    Join Date
    Mar 2008
    Location
    Hawaii
    Beans
    806
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: AlienFX Lite (Linux + Windows)

    Hum, I am getting an unbearable problem with the new version of AlenFXLight.

    When I set one thing to be Blue. Then one thing read. Then one thing blue agin. Then I select a new color everything that is that Blue color will get it's color changed too.

    Dose my explanation make sens?

    Big problem. I am not even using 0.3 anymore. I have to use the 0.2 version.
    Thinkpad W510, i7-720QM, Nvidia Quadro FX 880m (nouveau), Intel X25-M G2 80GB (OCZ are better), 1080p Wacom Multi-Touch Screen, Intel Centrino Advanced-N + WiMAX 6250, Yubikey OTP

  10. #10
    Join Date
    Feb 2006
    Beans
    76

    Re: AlienFX Lite (Linux + Windows)

    Dude this is fantastic works great with my m17x as well... more customization than stock software THANKS!

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •