Linux Mint Türkiye
Yazılım => Wine / PlayonLinux / Virtualbox => Konuyu başlatan: cmertkucuk - 05 Ağustos 2015, 23:02:39
-
Vmware player da kurduğum Android'de ses yok.
Düzenleme: Yazım. Lütfen yazım kurallarına dikkat ediniz.
karakartala
-
Hangi Anroid sürümünü kurdunuz?
-
Hangi Anroid sürümünü kurdunuz?
4.2 kitkat sanırım
-
Kitkat 4.4 sürümü. 4.2 Jelly Bean. Vmware ses kartınızı algılıyor mu? Vmware'in ses ayarlarında kartınız görünüyor mu?
-
Kitkat 4.4 sürümü. 4.2 Jelly Bean. Vmware ses kartınızı algılıyor mu? Vmware'in ses ayarlarında kartınız görünüyor mu?
Biraz geç oldu ama kusura bakmayın.
4.4.2 olarak gözüküyor.
Algılıyor gözüküyor .
(http://i.imgur.com/7uJ5VJd.png)
(http://s6.postimg.org/y7rz2ya4h/Ekran_G_r_nt_s_2015_08_08_13_05_29.png) (http://postimg.org/image/w37m1v8hp/full/)
(http://s6.postimg.org/sibqin3y9/Ekran_G_r_nt_s_2015_08_08_13_05_49.png) (http://postimg.org/image/mu5frqzlp/full/)
(http://s6.postimg.org/40jmur1dt/Ekran_G_r_nt_s_2015_08_08_13_06_50.png) (http://postimg.org/image/yhzhmaoql/full/)
(http://s6.postimg.org/4c137ihtt/Ekran_G_r_nt_s_2015_08_08_13_06_58.png) (http://postimg.org/image/x1nz45ltp/full/)
Düzenleme: Görüntü imgur.com adresine yüklendi
-
Şu komuttan sonra bir değişiklik oluyor mu?
alsa_amixer set PCM 100 unmuteKaynak (http://stackoverflow.com/questions/11037254/no-audio-in-android-x86)
-
Şu komuttan sonra bir değişiklik oluyor mu?
alsa_amixer set PCM 100 unmuteKaynak (http://stackoverflow.com/questions/11037254/no-audio-in-android-x86)
casper@casper-H36Y ~ $ alsa_amixer set PCM 100 unmute
alsa_amixer: komut bulunamadı
casper@casper-H36Y ~ $
-
Sayfaya dikkatli incelememiştim. Bu satırı Android sisteminizdeki init.sh içerisine eklemenizi söylemişler. /system/etc içerisinde init.sh varsa o satırı dosyanın sonuna ekleyip kaydedersiniz. Yoksa şuradaki (http://android.stackexchange.com/questions/81592/how-to-edit-init-sh-file-and-where-is-it) ayrıntıları yazarız.
-
Sayfaya dikkatli incelememiştim. Bu satırı Android sisteminizdeki init.sh içerisine eklemenizi söylemişler. /system/etc içerisinde init.sh varsa o satırı dosyanın sonuna ekleyip kaydedersiniz. Yoksa şuradaki (http://android.stackexchange.com/questions/81592/how-to-edit-init-sh-file-and-where-is-it) ayrıntıları yazarız.
#
# Copyright (C) 2013 The Android-x86 Open Source Project
#
# License: GNU Public License v2 or later
#
function set_property()
{
# this must be run before post-fs stage
echo $1=$2 >> /x86.prop
}
function init_misc()
{
# a hack for USB modem
lsusb | grep 1a8d:1000 && eject
# in case no cpu governor driver autoloads
[ -d /sys/devices/system/cpu/cpu0/cpufreq ] || modprobe acpi-cpufreq
}
function init_hal_audio()
{
case "$PRODUCT" in
VirtualBox*|Bochs*)
[ -d /proc/asound/card0 ] || modprobe snd-sb16 isapnp=0 irq=5
;;
*)
;;
esac
[ -d /proc/asound/card0 ] || modprobe snd-dummy
for c in $(grep '\[.*\]' /proc/asound/cards | awk '{print $1}'); do
alsa_ctl init $c
alsa_amixer -c $c set Master on
alsa_amixer -c $c set Master 100
alsa_amixer -c $c set Headphone on
alsa_amixer -c $c set Headphone 100
alsa_amixer -c $c set Speaker 100
alsa_amixer -c $c set Capture 100
alsa_amixer -c $c set Capture cap
alsa_amixer -c $c set PCM 100 unmute
alsa_amixer -c $c set 'Mic Boost' 3
alsa_amixer -c $c set 'Internal Mic Boost' 3
done
}
function init_hal_bluetooth()
{
for r in /sys/class/rfkill/*; do
type=$(cat $r/type)
[ "$type" = "wlan" -o "$type" = "bluetooth" ] && echo 1 > $r/state
done
# these modules are incompatible with bluedroid
rmmod ath3k
rmmod btusb
rmmod bluetooth
}
function init_hal_camera()
{
[ -c /dev/video0 ] || modprobe vivi
}
function init_hal_gps()
{
# TODO
return
}
function set_drm_mode()
{
case "$PRODUCT" in
ET1602*)
drm_mode=1366x768
;;
*)
;;
esac
[ -n "$drm_mode" ] && set_property debug.drm.mode.force $drm_mode
}
function init_uvesafb()
{
case "$PRODUCT" in
*Q550)
UVESA_MODE=${UVESA_MODE:-1280x800}
;;
ET2002*)
UVESA_MODE=${UVESA_MODE:-1600x900}
;;
T91*)
UVESA_MODE=${UVESA_MODE:-1024x600}
;;
VirtualBox*|Bochs*)
UVESA_MODE=${UVESA_MODE:-1024x768}
;;
*)
;;
esac
modprobe uvesafb mode_option=${UVESA_MODE:-800x600}-16 ${UVESA_OPTION:-mtrr=3 scroll=redraw}
}
function init_hal_gralloc()
{
case "$(cat /proc/fb | head -1)" in
0*inteldrmfb|0*radeondrmfb)
set_property hal.gralloc drm
set_drm_mode
;;
0*svgadrmfb)
;;
"")
init_uvesafb
;&
0*)
[ "$HWACCEL" = "1" ] || set_property debug.egl.hw 0
;;
esac
}
function init_hal_hwcomposer()
{
# TODO
return
}
function init_hal_lights()
{
chown 1000.1000 /sys/class/backlight/*/brightness
}
function init_hal_power()
{
# TODO
case "$PRODUCT" in
*)
;;
esac
}
function init_hal_sensors()
{
case "$(cat $DMIPATH/uevent)" in
*T*00LA*)
modprobe kfifo-buf
modprobe industrialio-triggered-buffer
modprobe hid-sensor-hub
modprobe hid-sensor-iio-common
modprobe hid-sensor-trigger
modprobe hid-sensor-accel-3d
modprobe hid-sensor-gyro-3d
modprobe hid-sensor-als
modprobe hid-sensor-magn-3d
sleep 1; busybox chown -R 1000.1000 /sys/bus/iio/devices/iio:device?/
set_property hal.sensors hsb
;;
*Lucid-MWE*)
set_property ro.ignore_atkbd 1
set_property hal.sensors hdaps
;;
*ICONIA*W*)
set_property hal.sensors w500
;;
*S10-3t*)
set_property hal.sensors s103t
;;
*Inagua*)
#setkeycodes 0x62 29
#setkeycodes 0x74 56
set_property ro.ignore_atkbd 1
set_property hal.sensors kbd
set_property hal.sensors.kbd.type 2
;;
*TEGA*|*2010:svnIntel:*)
set_property ro.ignore_atkbd 1
set_property hal.sensors kbd
set_property hal.sensors.kbd.type 1
io_switch 0x0 0x1
setkeycodes 0x6d 125
;;
*tx2*)
setkeycodes 0xb1 138
setkeycodes 0x8a 152
set_property hal.sensors kbd
set_property hal.sensors.kbd.type 6
set_property poweroff.doubleclick 0
set_property qemu.hw.mainkeys 1
;;
*MS-N0E1*)
set_property ro.ignore_atkbd 1
set_property poweroff.doubleclick 0
;;
*ThinkPad*Tablet*)
set_property hal.sensors hdaps
start wacom-input
;;
*)
set_property hal.sensors kbd
;;
esac
}
function init_tscal()
{
case "$PRODUCT" in
T91|T101|ET2002|74499FU)
if [ ! -e /data/misc/tscal/pointercal ]; then
mkdir -p /data/misc/tscal
touch /data/misc/tscal/pointercal
chown 1000.1000 /data/misc/tscal /data/misc/tscal/*
chmod 775 /data/misc/tscal
chmod 664 /data/misc/tscal/pointercal
fi
;;
*)
;;
esac
}
function init_ril()
{
case "$PRODUCT" in
TEGA*|Intel*)
set_property rild.libpath /system/lib/libreference-ril.so
set_property rild.libargs "-d /dev/ttyUSB2"
;;
*)
;;
esac
}
function init_cpu_governor()
{
governor=$(getprop cpu.governor)
[ $governor ] && {
for cpu in $(ls -d /sys/devices/system/cpu/cpu?); do
echo $governor > $cpu/cpufreq/scaling_governor || return 1
done
}
}
function do_init()
{
init_misc
init_hal_audio
init_hal_bluetooth
init_hal_camera
init_hal_gps
init_hal_gralloc
init_hal_hwcomposer
init_hal_lights
init_hal_power
init_hal_sensors
init_tscal
init_ril
chmod 640 /x86.prop
post_init
}
function do_netconsole()
{
modprobe netconsole netconsole="@/,@$(getprop dhcp.eth0.gateway)/"
}
function do_bootcomplete()
{
init_cpu_governor
[ -z "$(getprop persist.sys.root_access)" ] && setprop persist.sys.root_access 3
# FIXME: autosleep works better on i965?
[ "$(getprop debug.mesa.driver)" = "i965" ] && setprop debug.autosleep 1
for bt in $(lsusb -v | awk ' /Class:.E0/ { print $9 } '); do
chown 1002.1002 $bt && chmod 660 $bt
done
}
PATH=/system/bin:/system/xbin
DMIPATH=/sys/class/dmi/id
BOARD=$(cat $DMIPATH/board_name)
PRODUCT=$(cat $DMIPATH/product_name)
# import cmdline variables
for c in `cat /proc/cmdline`; do
case $c in
androidboot.hardware=*)
;;
*=*)
eval $c
;;
esac
done
[ -n "$DEBUG" ] && set -x || exec &> /dev/null
# import the vendor specific script
hw_sh=/vendor/etc/init.sh
[ -e $hw_sh ] && source $hw_sh
case "$1" in
netconsole)
[ -n "$DEBUG" ] && do_netconsole
;;
bootcomplete)
do_bootcomplete
;;
init|"")
do_init
;;
esac
return 0
-
Dosyanın sonuna bu satırı ekleyince sorun çözülmüyor mu?
alsa_amixer set PCM 100 unmute
-
Dosyanın sonuna bu satırı ekleyince sorun çözülmüyor mu?
alsa_amixer set PCM 100 unmute
sanirim alsa_amixer... ile baslayan satirin sonuna eklemem lazim
Copyright (C) 2013 The Android-x86 Open Source Project
#
# License: GNU Public License v2 or later
#
function set_property()
{
# this must be run before post-fs stage
echo $1=$2 >> /x86.prop
}
function init_misc()
{
# a hack for USB modem
lsusb | grep 1a8d:1000 && eject
# in case no cpu governor driver autoloads
[ -d /sys/devices/system/cpu/cpu0/cpufreq ] || modprobe acpi-cpufreq
}
function init_hal_audio()
{
case "$PRODUCT" in
VirtualBox*|Bochs*)
[ -d /proc/asound/card0 ] || modprobe snd-sb16 isapnp=0 irq=5
;;
*)
;;
esac
[ -d /proc/asound/card0 ] || modprobe snd-dummy
for c in $(grep '\[.*\]' /proc/asound/cards | awk '{print $1}'); do
alsa_ctl init $c
alsa_amixer -c $c set Master on
alsa_amixer -c $c set Master 100
alsa_amixer -c $c set Headphone on
alsa_amixer -c $c set Headphone 100
alsa_amixer -c $c set Speaker 100
alsa_amixer -c $c set Capture 100
alsa_amixer -c $c set Capture cap
alsa_amixer -c $c set PCM 100 unmute
alsa_amixer -c $c set 'Mic Boost' 3
alsa_amixer -c $c set 'Internal Mic Boost' 3
alsa_amixer set PCM 100 unmute
done
}
function init_hal_bluetooth()
{
for r in /sys/class/rfkill/*; do
type=$(cat $r/type)
[ "$type" = "wlan" -o "$type" = "bluetooth" ] && echo 1 > $r/state
done
# these modules are incompatible with bluedroid
rmmod ath3k
rmmod btusb
rmmod bluetooth
}
function init_hal_camera()
{
[ -c /dev/video0 ] || modprobe vivi
}
function init_hal_gps()
{
# TODO
return
}
function set_drm_mode()
{
case "$PRODUCT" in
ET1602*)
drm_mode=1366x768
;;
*)
;;
esac
[ -n "$drm_mode" ] && set_property debug.drm.mode.force $drm_mode
}
function init_uvesafb()
{
case "$PRODUCT" in
*Q550)
UVESA_MODE=${UVESA_MODE:-1280x800}
;;
ET2002*)
UVESA_MODE=${UVESA_MODE:-1600x900}
;;
T91*)
UVESA_MODE=${UVESA_MODE:-1024x600}
;;
VirtualBox*|Bochs*)
UVESA_MODE=${UVESA_MODE:-1024x768}
;;
*)
;;
esac
modprobe uvesafb mode_option=${UVESA_MODE:-800x600}-16 ${UVESA_OPTION:-mtrr=3 scroll=redraw}
}
function init_hal_gralloc()
{
case "$(cat /proc/fb | head -1)" in
0*inteldrmfb|0*radeondrmfb)
set_property hal.gralloc drm
set_drm_mode
;;
0*svgadrmfb)
;;
"")
init_uvesafb
;&
0*)
[ "$HWACCEL" = "1" ] || set_property debug.egl.hw 0
;;
esac
}
function init_hal_hwcomposer()
{
# TODO
return
}
function init_hal_lights()
{
chown 1000.1000 /sys/class/backlight/*/brightness
}
function init_hal_power()
{
# TODO
case "$PRODUCT" in
*)
;;
esac
}
function init_hal_sensors()
{
case "$(cat $DMIPATH/uevent)" in
*T*00LA*)
modprobe kfifo-buf
modprobe industrialio-triggered-buffer
modprobe hid-sensor-hub
modprobe hid-sensor-iio-common
modprobe hid-sensor-trigger
modprobe hid-sensor-accel-3d
modprobe hid-sensor-gyro-3d
modprobe hid-sensor-als
modprobe hid-sensor-magn-3d
sleep 1; busybox chown -R 1000.1000 /sys/bus/iio/devices/iio:device?/
set_property hal.sensors hsb
;;
*Lucid-MWE*)
set_property ro.ignore_atkbd 1
set_property hal.sensors hdaps
;;
*ICONIA*W*)
set_property hal.sensors w500
;;
*S10-3t*)
set_property hal.sensors s103t
;;
*Inagua*)
#setkeycodes 0x62 29
#setkeycodes 0x74 56
set_property ro.ignore_atkbd 1
set_property hal.sensors kbd
set_property hal.sensors.kbd.type 2
;;
*TEGA*|*2010:svnIntel:*)
set_property ro.ignore_atkbd 1
set_property hal.sensors kbd
set_property hal.sensors.kbd.type 1
io_switch 0x0 0x1
setkeycodes 0x6d 125
;;
*tx2*)
setkeycodes 0xb1 138
setkeycodes 0x8a 152
set_property hal.sensors kbd
set_property hal.sensors.kbd.type 6
set_property poweroff.doubleclick 0
set_property qemu.hw.mainkeys 1
;;
*MS-N0E1*)
set_property ro.ignore_atkbd 1
set_property poweroff.doubleclick 0
;;
*ThinkPad*Tablet*)
set_property hal.sensors hdaps
start wacom-input
;;
*)
set_property hal.sensors kbd
;;
esac
}
function init_tscal()
{
case "$PRODUCT" in
T91|T101|ET2002|74499FU)
if [ ! -e /data/misc/tscal/pointercal ]; then
mkdir -p /data/misc/tscal
touch /data/misc/tscal/pointercal
chown 1000.1000 /data/misc/tscal /data/misc/tscal/*
chmod 775 /data/misc/tscal
chmod 664 /data/misc/tscal/pointercal
fi
;;
*)
;;
esac
}
function init_ril()
{
case "$PRODUCT" in
TEGA*|Intel*)
set_property rild.libpath /system/lib/libreference-ril.so
set_property rild.libargs "-d /dev/ttyUSB2"
;;
*)
;;
esac
}
function init_cpu_governor()
{
governor=$(getprop cpu.governor)
[ $governor ] && {
for cpu in $(ls -d /sys/devices/system/cpu/cpu?); do
echo $governor > $cpu/cpufreq/scaling_governor || return 1
done
}
}
function do_init()
{
init_misc
init_hal_audio
init_hal_bluetooth
init_hal_camera
init_hal_gps
init_hal_gralloc
init_hal_hwcomposer
init_hal_lights
init_hal_power
init_hal_sensors
init_tscal
init_ril
chmod 640 /x86.prop
post_init
}
function do_netconsole()
{
modprobe netconsole netconsole="@/,@$(getprop dhcp.eth0.gateway)/"
}
function do_bootcomplete()
{
init_cpu_governor
[ -z "$(getprop persist.sys.root_access)" ] && setprop persist.sys.root_access 3
# FIXME: autosleep works better on i965?
[ "$(getprop debug.mesa.driver)" = "i965" ] && setprop debug.autosleep 1
for bt in $(lsusb -v | awk ' /Class:.E0/ { print $9 } '); do
chown 1002.1002 $bt && chmod 660 $bt
done
}
PATH=/system/bin:/system/xbin
DMIPATH=/sys/class/dmi/id
BOARD=$(cat $DMIPATH/board_name)
PRODUCT=$(cat $DMIPATH/product_name)
# import cmdline variables
for c in `cat /proc/cmdline`; do
case $c in
androidboot.hardware=*)
;;
*=*)
eval $c
;;
esac
done
[ -n "$DEBUG" ] && set -x || exec &> /dev/null
# import the vendor specific script
hw_sh=/vendor/etc/init.sh
[ -e $hw_sh ] && source $hw_sh
case "$1" in
netconsole)
[ -n "$DEBUG" ] && do_netconsole
;;
bootcomplete)
do_bootcomplete
;;
init|"")
do_init
;;
esac
return 0
Şuanda kaydedemiyorum, root ile ilgili (erişim hakları ) bir sıkıntı var.
Gerekli kodu yazıyorum ama kaydedemiyorum .
Android terminal den hangi komut ile init.sh yi nasıl açıp ,düzenleyip, kaydedebilirim .
-
sudo xxxxxxx /etc/init.shile dosyayı açabilirsiniz. xxxx yazan yere metin düzenleyicinin adını yazacaksınız. Paylaştığınız dosya da zaten alsa_amixer -c $c set PCM 100 unmute ekliymiş. Bunu ekleyince bir şeyin değişeceğini sanmıyorum.
alsa_ctl init çıktısında ne görünüyor? Bu komutu Android'de vereceksiniz.
-
sudo xxxxxxx /etc/init.shile dosyayı açabilirsiniz. xxxx yazan yere metin düzenleyicinin adını yazacaksınız. Paylaştığınız dosya da zaten alsa_amixer -c $c set PCM 100 unmute ekliymiş. Bunu ekleyince bir şeyin değişeceğini sanmıyorum.
alsa_ctl init çıktısında ne görünüyor? Bu komutu Android'de vereceksiniz.
Klavye ile ilgili bir sıkıntı yaşıyorum. Karakterler türkçe değil, bu sorun hakkında yeni konu açıyorum,bu sorunu çözdükten sonra gerekli kodu yazabilirim .
Bir yanlış anlaşılma oldu sanırım ,paylaştığım dosya da alsa_amixer -c $c set PCM 100 unmute ekli değil ,onu ben yazdım doğru yere yaılıp yazılmadığını kontrol etmek amacı ile .
(alsa_amixer -c $c set PCM 100 unmute)Bu satırı eklemem gerekiyor ama root olarak giriş yaptığım halde izin reddedildi hatası alıyorum,yazdığım satır kaydedilemiyor.
ES Dosya Yöneticisi aldı uygulama ile gerekli dosyaya ulaşıyorum /system /etc/init.sh daha sonta Editör adlı uygulama ile dosyada gerekli değişimi yapıyorum (gerekli satırı ekliyorum) ama kaydedemiyorum.
bu arada verdiğiniz komutun çıktısı
u0_a23@x86:/ $ alsa_ctl init
alsa_ctl: init:1744: No soundcards found...
19|u0_a23@x86:/ $
Bu komutun çıktısını el ile yazdım, terminalden dosya kopyalayamadığım için .
En kısa sürede bu sorunu da çözeceğim,çözemezsem yardımınızı isteyeceğim.
-
Sesle ilgili başka bir şey bulamadım. 4.4 rc2 sürümünde de ses sorunu yaşayanlar varmış. Başka bir Android sürümü kurduğunuzda da sıkıntı yaşıyor musunuz?
https://code.google.com/p/android-x86/issues/detail?id=1447
-
Sesle ilgili başka bir şey bulamadım. 4.4 rc2 sürümünde de ses sorunu yaşayanlar varmış. Başka bir Android sürümü kurduğunuzda da sıkıntı yaşıyor musunuz?
https://code.google.com/p/android-x86/issues/detail?id=1447 (https://code.google.com/p/android-x86/issues/detail?id=1447)
Evet diğer android sürümlerini de denedim sorun devam ediyor.
-
ES Dosya Yöneticisi aldı uygulama ile gerekli dosyaya ulaşıyorum /system /etc/init.sh daha sonta Editör adlı uygulama ile dosyada gerekli değişimi yapıyorum (gerekli satırı ekliyorum) ama kaydedemiyorum.
Root Browser'i (https://play.google.com/store/apps/details?id=com.jrummy.root.browserfree&hl=tr) kullanmanızı tavsiye ederim. Telefonumu rootlu kullandığımda ES dosya yöneticisin yapamadığını Root Browser 'den rahatlıkla yapmıştım.
-
Sesle ilgili başka bir şey bulamadım. 4.4 rc2 sürümünde de ses sorunu yaşayanlar varmış. Başka bir Android sürümü kurduğunuzda da sıkıntı yaşıyor musunuz?
https://code.google.com/p/android-x86/issues/detail?id=1447 (https://code.google.com/p/android-x86/issues/detail?id=1447)
Başka Android sürümlerinde de aynı sıkıntıyı yaşıyorum.
Bu arada kontrol ettiğim zaman alsa_amixer set PCM 100 unmutebu kod init.sh içersinde yer alıyor zaten ama en altta değil bunun bir sakıncası yoktur sanırım , ve biraz değişik
alsa_amixer -c $c set PCM 100 unmute #
# Copyright (C) 2013 The Android-x86 Open Source Project
#
# License: GNU Public License v2 or later
#
function set_property()
{
# this must be run before post-fs stage
echo $1=$2 >> /x86.prop
}
function init_misc()
{
# a hack for USB modem
lsusb | grep 1a8d:1000 && eject
}
function init_hal_audio()
{
case "$PRODUCT" in
VirtualBox*|Bochs*)
[ -d /proc/asound/card0 ] || modprobe snd-sb16 isapnp=0 irq=5
;;
*)
;;
esac
[ -d /proc/asound/card0 ] || modprobe snd-dummy
for c in $(grep '\[.*\]' /proc/asound/cards | awk '{print $1}'); do
alsa_ctl init $c
alsa_amixer -c $c set Master on
alsa_amixer -c $c set Master 100
alsa_amixer -c $c set Headphone on
alsa_amixer -c $c set Headphone 100
alsa_amixer -c $c set Speaker 100
alsa_amixer -c $c set Capture 100
alsa_amixer -c $c set Capture cap
alsa_amixer -c $c set PCM 100 unmute
alsa_amixer -c $c set 'Mic Boost' 2
done
}
function init_hal_bluetooth()
{
for r in /sys/class/rfkill/*; do
type=$(cat $r/type)
[ "$type" = "wlan" -o "$type" = "bluetooth" ] && echo 1 > $r/state
done
# these modules are incompatible with bluedroid
rmmod ath3k
rmmod btusb
rmmod bluetooth
}
function init_hal_camera()
{
[ -c /dev/video0 ] || modprobe vivi
}
function init_hal_gps()
{
# TODO
return
}
function set_drm_mode()
{
case "$PRODUCT" in
ET1602*)
drm_mode=1366x768
;;
*)
;;
esac
[ -n "$drm_mode" ] && set_property debug.drm.mode.force $drm_mode
}
function init_uvesafb()
{
case "$PRODUCT" in
*Q550)
UVESA_MODE=${UVESA_MODE:-1280x800}
;;
ET2002*)
UVESA_MODE=${UVESA_MODE:-1600x900}
;;
T91*)
UVESA_MODE=${UVESA_MODE:-1024x600}
;;
VirtualBox*|Bochs*)
UVESA_MODE=${UVESA_MODE:-1024x768}
;;
*)
;;
esac
modprobe uvesafb mode_option=${UVESA_MODE:-800x600}-16 ${UVESA_OPTION:-mtrr=3 scroll=redraw}
}
function init_hal_gralloc()
{
case "$(cat /proc/fb | head -1)" in
0*inteldrmfb|0*radeondrmfb)
set_property hal.gralloc drm
set_drm_mode
;;
0*svgadrmfb)
;;
"")
init_uvesafb
;&
0*)
[ "$HWACCEL" = "1" ] || set_property debug.egl.hw 0
;;
esac
}
function init_hal_hwcomposer()
{
# TODO
return
}
function init_hal_lights()
{
chown 1000.1000 /sys/class/backlight/*/brightness
}
function init_hal_power()
{
# TODO
case "$PRODUCT" in
*)
;;
esac
}
function init_hal_sensors()
{
case "$(cat $DMIPATH/uevent)" in
*T*00LA*)
set_property hal.sensors intel
;;
*Lucid-MWE*)
set_property ro.ignore_atkbd 1
;;
*ICONIA*W*)
set_property hal.sensors w500
;;
*S10-3t*)
set_property hal.sensors s103t
;;
*Inagua*)
#setkeycodes 0x62 29
#setkeycodes 0x74 56
set_property ro.ignore_atkbd 1
set_property hal.sensors kbd
set_property hal.sensors.kbd.type 2
;;
*TEGA*|*2010:svnIntel:*)
set_property ro.ignore_atkbd 1
set_property hal.sensors kbd
set_property hal.sensors.kbd.type 1
io_switch 0x0 0x1
setkeycodes 0x6d 125
;;
*tx2*)
setkeycodes 0xb1 138
setkeycodes 0x8a 152
set_property hal.sensors kbd
set_property hal.sensors.kbd.type 6
;;
*MS-N0E1*)
set_property ro.ignore_atkbd 1
set_property poweroff.doubleclick 0
;;
*ThinkPad*Tablet*)
set_property hal.sensors hdaps
start wacom-input
;;
*)
set_property hal.sensors kbd
;;
esac
}
function init_ril()
{
case "$PRODUCT" in
TEGA*|Intel*)
set_property rild.libpath /system/lib/libreference-ril.so
set_property rild.libargs "-d /dev/ttyUSB2"
;;
*)
;;
esac
}
function do_init()
{
init_misc
init_hal_audio
init_hal_bluetooth
init_hal_camera
init_hal_gps
init_hal_gralloc
init_hal_hwcomposer
init_hal_lights
init_hal_power
init_hal_sensors
init_ril
chmod 640 /x86.prop
post_init
}
function do_netconsole()
{
modprobe netconsole netconsole="@/,@$(getprop dhcp.eth0.gateway)/"
}
function do_bootcomplete()
{
[ -z "$(getprop persist.sys.root_access)" ] && setprop persist.sys.root_access 3
# FIXME: autosleep works better on i965?
[ "$(getprop debug.mesa.driver)" = "i965" ] && setprop debug.autosleep 1
for bt in $(lsusb -v | awk ' /Class:.E0/ { print $9 } '); do
chown 1002.1002 $bt && chmod 660 $bt
done
}
PATH=/system/bin:/system/xbin
DMIPATH=/sys/class/dmi/id
BOARD=$(cat $DMIPATH/board_name)
PRODUCT=$(cat $DMIPATH/product_name)
# import cmdline variables
for c in `cat /proc/cmdline`; do
case $c in
androidboot.hardware=*)
;;
*=*)
eval $c
;;
esac
done
[ -n "$DEBUG" ] && set -x || exec &> /dev/null
# import the vendor specific script
hw_sh=/vendor/etc/init.sh
[ -e $hw_sh ] && source $hw_sh
case "$1" in
netconsole)
[ -n "$DEBUG" ] && do_netconsole
;;
bootcomplete)
do_bootcomplete
;;
init|"")
do_init
;;
esac
return 0
-
Aynı iletiyi tekrar yazmanıza gerek yoktu. Başka bir çözüm önerisi bulamadığımdan dolayı cevap yazamadım.