mananshr / pyalienfx

Automatically exported from code.google.com/p/pyalienfx
GNU General Public License v3.0
0 stars 0 forks source link

No Indicator in Ubuntu 13.04 #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install .deb file in Ubuntu 13.04
2. Run from DashHome or from terminal with pyAlienFX

What is the expected output? What do you see instead?:
Following those exact steps in Ubuntu 12.10 on the same computer gives a 
clickable indicator icon in the upper right-hand corner of the screen, and it 
works perfectly.
In Ubuntu 13.04 the Indicator does not show in Unity, and thus I cannot use the 
product

I have installed pyalienfx_1.0.2_all.deb on an AlienWare MX14R1 (I think R1, 
might be R2) running Ubuntu 13.04

I know for sure that this is an error occurring in Ubuntu 13.04, probably for 
all computers running 13.04, and that it works perfectly for me in Ubuntu 12.10.

I have a tripple-boot system with windows 7, Ubuntu 12.10, and Ubuntu 13.04.

This works perfectly in Ubuntu 12.10, but does not work in Ubuntu 13.04.

From commandline it looks exactly the same as in 12.10, but just with no 
indicator or way to open up a window.

There was a declined AskUbuntu question about this.
(http://askubuntu.com/questions/271157/why-arent-certain-indicators-showing-in-r
aring-unity)

I will try to find what changes have been made in Unity (7 I think?) with 
Ubuntu 13.04, and will comment updates about this.

Original issue reported on code.google.com by dabodialga on 22 Apr 2013 at 8:59

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
command not found

Original comment by jedijimi...@gmail.com on 23 Apr 2013 at 1:26

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
went to synaptic package manager, not in there either..hmm

Original comment by jedijimi...@gmail.com on 23 Apr 2013 at 1:53

GoogleCodeExporter commented 9 years ago
if you try : 
sudo apt-get remove pyalienfx

does it work ?

Original comment by ledjfou125 on 23 Apr 2013 at 1:54

GoogleCodeExporter commented 9 years ago
I got this http://paste.ubuntu.com/5595608/

Original comment by jedijimi...@gmail.com on 23 Apr 2013 at 2:00

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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:

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Forgot to attach that

Original comment by dabodialga on 25 Apr 2013 at 2:56

Attachments:

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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