LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.

Notices


Reply
  Search this Thread
Old 07-30-2014, 01:38 PM   #1
linuxman1237
LQ Newbie
 
Registered: Jul 2014
Posts: 1

Rep: Reputation: Disabled
Linux Desktop on Android


I thought this was cool
You can run X on Android and get a Linux desktop.
https://www.youtube.com/watch?v=t2yj8QYoBhA
 
Old 08-08-2014, 04:19 AM   #2
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
pretty interesting, thank you for sharing
 
Old 03-26-2015, 03:58 AM   #3
jdog320
LQ Newbie
 
Registered: Aug 2014
Distribution: Debian
Posts: 28

Rep: Reputation: Disabled
I've already done that before, with input working of course.
 
Old 03-26-2015, 12:47 PM   #4
Ihatewindows522
Member
 
Registered: Oct 2014
Location: Fort Wayne
Distribution: Ubuntu 16.04 LTS
Posts: 616
Blog Entries: 2

Rep: Reputation: 166Reputation: 166
How'd it work? Been wanting to try GNOME on my Galaxy Tab for a while now.
 
Old 03-26-2015, 10:50 PM   #5
jdog320
LQ Newbie
 
Registered: Aug 2014
Distribution: Debian
Posts: 28

Rep: Reputation: Disabled
Question

Quote:
Originally Posted by Ihatewindows522 View Post
How'd it work? Been wanting to try GNOME on my Galaxy Tab for a while now.
The touchscreen driver doesn't seem to have any problems. So yeah.
Since I am using Linux Deploy, here is what I did:

1. Download mtev driver from here (either from your chroot linux or android.)

http://forum.xda-developers.com/showpost.php?p=35205246
Find touch.tar.gz
2. Extract it using:

Code:
 harlan@localhost~$: tar -zxvf touch.tar.gz
Then you should see a bunch of files.
3. Go into that dir by typing:
Code:
 harlan@localhost~$: cd touch
Then there should be another dir called xorg-x11-drv-mtev-0.1.13, cd into that.
4. Copy the prebuilt .so file by typing:
Code:
 harlan@localhost~$: sudo cp obj/mtev.so /usr/lib/xorg/modules/input/
And MAKE SURE YOU APPEND THE SLASH AT THE END OR ELSE cp IS GOING TO THINK THAT IT IS A FILE.
ls shows me two drivers already:
Code:
 harlan@localhost~$: ls
 evdev_drv.so mtev.so
5. Install libmtdev1
Code:
 harlan@localhost~$: sudo apt-get install libmtdev1
6. If you have an xorg.conf, go to Section "InputDevice then add an additional line with Driver "mtev".

7. create a config file to configure mtev.
Note: select your appropriate device e.g. /dev/input/event2
But, when in doubt, install evtest package to test it.

8. If you want landscape support, here it is:

8a. Download xinput
Code:
 harlan@localhost~$: sudo apt-get install xinput
8b. Configure axes.
Since most touch drivers don't include auto rotation here is how to do it. I got the values from the ubuntu wiki:https://wiki.ubuntu.com/X/InputCoordinateTransformation

create xinput.sh

Code:
#! /bin/sh
#for standard 90 degree landscape rotation.
xinput set-prop 'touchscreen' 'Coordinate Transformation Matrix' 0 -1 1 0 0 1
Save it and set it as an executable.
Code:
 harlan@localhost~$: chmod 755 xinput.sh
Boot up desktop by using an external xserver and go to sessions and startup. Find xinput.sh, save, logout, exit.
8c. Final touches to xorg.conf
Go to the screen section at the bottom then remove # at the beggining of #Option "Rotate" "CW" so it becomes Option "Rotate" "CW"
9. Setup from linux deploy.
Go to Properties or the download button.
Select gui as framebuffer, go to fb options, select fb device to your liking and also input. Then choose stop on the bottom. Because android conflicts with the framebuffer device. Go back then start and if all goes well it should kill android and touchscreen should work as well.
Note. Logout doesn't work properly so you need to hold power button to turn it off. Also everything is not perfect. Of course setup varies from device to device.

Hope this helps you! Good Luck! Just ask me any questions or problem just in case. Also I could post a full blown tutorial sooner or later. Also I need help too, how do I get Sound working in chroot???

Last edited by jdog320; 03-27-2015 at 05:15 AM.
 
Old 03-27-2015, 03:40 PM   #6
Ihatewindows522
Member
 
Registered: Oct 2014
Location: Fort Wayne
Distribution: Ubuntu 16.04 LTS
Posts: 616
Blog Entries: 2

Rep: Reputation: 166Reputation: 166
Wow...OK, might try that someday when I have the storage space for GNOME and a few useful apps.

Wonder if you could get away with an app that does (most of) this for you on the Play Store...or would that fall under the dark arts?

EDIT: Also, how do you quit X to get back to the Android UI?
 
Old 03-27-2015, 07:25 PM   #7
jdog320
LQ Newbie
 
Registered: Aug 2014
Distribution: Debian
Posts: 28

