[Q] Problem using systrace - Android Q&A, Help & Troubleshooting

Hi,
I'm using systrace for tracing cpu but i have a problem when i visualize the output. I have used this command:
"python systrace.py --time=50 -o trace.html sched" .
I tried to open trace.html using google chrome, however the page is blank without any infomation, but in chrome's javascript console i found this issue: Uncaught TypeError: Cannot set property 'focusElement' of undefined.
I have also tried to use atrace in this little script:
"while [ true ]; do
atrace -t 10 sched >> atrace.txt
done"
but the above script creates the following error: "error dumping trace: Invalid argument (22)" and atrace.txt contains only this infomation:
"capturing trace... done
TRACE:
capturing trace...
trace aborted."
I have already updated my sdk and sdk tools but the problem persists, i use a nexus 4 with a custom kernel and android 4.4.
How can i solve this issue?

Related

[Q] Actiivty won't launch from Eclipse

Hi all,
I have an elocity A7 Tablet running 2.2 Dexters ElocityA7 Modv1.2, full root access.
I managed to get usb ADB functionality working correctly after forcing the usb mode to client - i can run shell commands etc...
When I first attempted to launch applications from Eclipse I was getting messages stating /sbin/sh : am: not found. I finally managed to get that corrected by editing the am/pm files and creating the correct references with vi.
So now the applications finally install from Eclipse - HOWEVER - they do not launch when I attempt to run or debug. The Apps do get installed correctly, it just appears it Eclipse can't start the activity.
-USB debugging is enabled
Console output when I attempt to run:
==============================================
Code:
[2011-09-25 19:40:58 - test] Android Launch!
2011-09-25 19:40:58 - test] adb is running normally.
[2011-09-25 19:40:58 - test] Performing com.test.TestActivity activity launch
[2011-09-25 19:40:58 - test] Automatic Target Mode: using device '028041454220f4d7'
[2011-09-25 19:40:59 - test] Application already deployed. No need to reinstall.
[2011-09-25 19:40:59 - test] Starting activity com.test.TestActivity on device 028041454220f4d7
At this point nothing further happens - The logcat below just displays the debugger detaches but I don't know exactly why.
LogCat Output when I attempt to run:
==============================================
Code:
09-25 19:40:56.242: DEBUG/AndroidRuntime(12380): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
09-25 19:40:56.242: DEBUG/AndroidRuntime(12380): CheckJNI is OFF
09-25 19:40:56.242: DEBUG/dalvikvm(12380): creating instr width table
09-25 19:40:56.252: DEBUG/dalvikvm(12380): Unable to stat classpath element '/system/framework/com.nvidia.graphics.jar'
09-25 19:40:56.272: DEBUG/AndroidRuntime(12380): --- registering native functions ---
09-25 19:40:56.322: ERROR/BluetoothHidDeviceService.cpp(12380): register_android_server_BluetoothHidDeviceService: Registering HIDD Native Methods
09-25 19:40:56.402: DEBUG/AndroidRuntime(12380): Shutting down VM
09-25 19:40:56.402: DEBUG/dalvikvm(12380): Debugger has detached; object registry had 1 entries
09-25 19:40:56.412: INFO/AndroidRuntime(12380): NOTE: attach of thread 'Binder Thread #3' failed
09-25 19:40:56.592: DEBUG/dalvikvm(1331): GC_EXPLICIT freed 1088 objects / 60016 bytes in 35ms
Grateful if anyone has any ideas or can point me in a direction to determine what the cause may be? I know eclipse is configured correctly as I can launch and debug on my Sony Arc 2.3.3 - I think this might be related to a setting on the A7 system
I've narrowed it down to being a problem with my 'am' command - it's not actually doing anything. Anyone know the proper setup for the am command?
Currently this is what I have:
/sbin/am
--EMPTY-- I think this is the problem. If i delete this file however the am command is not found. Do i need to point this somewhere?
/system/bin/am
# Script to start "am" on the device, which has a very rudimentary
# shell.
#
#!/system/bin/sh
base=/system
export CLASSPATH=$base/framework/am.jar
exec app_process $base/bin com.android.commands.am.Am "[email protected]"
Wow as if - problem solved.
#!/system/bin/sh
Needs to be the FIRST line in the file.

