Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
ErroneousBosch
Old
#1  
Member - OP
Thanks Meter 14
Posts: 55
Join Date: Mar 2011
Default 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/201...yboard_16.html
The Following 8 Users Say Thank You to ErroneousBosch For This Useful Post: [ Click to Expand ]
 
poltak11
Old
#2  
poltak11's Avatar
Member
Thanks Meter 25
Posts: 74
Join Date: Feb 2011
Location: Melbourne
Looks like I got something to do after getting through this current barrage of Uni assignments
Galaxy Nexus GT-i9250T | Paranoid Android | Nyan Kernel Tuna | ClockworkMod Touch 6.0.1.0
--SOLD--Telstra HTC Desire - SLCD | Sandvold's CM9 | ManU kernel | ClockworkMod/j_r0dd v4.0.1.4
--SOLD--B&N Nook Color | eyeballer's CM9 builds | stock kernel | Botbrew
--SOLD-- ASUS Transformer 16GB | Prime! v1.7 | Native Ubuntu 11.04 | Stock Prime kernel UC'd@0.9GHz | ClockworkMod 3.1.0.1-solarnz-R3
Lenovo Thinkpad E320 | Gentoo GNU/Linux x86-64 | kernel-ck 3.6
 
inportb
Old
#3  
Recognized Developer
Thanks Meter 166
Posts: 433
Join Date: Dec 2008
Oh, that is impressive. Something I'll have to try, for sure.
 
plasticarmyman
Old
#4  
plasticarmyman's Avatar
Senior Member
Thanks Meter 36
Posts: 184
Join Date: Apr 2011
Location: Long Beach
umm...yeah...i'm gonna try this out for sure
 
zenulator
Old
#5  
zenulator's Avatar
Recognized Developer
Thanks Meter 309
Posts: 2,355
Join Date: Apr 2009

 
DONATE TO ME
\O/

Sent from my NookColor using XDA
 
bassrebel
Old
#6  
Member
Thanks Meter 2
Posts: 90
Join Date: Jan 2009
Location: Orlando, FL
So, how does it work??????
Phone: Samsung Focus
Tablets: Rooted Nook Color (CM7 @ 1300 Mhz )
32GB HP Touchpad 1500Mhz x 2
 
inportb
Old
#7  
Recognized Developer
Thanks Meter 166
Posts: 433
Join Date: Dec 2008
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?
The Following 2 Users Say Thank You to inportb For This Useful Post: [ Click to Expand ]
 
xj220gt
Old
#8  
Member
Thanks Meter 44
Posts: 93
Join Date: Dec 2009
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!
 
inportb
Old
#9  
Recognized Developer
Thanks Meter 166
Posts: 433
Join Date: Dec 2008
I haven't tried getting sound output, but I know it'd require getting ALSA/OSS set up with something like PulseAudio.
 
racks11479
Old
#10  
racks11479's Avatar
Senior Member
Thanks Meter 745
Posts: 987
Join Date: Jan 2011
Location: Fresh Meadows

 
DONATE TO ME
Quote:
Originally Posted by inportb View Post
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?
I prefer the unicorns method!

The Following User Says Thank You to racks11479 For This Useful Post: [ Click to Expand ]
 
Post Reply+
Tags
linux, nook color
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Guide to Using Adobe Air on Android

When writing an app with performance in mind, you most likely want to write it native code using the … more

Boot Animation Paradise for your Android Device

The default boot animations on any device, no matter whichmanufacturer, are generally pretty … more