Rep: Reputation: Disabled
Quote:
Originally Posted by Ihatewindows522 View Post
Wow...OK, might try that someday when I have the storage space for GNOME and a few useful apps.

Wonder if you could get away with an app that does (most of) this for you on the Play Store...or would that fall under the dark arts?

EDIT: Also, how do you quit X to get back to the Android UI?
There is Linux Deploy on the Play Store which automatically sets up scripts and stuff including an xorg.conf.
And also regarding your 2nd question, you could write a script which tells the system to start the android processes after killing X.

Last edited by jdog320; 03-27-2015 at 10:15 PM.
 
Old 03-28-2015, 08:27 PM   #8
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Cool. I guess that, following the same principle, it's possible to create a custom ROM with the Android kernel and a Linux distro on top of it. Maybe not too practical, but cool nonetheless.
 
Old 03-29-2015, 06:05 AM   #9
jdog320
LQ Newbie
 
Registered: Aug 2014
Distribution: Debian
Posts: 28

Rep: Reputation: Disabled
Quote:
Originally Posted by odiseo77 View Post
Cool. I guess that, following the same principle, it's possible to create a custom ROM with the Android kernel and a Linux distro on top of it. Maybe not too practical, but cool nonetheless.
If you want to create full blown distro out of an android kernel you have to implement sysv-rpc and a whole bunch of stuff you see on a desktop linux kernel. Seriously!? Nobody has ever done this before. Also people already made ports of linux natively running on these devices. Nexus 7 running ubuntu, Asus transformers with ubuntu and gentoo on them.
 
Old 03-29-2015, 07:00 PM   #10
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Quote:
Originally Posted by jdog320 View Post
If you want to create full blown distro out of an android kernel you have to implement sysv-rpc and a whole bunch of stuff you see on a desktop linux kernel. Seriously!? Nobody has ever done this before. Also people already made ports of linux natively running on these devices. Nexus 7 running ubuntu, Asus transformers with ubuntu and gentoo on them.
I mentioned it just as a possibility for a hacking/learning experiment based on the video. But yeah, must be way more complex than it sounds.
 
Old 04-06-2015, 04:21 PM   #11
Ihatewindows522
Member
 
Registered: Oct 2014
Location: Fort Wayne
Distribution: Ubuntu 16.04 LTS
Posts: 616
Blog Entries: 2

Rep: Reputation: 166Reputation: 166
Looks like the only thing holding me back is space on the flash. (Only have an 8GB tablet, and half of that is used as ROM/system storage). I don't know if I can symlink the directories to /extSdCard, but I doubt it as the filesystem is FAT.

Oh well, I'll wait for Ubuntu on my tablet, then I'll play with GNOME.
 
Old 04-06-2015, 09:25 PM   #12
jdog320
LQ Newbie
 
Registered: Aug 2014
Distribution: Debian
Posts: 28

Rep: Reputation: Disabled
Quote:
Originally Posted by Ihatewindows522 View Post
Looks like the only thing holding me back is space on the flash. (Only have an 8GB tablet, and half of that is used as ROM/system storage). I don't know if I can symlink the directories to /extSdCard, but I doubt it as the filesystem is FAT.

Oh well, I'll wait for Ubuntu on my tablet, then I'll play with GNOME.
If you have an external sdcard you can either repartion it with an ext 2/3/4 or just simply create an image to there.
 
Old 04-16-2015, 02:18 PM   #13
Ihatewindows522
Member
 
Registered: Oct 2014
Location: Fort Wayne
Distribution: Ubuntu 16.04 LTS
Posts: 616
Blog Entries: 2

Rep: Reputation: 166Reputation: 166
Quote:
Originally Posted by jdog320 View Post
If you have an external sdcard you can either repartion it with an ext 2/3/4 or just simply create an image to there.
I already tried that. Didn't recognize the filesystem. It will however recognize it over USB OTG. Weird. Don't have the adapter any more, starting to think I should get another one.
 
Old 07-04-2015, 10:58 PM   #14
8bit
LQ Newbie
 
Registered: Jul 2015
Posts: 8

Rep: Reputation: Disabled
would it work smoothly on 1.5ghz quad-core androids? or lagg?
 
Old 07-05-2015, 02:52 AM   #15
jdog320
LQ Newbie
 
Registered: Aug 2014
Distribution: Debian
Posts: 28

Rep: Reputation: Disabled
Sure. Even works smoothly on my 1.2Ghz Dual Core. BTW what's your SoC.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to integrate Android into KDE Linux desktop LXer Syndicated Linux News 0 01-05-2014 08:03 PM
[SOLVED] ssh console from Android phone to Linux desktop SecretCode Linux - Mobile 2 09-17-2012 03:13 PM
LXer: Windows vs. Android: Does Desktop Linux Win? LXer Syndicated Linux News 0 06-28-2012 09:30 AM
[SOLVED] Is it possible to run desktop Linux CLI programs in Android? adanedhel728 Linux - Mobile 4 02-20-2011 08:13 AM
LXer: Is Android the key to the GNU/Linux desktop? Really? LXer Syndicated Linux News 0 06-14-2009 10:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 12:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration