إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...

انضم الينا
استراحات زايد الصفحة الرئيسية

         :: تفسير حلم كلاب تهاجمني (آخر رد :نوران نور)       :: تفسير حلم اخو الزوج يقبلني (آخر رد :نوران نور)       :: تفسير حلم اخو الزوج يقبلني (آخر رد :نوران نور)       :: رؤية الولد الجميل في المنام (آخر رد :نوران نور)       :: رؤية قص الشعر في المنام (آخر رد :نوران نور)       :: تفسير حلم حناء اليد (آخر رد :نوران نور)       :: حلمت اني قصيت شعري وكنت فرحانه (آخر رد :نوران نور)       :: تفسير حلم الزعل (آخر رد :نوران نور)       :: تفسير الاحلام الذهب (آخر رد :نوران نور)       :: رؤية صعود الدرج في المنام للعزباء (آخر رد :نوران نور)      

إضافة رد
 
LinkBack أدوات الموضوع انواع عرض الموضوع
  #1  
قديم 02-22-2010, 05:00 PM
عضو ماسي
بيانات محروم.كوم
 رقم العضوية : 503
 تاريخ التسجيل : Dec 2007
الجنس : female
علم الدوله :
 المشاركات : 2,100,612
عدد الـنقاط :3341
 تقييم المستوى : 2139

السلام عليكم

اليوم تفاجئت .. وانا اتفصح موقع مايمو الرسمي

طبعا مايمو توك ..!

لقيت احد الشباب البرمجين قدر يشغل الجهاز بالطول وبالعرض

طبعاً غير الطريقة القديمه اللي تكون مو كامله ..

اما الحين كامله والكمال لله الشاشه تشوفها بالكامل

طبعـاً هذا الفيديو للتأكيد



مادام هالمبرمج قدر عليها فـ أبشروا بالتحديث القادم ..
انه يكون بالطول وبالعرض N900 يهز الأرض
للتحميل من هالرابط

http://www.megaupload.com/?d=LAO6ZEF3


الطريقه :


The steps to create and install rotate.py are:

Create the file in python (or download at the end of post, then go directly to step 4). we can use, for example, the program ConTEXT.

Copy and paste the following lines :

from ctypes import *
import os
import sys
import time
from math import atan2
from pprint import pprint

xlib = cdll.LoadLibrary("libX11.so.6")
rr = cdll.LoadLibrary("libXrandr.so.2")

def get_rotation():
f = open("/sys/class/i2c-adapter/i2c-3/3-001d/coord", 'r' )
coords = [int(w) for w in f.readline().split()]
f.close()
return coords

print get_rotation()

def rotate(angle):
rr.XRRSetScreenConfigAndRate(display,config,root,s ize,angle,rate,timestamp)

display = xlib.XOpenDisplay(os.getenv("DISPLAY"))
screen = xlib.XDefaultScreen(display)
root = xlib.XDefaultRootWindow(display, screen)

class XRRScreenConfiguration(Structure):
pass

gsi = rr.XRRGetScreenInfo
gsi.restype = POINTER(XRRScreenConfiguration)
config = gsi(display, root)

current_time = c_ulong()
rr.XRRTimes.restpye = c_ulong
timestamp = rr.XRRTimes(display, screen, byref(current_time))

xccr = rr.XRRConfigCurrentRate
xccr.restype = c_int
rate = xccr(config)

rotation = c_ushort()
size = rr.XRRConfigCurrentConfiguration(config, byref(rotation))

while True:
[x,y,z] = get_rotation()
print x,y,z
if y < -500:
rotate(1)
elif y > 500:
rotate(4)

elif x < -500:
rotate(2)
elif x > 500:
rotate(8)

time.sleep(1)
Save the document with the name rotate.py (PY is the Python file extension)
Copy in a folder on the N900 the file rotate.py.
Start xterm on N900 and type :
python rotate.py


1. copy rotate.py to root dir /

2. open xterm:

root [enter]
cd / [enter]
python rotate.py [enter]

3. minimize window and rotate phone!
__DEFINE_LIKE_SHARE__
رد مع اقتباس
إضافة رد

مواقع النشر (المفضلة)


تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة



الساعة الآن 08:09 PM


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir

RSS RSS 2.0 XML MAP HTML