embeded/raspberry pi2015. 8. 14. 09:57


$ sudo apt-get install matchbox-keyboard

다만.. 이녀석 사용하면

pcmanfm 이라는 프로세스가 100% 잡아먹어서 손을 좀 보던가 해야 할 듯..


killall pcmanfm 으로 다 죽이고 하면 문제가 없으려나?


[링크 : https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=14719]

[링크 : http://ozzmaker.com/2014/06/30/virtual-keyboard-for-the-raspberry-pi/]


[링크 : http://sourceforge.net/p/pcmanfm/bugs/945/]

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?t=35910&p=302890]



문득 생각이 나서.. cellwriter 쓰려니

학습시켜야 한다고 배째서 고민중 -_-


일단 무시하고 쓰려면.. 그냥 리부팅하면 된다 ㄷㄷ

그리고 하단의 key를 누르면 끝


다만 초기값이 폭 640 이라 무지 크기 480으로 줄이면 되는데..

이래저래

480x320 해상도로는 무리구나 싶다.. ㅠㅠ

Posted by 구차니

는... FAIL? -_ㅠ



아으..감이 올 듯 말듯..

그러니까.. display쪽은 multiseat 관련 내용이고

screen은 멀티 모니터 쪽 내용이려나?


Key terms

The X window system has nuanced usage of a number of terms when compared to common usage, particularly "display" and "screen", a subset of which is given here for convenience:


device

A graphics device such as a computer graphics card or a computer motherboard's integrated graphics chipset.

monitor

A physical device such as a CRT or a flat screen computer display.

screen

An area into which graphics may be rendered, either through software alone into system memory as with VNC, or within a graphics device, some of which can render into more than one screen simultaneously, either viewable simultaneously or interchangeably. Interchangeable screens are often set up to be notionally left and right from one another, flipping from one to the next as the mouse pointer reaches the edge of the monitor.

virtual screen

Two different meanings are associated with this term:

A technique allowing panning a monitor around a screen running at a larger resolution than the monitor is currently displaying.

An effect simulated by a window manager by maintaining window position information in a larger coordinate system than the screen and allowing panning by simply moving the windows in response to the user.

display

A collection of screens, often involving multiple monitors, generally configured to allow the mouse to move the pointer to any position within them. Linux-based workstations are usually capable of having multiple displays, among which the user can switch with a special keyboard combination such as control-alt-function-key, simultaneously flipping all the monitors from showing the screens of one display to the screens in another.

The term "display" should not be confused with the more specialized jargon "Zaphod display". The latter is a rare configuration allowing multiple users of a single computer to each have an independent set of display, mouse, and keyboard, as though they were using separate computers, but at a lower per-seat cost.

[링크 : https://en.wikipedia.org/wiki/X_Window_System] 


displaynumber

multiseat 설정 아닌 이상은 0 으로 고정으로 봐도 무방?


screennumber

만약 모니터가 4개이고 2개씩 묶어 버리면 2개의 screen이 되려나?

즉, screen은 모니터의 모음


Display Names


From the user's perspective, every X server has a display name of the form:


hostname:displaynumber.screennumber

This information is used by the application to determine how it should connect to the server and which screen it should use by default (on displays with multiple monitors):


hostname

The hostname specifies the name of the machine to which the display is physically connected. If the hostname is not given, the most efficient way of communicating to a server on the same machine will be used.

displaynumber

The phrase "display" is usually used to refer to collection of monitors that share a common keyboard and pointer (mouse, tablet, etc.). Most workstations tend to only have one keyboard, and therefore, only one display. Larger, multi-user systems, however, frequently have several displays so that more than one person can be doing graphics work at once. To avoid confusion, each display on a machine is assigned a display number (beginning at 0) when the X server for that display is started. The display number must always be given in a display name.

screennumber

Some displays share a single keyboard and pointer among two or more monitors. Since each monitor has its own set of windows, each screen is assigned a screen number (beginning at 0) when the X server for that display is started. If the screen number is not given, screen 0 will be used.


[링크 : http://linux.die.net/man/7/x] 



2012/02/10 - [Linux/Ubuntu] - SSH를 통해 SSH 서버측에 X 응용프로그램 실행하기


'프로그램 사용 > cygwin & Xming' 카테고리의 다른 글

xming / xdmcp 성공  (0) 2016.02.02
cygwin bash 쉘 시작 위치 지정하기  (0) 2015.12.02
Xming vs cygwin/x  (0) 2012.01.25
Cygwin/X 추려내기 - ing  (0) 2011.09.10
Xming 신버전은 유료?  (0) 2011.09.09
Posted by 구차니
embeded/raspberry pi2015. 8. 13. 18:56

본체 하나에

모니터 + 키보드 + 마우스 식으로

하나의 컴퓨터에 여러개의 입력 장치를 하나의 모니터에 할당해서 사용하는 개념


다중 모니터에 확장된 개념이라고 하긴 애매하지만

이걸 잘 써먹으면..

라즈베리 파이에서 SPI 모니터와 HDMI 독립적으로 구성이 가능하려나?

(즉, SPI 모니터에는 터치를 인식, HDMI에는 마우스만 사용)


[링크 : http://plugable.com/2009/11/16/setting-up-usb-multiseat-with-displaylink-on-linux-gdm-up-to-2-20]

[링크 : http://unix.stackexchange.com/questions/5544/how-to-lock-one-mouse-keyboard-pair-to-each-screen]

[링크 : https://en.wikipedia.org/wiki/Multiseat_configuration]


[링크 : https://en.wikibooks.org/wiki/Multiseat_Configuration/Xephyr]

Posted by 구차니
embeded/raspberry pi2015. 8. 12. 19:38

귀차니즘이 이겨서.. 진척이 없는중...

OTL


아무튼 device / monitor / screen 세개를 이용해서

적절히 설정하면 되는거 같긴한데... 끄응..


---

Xinerama를 꺼주면 창을 넘길 수 없다.

그런데.. 터치랑 마우스랑 같이 인식해버리네.. 분리할 방법은 없으려나?

pi@raspberrypi /usr/share/X11/xorg.conf.d $ cat 99-fbturbo.conf

# and load xf86-video-fbturbo driver installed in the system.

#

# When troubleshooting, check /var/log/Xorg.0.log for the debugging

# output and error messages.

#

# Run "man fbturbo" to get additional information about the extra

# configuration options for tuning the driver.


Section "Device"

        Identifier      "rpi"

        Driver          "fbturbo"

        Option          "fbdev" "/dev/fb0"

        Option          "SwapbuffersWait" "true"

EndSection


Section "Device"

        Identifier      "spi"

        Driver          "fbturbo"

        Option          "fbdev" "/dev/fb1"

        Option          "SwapbuffersWait" "true"

EndSection


Section "InputClass"

        Identifier      "calibration"

        MatchProduct    "ADS7846 Touchscreen"

        Option          "Calibration"   "237 3965 3888 214"

        Option          "SwapAxes"      "1"

        Option          "InvertX" "1"

        Option          "InvertY" "1"

EndSection


Section "Monitor"

        Identifier      "rpi hdmi"

EndSection


Section "Monitor"

        Identifier      "rpi spi"

EndSection


Section "Screen"

        Identifier      "primary"

        Device          "rpi"

        Monitor         "rpi hdmi"

EndSection


Section "Screen"

        Identifier      "secondary"

        Device          "spi"

        Monitor         "rpi spi"

EndSection


Section "ServerLayout"

        Identifier      "default"

        Screen 0        "primary" 0 0

        Screen 1        "secondary" LeftOf "primary"

        Option          "Xinerama" "1"

EndSection 

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=12761]


xinerama 관련 내용

[링크 : https://help.ubuntu.com/community/XineramaHowTo]


아래는 공식(?) 내용들..

[링크 : http://www.x.org/archive/X11R7.7/doc/man/man5/xorg.conf.5.xhtml]

[링크 : http://linux.die.net/man/5/xorg.conf]

[링크 : https://wiki.archlinux.org/index.php/Multihead]



2010/02/16 - [Linux] - Xwindow 해상도 설정하기

'embeded > raspberry pi' 카테고리의 다른 글

라즈베리 파이 화상 키보드  (2) 2015.08.14
라즈베리 파이에 multiseat .. ?  (0) 2015.08.13
ubuntu mate on rpi2  (0) 2015.08.12
openelec lirc.conf 설정  (11) 2015.08.11
라즈베리 파이 fbtft 관련 검색내용  (0) 2015.08.10
Posted by 구차니
embeded/raspberry pi2015. 8. 12. 14:58

gnome2의 이 안락함? ㅋㅋㅋ

캡쳐도 쉽고 좋아좋아 ㅋㅋ


그나저나.. 의외로 조금 먹어서 630MB 정도

300MB 정도 여유 메모리가 생기는데 나쁘진 않은 듯


다만.. 초기에 설치 및 설정에 오래 걸리는건 꽤나 단점..



라즈비안에서 해보니.. LXDE가 가볍긴 가볍구나 싶다. 300MB .. ㄷㄷㄷ

top - 15:07:12 up 3 min,  1 user,  load average: 0.93, 0.48, 0.19

Tasks: 111 total,   1 running, 110 sleeping,   0 stopped,   0 zombie

%Cpu(s):  2.2 us,  1.7 sy,  0.0 ni, 94.1 id,  2.1 wa,  0.0 hi,  0.0 si,  0.0 st

KiB Mem:    884380 total,   309792 used,   574588 free,    18640 buffers

KiB Swap:   102396 total,        0 used,   102396 free,   154808 cached


  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND           

 2555 root      20   0 53280  28m  16m S   5.3  3.3   0:14.19 Xorg              

 2810 pi        20   0 98852  20m  17m S   2.6  2.4   0:02.61 lxterminal        

 2695 pi        20   0  128m  26m  22m S   2.3  3.0   0:03.67 lxpanel           

 2830 pi        20   0  391m 128m  67m S   2.0 14.9   1:15.68 epiphany-browse   

 2899 pi        20   0  4496 2416 2060 R   0.7  0.3   0:00.74 top               

    1 root      20   0  2148 1244 1140 S   0.3  0.1   0:00.86 init              

    6 root      20   0     0    0    0 D   0.3  0.0   0:00.63 kworker/u8:0      

 2197 nobody    20   0  2024 1468 1352 S   0.3  0.2   0:00.38 thd               

 2693 pi        20   0 21080  12m 9052 S   0.3  1.4   0:01.62 openbox           

 2703 root      20   0     0    0    0 S   0.3  0.0   0:00.44 kworker/u8:3      

 2909 pi        20   0 89712  18m  15m S   0.3  2.1   0:00.88 leafpad           

    2 root      20   0     0    0    0 S   0.0  0.0   0:00.00 kthreadd          

    3 root      20   0     0    0    0 S   0.0  0.0   0:00.13 ksoftirqd/0       

    4 root      20   0     0    0    0 S   0.0  0.0   0:00.00 kworker/0:0       

    5 root       0 -20     0    0    0 S   0.0  0.0   0:00.00 kworker/0:0H      

    7 root      20   0     0    0    0 S   0.0  0.0   0:00.36 rcu_preempt       

    8 root      20   0     0    0    0 S   0.0  0.0   0:00.00 rcu_sched          

 

Posted by 구차니
Linux/Ubuntu2015. 8. 12. 10:02

일단은 lubuntu(LXDE)가 xubuntu(XFCE)/ubuntu mate(GNOME2) 보다 300메가 정도 메모리를 덜 먹는다.

어짜피 둘다 ubuntu 기반이니 원하는대로 바꾸다 보면 그게 그거일지도 모르겠지만

윈도 매니저 자체는 꽤 차이가 난다.


lubuntu - 700MB


xubuntu - 1GB


mate - 1GB



음.. 순정 unity가 메모리는 가장 적게 먹으나 느려 터졌으니.. LXDE가 나으려나?

2014/06/14 - [Linux/Ubuntu] - Ubuntu 14.04 LTS desktop 64bit edition


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

우분투 시스템 온도 측정  (0) 2015.08.15
우분투 모니터 없이 부팅하기  (0) 2015.08.15
ubuntu mate  (0) 2015.07.28
Ubuntu 12.04 LTS G1610 CPU 지원 종료  (0) 2015.04.10
sudo: unable to resolve host  (0) 2015.03.26
Posted by 구차니
embeded/raspberry pi2015. 8. 11. 11:43

/etc는 squashfs로 인해 ro 상태인데..

kodi 설명을 보면 /etc에 하라고 한다 -_-

그런 이유로 openelec 문서를 찾아보니

/stroage/.config 에 lircd.conf를 복사해 두면 리부팅후 자동으로 키값을 불러온다고 한다.


irrecord /storage/.config/lircd.conf

[링크 : http://wiki.openelec.tv/index.php?title=Guide_To_lirc_rpi_GPIO_Receiver] 


OK는 메뉴 들어가기 + 파일 재생

FASTFORWARD는 빨리 감기(PLAY로 정상 속도)

MENU는 재생시 하단 메뉴(자막 등등 설정)

EXIT는 재생목록으로 설정하니 그럭저럭 쓸 수 있는데..

페이지 업/다운이 먼지 당췌 모르겠네 -_-


키는 정체 불명의 라디오 리모컨을 사용한 것 임.

$ cat lircd.conf


# Please make this file available to others

# by sending it to <lirc@bartelmus.de>

#

# this config file was automatically generated

# using lirc-0.9.1-git(default) on Tue Aug 11 02:51:10 2015

#

# contributed by

#

# brand:                       /storage/lircd.conf

# model no. of remote control:

# devices being controlled by this remote:

#


begin remote


  name  /storage/.config/lircd.conf

  bits           16

  flags SPACE_ENC|CONST_LENGTH

  eps            30

  aeps          100


  header       9085  4524

  one           646  1604

  zero          646   490

  ptrail        646

  pre_data_bits   16

  pre_data       0xFF

  gap          108567

  toggle_bit_mask 0x0


      begin codes

          KEY_UP                   0x7A85

          KEY_DOWN                 0x1AE5

          KEY_LEFT                 0x609F

          KEY_RIGHT                0x20DF

          KEY_OK                   0x9A65

          KEY_PLAY                 0xE01F

          KEY_FASTFORWARD          0x42BD

          KEY_STOP                 0x629D

          KEY_MENU                 0xC03F

          KEY_EXIT                 0x50AF

          KEY_VOLUMEUP             0xA25D

          KEY_VOLUMEDOWN           0x22DD

       end codes


end remote 


Posted by 구차니
개소리 왈왈/컴퓨터2015. 8. 10. 23:14

1테라 WD blue 지름


아내 컴퓨터 에 이거 달고..

아내꺼에 있는 느려 터진


500GB / 1T 삼성하드는

내꺼와 리눅스 서버에 이식해서 써야지 -_ㅠ


내일은 포맷한다고 하루 가겠구만..




'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

tc1100 분해방법  (0) 2015.11.05
하드 도착!  (0) 2015.11.02
다음 운세 종료 -_-?  (0) 2015.06.04
굿바이 다음 클라우드  (0) 2015.06.02
하드가 슬슬 맛이 가려는구나 ㅠㅠ  (0) 2015.05.28
Posted by 구차니
embeded/raspberry pi2015. 8. 10. 23:07

으흐흐 키워드를 바꾸니 조금 맞는게 나오는듯


결론은.. fb1으로 그냥 써! 인가 -_-?

$ sudo mv /usr/share/X11/xorg.conf.d/99-fbturbo.conf ~

$ sudo nano /usr/share/X11/xorg.conf.d/99-pitft.conf

Section "Device"

  Identifier "Adafruit PiTFT"

  Driver "fbdev"

  Option "fbdev" "/dev/fb1"

EndSection

$ sudo raspi-config

Then pick the Enable Boot to Desktop/Scratch option and choose if you want to boot to the console, desktop, or scratch environment.  


오래 눌러 오른쪽 클릭 지원하는 옵션도 발견!

/etc/X11/xorg.conf.d/99-calibration.conf

Option "EmulateThirdButton" "1"

Option "EmulateThirdButtonTimeout" "750"

Option "EmulateThirdButtonMoveThreshold" "30"

So for example your file will look like:

Section "InputClass"

   Identifier      "calibration"

   MatchProduct    "stmpe-ts"

   Option  "Calibration"   "3800 120 200 3900"

   Option  "SwapAxes"      "1"

   Option "EmulateThirdButton" "1"

   Option "EmulateThirdButtonTimeout" "750"

   Option "EmulateThirdButtonMoveThreshold" "30"

EndSection 


동일 제품인지 모르겠으나.. 아무튼 클럭도 줄수있긴 한데

SPI 클럭 디바이더의 설정으로 인해 아래의 클럭만 설정이 가능하다고 한다.

dtoverlay=pitft28r,rotate=90,speed=62000000,fps=25

Or whatever you like for speed, rotation, and frames-per-second. BUT, here's the thing, the Pi only supports a fixed number of SPI frequencies. So tweaking the number a little won't do anything. The kernel will round the number to the closest value. You will always get frequencies that are 250MHz divided by an even number. Here's the only SPI frequencies this kernel supports

15,625,000 (a.k.a 16000000 = 16 MHz)

17,857,142 (a.k.a. 18000000 = 18 MHz)

20,833,333 (a.k.a 21000000 = 21 MHz)

25,000,000 (= 25 MHz)

31,250,000 (a.k.a 32000000 = 32MHz)

41,666,666 (a.k.a 42000000 = 42MHz)

62,500,000 (a.k.a 62000000 = 62MHz) 


waveshare에서도 적용해보니

창 옮길때는 모르겠으나..

아주 미미하게 메뉴가 나타나는 속도 정도는 조금 빠른 느낌?


[링크 : https://learn.adafruit.com/.../extras#boot-to-x-windows-on-pitft]

[링크 : https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi/faq]

    [링크 : http://raspberrypi.stackexchange.com/questions/14893/force-output-to-different-display-pitft]


'embeded > raspberry pi' 카테고리의 다른 글

ubuntu mate on rpi2  (0) 2015.08.12
openelec lirc.conf 설정  (11) 2015.08.11
라즈베리 파이 HDMI/composite 끄는법?  (0) 2015.08.10
라즈베리 파이 timezone 변경  (0) 2015.08.09
MMAL - Multi-Media Abstraction Layer  (0) 2015.08.09
Posted by 구차니
embeded/raspberry pi2015. 8. 10. 23:00

정녕.. 부팅레벨에서 끄는법은 없는건가? ㅠㅠ

config.txt나 cmdline.txt쪽을 봐야 할듯.. ㅠㅠ

일단 목적은.. spi fbtft 쪽을 fb0로 할당하기!


[링크 : http://elinux.org/RPiconfig]

[링크 : https://www.raspberrypi.org/documentation/configuration/config-txt.md]


use videocore GPU command  to switch off or on HDMI service thus saving valuable watts :)


Switch on

“/opt/vc/bin/tvservice -p”


Switch off

“/opt/vc/bin/tvservice -o” 


[링크 : https://glframebuffer.wordpress.com/2013/08/28/raspberrypi-how-to-turn-off-hdmi-from-raspberry-pi/]

    [링크 : https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=55354]

Posted by 구차니