개소리 왈왈/컴퓨터2014. 12. 26. 20:50

동일 기종이지만 동일 제품도 아니고

일단.. 비교 테스트가 불가능한 상황이지만...


예전 같으면 10개 넘어가면 블루스크린 띄우며서 죽었을텐데

리눅스라서 안죽는 걸려나?


[링크 : http://www.marvell.com/wireless/assets/8686.pdf]



Posted by 구차니

SDIO는 SD 메모리 카드의 인터페이스 이지만

몇몇업체에서는 벤더 확장으로

USB 호스트라던가 / 웹캠 / wireless lan 등을 SDIO를 통해서 사용할 수 있도록 제공 하다고 한다.

그러고 보니.. SD 인터페이스의 데이터 전송 속도 제한이 궁금해 지는데..


머.. 가장 오래된 표준 규격에도 12.5MB/s 이니까

Fast Ethernet이라던가 802.11g/n 정도 까지는 어떻게든 커버가 가능한 수준이다.



[링크 : http://processors.wiki.ti.com/index.php/SDIO_WLAN]

[링크 : http://en.wikipedia.org/wiki/Secure_Digital#SDIO]

[링크 : https://wiki.freebsd.org/SDIO]

'이론 관련 > 하드웨어 관련' 카테고리의 다른 글

adc - single ended / differential  (0) 2015.11.17
adc - 시그마델타 / SAR  (0) 2015.11.16
가속도/각속도/기울기 센서  (0) 2015.08.25
NTC 온도센서?  (0) 2015.08.07
ADC 원리  (3) 2010.08.09
Posted by 구차니
개소리 왈왈/컴퓨터2014. 12. 24. 23:11

우분투 12.04.4 LTS로 설치했더니

설치중에 한번 해상도 변경되는지 먹통이 되어

두번째 시도시에는 사용자 입력 이후에

ctrl-alt-f6을 눌러 콘솔을 바꿔버리고 top으로 진척도를 보다

완료후에 ctrl-alt-f7로 복귀하여 정상적으로 설치 종료함


내 장비의 경우에는 x,y 축이 바뀌어 있어서

direction=4로 x,y축을 바꾸어 주고 opengalax 를 실행하고

나온 값을 다시 opengalax.conf에 넣어주었다.




터치마우스 설치 및 설정

$ sudo add-apt-repository ppa:poliva/opengalax

$ sudo apt-get update

$ sudo apt-get install opengalax

$ sudo service opengalax stop


$ sudo vi /etc/opengalax.conf

# opengalax configuration file

#### config data:

serial_device=/dev/serio_raw0

uinput_device=/dev/uinput

rightclick_enable=1

rightclick_duration=350

rightclick_range=10

# direction: 0 = normal, 1 = invert X, 2 = invert Y, 4 = swap X with Y

direction=4

# set psmouse=1 if you have a mouse connected into the same port

# this usually requires i8042.nomux=1 and i8042.reset kernel parameters

psmouse=0


#### calibration data:

# - values should range from 0 to 2047

# - right/bottom must be bigger than left/top

# left edge value:

xmin=0

# right edge value:

xmax=2047

# top edge value:

ymin=0

# bottom edge value:

ymax=2047


$ sudo opengalax -c

opengalax v0.4


Configuration data:

        serial_device=/dev/serio_raw0

        uinput_device=/dev/uinput

        rightclick_enable=1

        rightclick_duration=350

        rightclick_range=10

        direction=4

        psmouse=0


Calibration data:

        xmin=0

        xmax=2047

        ymin=0

        ymax=2047


pannel initialized

Move the mouse around the screen to calibrate.

When done click Ctrl+C to exit.

Remember to edit /etc/opengalax.conf and save your calibration values


     xmin=206  xmax=2119  ymin=143  ymax=1951


$ sudo vi /etc/opengalax.conf

# opengalax configuration file

#### config data:

serial_device=/dev/serio_raw0

uinput_device=/dev/uinput

rightclick_enable=1

rightclick_duration=350

rightclick_range=10

# direction: 0 = normal, 1 = invert X, 2 = invert Y, 4 = swap X with Y

direction=4

# set psmouse=1 if you have a mouse connected into the same port

# this usually requires i8042.nomux=1 and i8042.reset kernel parameters

psmouse=0


#### calibration data:

# - values should range from 0 to 2047

# - right/bottom must be bigger than left/top

# left edge value:

xmin=206

# right edge value:

xmax=2119

# top edge value:

ymin=143

# bottom edge value:

ymax=1951 


$ sudo service opengalax restart


[링크 : http://cafe.naver.com/umid/16190]

Posted by 구차니
Linux2014. 12. 24. 15:46

우분투 12.04.4 LTS

에서 테스트


 $ echo  "manual" | sudo tee -a /etc/init/lightdm.override 


[링크 : http://askubuntu.com/.../how-do-i-disable-x-at-boot-time-so-that-the-system-boots-in-text-mode]

[링크 : http://askubuntu.com/.../151840/how-to-disable-gdm-from-being-automatically-started]

'Linux' 카테고리의 다른 글

top manpage  (0) 2014.12.30
스크립트 상대경로를 절대경로로 변환하기  (0) 2014.12.30
우분투 Atom Z510 하드웨어 지원 중단  (0) 2014.12.24
linux X-window 축 뒤집기  (0) 2014.12.24
dd / progress  (0) 2014.12.22
Posted by 구차니
Linux2014. 12. 24. 13:49

우분투 12.04 깔고 돌리는데

umid에서 이런 경고가 나와서 깜놀 -_-

별건 아니고 더 이상 이 하드웨어에 대해서 커널 업데이트는 없음! 이라는 문구다

(별거 아닐리가 있냐!?!?!)


Your current Hardware Enablement Stack (HWE) is no longer supported since 2014-08-07.  Security updates for critical parts (kernel and graphics stack) of your system are no longer available.


For more information, please see:

http://wiki.ubuntu.com/1204_HWE_EOL


There is a graphics stack installed on this system. An upgrade to a supported (or longer supported) configuration will become available on 2014-07-16 and can be invoked by running 'update-manager' in the Dash.





'Linux' 카테고리의 다른 글

스크립트 상대경로를 절대경로로 변환하기  (0) 2014.12.30
lightdm 실행하지 않도록 하기  (0) 2014.12.24
linux X-window 축 뒤집기  (0) 2014.12.24
dd / progress  (0) 2014.12.22
udev rule  (0) 2014.12.18
Posted by 구차니
Linux/Ubuntu2014. 12. 24. 13:36

로그인 시에 환영 메시지로 패키지 업데이트 갯수라던가를 알려주다 보니

/etc/ssh/sshd_config 에서 UseDNS no를 해주어도 지연되는 문제가 발생한다.

물론.. 업데이트 잘 해주고 그러면 문제 없겠지만 안되어 있다면.. 꺼주는 수 밖에?


login as: minimonk

minimonk@192.168.1.14's password:

Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.11.0-15-generic i686)


 * Documentation:  https://help.ubuntu.com/


261 packages can be updated.

150 updates are security updates.


Last login: Wed Dec 24 12:15:49 2014


일단.. 로그인이 무언가.... 허전해 지지만
pam_motd.so를 주석 처리 함으로서 ssh를 로그인 할때 motd를 갱신하면서 apt-check를 생략하기 때문에
조금은 더 빠르게 진행이 가능해진다.

$ sudo vi /etc/pam.d/sshd

# Print the message of the day upon successful login.

#session    optional     pam_motd.so # [1]


[링크 : https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/525674]



+

위의 무식(!) 한 방법을 제외하면

로그인 쉘이라던가 여러곳에서 motd를 갱신할때 90번과 91번에 대해서 제거를 해주면 될 듯 하다.

cpu 부하는 90번만 삭제해도 된다.


단, .90 이라던가 이렇게 이름만 바꾸어도 실행은 되니(디렉토리 전체 실행으로 보임)

#으로 주석처리하는걸 추천한다.

/etc/update-motd.d$ cat 90-updates-available

#!/bin/sh


if [ -x /usr/lib/update-notifier/update-motd-updates-available ]; then

    exec /usr/lib/update-notifier/update-motd-updates-available

fi


/etc/update-motd.d$ cat 91-release-upgrade

#!/bin/sh


if [ -x /usr/lib/update-manager/release-upgrade-motd ]; then

    exec /usr/lib/update-manager/release-upgrade-motd

fi



'Linux > Ubuntu' 카테고리의 다른 글

ld.so ?  (0) 2015.02.11
bash: ./arm-linux-gcc: No such file or directory  (0) 2015.01.12
manpath  (0) 2014.12.07
ctrl - alt - t 로 터미널 실행  (0) 2014.09.04
우분투에서 특정 패키지의 업데이트 금지하기  (0) 2014.09.03
Posted by 구차니
Linux2014. 12. 24. 12:08

결론은.. 실패

그냥 터치패널 드라이버 쪽에서 설정으로 해결 ㅠㅠ


------


[링크 : http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint]

[링크 : http://fedoraproject.org/wiki/Input_device_configuration]

[링크 : https://bbs.archlinux.org/viewtopic.php?id=180524]

[링크 : http://linux.die.net/man/1/xinput]



 Option "FlipXY" "boolean"

              Enable/disable swapping the X and Y axes.   This  transformation

              is applied after the InvX, InvY and AngleOffset transformations.

              Default: off.

[링크 : http://manpages.ubuntu.com/manpages/precise/man4/mousedrv.4.html]



[링크 : http://askubuntu.com/questions/246564/xinput-set-prop-does-not-work-for-touchscreen]




$ xinput --list

⎡ Virtual core pointer                          id=2    [master pointer  (3)]

⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]

⎜   ↳ PS/2 Generic Mouse                        id=10   [slave  pointer  (2)]

⎣ Virtual core keyboard                         id=3    [master keyboard (2)]

    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]

    ↳ Video Bus                                 id=6    [slave  keyboard (3)]

    ↳ Power Button                              id=7    [slave  keyboard (3)]

    ↳ Sleep Button                              id=8    [slave  keyboard (3)]

    ↳ AT Translated Set 2 keyboard              id=9    [slave  keyboard (3)]


$ xinput --list 10

PS/2 Generic Mouse                              id=10   [slave  pointer  (2)]

        Reporting 3 classes:

                Class originated from: 10. Type: XIButtonClass

                Buttons supported: 5

                Button labels: "Button Left" "Button Middle" "Button Right" "Button Wheel Up" "Button Wheel Down"

                Button state:

                Class originated from: 10. Type: XIValuatorClass

                Detail for Valuator 0:

                  Label: Rel X

                  Range: -1.000000 - -1.000000

                  Resolution: 1 units/m

                  Mode: relative

                Class originated from: 10. Type: XIValuatorClass

                Detail for Valuator 1:

                  Label: Rel Y

                  Range: -1.000000 - -1.000000

                  Resolution: 1 units/m

                  Mode: relative


'Linux' 카테고리의 다른 글

lightdm 실행하지 않도록 하기  (0) 2014.12.24
우분투 Atom Z510 하드웨어 지원 중단  (0) 2014.12.24
dd / progress  (0) 2014.12.22
udev rule  (0) 2014.12.18
플래시용 파일 시스템과 EXT4  (0) 2014.12.14
Posted by 구차니
개소리 왈왈/컴퓨터2014. 12. 23. 22:27

그래봤자 넌 분해당할 운명이지 ㅋㅋㅋ

일단 외관상으로는 무광 검정과 유광 흰색의 차이?





Y와 D가 문제였는데

펜타그래프 방식이라 한쪽으로 부품을 몰아 버리고. 키 하나를 포기 ㅠㅠ

그래서 버려진.. T 키 ㅠㅠ



고급스러웠을지도 모르는 우레탄 무광이지만

세월의 흔적으로 인해 싼티로 전락 ㅠㅠ


Posted by 구차니
embeded2014. 12. 23. 22:10

회사에서 이런저런 이유로(?) 검색

일단.. 플래시들은 핀수를 줄이기 위해 BYTE 모드와 WORD 모드가 있는데

BYTE 모드는 21비트 어드레싱

WORD 모드는 20비트 어드레싱을 사용한다.

핀수로는

21 + 8

20 + 16 이라서

실제로는 7핀 정도 밖에 안줄어 들어서 무슨 큰 의미가 있겠냐 마는..



DQ15는 16비트 모드에서는 MSB 인데 8비트 모드에서는 주소의 LSB로 쓰인다.

그런데.. 이렇게만 써있으니 이해가 영 어려운게 사실...


A0–A19 20 addresses

DQ0–DQ14 15 data inputs/outputs

DQ15/A-1 DQ15 (data input/output, word mode), A-1 (LSB address input, byte mode)



섹터의 주소를 보면

바이트 모드에서 FFFF 인게 워드모드에서는 7FFF로

0x1111 1111 과 0x0111 1111 로 MSB가 하나 더 추가 된 주소로 출력되며

16번지 이후 섹터에서는 20비트가 아닌 21 비트로 어드레싱을 하여야만 선택이 가능하게 된다.




[링크 : http://www.spansion.com/Support/Datasheets/S29AL016J_00.pdf]

'embeded' 카테고리의 다른 글

9$ computer C.H.I.P?  (0) 2015.05.27
PowerQUICC  (0) 2015.04.02
mmu와 rtos  (0) 2014.12.10
ltib / rc.conf  (0) 2014.11.24
Z80 M6800  (0) 2014.01.27
Posted by 구차니
Programming/php2014. 12. 23. 14:32

simplexml의 

SimpleXMLElement::asXML 을 이용해 xml로 저장을 하면

well-fored XML로 저장이 되지 않고

엔터 처리도 없이 주르르르륵 한줄로만 출력된다.


이걸 해결하려면.. dom_import_simplexml을 통해 

DOMElement로 변환하고 설정후 출력하면 된다고 한다.

(테스트 필요)


$dom = dom_import_simplexml($simpleXml)->ownerDocument;

$dom->formatOutput = true;

echo $dom->saveXML();


[링크 : http://php.net/manual/ro/function.dom-import-simplexml.php]

[링크 : http://php.net/manual/en/simplexmlelement.asxml.php]


[링크 : http://www.f15ijp.com/2010/12/simplexml-save-formated-output/]

[링크 : http://stackoverflow.com/questions/1191167/format-output-of-simplexml-asxml]



+2015.01.29

$xmlDoc = new DomDocument('1.0', 'utf-8');

$xmlDoc->formatOutput = true;

$xmlInfo = $xmlDoc -> saveXML();


깔끔하게 해결?


'Programming > php' 카테고리의 다른 글

PHP 웹 다국어 지원 트릭  (0) 2015.02.02
php 콘솔 디버깅  (0) 2015.01.13
php simpleXML  (0) 2014.12.22
xcache 1.3.2 for php 5.3.22 for ARM  (0) 2014.11.11
lighttpd + php 퍼미션 문제  (0) 2014.10.21
Posted by 구차니