Open GoogleCodeExporter opened 9 years ago
Also, is there a way to launch the editor directly without clicking on the
Indicator Icon? Because I don't really need the icon if I have any other way to
launch the application.
Original comment by dabodialga
on 22 Apr 2013 at 10:45
Yes, normally if you were to launch PyAlienFX.py directly it should open up the
editor ... not the indicator ...
cd Install_folder
sudo ./pyAlienFX.py
can you tell me if it works ?
I'll have to look on the 13.04 as I haven't switch yet
Original comment by ledjfou125
on 23 Apr 2013 at 9:44
Hey guys I'm a newb of linux so take it easy..lol Is there a command that I
can use to un-install this and try over?...It's like only parts of it
installed. I got it to work once. I go to app, and nothing takes place. Then I
re-work it thru the terminal and I get the window to pop up. I want to try
again. I've been trying to get this to work for me for some time. I'm sure it
is operator error.lol
Original comment by jedijimi...@gmail.com
on 23 Apr 2013 at 1:10
ok if you installed it throught the deb file try that
sudo /usr/share/pyAlienFX/pyAlienFX.py
Does it work ?
Original comment by ledjfou125
on 23 Apr 2013 at 1:12
command not found
Original comment by jedijimi...@gmail.com
on 23 Apr 2013 at 1:26
When I go to applications click icon I get
need to be admin to launch
./pyAlienFX_Launcher.sh
type in password then nonthing happens...
Original comment by jedijimi...@gmail.com
on 23 Apr 2013 at 1:32
Ok can you just DL the tar.gz ? (to uninstall the package go to your app-center
and remove it from there or sudo apt-get remove pyalienfx)
so DL the tar.gz, extract it
cd location_of_extraction/pyalienfx
and from there
sudo ./pyAlienFX.py
Original comment by ledjfou125
on 23 Apr 2013 at 1:33
went to remove and says no such directory...did run sudo ./pyAlienFX.py
and it worked...
went back to Icon and no such luck, I'm going to trash all files of it I can
find and do over, what you think?
Original comment by jedijimi...@gmail.com
on 23 Apr 2013 at 1:49
went to synaptic package manager, not in there either..hmm
Original comment by jedijimi...@gmail.com
on 23 Apr 2013 at 1:53
if you try :
sudo apt-get remove pyalienfx
does it work ?
Original comment by ledjfou125
on 23 Apr 2013 at 1:54
I got this http://paste.ubuntu.com/5595608/
Original comment by jedijimi...@gmail.com
on 23 Apr 2013 at 2:00
I just re-booted computer and tried sudo apt-get remove pyalienfx
and got E: Unable to locate package pyalienfx
Original comment by jedijimi...@gmail.com
on 23 Apr 2013 at 2:08
I can still run the program by
cd Downloads/pyalienfx
then
sudo ./pyAlienFX.py
Original comment by jedijimi...@gmail.com
on 23 Apr 2013 at 2:11
I'm sorry then what is the issue here ?
Except for the indicator that disapeared ? ?
(and that I can't do much now)
And you did not installed it through the .deb then .............
Original comment by ledjfou125
on 23 Apr 2013 at 2:20
It all god man!! just trying to button it up, I've seen ALOT of people saying
worked perfectly...Which it does, but not thru the app icon, only thru
terminal... Thx for your time..Keep up the good work : )
Original comment by jedijimi...@gmail.com
on 23 Apr 2013 at 2:27
I'll try to make it compatible with the 13.04 soon !
I have a biiig to do list to do ;)
and that just added up ! ;)
Happy that it works at least through the terminal
Original comment by ledjfou125
on 23 Apr 2013 at 2:53
Thanks! I had only ever tried using the launcher SH script, which basically
just launches the indicator if I'm not mistaken :P. I will try using the
pyAlienFX.py file and see if that works! And if it does I can probably edit the
.desktop file to use that instead of the sh script.
Original comment by dabodialga
on 23 Apr 2013 at 3:08
When I use purely "pyAlienFX" from terminal, it tries to launch the indicator.
I looked at the file and all it does is call the
/usr/bin/pyAlienFX/pyAlienFX_launcher.sh, which just cds into
/usr/bin/pyAlienFX, then calls the indicator.py file. I will try calling
pyAlienFX.py directly
Original comment by dabodialga
on 23 Apr 2013 at 3:14
sorry, /usr/share/ instead of /usr/bin/!
And using "/usr/share/pyAlienFX/pyAlienFX.py" instead of "pyAlienFX" Works!
Thanks!
Original comment by dabodialga
on 23 Apr 2013 at 3:47
Yuup of course it works ;)
Happy that you sniffed around and found out a solution for your problem !
That's the way to go ! ;)
If you could look into the indicator issue :p !
I mean if you have some time and wat to look around to see if you can find
anything ;)
the indicator.py is easy to understand (just few lines of code)
Original comment by ledjfou125
on 23 Apr 2013 at 10:35
I will try to look at it!
Also I changed the file pyAlienFX_Launcher.sh to:
cd /usr/share/pyAlienFX
#python ./pyAlienFX_daemon.py &
#sleep 5
#python ./pyAlienFX_Indicator.py &
python ./pyAlienFX.py &
instead of
cd /usr/share/pyAlienFX
#python ./pyAlienFX_daemon.py &
#sleep 5
python ./pyAlienFX_Indicator.py &
And that allowed me to skip the indicator and launch the program directly using
the .desktop file, and use "pyAlienFX" from terminal for launching the editor.
Original comment by dabodialga
on 23 Apr 2013 at 10:51
I have been looking at the indicator file, and found something that looks like
it could be a problem, but probably isn't related to this:
self.ind = appindicator.Indicator("pyAlienFX", "/home/xqua/Documents/Work/Coding/Python/pyalienfx/images/indicator_off.png", appindicator.CATEGORY_APPLICATION_STATUS)
self.ind.set_status(appindicator.STATUS_ACTIVE)
self.ind.set_attention_icon("/home/xqua/Documents/Work/Coding/Python/pyalienfx/images/indicator_on.png")
shouldn't that be going for /install_location/images/ instead of
/home/xqua/Documents/Work/Coding/Python/pyalienfx/images/ ?
Original comment by dabodialga
on 24 Apr 2013 at 3:19
Indeed it should ! I never notices that and noone ever noticed it either !
It doesn't really mater as it's only when you try to use the TCP API deamon
(which is highly unstable and I don't have time for it right now ! ... or ever
? <.< )
It is really weird ... indeed it SHOULD show up ... I made it on ubuntu
standards ...
if you launch it directly (./pyAlienFX_Indicator.py) can you give me the output
?
Original comment by ledjfou125
on 24 Apr 2013 at 10:29
It outputs the same exact thing on 13.04 as 12.10, here:
daboross@DaboUbuntu:~$ cd /usr/share/pyAlienFX/
daboross@DaboUbuntu:/usr/share/pyAlienFX$ sudo ./pyAlienFX_Indicator.py
[sudo] password for daboross:
Initializing Driver ...
Comnputer M14XR1 found ! Loading the parameters ...
Initializing Controller ...
the Deamon is disconnected ...
Trying to load the driver manually
Loading : ./Profiles/Default.cfg
SPEED = 65280
Check Deamon
Check Deamon
It could be a bug with unity, as 13.04 is still in beta.
I might try to create an application in python that is only an indicator, and
see if I can get that to work.
Original comment by dabodialga
on 24 Apr 2013 at 5:28
I made a dummy indicator based off of yours and it works! But only when run as
a normal user, not as root.
I have attached the dummy indicator with comments.
I will try to remove all privileged calls from your indicator and run it as a
normal user and see if that works.
Original comment by dabodialga
on 24 Apr 2013 at 9:52
Attachments:
I am pretty sure that it is running the pyAlienFX_Indicator.py as root that is
causing the problem.
I commented all the parts of pyAlienFX_Indicator.py that interact with the
daemon, and then ran it as a normal user. It works when run as a normal user,
but that exact same script (with commented out parts) doesn't work when run as
root.
I have attached what did work, it works when run without root, but doesn't when
run with root.
Original comment by dabodialga
on 25 Apr 2013 at 2:55
Forgot to attach that
Original comment by dabodialga
on 25 Apr 2013 at 2:56
Attachments:
Also the script that works when run as a normal user that I attached, doesn't
work when I don't substitute /home/xqua/Documents/Work/Coding/Python/pyalienfx/
with /usr/share/pyAlienFX/ in all places.
Original comment by dabodialga
on 25 Apr 2013 at 2:59
Sure for the #28 !
And so that is the root that is causing issue !
that's ubuntu's issue ...
Indeed to get the driver to work it needs root since 12.04 (before it would
run) but to get acess to the USB now we need root ...
So it's a launchpad associated bug then ...
It might be corrected on the RC or in the non beta!
Otherwise I'm not sure how to get it to work ...
Original comment by ledjfou125
on 25 Apr 2013 at 8:33
It probably has to do with
http://ubuntuforums.org/showthread.php?t=1682084
http://ubuntuforums.org/showthread.php?t=901891
Original comment by ledjfou125
on 25 Apr 2013 at 8:43
Should I file a bug report with ubuntu?
Also do you know if it would be possible to have the alienFX daemon run on boot
as root, and have a normal process like the gui communicate with it? Or is that
not possible in python?
Original comment by dabodialga
on 25 Apr 2013 at 2:32
yes yes it is doable if the deamon was working without bugs ...
and yes in a way it's a ubuntu bug repport to be filed (if it hasn't yet been
filed)
but I think the way to go is more to try to get Ubuntu to allow for read/write
on the USB device ... That way pyAlienFX won't have to be run as root which
would be better for every one !
Moreover running the deamon as root open some kind of vulnerability issue as
it's a TCP port that's open !
it should be Udev that takes care of that ... so that it should be possible to
write a Udev set of rules for all controlers ...
Did you try any solutions of what they say in the forums ?
Original comment by ledjfou125
on 25 Apr 2013 at 2:48
Original issue reported on code.google.com by
dabodialga
on 22 Apr 2013 at 8:59