Latest product reviews
ARCHOS 50 Diamond
ARCHOS GamePad2
ARCHOS
Smartphones
ARCHOS
TV Connect
ARCHOS 101 XS

A A A
Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Register Lost password?

ClockworkMod (CWM) Recovery easy install for RK3066 and RK3188 -- TWRP/CWM Flash-Tool and root for RK3288

 Please donate to support OMA and CrewRKTablets firmware work, thank you !

sp_Feed sp_TopicIcon
Nextbook 7 NX007KL8G kernel and rotation fix.
Resolve rotation issue within init.rc
Avatar
DestructoS
New Member
Forum Posts: 1
Member Since:
2015/10/18
sp_UserOfflineSmall Offline
1
2015/10/18 - 22:54
sp_Permalink sp_Print

I have the above device (YiFang EBM7100KLD_8G) and as there are no custom kernels for it I extracted the stock one to use in the kernel partition so I could run an oma rocks rom.  I noticed that the rotation was off (turned anti-clockwise to the left and rotating in the wrong direction).  None of Omas posted fixes would work for me.  Also I found that all rotation fixes labeled rk30 stopped any rotation, only the ones labeled rk31 did anything.

After a lot of research I found some extra lines in the stock init.rc relating to the gsensor.

write /sys/class/gsensor/yf_vendor fb=-z
write /sys/class/gsensor/yf_vendor leftright=y
write /sys/class/gsensor/yf_vendor updown=x

write /sys/class/gsensor/yf_stk831x fb=x
write /sys/class/gsensor/yf_stk831x leftright=-z
write /sys/class/gsensor/yf_stk831x updown=y

write /sys/class/gsensor/yf_mma8452 fb=x
write /sys/class/gsensor/yf_mma8452 leftright=y
write /sys/class/gsensor/yf_mma8452 updown=z

after unpacking the ramdisk boot image I have been using and inserting these lines into the init.rc my rotation issue was fixed.

I have provided some links for anyone interested.

Stock Kernel Image prepared for flashing.

Custom Ramdisk only with rotation fix for screenshot attached rom and prepared for flashing.

Stock Boot Image unaltered.

Stock build.prop with the odd tweak.

See kernel version in attached screenshot.

Screenshot_2015-10-16-19-14-51.pngImage Enlarger

Forum Timezone: Europe/Paris

Most Users Ever Online: 749

Currently Online:
133 Guest(s)

Currently Browsing this Page:
1 Guest(s)


Devices in use: Desktop (115), Phone (18)

Top Posters:

Oma7144: 5664

globula_neagra: 2424

finless: 604

DarthJabba: 551

exelletor: 450

JochenKauz: 450

cracktech: 430

maikal: 394

Newest Members:

kozlinka

lucasn

gina d

bartgtr

darkasi33

hazy

Forum Stats:

Groups: 10

Forums: 185

Topics: 5884

Posts: 58439

 

Member Stats:

Guest Posters: 43

Members: 255361

Moderators: 5

Admins: 1

Administrators: admin

Moderators: globula_neagra, exelletor, JochenKauz, Oma7144, cracktech


CrewRKTablets moderators: JochenKauz and Astralix