Arch Linux running on NC with native Xorg

Ran into this off Reddit. Includes instructions. Thought people might be interested. Damn impressive.
http://thomaspolasek.blogspot.ca/2012/04/arch-linux-lxde-w-xorg-mouse-keyboard_16.html
Looks like I got something to do after getting through this current barrage of Uni assignments
Oh, that is impressive. Something I'll have to try, for sure.
umm...yeah...i'm gonna try this out for sure
\O/
Sent from my NookColor using XDA
So, how does it work??????
Okay, I'd like to report that it works... pretty well!
I started with PengDroid, so I got Debian instead of Arch. Then installed:
Code:
xinit xserver-xorg-core xserver-xorg-video-fbdev xserver-xorg-input-mtrack lxde
I also don't have a spare USB keyboard and mouse, so I decided to skip the keyboard and try to use the touchscreen as a pointing device. So here's my /etc/X11/xorg.conf:
Code:
Section "ServerLayout"
Identifier "Layout0"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mtrack"
Option "Device" "/dev/input/event2"
EndSection
Section "Device"
Identifier "Adapter0"
Driver "fbdev"
Option "fbdev" "/dev/graphics/fb0"
EndSection
As you can see, I'm using the mtrack driver, which makes the screen behave as a giant trackpad (with two-point touch = right-click). I have not been successful in getting proper touchscreen support working with evdev, but I suspect it might require the mtev driver.
Anyway, to start this thing off via adb:
Code:
ln -s Xorg /usr/bin/X
setprop ctl.stop media
setprop ctl.stop zygote
killall bootanimation
xinit /usr/bin/lxsession
... and to go back to Android,
Code:
^C
setprop ctl.start zygote
@bassrebel: Do you want technical details... or an answer involving unicorns?
Thats awesome that the touchscreen does work though. How about sound? I use my nook as my car stereo and would like to see if linux has any better audio drivers than android... also, xmbc on nook in a car would be awesome!
I haven't tried getting sound output, but I know it'd require getting ALSA/OSS set up with something like PulseAudio.
inportb said:
Okay, I'd like to report that it works... pretty well!
I started with PengDroid, so I got Debian instead of Arch. Then installed:
Code:
xinit xserver-xorg-core xserver-xorg-video-fbdev xserver-xorg-input-mtrack lxde
I also don't have a spare USB keyboard and mouse, so I decided to skip the keyboard and try to use the touchscreen as a pointing device. So here's my /etc/X11/xorg.conf:
Code:
Section "ServerLayout"
Identifier "Layout0"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mtrack"
Option "Device" "/dev/input/event2"
EndSection
Section "Device"
Identifier "Adapter0"
Driver "fbdev"
Option "fbdev" "/dev/graphics/fb0"
EndSection
As you can see, I'm using the mtrack driver, which makes the screen behave as a giant trackpad (with two-point touch = right-click). I have not been successful in getting proper touchscreen support working with evdev, but I suspect it might require the mtev driver.
Anyway, to start this thing off via adb:
Code:
ln -s Xorg /usr/bin/X
setprop ctl.stop media
setprop ctl.stop zygote
killall bootanimation
xinit /usr/bin/lxsession
... and to go back to Android,
Code:
^C
setprop ctl.start zygote
@bassrebel: Do you want technical details... or an answer involving unicorns?
Click to expand...
Click to collapse
I prefer the unicorns method!
racks11479 said:
I prefer the unicorns method!
Click to expand...
Click to collapse
+1 for unicorns.
I got to the part where I try to install the mtrack driver but I get:
Code:
E: Unable to locate package xserver-xorg-input-mtrack
EDIT:
I was able to get it running but since no mtrack driver no input so I just restarted. I'm so close, I tried adding repositories to apt and updating but still stuck.
Hi I hope anybody will read this. I really try to get this work but after pacman -Syu I get this error output:
Code:
"[[email protected] /]# pacman -Syu
:: Synchronizing package databases...
core 38.8 KiB 53.8K/s 00:01 [######################] 100%
extra 428.5 KiB 286K/s 00:01 [######################] 100%
community 421.6 KiB 450K/s 00:01 [######################] 100%
alarm 6.0 KiB 5.20M/s 00:00 [######################] 100%
aur 11.7 KiB 1964K/s 00:00 [######################] 100%
:: The following packages should be upgraded first :
pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] y
resolving dependencies...
looking for inter-conflicts...
Targets (1): pacman-4.0.3-3
Total Download Size: 1.00 MiB
Total Installed Size: 3.38 MiB
Net Upgrade Size: 0.00 MiB
Proceed with installation? [Y/n] y
:: Retrieving packages from core...
pacman-4.0.3-3-armv7h 1019.7 KiB 262K/s 00:04 [######################] 100%
(1/1) checking package integrity [######################] 100%
(1/1) loading package files [######################] 100%
(1/1) checking for file conflicts [######################] 100%
warning: could not get filesystem information for /mnt/asec: No such file or directory
warning: could not get filesystem information for /mnt/obb: No such file or directory
warning: could not get filesystem information for /rom: No such file or directory
warning: could not get filesystem information for /system: No such file or directory
warning: could not get filesystem information for /data: No such file or directory
warning: could not get filesystem information for /cache: No such file or directory
warning: could not get filesystem information for /mnt/sdcard: No such file or directory
warning: could not get filesystem information for /mnt/secure/asec: No such file or directory
warning: could not get filesystem information for /mnt/sdcard/.android_secure: No such file or directory
warning: could not get filesystem information for /mnt/emmc: No such file or directory
warning: could not get filesystem information for /data/pengdroid: No such file or directory
(1/1) checking available disk space [######################] 100%
error: Partition / is mounted read only
error: not enough free disk space
error: failed to commit transaction (not enough free disk space)
Errors occurred, no packages were upgraded."
I think I unterstand the problem but how can I fix it.
I had that problem too when I tried to get this running. I ended up searching the problem and had to change a configuration file. I dont really think this linux is worth it to try yet. If only the touchscreen worked though.

[Q] MySQL on Webtop

Hi
I tried to install AMP(apache, mysql, php5) since I was interested on using Atrix as a web server.
Apache was success, but MySQL was failure. No MySQL, No PHP5(of course)
I tried force installing Busybox using dpkg expecting to be updated(version stayed same), removing and making directories that makes the problem, No luck.
I think it's related to my outdated Busybox(readlink?) There's too many problems here.
Lot of people just say "it's impossible" but why not? At least I want to know why it fails.
I have terminal log below. Sorry for bad, bad english.
Thanks
[email protected]:/$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
obconf leafpad lxde-common linux-libc-dev lxrandr pcmanfm lxde-core lxappearance gpicview libc6-dev lxpanel
lxde-settings-daemon xarchiver
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 120 not upgraded.
3 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up mysql-server-5.0 (5.1.30really5.0.75-0ubuntu10.5) ...
* Stopping MySQL database server mysqld [ OK ]
mkdir: cannot create directory `/var/log/mysql': No such file or directory
dpkg: error processing mysql-server-5.0 (--configure):
subprocess post-installation script returned error exit status 1
Setting up libapache2-mod-php5 (5.2.6.dfsg.1-3ubuntu4.6) ...
readlink: invalid option -- 'q'
BusyBox v1.10.2 (Ubuntu 1:1.10.2-2ubuntu7) multi-call binary
Usage: readlink [-f] FILE
Display the value of a symlink
Options:
-f Canonicalize by following all symlinks
ucf: Unable to determine The new file
dpkg: error processing libapache2-mod-php5 (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of php5-mysql:
php5-mysql depends on phpapi-20060613+lfs; however:
Package phpapi-20060613+lfs is not installed.
Package libapache2-mod-php5 which provides phpapi-20060613+lfs is not configured yet.
dpkg: error processing php5-mysql (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
mysql-server-5.0
libapache2-mod-php5
php5-mysql
E: Sub-process /usr/bin/dpkg returned an error code (1)
Click to expand...
Click to collapse
vctshim said:
Hi
I tried to install AMP(apache, mysql, php5) since I was interested on using Atrix as a web server.
Apache was success, but MySQL was failure. No MySQL, No PHP5(of course)
I tried force installing Busybox using dpkg expecting to be updated(version stayed same), removing and making directories that makes the problem, No luck.
I think it's related to my outdated Busybox(readlink?) There's too many problems here.
Lot of people just say "it's impossible" but why not? At least I want to know why it fails.
I have terminal log below. Sorry for bad, bad english.
Thanks
Click to expand...
Click to collapse
Hi, could you solve the issue? I wan to install it too, for my work.
Thanks!
douglasroos said:
Hi, could you solve the issue? I wan to install it too, for my work.
Thanks!
Click to expand...
Click to collapse
I found out it is impossible. Many repos are dead and crucially Ubuntu in this is outdated (without LTS)
I sold the Atrix and bought ARM-based Open PCs (e.g. Raspberry Pi, Cubieboard, Beaglebone Black, Udoo, etc..)
If you want low-power web server, this might be the way to go
(Ubuntu Phone might work but I'm not sure YET)

[Q] How to run blktrace on Android

Hi,
I am trying to run blktrace on my Samsung Galaxy S3; and I compiled my own Android ROM from source code found here: git://github.com/Root-Box/platform_manifest.git (it is Android 4.1.2). I have changed certain configurations so that blktrace is included in the ROM. The linux kernel I am using is 3.0.31-CM
However, when ever I try to run blktrace, I got the following error:
BLKTRACESETUP(2) /dev/block/mmcblk0p1 failed: 25/Not a typewriter.
After using strace to trace the system call, I found that ioctl on /dev/block/mmcblk0p1 with cmd BLKTRACESETUP failed, however I couldn't figure out why.
So I am wondering, did you guys successfully run blktrace on Android; and if so, how did you do that? Also, does anyone has any thoughts on what might went run in my situation?
Thanks a lot.
Suli
So I finally figure this out:
1. In order to use blktrace, the kernel has to be compiled with block tracing support
kernel hacking => tracer => enabling IO tracer
CONFIG_BLKDEV_IO_TRACE
I also enabled a few other tracing options just to be safe
2. In order to use blktrace, all cores have to be online
I observed that blktrace could do ioctl for cpu0 successfully, but not for other cores.
Kernel blktrace facility is creating the trace[n] file in sysfs for the n-th online cpu core which blktrace tries to open.
Usually, only cpu0 is online and others are offline.
That's why blktrace failed opening trace[1, 2, 3] and exited.
So cpufreq governor needs to be changed into "performance" mode
After these two tweaks, it is working
yangsuli said:
So I finally figure this out:
1. In order to use blktrace, the kernel has to be compiled with block tracing support
kernel hacking => tracer => enabling IO tracer
CONFIG_BLKDEV_IO_TRACE
I also enabled a few other tracing options just to be safe
2. In order to use blktrace, all cores have to be online
I observed that blktrace could do ioctl for cpu0 successfully, but not for other cores.
Kernel blktrace facility is creating the trace[n] file in sysfs for the n-th online cpu core which blktrace tries to open.
Usually, only cpu0 is online and others are offline.
That's why blktrace failed opening trace[1, 2, 3] and exited.
So cpufreq governor needs to be changed into "performance" mode
After these two tweaks, it is working
Click to expand...
Click to collapse
I tried to use echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor, however, I still got the error on my nexus 4:
[email protected]:/ # blktrace -d /dev/block/mmcblk0p23 -o sdcard/
Thread 3 failed open /sys/kernel/debug/block/mmcblk0p23/trace3: 2/No such file or directory
Thread 2 failed open /sys/kernel/debug/block/mmcblk0p23/trace2: 2/No such file or directory
Thread 1 failed open /sys/kernel/debug/block/mmcblk0p23/trace1: 2/No such file or directory
FAILED to start thread on CPU 1: 1/Operation not permitted
FAILED to start thread on CPU 2: 1/Operation not permitted
FAILED to start thread on CPU 3: 1/Operation not permitted
request for help
yangsuli said:
So I finally figure this out:
1. In order to use blktrace, the kernel has to be compiled with block tracing support
kernel hacking => tracer => enabling IO tracer
CONFIG_BLKDEV_IO_TRACE
I also enabled a few other tracing options just to be safe
2. In order to use blktrace, all cores have to be online
I observed that blktrace could do ioctl for cpu0 successfully, but not for other cores.
Kernel blktrace facility is creating the trace[n] file in sysfs for the n-th online cpu core which blktrace tries to open.
Usually, only cpu0 is online and others are offline.
That's why blktrace failed opening trace[1, 2, 3] and exited.
So cpufreq governor needs to be changed into "performance" mode
After these two tweaks, it is working
Click to expand...
Click to collapse
Could you tell me how to make cpufreq governor changed into performance mode on nexus
yangsuli said:
Hi,
I am trying to run blktrace on my Samsung Galaxy S3; and I compiled my own Android ROM from source code found here: git://github.com/Root-Box/platform_manifest.git (it is Android 4.1.2). I have changed certain configurations so that blktrace is included in the ROM. The linux kernel I am using is 3.0.31-CM
However, when ever I try to run blktrace, I got the following error:
BLKTRACESETUP(2) /dev/block/mmcblk0p1 failed: 25/Not a typewriter.
After using strace to trace the system call, I found that ioctl on /dev/block/mmcblk0p1 with cmd BLKTRACESETUP failed, however I couldn't figure out why.
So I am wondering, did you guys successfully run blktrace on Android; and if so, how did you do that? Also, does anyone has any thoughts on what might went run in my situation?
Thanks a lot.
Suli
Click to expand...
Click to collapse
Hi, Yangsuli,
For the first step, how to enable I/O tracer please? Just add CONFIG_BLKDEV_IO_TRACE=y in .config? WHat else did you add to the config file?
And Could you tell me how to make cpufreq governor changed into performance mode?
Many thanks!

Run pidgin in ubuntu touch on a Nexus5. Problem with Mir

Hi
I'm trying to run pidgin in ubuntu touch which is installed on Nexus 5.
I did try to run it in libertine container, however it fails with the follwoing error.
Code:
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE)
Fatal server error:
(EE) Failed to connect to Mir: Failed to connect: not accepted by server
(EE)
I have also tried to run it without the container using the following desktop file
Code:
[Desktop Entry]
Name=Pidgin Internet Messenger
GenericName=Internet Messenger
Comment=Chat over IM. Supports AIM, Google Talk, Jabber/XMPP, MSN, Yahoo and more
Exec=pidgin
Icon=pidgin
StartupNotify=true
Terminal=false
Type=Application
Categories=Network;InstantMessaging;
X-MessagingMenu-UsesChatSection=true
X-Ubuntu-Touch=true
X-Ubuntu-Gettext-Domain=pidgin
X-Ubuntu-XMir-Enable=true
To run pidgin I am using the following script, launching it from phone's command line
Code:
#!/bin/bash
DISP=:1
Xmir :1 -mirSocket /var/run/mir_socket --desktop_file_hint=/home/phablet/pidgin.desktop -debug &
sleep 0.5;
DISPLAY=:1 pidgin &
However, Xmir failed with the following error.
Code:
ARM architecture: Defaulting to software mode because glamor is not stable
XMir initialized with 2 visuals:
Visual id 0x28: ff ff00 ff0000, 24 planes
Visual id 0x29: ff ff00 ff0000, 24 planes
Realize ROOT window 0xb8a6d530 id=0xea "": 1080x1920 +0+0 parent=(nil)
depth=24 redir=0 type=0 class=1 visibility=3 viewable=1
override=0 _NET_WM_WINDOW_TYPE=0()
WM_TRANSIENT_FOR=(nil)
WM_HINTS=<none>
Aborted
I checked that unity is running, and the resullt of "ps aux | grep unity" was
Code:
unity-system-compositor --disable-overlays=false --spinner=/usr/bin/unity-system-compositor-spinner --file /run/mir_socket --from-dm-fd 10 --to-dm-fd 13 --vt 1
I also checked that mir_socket is created and reachable under /var/run and /run directories
There are no errors in lightdm file
But Xorg log file shows the following error
Code:
[ 89.205] (II) No BusID or DriverName specified - opening /dev/dri/card0
directory
[ 89.205] (WW) Falling back to old probe method for fbdev
[ 89.205] (WW) Falling back to old probe method for modesetting
[ 89.206] No devices to configure. Configuration failed.
[ 89.206] (EE) Server terminated with error (2). Closing log file.
The directory /dev/dri is missing on my phone. Although libdrm2 is installed
Any ideas how to overcome this problem?
Mqhash said:
Hi
I'm trying to run pidgin in ubuntu touch which is installed on Nexus 5.
I did try to run it in libertine container, however it fails with the follwoing error.
Code:
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE)
Fatal server error:
(EE) Failed to connect to Mir: Failed to connect: not accepted by server
(EE)
I have also tried to run it without the container using the following desktop file
Code:
[Desktop Entry]
Name=Pidgin Internet Messenger
GenericName=Internet Messenger
Comment=Chat over IM. Supports AIM, Google Talk, Jabber/XMPP, MSN, Yahoo and more
Exec=pidgin
Icon=pidgin
StartupNotify=true
Terminal=false
Type=Application
Categories=Network;InstantMessaging;
X-MessagingMenu-UsesChatSection=true
X-Ubuntu-Touch=true
X-Ubuntu-Gettext-Domain=pidgin
X-Ubuntu-XMir-Enable=true
To run pidgin I am using the following script, launching it from phone's command line
Code:
#!/bin/bash
DISP=:1
Xmir :1 -mirSocket /var/run/mir_socket --desktop_file_hint=/home/phablet/pidgin.desktop -debug &
sleep 0.5;
DISPLAY=:1 pidgin &
However, Xmir failed with the following error.
Code:
ARM architecture: Defaulting to software mode because glamor is not stable
XMir initialized with 2 visuals:
Visual id 0x28: ff ff00 ff0000, 24 planes
Visual id 0x29: ff ff00 ff0000, 24 planes
Realize ROOT window 0xb8a6d530 id=0xea "": 1080x1920 +0+0 parent=(nil)
depth=24 redir=0 type=0 class=1 visibility=3 viewable=1
override=0 _NET_WM_WINDOW_TYPE=0()
WM_TRANSIENT_FOR=(nil)
WM_HINTS=<none>
Aborted
I checked that unity is running, and the resullt of "ps aux | grep unity" was
Code:
unity-system-compositor --disable-overlays=false --spinner=/usr/bin/unity-system-compositor-spinner --file /run/mir_socket --from-dm-fd 10 --to-dm-fd 13 --vt 1
I also checked that mir_socket is created and reachable under /var/run and /run directories
There are no errors in lightdm file
But Xorg log file shows the following error
Code:
[ 89.205] (II) No BusID or DriverName specified - opening /dev/dri/card0
directory
[ 89.205] (WW) Falling back to old probe method for fbdev
[ 89.205] (WW) Falling back to old probe method for modesetting
[ 89.206] No devices to configure. Configuration failed.
[ 89.206] (EE) Server terminated with error (2). Closing log file.
The directory /dev/dri is missing on my phone. Although libdrm2 is installed
Any ideas how to overcome this problem?
Click to expand...
Click to collapse
Unfortunately, the only real good method of running X11 applications on Ubuntu Touch is via Libertine. That's odd that it won't connect to Mir. /dev/dri should indeed be missing from your phone, most phones do not expose DRM/DRI to the OS as they don't always have native support for it (for example, Qualcomm devices require the msm_kgsl_drm kernel module, however that module doesn't compile properly on newer kernels.)
On Android devices, an abstraction layer known as Libhybris is used for handling graphics and hardware by wrapping the native Android drivers and using them.
The only thing I could suggest is possibly creating a new empty libertine container and install only pidgin on it to see if it could possibly be an issue with your container, last time I used Ubuntu Touch, Pidgin worked out of the box in Libertine.
Thank you for your reply
ShadowEO said:
The only thing I could suggest is possibly creating a new empty libertine container and install only pidgin on it to see if it could possibly be an issue with your container.
Click to expand...
Click to collapse
Unfortunately, I did try to create a new container but same error. No change . I even tried to run firefox but same error
ShadowEO said:
last time I used Ubuntu Touch, Pidgin worked out of the box in Libertine.
Click to expand...
Click to collapse
What phone were you running ubuntu touch on?
Mqhash said:
Hi
I'm trying to run pidgin in ubuntu touch which is installed on Nexus 5.
I did try to run it in libertine container, however it fails with the follwoing error.
Code:
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE)
Fatal server error:
(EE) Failed to connect to Mir: Failed to connect: not accepted by server
(EE)
Click to expand...
Click to collapse
How exactly did you get to this point? Which UT image? Was libertine included? The scope? The app? Did you install parts of it via apt? How did you run it? Where/how do you read the error?
I have also tried to run it without the container using the following desktop file
Click to expand...
Click to collapse
When you say without the container what exactly do you mean? If you only make the desktop file yourself, then there still is only one pidgin executable and that is the one in the container, right ... I don't know how to connect the two.
Code:
[Desktop Entry]
Name=Pidgin Internet Messenger
GenericName=Internet Messenger
Comment=Chat over IM. Supports AIM, Google Talk, Jabber/XMPP, MSN, Yahoo and more
Exec=pidgin
Icon=pidgin
StartupNotify=true
Terminal=false
Type=Application
Categories=Network;InstantMessaging;
X-MessagingMenu-UsesChatSection=true
X-Ubuntu-Touch=true
X-Ubuntu-Gettext-Domain=pidgin
X-Ubuntu-XMir-Enable=true
To run pidgin I am using the following script, launching it from phone's command line
Code:
#!/bin/bash
DISP=:1
Xmir :1 -mirSocket /var/run/mir_socket --desktop_file_hint=/home/phablet/pidgin.desktop -debug &
sleep 0.5;
DISPLAY=:1 pidgin &
However, Xmir failed with the following error.
Code:
ARM architecture: Defaulting to software mode because glamor is not stable
XMir initialized with 2 visuals:
Visual id 0x28: ff ff00 ff0000, 24 planes
Visual id 0x29: ff ff00 ff0000, 24 planes
Realize ROOT window 0xb8a6d530 id=0xea "": 1080x1920 +0+0 parent=(nil)
depth=24 redir=0 type=0 class=1 visibility=3 viewable=1
override=0 _NET_WM_WINDOW_TYPE=0()
WM_TRANSIENT_FOR=(nil)
WM_HINTS=<none>
Aborted
Click to expand...
Click to collapse
So, firstly, I think libertine should work, so I'd focus on that first. Secondly, if you want to explore an alternative route, I had things working in the past with:
* install via apt
* write a shell script like yours (search the internet for that desktop_file_hint, it seems to have some magical hidden meaning, you do not want to set it to pidgin, but I think to some uhm, whatdidtheycallit, "unconfined" app I think)
* write a desktop file and point it to shell script, and launch it by tapping on the display

Categories

Resources