[WEBTOP] GenTop2-20120509 (Beta) - Next Generation Gentoo Webtop Replacement

sublemon

Member
Apr 4, 2008
12
9
0
Lakeland, FL
GenTop2 Wiki for Common Issues

I found a lot of little gotcha's when installing GenTop2. Some of them were self inflicted, others have been around a while. Here is a Wiki I made that covers some of the issues I had and how to fix them without doing a re-install of your ROM or GenTop2 installation.

http://forum.xda-developers.com/wiki/GenTop2_Fixes
  • floating Motorola logo
  • unable to login as adas
  • no login screen
  • Midori is broken
  • Aurora(firefox) is broken
  • enabling swap space
  • running out of space
  • Citrix receiver
  • webtop-panel fix
 
Last edited:

therockk

Senior Member
Aug 3, 2012
463
137
0
Woodbridge, Ontario
Hi, i know this is for the Motorola Atrix. But is their any way to use this but on the new Samsung Galaxy Note 2? When it is docked with the Samsung Smart Dock or another dock when connected to a bigger screen?
 

Alaq

Senior Member
Jan 21, 2011
1,100
343
0
U.S.
Hi, i know this is for the Motorola Atrix. But is their any way to use this but on the new Samsung Galaxy Note 2? When it is docked with the Samsung Smart Dock or another dock when connected to a bigger screen?
Nope, this is specifically for the Atrix... It uses some "moto-magic" which other phones don't have...
 

therockk

Senior Member
Aug 3, 2012
463
137
0
Woodbridge, Ontario
So the LapDock Accessory works with the Samsung Galaxy S3? But when you dock it into the LapDock, dosnt the interface just get mirrored? Or does it turn into this desktop / tablet like interface with the S3?
 

andresrivas

Senior Member
Aug 4, 2010
1,061
363
0
Córdoba
So the LapDock Accessory works with the Samsung Galaxy S3? But when you dock it into the LapDock, dosnt the interface just get mirrored? Or does it turn into this desktop / tablet like interface with the S3?
in a very simple way to see it, lapdock combines 3 separated accesories in one: a lcd panel (connected by the hdmi port), an usb keyboard+mouse combo (with an extra free usb port) and a battery charger (both using the usb port).

