'error'에 해당되는 글 5건
- 2011.03.22 [android][error] /dev/pmem, libhgl.so 에러
- 2011.03.22 [android][error] BatteryService 패치
- 2011.03.22 [android][error] can't find any keycharmaps & can't open keycharmaps file
- 2009.02.23 realvnc viewer 리눅스용 에러 수정법
- 2008.08.04 vmware-tools 모듈 컴파일 시 에러 생길 때 해결 법 - vmware on the windows(guest linux) 2
[android][error] /dev/pmem, libhgl.so 에러
'임베디드 > Android' 카테고리의 다른 글
[android] mang64 ramdisk boot argument(u-boot) (0) | 2011.03.25 |
---|---|
[android] 화면에 fps 수치 표시하기 (0) | 2011.03.25 |
[android][error] BatteryService 패치 (0) | 2011.03.22 |
[android][error] power.c 패치 (0) | 2011.03.22 |
[android][error] can't find any keycharmaps & can't open keycharmaps file (0) | 2011.03.22 |
[android][error] BatteryService 패치
- 위치 : frameworks/base/services/jni
- 파일 : com_android_server_BatteryService.cpp
- 에러메세지 :
E/BatteryService( 1866): Could not open '/junk_battery/class/power_supply/battery/status'
W/BatteryService( 1866): Unknown battery health[2] '100'
- 패치 내용 :
{
#if 0
setBooleanField(env, obj, AC_ONLINE_PATH, gFieldIds.mAcOnline);
setBooleanField(env, obj, USB_ONLINE_PATH, gFieldIds.mUsbOnline);
setBooleanField(env, obj, BATTERY_PRESENT_PATH, gFieldIds.mBatteryPresent);
setIntField(env, obj, BATTERY_CAPACITY_PATH, gFieldIds.mBatteryLevel);
setIntField(env, obj, BATTERY_VOLTAGE_PATH, gFieldIds.mBatteryVoltage);
setIntField(env, obj, BATTERY_TEMPERATURE_PATH, gFieldIds.mBatteryTemperature);
const int SIZE = 128;
char buf[SIZE];
if (readFromFile(BATTERY_STATUS_PATH, buf, SIZE) > 0)
env->SetIntField(obj, gFieldIds.mBatteryStatus, getBatteryStatus(buf));
if (readFromFile(BATTERY_HEALTH_PATH, buf, SIZE) > 0)
env->SetIntField(obj, gFieldIds.mBatteryHealth, getBatteryHealth(buf));
if (readFromFile(BATTERY_TECHNOLOGY_PATH, buf, SIZE) > 0)
env->SetObjectField(obj, gFieldIds.mBatteryTechnology, env->NewStringUTF(buf));
#else
env->SetBooleanField(obj, gFieldIds.mAcOnline, true);
env->SetBooleanField(obj, gFieldIds.mUsbOnline, false);
env->SetBooleanField(obj, gFieldIds.mBatteryPresent, false);
env->SetIntField(obj, gFieldIds.mBatteryLevel, 100);
env->SetIntField(obj, gFieldIds.mBatteryVoltage, 15);
env->SetIntField(obj, gFieldIds.mBatteryTemperature, 20);
const int SIZE = 128;
char buf[SIZE];
env->SetIntField(obj, gFieldIds.mBatteryStatus, getBatteryStatus("F"));
env->SetIntField(obj, gFieldIds.mBatteryHealth, getBatteryHealth("G"));
env->SetObjectField(obj, gFieldIds.mBatteryTechnology, env->NewStringUTF("Nemus"));
#endif
}
'임베디드 > Android' 카테고리의 다른 글
[android] 화면에 fps 수치 표시하기 (0) | 2011.03.25 |
---|---|
[android][error] /dev/pmem, libhgl.so 에러 (0) | 2011.03.22 |
[android][error] power.c 패치 (0) | 2011.03.22 |
[android][error] can't find any keycharmaps & can't open keycharmaps file (0) | 2011.03.22 |
[android] HOME key 살리기 (0) | 2011.03.21 |
[android][error] can't find any keycharmaps & can't open keycharmaps file
- /system/usr/keychars 안에 있는 모든 파일에 644퍼미션을 주면 해결 된다.
'임베디드 > Android' 카테고리의 다른 글
[android][error] BatteryService 패치 (0) | 2011.03.22 |
---|---|
[android][error] power.c 패치 (0) | 2011.03.22 |
[android] HOME key 살리기 (0) | 2011.03.21 |
[android,cupcake] 안드로이드용 파일 시스템 구축 스크립트 (0) | 2011.03.21 |
[android] custom view 기본 구조 (0) | 2011.03.04 |
realvnc viewer 리눅스용 에러 수정법
리눅스에서 사용할 때 종종 실행이 안되는 문제가 발생할 경우가 있다.
분명 프로그램은 이상없이 실행 됐는데, 아무 동작이 없다. 좀비프로세서가 된 것도 아니다....
이럴 경우 전에 realvnc 외에 다른 vnc 프로그램을 사용한 적이 있다면(특히 서버쪽)
지금 realvnc viewer은 서버모드로 동작하고 있다고 생각하면 된다.
왜 그렇게 프로그램을 만들었는진 모르지만 trace한 결과 bind하고 대기...(이지랄하고 있더란 말이지...)
trace결과를 잘 찾아보니 홈디렉토리에 .vnc에 있는 설정 파일을 참조해서 서버모드로 들어가더라~~~
간단하게 .vnc 디렉토리를 통째로 삭제!!!!
그 다음부터 제 역할에 맞게 viewer 짓 잘 하고 있다는 얘기~~
'리눅스' 카테고리의 다른 글
crontab 사용법 - 초간단 (0) | 2009.03.26 |
---|---|
리눅스용 가계부 프로그램 - iFreeBudget (0) | 2009.03.13 |
auto-apt - 패키지 컴파일 할 때 필요한 라이브러리 자동 설치 (0) | 2009.01.12 |
apturl - 웹사이트에서 클릭만으로 패키지를 설치해 보자 (0) | 2009.01.06 |
배경화면 자동으로 변경 - drapes (0) | 2009.01.06 |
vmware-tools 모듈 컴파일 시 에러 생길 때 해결 법 - vmware on the windows(guest linux)
LINUX 2.6.24 AND VMWARE
Ubuntu
8.04 was recently released and continues its tradition of adding some
real polish to Linux. I’ve been consistently impressed with their goals
and progress - everything from improvements to Gnome and included applications to making Xorg “bulletproof” and seamless transition from Windows.
VMware Tools, whereart thou?
Unfortunately,
Linux 2.6.24 (which ships with Ubuntu 8.04 and will be shipping with
all other Linux distros shortly) moved some headers and symbols around,
and breaks VMware Tools. VMware has not been at all forthcoming
regarding updates to fix this, but fortunately their “open” offshoot
works well - there’s just no simple way to install the open tools. So we’re stuck with:
-
•No tools, which works decently. Many glitches seen in the betas have been resolved, and networking, video, etc all work fine out of the box, but things like shared folders and clipboard sync are out.
-
•Official tools that don’t compile, but could be installed trivially.
-
•Open tools that compile, but cannot be easily installed.
From the forums, I get the sense that this is not at all unusual on Linux, and is sorely disappointing.
This reminds me of the early days of Safari/WebKit, when one had to build WebKit from source and set up environment variables to use it. These days you can just click a link
and it downloads a nice wrapper application that does it all. No fuss,
no muss, and it allows anyone to easily use WebKit while waiting for
the official Safari builds to catch up.
A model to copy, VMware. Please take note!
In the meantime...
In the meantime there is a solution, courtesy of Mufassa
on the forums. He’s only posted once, but it’s a gem - in essence,
compile the open tools, and then package them up for installation by
the official tools install script. Works like a charm!
So, the basic steps are:
-
•Install any dependencies not shipped with a default Ubuntu install
-
•Get the official and open tools, and extract them
-
•Compile the open tools
-
•Rename and tar them as expected by the official tools
-
•Overwrite the official tools archives with the open ones
-
•Install them using the official tools install script
First, you’ll need to add several packages, either via Synaptic or apt-get:
-
•build-essential, libgtk2.0-dev, libproc-dev, libdumbnet-dev
-
•xorg-dev OR libX11-dev, libxinerama-dev, libxrandr-dev, libxtst-dev
A couple of these are new - according to this bug report,
libdumbnet and libproc were added as dependencies in the 2008-04-14
version of the tools, so other guides you see likely won’t list these.
Next, download and untar both the open tools and the official ones:
-
•Open VM Tools at SourceForge
-
•Offical Tools are included on an iso that can be mounted via the standard VMware GUI - when mounted you want the tar.gz, not the rpm.
-
•Move these somewhere convenient; I recommend the desktop.
-
•Use “tar -xvzf *.tar.gz” to expand.
Compile the open tools (if you have your dependencies straightened out, this should be fast and easy):
-
•cd open-vm-tools-*/
-
•./configure && make
Next, package up the compiled modules:
-
•cd modules/linux/
-
•for i in *; do mv ${i} ${i}-only; tar -cf ${i}.tar ${i}-only; done
-
•cd ../../../
-
•mv -f open-vm-tools-*/modules/linux/*.tar vmware-tools-distrib/lib/modules/source/
Finally, install the updated tools:
-
•cd vmware-tools-distrib
-
•./vmware-install.pl
A few notes:
-
•If you disabled Shared Folders in your VM settings, you’ll see a message “Mounting HGFS shares: failed”. Just enable shared folders and reboot.
-
•[Appears fixed on latest tools] Networking does not seem to properly configure itself when on the default “roaming” mode. I’m honestly not sure what is wrong here, but switching it to manual configuration with DHCP or static IP works fine.
-
•While this was all done on Ubuntu 8.04, I expect it will work fine in the future for new Linux versions and distributions.
Enjoy!
open-vm-toolsinvalid-file
'리눅스' 카테고리의 다른 글
Xming 사용법 (0) | 2008.08.20 |
---|---|
삼바 옵션 - usershare (0) | 2008.08.06 |
Vim Tip (0) | 2008.03.28 |
[ubuntu] VFAT 파티션 부팅과 동시에 마운트 하기 (0) | 2007.11.29 |
[ubuntu] MS IntelliMouse 3.0 버튼 설정하기 (0) | 2007.11.29 |