顯示具有 xorg 標籤的文章。 顯示所有文章
顯示具有 xorg 標籤的文章。 顯示所有文章

2009年12月22日 星期二

Install Maemo 5 SDK on Arch Linux

1. download GUI Installer made with python from http://www.forum.nokia.com/Tools_Docs_and_Code/Tools/Platforms/Maemo/

2. according to http://wiki.maemo.org/Documentation/Maemo_5_Final_SDK_Installation, the python script needs to be modified for non-debian linux

129c129
< SB_PATH = "/scratchbox"
---
> SB_PATH = "/opt/scratchbox"
2297a2298
> opt = opt + "-s /opt/scratchbox"
2351a2353
> cmd = cmd +" -s /opt/scratchbox"

3. then run the installer

sudo python ./maemo-sdk-install-wizard_5.0.py

4. start the Xephyr xserver

Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac &

-host-cursor # re-use exisiting X host server cursor
-screen WIDTHxHEIGHT # specify screen characteristics
-dpi # screen resolution in dots per inch
-ac # disable access control restrictions
-help # prints message with these options

5. disable vdso support in the host's kernel

vi /etc/sysctl
--

# Disable VDSO support
vm.vdso_enabled = 0

6. load in sysctl settings from the file

sudo sysctl -p

7. log out and log back or login to the new group in the current session

newgrp sbox

8. login to scratchbox

/opt/scratchbox/login

9. set the DISPLAY variable to match the display setting given for the Xephyr server

[sbox-FREMANTLE_X86: ~] > export DISPLAY=:2

10. start the ui framework

[sbox-FREMANTLE_X86: ~] > af-sb-init.sh start

11. method to shutdown

[sbox-FREMANTLE_X86: ~] > af-sb-init.sh stop

12. if your linux is non-debian based, start scratchbox manually when the system is rebooted

sudo /opt/scratchbox/sbin/sbox_ctl start

2009年4月7日 星期二

Set up Xorg on Arch Linux

1. install xorg and your graphic card driver

sudo pacman -S xorg xf86-video-intel

2. auto-generate xorg.conf from detected result

Xorg -configure

3. DO NOT run test before hal or your keyboard and mouse will be freezed

Xorg -config filename

4. move the generated file to /etc/X11

sudo mv xorg.conf.new /etc/X11/xorg.conf

5. add the following setting to xorg.conf

vi /etc/X11/xorg.conf
--

..
Section "Module"
Load "glx"
..
..
Section "Monitor"
DisplaySize 336 210
..
..
Section "Screen"
SubSection "Display"
Modes "1280x800" "1024x768"
..

module glx is for 3d acceleration

in order to get correct sizing for fonts, the display size must be set for your desired dpi.
display size = (x|y)pixels * 25.4 / dpi
i'm running xorg with a resolution of 1280x800 and want a dpi of 96 so i use 1280 x 25.4 / 96 and 800 x 25.4 / 96

if you wish to use a lower resolution than your monitor is capable of, manually specify modes which you need only

6. edit /etc/rc.conf to load hal on boot

vi /etc/rc.conf
--

DAEMONS=(syslog-ng network netfs crond hal)