the usb has an special "something" that, when combined with the hdmi connection detection, on the atrix triggers the webtop (by the way, there is an app called nebtop that simulates the same trigger and allow us to launch webtop with only the hdmi connected.

in simple words, it is only a screen with an usb kbd+mouse combo.

ics, I think, launches tablet mode when you connect your device to an external monitor through hdmi port. gingerbread has mirroring by default. in fact,, we can bypass webtop and enable mirroring via some big hacks

Enviado desde mi MB860 usando Tapatalk 2
 

supRyze

Member
Nov 25, 2012
14
7
0
mplayer-omx

Hello everyone.

The standard MPlayer have no use for ATRIX since Xv extension is missing, using X11 vo (which is the only one that worked for me) is not good too.
But there is an option to use OMX libraries/codecs in patched version of MPlayer.
OMX video output has both advantages and drawbacks.
The good point is that it CAN show 480p videos fullscreen, but the problem is that it is always fullscreen.
One can use for example this patch on vanilla mplayer sources:
"perso.telecom-paristech.fr/~husson/AC100/OMX_mplayer.patch"
Though that patch lacks OSD.

The better way is to use files from the repository "gitorious.org/ac100/mplayer-omx/" for which this particular patch was once applied.
So far I use the vanilla MPlayer 1.1 with the patch involved applied, though I copied libvo/vo_omx.c from the git.
Playing some 480p works for me, and I have OSD, ASS/SRT subtitles, but 720p is a no-go, I guess omx-vo driver becomes the bottleneck.
By the way, in the git they have some ways to decode files using OMX codecs, and that would be awesome if hardware acceleration will be used for decoding 720p H264, but I was not able to make it operational.

One other thing: one can compile mplayer-omx for the original webtop, that just requires some chrooted workspace with GCC and libraries from webtop's X-server. And I did it once, but the GenTop2 is so good and stable (thanks to Gendol !), that I switched to it without regrets, the only missing thing was the video player.

Thank you for your time reading this message, I hope it will help.
P.S.: I can't post links thus add http prefix yourself.
 
  • Like
Reactions: xdej

x86demon

Member
May 19, 2009
28
3
0
Hello everyone.

The standard MPlayer have no use for ATRIX since Xv extension is missing, using X11 vo (which is the only one that worked for me) is not good too.
But there is an option to use OMX libraries/codecs in patched version of MPlayer.
OMX video output has both advantages and drawbacks.
The good point is that it CAN show 480p videos fullscreen, but the problem is that it is always fullscreen.
One can use for example this patch on vanilla mplayer sources:
"perso.telecom-paristech.fr/~husson/AC100/OMX_mplayer.patch"
Though that patch lacks OSD.

The better way is to use files from the repository "gitorious.org/ac100/mplayer-omx/" for which this particular patch was once applied.
So far I use the vanilla MPlayer 1.1 with the patch involved applied, though I copied libvo/vo_omx.c from the git.
Playing some 480p works for me, and I have OSD, ASS/SRT subtitles, but 720p is a no-go, I guess omx-vo driver becomes the bottleneck.
By the way, in the git they have some ways to decode files using OMX codecs, and that would be awesome if hardware acceleration will be used for decoding 720p H264, but I was not able to make it operational.

One other thing: one can compile mplayer-omx for the original webtop, that just requires some chrooted workspace with GCC and libraries from webtop's X-server. And I did it once, but the GenTop2 is so good and stable (thanks to Gendol !), that I switched to it without regrets, the only missing thing was the video player.

Thank you for your time reading this message, I hope it will help.
P.S.: I can't post links thus add http prefix yourself.
Hi. may you provide more details how to get it on ventilation?
The variant I'm using now is mxplayer in aiw

Sent from my Nexus S using xda app-developers app
 

supRyze

Member
Nov 25, 2012
14
7
0
busybox

I'm having success with all the steps to install EXCEPT the tar command?! It keeps saying "no such file or directory" Any help?
That's a known issue, just install "busybox installer" on the android market and install "busybox" using that android application.
The latest version of busybox did not work for me, but one can select some previous version from the list until it would succeed.
 

supRyze

Member
Nov 25, 2012
14
7
0
mplayer-omx

The variant I'm using now is mxplayer in aiw
The MXPlayer is the musthave android application, I use it myself while not on lapdock.
But with the lapdock I think it is bad idea to use it in aiw, and it is because:
1) I see a flicker while playing videos in MXPlayer via aiw.
2) Native resolution of atrix phone is 960x540 and then it is rescaled to 1366x768, do not forget that the original video could be 720x400.
So the video was rescale twice thus the quality has been already degraded.
The only good point is that it works out of the box.
For any case when "Entertainment center" is usable it should be used, but these are not many cases. :(

Hi. may you provide more details how to get it on ventilation?
I guess I forgot that not many users of Gentop2 are experienced in linux, though that should be as a given.
But If you would succeed building, it will be great by producing feedback and double checking if it is usable indeed.

The usual approach of installing opensource applications is to get them from repository, but if they are not there...
One can build it from source codes downloaded.
Using MPlayer as example, one should (everything is done on the atrix itself):
1) download sources from their web site www . mplayerhq . hu,
I downloaded "http : // www . mplayerhq . hu /MPlayer/releases/MPlayer-1.1.tar.gz" to the adas home directory.
One can do it using browser or wget standard utility.
2) unpack it in the home directory with the "tar zxf MPlayer-1.1.tar.gz" command. The "MPlayer-1.1" folder should appear.
3) go to that directory with "cd MPlayer-1.1" command.
4) one can apply additional patches or use a vanilla version without any modifications.
I applied the OMX_mplayer.patch which I described in my previous post.
It was done using "patch -p1 <../OMX_mplayer.patch" command, of course the patch itself was downloaded before to the same directory as sources.
5) at this point the common way is a "./configure; make; sudo make install" combo, a better aproach is to use "checkinstall" scripts but I dont think
we can afford it on atrix and I dont know how checkinstall behaves on gentoo.
So I was using configure optimization parameters from /etc/make.conf and first command looks like:
./configure --enable-menu --extra-cflags="-march=armv7-a -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=softfp"
Once it finished, I used "make -j3" to launch build proccess.
After the build completes without error, mplayer binary should appear and it could be checked inplace to understand if it's worth installing.
If it works as expected, one should install it to the system directories with the "sudo make install" command.

P.S.: Why did I supply configure with "--enable-menu" flag?
I think it is a remnant of my tries to enable OSD in mplayer. Only after investigating "libvo/vo_omx.c" I found out that draw_osd(void) function was empty and switch to git version of that file.
P.P.S.: As before remove spaces from the links, I still cant post web-links.

---------- Post added at 11:00 PM ---------- Previous post was at 10:20 PM ----------

