왼쪽은 golang의 touchscreen uinput 기능을 이용한 것, 오른쪽은 uinput 예제에서 설정한 것인데

UI_DEV_SETUP 대신 write로 쓰는게 좀.. 특이하다. 

그리고 write로 장치 이름을 쓰고 1116 바이트가 써졌다라..

ioctl(3, UI_SET_EVBIT, 0x1)             = 0
ioctl(3, UI_SET_KEYBIT, 0x110)          = 0
ioctl(3, UI_SET_KEYBIT, 0x111)          = 0
ioctl(3, UI_SET_KEYBIT, 0x14a)          = 0

ioctl(3, UI_SET_EVBIT, 0x3)             = 0
ioctl(3, UI_SET_ABSBIT, 0)              = 0
ioctl(3, UI_SET_ABSBIT, 0x1)            = 0

write(3, "testpad\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1116) = 1116
ioctl(3, UI_DEV_CREATE, 0)              = 0
ioctl(3, UI_SET_EVBIT, 0x1)             = 0
ioctl(3, UI_SET_KEYBIT, 0x110)          = 0
ioctl(3, UI_SET_KEYBIT, 0x111)          = 0
ioctl(3, UI_SET_KEYBIT, 0x14a)          = 0

ioctl(3, UI_SET_EVBIT, 0x3)             = 0
ioctl(3, UI_SET_ABSBIT, 0)              = 0
ioctl(3, UI_SET_ABSBIT, 0x1)            = 0

ioctl(3, UI_DEV_SETUP, 0x7ffc48a87ef0)  = 0
ioctl(3, UI_DEV_CREATE, 0)              = 0

 

struct uinput_user_dev   uinp;

            // create input device in input subsystem
            retcode = write(ufile, &uinp, sizeof(uinp));
            printf("First write returned %d.\n", retcode);

First write returned 1116.

[링크 : https://hybridego.net/1823]

 

sturct uinput_setup 은 92 바이트 길이

#define UINPUT_MAX_NAME_SIZE 80
struct uinput_setup {
struct input_id id;
char name[UINPUT_MAX_NAME_SIZE];
__u32 ff_effects_max;
};

[링크 : https://elixir.bootlin.com/linux/v4.7/source/include/uapi/linux/uinput.h#L66]

 

struct uinput_user_dev도 그리 길어 보이진 않는데..

#define UINPUT_MAX_NAME_SIZE 80
struct uinput_user_dev {
char name[UINPUT_MAX_NAME_SIZE];
struct input_id id;
__u32 ff_effects_max;
__s32 absmax[ABS_CNT];
__s32 absmin[ABS_CNT];
__s32 absfuzz[ABS_CNT];
__s32 absflat[ABS_CNT];
};

[링크 : https://elixir.bootlin.com/linux/v4.0/source/include/uapi/linux/uinput.h#L148]

 

64개까지 등록 가능하도록 되어있는건가?

#define ABS_MAX 0x3f
#define ABS_CNT (ABS_MAX+1)

[링크 : https://github.com/spotify/linux/blob/master/include/linux/input.h]

 

+

uinput old interface 로 분류된 구조체인듯..

Programs supportinf older versions of uinput interface need to fill a uinput_user_dev structure and write it to the uinput file descriptor to configure the new uinput device

[링크 : https://www.kernel.org/doc/html/v4.12/input/uinput.html]

Posted by 구차니

golang의 예제로는 원하는대로 절대 좌표 이동이 되는데..

C로 하는건 영 안되네 ㅠㅠ 무슨 차이냐!!!

 

[링크 : https://pkg.go.dev/github.com/bendahl/uinput#section-readme]

[링크 : https://github.com/torvalds/linux/blob/master/include/uapi/linux/uinput.h]

[링크 : https://github.com/bendahl/uinput/blob/master/touchpad.go]

Posted by 구차니

uinput에 대한 이벤트 로그를 dmesg를 통해 볼 수 있게 해주는 디버그용 모듈

 

$ sudo modprobe evbug

[링크 : https://www.linuxquestions.org/questions/debian-26/how-to-disable-the-evbug-module-478529/]

[링크 : https://copyprogramming.com/howto/simulating-absolute-mouse-movements-in-linux-using-uinput] << 링크 깨짐

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

struct uinput_setup 와 struct uinput_user_dev  (0) 2022.08.05
uinput 터치 스크린 예제  (0) 2022.08.05
uinput 장치 확인  (0) 2022.03.04
uinput absolute mouse  (0) 2022.02.23
xmodmap  (0) 2022.02.21
Posted by 구차니
프로그램 사용/vi2022. 8. 4. 11:25

ctrl-o, ctrl-i

 

오오 만세!

[링크 : https://kldp.org/node/98528]

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

vi가 늦게 켜지는 이유  (0) 2022.07.28
vim 색상 바꾸기(colorscheme)  (0) 2021.01.20
vi 에서 매칭되는 갯수 확인하기  (0) 2019.12.18
vi gg=G와 set ts  (0) 2019.07.04
vi 검색 취소하기  (0) 2019.06.04
Posted by 구차니
프로그램 사용/VLC2022. 8. 1. 10:49

보기 - 고급 컨트롤

 

하단의 컨트롤바 위의 빨간 버튼 클릭

 

별다른 설정이 없는데, 윈도우 기준 개인 홈 - 비디오에 저장된다.

[링크 : https://www.groovypost.com/howto/record-your-webcam-vlc-media-player/]

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

vlc 화면 돌리기  (0) 2025.03.21
http vlc protocol  (0) 2018.11.30
vlc for windows / ascii art ㅋㅋㅋ  (0) 2016.11.22
vlc 옵션 -vvv  (0) 2015.09.15
dash with VLC  (0) 2015.09.11
Posted by 구차니

-ss와 -t 조합으로 가능한데, -to 로는 잘안되서 쓰는법을 모르겠다.

-codec copy는 코덱변경없이 단순하게 원본을 자르는거라 속도도 빠르고 화질 저하도 없게 하는 옵션이다.

$ ./ffmpeg -ss 00:39:05 -i input.mkv -codec copy -t 00:03:03 out.mkv

[링크 : https://superuser.com/questions/742434/use-ffmpeg-to-cut-mkv-file]

[링크 : https://trac.ffmpeg.org/wiki/Seeking]

 

$ ffmpeg -ss 00:01:00 -to 00:02:00  -i input.mp4 -c copy output.mp4

-i: This specifies the input file. In that case, it is (input.mp4).
-ss: Used with -i, this seeks in the input file (input.mp4) to position.
00:01:00: This is the time your trimmed video will start with.
-to: This specifies duration from start (00:01:40) to end (00:02:12).
00:02:00: This is the time your trimmed video will end with.
-c copy: This is an option to trim via stream copy. (NB: Very fast)

[링크 : https://stackoverflow.com/questions/18444194/cutting-the-videos-based-on-start-and-end-time-using-ffmpeg]

 

[링크 : https://hi098123.tistory.com/141]

Posted by 구차니
프로그램 사용/vi2022. 7. 28. 11:46

18.04 에서 이상하게 늦게 켜지는 경우가 있는데(3초 정도?)

검색을 해보니 기본이 vim.gtk3 로 연결되어 있어 xwin 체크혹은 timeout 기다리다 늦는것 같다.

$ ls -al /usr/bin/vim
lrwxrwxrwx 1 root root 21  5월 13  2021 /usr/bin/vim -> /etc/alternatives/vim

$ ls -al /etc/alternatives/vim
lrwxrwxrwx 1 root root 17  9월 15  2021 /etc/alternatives/vim -> /usr/bin/vim.gtk3

$ ls -al /usr/bin/vim.
vim.basic  vim.gtk3   vim.tiny

[링크 : https://pinocc.tistory.com/173]

 

아래의 명령어를 이용해서 편리하게 교체가 가능하지만 콘솔에서 느린건 여전했다.

sudo update-alternatives --config editor
대체 항목 editor에 대해 (/usr/bin/editor 제공) 6개 선택이 있습니다.

  선택       경로              우선순▒ 상태
------------------------------------------------------------
* 0            /usr/bin/vim.gtk3    50        자동 모드
  1            /bin/ed             -100       수동 모드
  2            /bin/nano            40        수동 모드
  3            /usr/bin/mcedit      25        수동 모드
  4            /usr/bin/vim.basic   30        수동 모드
  5            /usr/bin/vim.gtk3    50        수동 모드
  6            /usr/bin/vim.tiny    15        수동 모드

Press <enter> to keep the current choice[*], or type selection number: 4
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in manual mode

$ sudo update-alternatives --config editor
대체 항목 editor에 대해 (/usr/bin/editor 제공) 6개 선택이 있습니다.

  선택       경로              우선순▒ 상태
------------------------------------------------------------
  0            /usr/bin/vim.gtk3    50        자동 모드
  1            /bin/ed             -100       수동 모드
  2            /bin/nano            40        수동 모드
  3            /usr/bin/mcedit      25        수동 모드
* 4            /usr/bin/vim.basic   30        수동 모드
  5            /usr/bin/vim.gtk3    50        수동 모드
  6            /usr/bin/vim.tiny    15        수동 모드

Press <enter> to keep the current choice[*], or type selection number:

[링크 : https://askubuntu.com/questions/891928/]

 

--all 옵션주고 하나하나 조심히 보다가 vim 관련 나오면 vim.basic 으로 전부 설정.

sudo update-alternatives --all
There is only one alternative in link group animate (providing /usr/bin/animate): /usr/bin/animate-im6.q16
설정할 것이 없습니다.
There is only one alternative in link group animate-im6 (providing /usr/bin/animate-im6): /usr/bin/animate-im6.q16
설정할 것이 없습니다.
There is only one alternative in link group aptitude (providing /usr/bin/aptitude): /usr/bin/aptitude-curses
설정할 것이 없습니다.
대체 항목 awk에 대해 (/usr/bin/awk 제공) 2개 선택이 있습니다.

  선택       경로          우선순▒ 상태
------------------------------------------------------------
* 0            /usr/bin/gawk    10        자동 모드
  1            /usr/bin/gawk    10        수동 모드
  2            /usr/bin/mawk    5         수동 모드

Press <enter> to keep the current choice[*], or type selection number:
There is only one alternative in link group builtins.7.gz (providing /usr/share/man/man7/builtins.7.gz): /usr/share/man/man7/bash-builtins.7.gz
설정할 것이 없습니다.
There is only one alternative in link group c++ (providing /usr/bin/c++): /usr/bin/g++
설정할 것이 없습니다.
There is only one alternative in link group c89 (providing /usr/bin/c89): /usr/bin/c89-gcc
설정할 것이 없습니다.
There is only one alternative in link group c99 (providing /usr/bin/c99): /usr/bin/c99-gcc
설정할 것이 없습니다.
There is only one alternative in link group cc (providing /usr/bin/cc): /usr/bin/gcc
설정할 것이 없습니다.
There is only one alternative in link group compare (providing /usr/bin/compare): /usr/bin/compare-im6.q16
설정할 것이 없습니다.
There is only one alternative in link group compare-im6 (providing /usr/bin/compare-im6): /usr/bin/compare-im6.q16
설정할 것이 없습니다.
There is only one alternative in link group composite (providing /usr/bin/composite): /usr/bin/composite-im6.q16
설정할 것이 없습니다.
There is only one alternative in link group composite-im6 (providing /usr/bin/composite-im6): /usr/bin/composite-im6.q16
설정할 것이 없습니다.
There is only one alternative in link group conjure (providing /usr/bin/conjure): /usr/bin/conjure-im6.q16
설정할 것이 없습니다.
There is only one alternative in link group conjure-im6 (providing /usr/bin/conjure-im6): /usr/bin/conjure-im6.q16
설정할 것이 없습니다.
There is only one alternative in link group convert (providing /usr/bin/convert): /usr/bin/convert-im6.q16
설정할 것이 없습니다.
There is only one alternative in link group convert-im6 (providing /usr/bin/convert-im6): /usr/bin/convert-im6.q16
설정할 것이 없습니다.
There is only one alternative in link group cpp (providing /lib/cpp): /usr/bin/cpp
설정할 것이 없습니다.
There is only one alternative in link group default.plymouth (providing /usr/share/plymouth/themes/default.plymouth): /usr/share/plymouth/themes/ubuntu-logo/ubuntu-logo.plymouth
설정할 것이 없습니다.
There is only one alternative in link group display (providing /usr/bin/display): /usr/bin/display-im6.q16
설정할 것이 없습니다.
There is only one alternative in link group display-im6 (providing /usr/bin/display-im6): /usr/bin/display-im6.q16
설정할 것이 없습니다.
대체 항목 editor에 대해 (/usr/bin/editor 제공) 6개 선택이 있습니다.

  선택       경로              우선순▒ 상태
------------------------------------------------------------
  0            /usr/bin/vim.gtk3    50        자동 모드
  1            /bin/ed             -100       수동 모드
  2            /bin/nano            40        수동 모드
  3            /usr/bin/mcedit      25        수동 모드
* 4            /usr/bin/vim.basic   30        수동 모드
  5            /usr/bin/vim.gtk3    50        수동 모드
  6            /usr/bin/vim.tiny    15        수동 모드

Press <enter> to keep the current choice[*], or type selection number: 4
There is only one alternative in link group eview (providing /usr/bin/eview): /usr/bin/vim.gtk3
설정할 것이 없습니다.
There is only one alternative in link group evim (providing /usr/bin/evim): /usr/bin/vim.gtk3
설정할 것이 없습니다.
대체 항목 ex에 대해 (/usr/bin/ex 제공) 3개 선택이 있습니다.

  선택       경로              우선순▒ 상태
------------------------------------------------------------
* 0            /usr/bin/vim.gtk3    50        자동 모드
  1            /usr/bin/vim.basic   30        수동 모드
  2            /usr/bin/vim.gtk3    50        수동 모드
  3            /usr/bin/vim.tiny    15        수동 모드

Press <enter> to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in manual mode
대체 항목 fakeroot에 대해 (/usr/bin/fakeroot 제공) 2개 선택이 있습니다.

  선택       경로                  우선순▒ 상태
------------------------------------------------------------
* 0            /usr/bin/fakeroot-sysv   50        자동 모드
  1            /usr/bin/fakeroot-sysv   50        수동 모드
  2            /usr/bin/fakeroot-tcp    30        수동 모드

Press <enter> to keep the current choice[*], or type selection number:
There is only one alternative in link group from (providing /usr/bin/from): /usr/bin/bsd-from
설정할 것이 없습니다.
There is only one alternative in link group ftp (providing /usr/bin/ftp): /usr/bin/netkit-ftp
설정할 것이 없습니다.
There is only one alternative in link group gcc-arm-none-eabi-include (providing /usr/lib/arm-none-eabi/include): /usr/include/newlib
설정할 것이 없습니다.
There is only one alternative in link group gcc-arm-none-eabi-lib (providing /usr/lib/arm-none-eabi/lib): /usr/lib/arm-none-eabi/newlib
설정할 것이 없습니다.
There is only one alternative in link group gdm3.css (providing /usr/share/gnome-shell/theme/gdm3.css): /usr/share/gnome-shell/theme/ubuntu.css
설정할 것이 없습니다.
There is only one alternative in link group gnome-text-editor (providing /usr/bin/gnome-text-editor): /usr/bin/gedit
설정할 것이 없습니다.
대체 항목 gnome-www-browser에 대해 (/usr/bin/gnome-www-browser 제공) 2개 선택이 있습니다.

  선택       경로                         우선순▒ 상태
------------------------------------------------------------
* 0            /usr/bin/google-chrome-stable   200       자동 모드
  1            /usr/bin/firefox                40        수동 모드
  2            /usr/bin/google-chrome-stable   200       수동 모드

Press <enter> to keep the current choice[*], or type selection number:
There is only one alternative in link group google-chrome (providing /usr/bin/google-chrome): /usr/bin/google-chrome-stable
설정할 것이 없습니다.
There is only one alternative in link group gstreamer-codec-install (providing /usr/bin/gstreamer-codec-install): /usr/lib/packagekit/pk-gstreamer-install
설정할 것이 없습니다.
There is only one alternative in link group gview (providing /usr/bin/gview): /usr/bin/vim.gtk3
설정할 것이 없습니다.
There is only one alternative in link group gvim (providing /usr/bin/gvim): /usr/bin/vim.gtk3
설정할 것이 없습니다.
There is only one alternative in link group gvimdiff (providing /usr/bin/gvimdiff): /usr/bin/vim.gtk3
설정할 것이 없습니다.
There is only one alternative in link group identify (providing /usr/bin/identify): /usr/bin/identify-im6.q16
설정할 것이 없습니다.
There is only one alternative in link group identify-im6 (providing /usr/bin/identify-im6): /usr/bin/identify-im6.q16
설정할 것이 없습니다.
There is only one alternative in link group import (providing /usr/bin/import): /usr/bin/import-im6.q16
설정할 것이 없습니다.
There is only one alternative in link group import-im6 (providing /usr/bin/import-im6): /usr/bin/import-im6.q16
설정할 것이 없습니다.
There is only one alternative in link group infobrowser (providing /usr/bin/infobrowser): /usr/bin/info
설정할 것이 없습니다.
There is only one alternative in link group libblas.so.3-x86_64-linux-gnu (providing /usr/lib/x86_64-linux-gnu/libblas.so.3): /usr/lib/x86_64-linux-gnu/blas/libblas.so.3
설정할 것이 없습니다.
There is only one alternative in link group liblapack.so.3-x86_64-linux-gnu (providing /usr/lib/x86_64-linux-gnu/liblapack.so.3): /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3
설정할 것이 없습니다.
There is only one alternative in link group locate (providing /usr/bin/locate): /usr/bin/mlocate
설정할 것이 없습니다.
There is only one alternative in link group lzma (providing /usr/bin/lzma): /usr/bin/xz
설정할 것이 없습니다.
There is only one alternative in link group mogrify (providing /usr/bin/mogrify): /usr/bin/mogrify-im6.q16
설정할 것이 없습니다.
There is only one alternative in link group mogrify-im6 (providing /usr/bin/mogrify-im6): /usr/bin/mogrify-im6.q16
설정할 것이 없습니다.
There is only one alternative in link group montage (providing /usr/bin/montage): /usr/bin/montage-im6.q16
설정할 것이 없습니다.
There is only one alternative in link group montage-im6 (providing /usr/bin/montage-im6): /usr/bin/montage-im6.q16
설정할 것이 없습니다.
There is only one alternative in link group mt (providing /bin/mt): /bin/mt-gnu
설정할 것이 없습니다.
대체 항목 my.cnf에 대해 (/etc/mysql/my.cnf 제공) 2개 선택이 있습니다.

  선택       경로                      우선순▒ 상태
------------------------------------------------------------
* 0            /etc/mysql/mariadb.cnf       200       자동 모드
  1            /etc/mysql/mariadb.cnf       200       수동 모드
  2            /etc/mysql/my.cnf.fallback   100       수동 모드

Press <enter> to keep the current choice[*], or type selection number:
There is only one alternative in link group nc (providing /bin/nc): /bin/nc.openbsd
설정할 것이 없습니다.
대체 항목 newt-palette에 대해 (/etc/newt/palette 제공) 2개 선택이 있습니다.

  선택       경로                      우선순▒ 상태
------------------------------------------------------------
* 0            /etc/newt/palette.ubuntu     50        자동 모드
  1            /etc/newt/palette.original   20        수동 모드
  2            /etc/newt/palette.ubuntu     50        수동 모드

Press <enter> to keep the current choice[*], or type selection number:
대체 항목 pager에 대해 (/usr/bin/pager 제공) 2개 선택이 있습니다.

  선택       경로          우선순▒ 상태
------------------------------------------------------------
* 0            /bin/less        77        자동 모드
  1            /bin/less        77        수동 모드
  2            /bin/more        50        수동 모드

Press <enter> to keep the current choice[*], or type selection number:
There is only one alternative in link group pico (providing /usr/bin/pico): /bin/nano
설정할 것이 없습니다.
대체 항목 pinentry에 대해 (/usr/bin/pinentry 제공) 2개 선택이 있습니다.

  선택       경로                    우선순▒ 상태
------------------------------------------------------------
* 0            /usr/bin/pinentry-gnome3   90        자동 모드
  1            /usr/bin/pinentry-curses   50        수동 모드
  2            /usr/bin/pinentry-gnome3   90        수동 모드

Press <enter> to keep the current choice[*], or type selection number:
There is only one alternative in link group pinentry-x11 (providing /usr/bin/pinentry-x11): /usr/bin/pinentry-gnome3
설정할 것이 없습니다.
There is only one alternative in link group rcp (providing /usr/bin/rcp): /usr/bin/scp
설정할 것이 없습니다.
There is only one alternative in link group rgview (providing /usr/bin/rgview): /usr/bin/vim.gtk3
설정할 것이 없습니다.
There is only one alternative in link group rgvim (providing /usr/bin/rgvim): /usr/bin/vim.gtk3
설정할 것이 없습니다.
There is only one alternative in link group rlogin (providing /usr/bin/rlogin): /usr/bin/slogin
설정할 것이 없습니다.
There is only one alternative in link group rmt (providing /usr/sbin/rmt): /usr/sbin/rmt-tar
설정할 것이 없습니다.
There is only one alternative in link group rsh (providing /usr/bin/rsh): /usr/bin/ssh
설정할 것이 없습니다.
대체 항목 rview에 대해 (/usr/bin/rview 제공) 3개 선택이 있습니다.

  선택       경로              우선순▒ 상태
------------------------------------------------------------
* 0            /usr/bin/vim.gtk3    50        자동 모드
  1            /usr/bin/vim.basic   30        수동 모드
  2            /usr/bin/vim.gtk3    50        수동 모드
  3            /usr/bin/vim.tiny    15        수동 모드

Press <enter> to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in manual mode
대체 항목 rvim에 대해 (/usr/bin/rvim 제공) 2개 선택이 있습니다.

  선택       경로              우선순▒ 상태
------------------------------------------------------------
* 0            /usr/bin/vim.gtk3    50        자동 모드
  1            /usr/bin/vim.basic   30        수동 모드
  2            /usr/bin/vim.gtk3    50        수동 모드

Press <enter> to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in manual mode
There is only one alternative in link group stream (providing /usr/bin/stream): /usr/bin/stream-im6.q16
설정할 것이 없습니다.
There is only one alternative in link group stream-im6 (providing /usr/bin/stream-im6): /usr/bin/stream-im6.q16
설정할 것이 없습니다.
There is only one alternative in link group tdbbackup (providing /usr/bin/tdbbackup): /usr/bin/tdbbackup.tdbtools
설정할 것이 없습니다.
There is only one alternative in link group telnet (providing /usr/bin/telnet): /usr/bin/telnet.netkit
설정할 것이 없습니다.
There is only one alternative in link group text.plymouth (providing /usr/share/plymouth/themes/text.plymouth): /usr/share/plymouth/themes/ubuntu-text/ubuntu-text.plymouth
설정할 것이 없습니다.
There is only one alternative in link group traceroute6 (providing /usr/bin/traceroute6): /usr/bin/traceroute6.iputils
설정할 것이 없습니다.
대체 항목 vi에 대해 (/usr/bin/vi 제공) 3개 선택이 있습니다.

  선택       경로              우선순▒ 상태
------------------------------------------------------------
* 0            /usr/bin/vim.gtk3    50        자동 모드
  1            /usr/bin/vim.basic   30        수동 모드
  2            /usr/bin/vim.gtk3    50        수동 모드
  3            /usr/bin/vim.tiny    15        수동 모드

Press <enter> to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in manual mode
대체 항목 view에 대해 (/usr/bin/view 제공) 4개 선택이 있습니다.

  선택       경로              우선순▒ 상태
------------------------------------------------------------
* 0            /usr/bin/vim.gtk3    50        자동 모드
  1            /usr/bin/mcview      25        수동 모드
  2            /usr/bin/vim.basic   30        수동 모드
  3            /usr/bin/vim.gtk3    50        수동 모드
  4            /usr/bin/vim.tiny    15        수동 모드

Press <enter> to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in manual mode
대체 항목 vim에 대해 (/usr/bin/vim 제공) 2개 선택이 있습니다.

  선택       경로              우선순▒ 상태
------------------------------------------------------------
* 0            /usr/bin/vim.gtk3    50        자동 모드
  1            /usr/bin/vim.basic   30        수동 모드
  2            /usr/bin/vim.gtk3    50        수동 모드

Press <enter> to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in manual mode
대체 항목 vimdiff에 대해 (/usr/bin/vimdiff 제공) 2개 선택이 있습니다.

  선택       경로              우선순▒ 상태
------------------------------------------------------------
* 0            /usr/bin/vim.gtk3    50        자동 모드
  1            /usr/bin/vim.basic   30        수동 모드
  2            /usr/bin/vim.gtk3    50        수동 모드

Press <enter> to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in manual mode
대체 항목 vtrgb에 대해 (/etc/vtrgb 제공) 2개 선택이 있습니다.

  선택       경로                        우선순▒ 상태
------------------------------------------------------------
* 0            /etc/console-setup/vtrgb       50        자동 모드
  1            /etc/console-setup/vtrgb       50        수동 모드
  2            /etc/console-setup/vtrgb.vga   20        수동 모드

Press <enter> to keep the current choice[*], or type selection number:
There is only one alternative in link group w (providing /usr/bin/w): /usr/bin/w.procps
설정할 것이 없습니다.
There is only one alternative in link group write (providing /usr/bin/write): /usr/bin/bsd-write
설정할 것이 없습니다.
대체 항목 x-cursor-theme에 대해 (/usr/share/icons/default/index.theme 제공) 7개 선택이 있습니다.

  선택       경로                                   우선순▒ 상태
------------------------------------------------------------
* 0            /usr/share/icons/DMZ-White/cursor.theme   100       자동 모드
  1            /etc/X11/cursors/core.theme               30        수동 모드
  2            /etc/X11/cursors/handhelds.theme          20        수동 모드
  3            /etc/X11/cursors/redglass.theme           20        수동 모드
  4            /etc/X11/cursors/whiteglass.theme         20        수동 모드
  5            /usr/share/icons/Adwaita/cursor.theme     90        수동 모드
  6            /usr/share/icons/DMZ-Black/cursor.theme   30        수동 모드
  7            /usr/share/icons/DMZ-White/cursor.theme   100       수동 모드

Press <enter> to keep the current choice[*], or type selection number:
There is only one alternative in link group x-session-manager (providing /usr/bin/x-session-manager): /usr/bin/gnome-session
설정할 것이 없습니다.
There is only one alternative in link group x-terminal-emulator (providing /usr/bin/x-terminal-emulator): /usr/bin/gnome-terminal.wrapper
설정할 것이 없습니다.
There is only one alternative in link group x-window-manager (providing /usr/bin/x-window-manager): /usr/bin/mutter
설정할 것이 없습니다.
대체 항목 x-www-browser에 대해 (/usr/bin/x-www-browser 제공) 2개 선택이 있습니다.

  선택       경로                         우선순▒ 상태
------------------------------------------------------------
* 0            /usr/bin/google-chrome-stable   200       자동 모드
  1            /usr/bin/firefox                40        수동 모드
  2            /usr/bin/google-chrome-stable   200       수동 모드

Press <enter> to keep the current choice[*], or type selection number:
falinux@falinux-730QCJ-730QCR:~/work/lse/wayvnc/src$

 

다시 찬찬히 보니 아래처럼 하면 간단히 해결 되었을 지도?

$ sudo update-alternatives --config vim

 

 

perf  라는 명령어 발견

[링크 : http:// https://velog.io/@mythos/Linux-Tutorial-11-커널-성능-측정-도구-perf]

[링크 : https://kernel.bz/boardPost/118679/8]

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

vi 이전 위치 다음 위치로 이동하기  (0) 2022.08.04
vim 색상 바꾸기(colorscheme)  (0) 2021.01.20
vi 에서 매칭되는 갯수 확인하기  (0) 2019.12.18
vi gg=G와 set ts  (0) 2019.07.04
vi 검색 취소하기  (0) 2019.06.04
Posted by 구차니
프로그램 사용/rtl-sdr2022. 7. 20. 13:23

22.04 시대에 18.04라니.. 긴 한데

아무튼 gqrx 틀어 보니 가짜 출력(fake? dummy?) 라고 나오길래 찾아보니

 

아래의 모듈이 없어서 그렇다는데, 실행하고 나니 아래와 같이 헤드폰으로 잘 나온다.

$ sudo modprobe snd-hda-intel

[링크 : https://www.linuxuprising.com/2018/06/fix-no-sound-dummy-output-issue-in.html]

 

 

 

생각해보니.. rtl-sdr 관련 /dev/dsp 이런거 해보려고 oss 설치했던게 생각이 나네 -_-

젠장 역시나!!

/etc/modprobe.d$ grep -rni intel .
./blacklist-modem.conf:3:# blacklist snd-intel8x0m
./blacklist-framebuffer.conf:13:blacklist intelfb
./alsa-base.conf:31:options snd-intel8x0m index=-2
./oss4-base_noALSA.conf:83:blacklist snd-hda-intel
./oss4-base_noALSA.conf:94:blacklist snd-intel8x0
./oss4-base_noALSA.conf:95:blacklist snd-intel8x0m
./blacklist.conf:21:# snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much
./blacklist.conf:23:blacklist snd_intel8x0m

'프로그램 사용 > rtl-sdr' 카테고리의 다른 글

gqrx, gnu radio, rfcat  (0) 2024.08.21
rtl sdr 다중 채널 디코딩  (0) 2022.08.30
RTL-SDR 11시 땡!  (0) 2022.01.07
gqrx 오디오 스트리밍  (0) 2022.01.07
rpi gqrx  (0) 2022.01.07
Posted by 구차니

20.10 에서 테스트 완료.

18.04 에서도 해봐야 하려나? (세션 로그아웃 시키기 귀찮은디..)

 

$ sudo vi /etc/gdm3/custom.conf
# GDM configuration storage
#
# See /usr/share/gdm/gdm.schemas for a list of available options.

[daemon]
# Uncoment the line below to force the login screen to use Xorg
WaylandEnable=false

# Enabling automatic login
#  AutomaticLoginEnable = true
#  AutomaticLogin = user1

# Enabling timed login
#  TimedLoginEnable = true
#  TimedLogin = user1
#  TimedLoginDelay = 10

AutomaticLoginEnable=True
AutomaticLogin=falinux

[security]

[xdmcp]

[chooser]

[debug]
# Uncomment the line below to turn on debugging
# More verbose logs
# Additionally lets the X server dump core if it crashes
#Enable=true


[링크 : https://www.answertopia.com/ubuntu/displaying-ubuntu-applications-remotely-x11-forwarding/]

Posted by 구차니

코드 분석하다 보니 아래와 같은 함수를 compositor.c에서 발견함.

weston 에서 호출되는 곳은 3 곳.

 

/** State of the repaint loop */
enum {
REPAINT_NOT_SCHEDULED = 0, /**< idle; no repaint will occur */
REPAINT_BEGIN_FROM_IDLE, /**< start_repaint_loop scheduled */
REPAINT_SCHEDULED, /**< repaint is scheduled to occur */
REPAINT_AWAITING_COMPLETION, /**< last repaint not yet finished */
} repaint_status;

static void
weston_output_schedule_repaint_reset(struct weston_output *output)
{
output->repaint_status = REPAINT_NOT_SCHEDULED;
TL_POINT(output->compositor, "core_repaint_exit_loop",
 TLP_OUTPUT(output), TLP_END);
}

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

wayvnc 0.5 릴리즈  (0) 2022.08.09
capture drm screen  (0) 2022.08.08
weston drm debug  (0) 2022.06.29
libwayland debug 메시지  (0) 2022.06.27
libwayland  (0) 2022.06.27
Posted by 구차니