The build process should complete in half of an hour.
The exact number on my atrix were:
Code:
real	26m46.044s
user	50m36.290s
sys	1m51.270s
[email protected] ~/src/MPlayer-1.1 $ ./mplayer
A couple of words about usage:
A generic way of using mplayer on the command line is "$ mplayer -vo omx Movie.avi".
But many default options can be brought to "~/.mplayer/config" configuration file. The contents of my file is the following:
Code:
[email protected] ~/src/MPlayer-1.1 $ cat ~/.mplayer/config 
# Write your default config options here!
vo=omx
cache=1024
af=scaletempo
lavdopts="threads=2:skiploopfilter=all"
fontconfig=yes
ass=yes
The "af=scaletempo" just means that I usually use "]" key or "-speed" parameter to increase speed in movies, and can be omitted for a common user.

The next step is to modify the "/etc/mc/mc.ext" file so as when one clicks enter while cursor is placed on the media file the mplayer will be lauched.
Of course it concerns only "Midnight Commander", I don't use gui "File manager".
Whatever it was on the 487 line, now it looks as following:
Code:
include/video
         Open=(mplayer %f)
         #Open=(gtv %f >/dev/null 2>&1 &)
         #Open=(xanim %f >/dev/null 2>&1 &)

### Documents ###
I remember the default command was mplayer blablablah with a "&" character on the end
which is not that we want since MPlayer goes fullscreen and should preserve keyboard focus.
With the default mc.ext file, the mc just gets back the focus after launching mplayer in the background,
so any keyboard input doesn't go to mplayer but to the mc instead,
and there is no way to quit the mplayer other than "killall mplayer" command.
This is why mc.ext should be modified.

P.P.P.S.:
By the way I forgot that I made symlinks for openmax includes:
Code:
$ sudo -s
# cd /usr/include
# ln -s openmax OpenMAX
# cd openmax
# ln -s il IL
Otherwise one can correct mplayer sources #include directives.

P.P.P.P.S.:
Sometimes mplayer uses ffmpeg ffodivx for xvid encoded videos and in that case user will see a black screen.
That can be solved by providing "-vc xvid" command line argument. Yet using xvid for all divx avi-files is bad idea because xvid-decoder can be slower than ffmpeg.
That's a true mystery why the svn version of mplayer from my distro on my PC selects them right but stable 1.1 on lapdock does not.
 
Last edited:
  • Like
Reactions: x86demon and xdej

BigJeff

Senior Member
Jun 4, 2011
835
177
0
Stanwood
That's a known issue, just install "busybox installer" on the android market and install "busybox" using that android application.
The latest version of busybox did not work for me, but one can select some previous version from the list until it would succeed.
which busybox installer, and which version of busybox should i install after downloading the app?
 

Alaq

Senior Member
Jan 21, 2011
1,100
343
0
U.S.
I did this and it broke root privelages. What directory did you install this into? This is being such a pain...
Just follow this guide, not just for webtop2sd, its kinda universal to getting busybox working...
Okay now I try to explain how i got it working: (Maybe it works maybe not for me it worked)

1. Install Jrummy Busyboy Installer.
2. Start and navigate to menu button-> preferences -> uninstall busybox
3. Install busybox version 1.20 to system/bin
4. Create in system/etc a folder "webtop2sd"
5. Now use Es Explorer/Root Explorer to copy "busybox" file in system/bin to system/etc/webtop2sd
6. Use Es Explorer/Root Exlorer to delete the file "su" in system/bin and in system/xbin
7. Restart u phone to recovery.
8. Flash the attached file (a old SuperUser.apk but it works)
10. Now restart u phone and use a app with superuser rights.
11. Then start webtop2sd
12. Hopefully it works. If yes there is a Thanks button :D

Download Superuser
 
  • Like
Reactions: BigJeff

supRyze

Member
Nov 25, 2012
14
7
0
I did this and it broke root privelages. What directory did you install this into? This is being such a pain...
On my phone busybox is installed to /system/xbin/.
Getting root again can be done rather quickly with the superoneclick. Maybe I had the same issue, but it was so long ago...
What you should finally get is the following picture:
Code:
# ls -l /system/xbin/tar
lrwxrwxrwx root     root     2012-11-14 01:26 tar -> /system/xbin/busybox
Where should be lots of symlinks pointed at busybox also.
 

crnkoj

Senior Member
Feb 16, 2011
1,833
397
103
That would be too easy for the end user... Somehow if you don't know how to install it yourself it's probably not a good idea to have/use gentop on your phone as it demands quite some knowledge to set it up properly after having it already running.