Linux/Ubuntu2019. 5. 6. 22:19

2760p에 우분투를 깔았는데 하루종일 냅둬도 syspend 모드로 가있어서

윈도우 처럼 하이버네이트 안되나 찾아보는 중. 적용을 해봐야겠네

(느낌인진 몰라도 suspend 해두면 자연방전이 윈도우 보다 적은 느낌?)

 

// 30*60=1800sec hiberate

$ sudo vim /etc/systemd/sleep.conf

[Sleep]
HibernateDelaySec=1800

// for test
$ sudo systemctl suspend-then-hibernate

[링크 : https://askubuntu.com/questions/12383/how-to-go-automatically-from-suspend-into-hibernate]

 

+

해보니 뚜껑닫아도 절전모드 들어가버린다..

이건 별도로 설정을 해주어야 할 듯

 

+

2019.05.08

절전모드 혹은 하이버네이트 들어갔다나 나올 때

와콤 펜 타블렛 및 터치가 안되는 문제가 있어서 sleep.conf 지우고 완전히 종료했다 켜니 됨.

(재시작으로는 살아나지 못함)

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

ubuntu sftp with nautilius  (0) 2019.06.03
리눅스 gdm 키맵 변경  (0) 2019.05.10
intel hd 3000 GLSL  (0) 2019.05.05
linux smbus?  (0) 2019.05.04
우분투 창 전환(그룹) 해제하기  (0) 2019.05.04
Posted by 구차니
Linux/Ubuntu2019. 5. 5. 10:57

python 으로 먼가 하려는데 안되서 멘붕

$ python pygl.py 
No handlers could be found for logger "OpenGL.arrays.numpymodule"
Traceback (most recent call last):
  File "pygl.py", line 92, in 
    main()
  File "pygl.py", line 56, in main
    shader = OpenGL.GL.shaders.compileProgram(OpenGL.GL.shaders.compileShader(vertex_shader, GL_VERTEX_SHADER),
  File "/home/minimonk/.local/lib/python2.7/site-packages/OpenGL/GL/shaders.py", line 226, in compileShader
    shaderType,
RuntimeError: ('Shader compile failure (0): 0:2(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES\n', ['\n    #version 330\n    in vec3 position;\n    in vec3 color;\n\n    out vec3 newColor;\n    void main()\n    {\n        gl_Position = vec4(position, 1.0f);\n        newColor = color;\n    }\n    '], GL_VERTEX_SHADER)
minimonk@mini2760:~/src/pygl$ MESA_GLSL_VERSION_OVERRIDE=330 python pygl.py
No handlers could be found for logger "OpenGL.arrays.numpymodule"
Traceback (most recent call last):
  File "pygl.py", line 92, in 
    main()
  File "pygl.py", line 56, in main
    shader = OpenGL.GL.shaders.compileProgram(OpenGL.GL.shaders.compileShader(vertex_shader, GL_VERTEX_SHADER),
  File "/home/minimonk/.local/lib/python2.7/site-packages/OpenGL/GL/shaders.py", line 226, in compileShader
    shaderType,
RuntimeError: ('Shader compile failure (0): 0:2(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES\n', ['\n    #version 330\n    in vec3 position;\n    in vec3 color;\n\n    out vec3 newColor;\n    void main()\n    {\n        gl_Position = vec4(position, 1.0f);\n        newColor = color;\n    }\n    '], GL_VERTEX_SHADER)

 

암튼 찾다보면 win10에서 GL3.0 지원 안한다고 하는 말도 있고 하는데

리눅스에서는 아래처럼 환경변수 정해주면 된다고 하는데..  오오 진짜루 된다!! 만세!

export MESA_GLSL_VERSION_OVERRIDE=330
export MESA_GL_VERSION_OVERRIDE=3.3
$ python pygl.py 
No handlers could be found for logger "OpenGL.arrays.numpymodule"

 

일단은 실행되는걸 보니 shader도 정상적으로 되는 듯?

 

[링크 : https://news.ycombinator.com/item?id=14181897]

[링크 : https://old.reddit.com/.../how_can_i_get_opengl_33_with_glsl_33_support/...]

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

리눅스 gdm 키맵 변경  (0) 2019.05.10
ubuntu 18.04 hibernate 적용하기  (0) 2019.05.06
linux smbus?  (0) 2019.05.04
우분투 창 전환(그룹) 해제하기  (0) 2019.05.04
우분투 터치패드 휠 클릭 흉내내기  (0) 2019.05.04
Posted by 구차니
Linux/Ubuntu2019. 5. 4. 10:03

BMS 칩셋 i2c 주소를 어떻게 접근하나 찾는중

i2cdetect를 통해서는 이상한것만 보이는데..

gmbus는 그래픽 카드쪽이라고 검색은 나오지만.. 확실한건 좀더 봐야 할 듯 하고

 

$ i2cdetect -l
i2c-3 unknown    i915 gmbus dpc                   N/A
i2c-1 unknown    i915 gmbus vga                   N/A
i2c-6 unknown    DPDDC-B                          N/A
i2c-4 unknown    i915 gmbus dpb                   N/A
i2c-2 unknown    i915 gmbus panel                 N/A
i2c-0 unknown    i915 gmbus ssc                   N/A
i2c-5 unknown    i915 gmbus dpd                   N/A

 

acpi 명령을 통해 보면 배터리 상태나 온도등이 그냥 나오네.. 버스가 다른가?

$ acpi -V
Battery 0: Charging, 98%, 00:08:28 until charged
Battery 0: design capacity 3692 mAh, last full capacity 3692 mAh = 100%
Adapter 0: on-line
Thermal 0: ok, 28.0 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 128.0 degrees C
Thermal 0: trip point 1 switches to mode passive at temperature 55.0 degrees C
Thermal 1: ok, 0.0 degrees C
Thermal 1: trip point 0 switches to mode critical at temperature 128.0 degrees C
Thermal 1: trip point 1 switches to mode passive at temperature 105.0 degrees C
Thermal 2: ok, 37.0 degrees C
Thermal 2: trip point 0 switches to mode critical at temperature 128.0 degrees C
Thermal 3: ok, 0.0 degrees C
Thermal 3: trip point 0 switches to mode critical at temperature 128.0 degrees C
Thermal 4: ok, 43.0 degrees C
Thermal 4: trip point 0 switches to mode critical at temperature 128.0 degrees C
Thermal 4: trip point 1 switches to mode hot at temperature 99.0 degrees C
Thermal 5: ok, 36.0 degrees C
Thermal 5: trip point 0 switches to mode critical at temperature 128.0 degrees C
Cooling 0: Processor 0 of 10
Cooling 1: intel_powerclamp no state information available
Cooling 2: x86_pkg_temp no state information available
Cooling 3: Processor 0 of 10
Cooling 4: Processor 0 of 10
Cooling 5: LCD 14 of 20
Cooling 6: Processor 0 of 10

 

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

ubuntu 18.04 hibernate 적용하기  (0) 2019.05.06
intel hd 3000 GLSL  (0) 2019.05.05
우분투 창 전환(그룹) 해제하기  (0) 2019.05.04
우분투 터치패드 휠 클릭 흉내내기  (0) 2019.05.04
ubuntu 18.04 kvm 설치하기  (0) 2019.04.30
Posted by 구차니
Linux/Ubuntu2019. 5. 4. 01:25

설정 - 장치 - 키보드 - 조종 - 창 전환

앱 전환이 동일 그룹으로 묶는 녀석인 듯

 

 

 

[링크 : https://askubuntu.com/questions/123977/how-to-ungroup-windows-on-unity-task-switcher]

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

intel hd 3000 GLSL  (0) 2019.05.05
linux smbus?  (0) 2019.05.04
우분투 터치패드 휠 클릭 흉내내기  (0) 2019.05.04
ubuntu 18.04 kvm 설치하기  (0) 2019.04.30
ubuntu test page 위치  (0) 2018.12.19
Posted by 구차니
Linux/Ubuntu2019. 5. 4. 00:31

gnome-tweaks를 설치해서 바로 설정된건지.. 아니면 깔아야 활성화 되는진 모르겠지만

터치패드 3 손가락 터치를 통해 휠 클릭을 흉내낼 수 있다.

(2760p 작은 터치패드에서 하려니 손가락 쥐나는 듯 ㅠㅠ)

 

[링크 : http://ubuntuhandbook.org/index.php/2018/07/touchpad-right-click-not-working-in-ubuntu-18-04/]

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

linux smbus?  (0) 2019.05.04
우분투 창 전환(그룹) 해제하기  (0) 2019.05.04
ubuntu 18.04 kvm 설치하기  (0) 2019.04.30
ubuntu test page 위치  (0) 2018.12.19
epson 프린터 유틸리티 관련  (0) 2018.12.18
Posted by 구차니
Linux/Ubuntu2019. 4. 30. 13:44

귀찮으니 끝판왕을 깔자 ㅋㅋ

 

$ sudo apt install virt-manager
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다
상태 정보를 읽는 중입니다... 완료
다음의 추가 패키지가 설치될 것입니다 :
  augeas-lenses bridge-utils cpu-checker ebtables gir1.2-appindicator3-0.1 gir1.2-gtk-vnc-2.0 gir1.2-libosinfo-1.0
  gir1.2-libvirt-glib-1.0 gir1.2-spiceclientglib-2.0 gir1.2-spiceclientgtk-3.0 ibverbs-providers ipxe-qemu
  ipxe-qemu-256k-compat-efi-roms libaio1 libaugeas0 libcacard0 libfdt1 libgovirt-common libgovirt2 libgtk-vnc-2.0-0
  libgvnc-1.0-0 libibverbs1 libiscsi7 libnetcf1 libnl-route-3-200 libosinfo-1.0-0 libphodav-2.0-0 libphodav-2.0-common
  librados2 librbd1 librdmacm1 libsdl1.2debian libspice-client-glib-2.0-8 libspice-client-gtk-3.0-5 libspice-server1
  libusbredirhost1 libusbredirparser1 libvirt-clients libvirt-daemon libvirt-daemon-driver-storage-rbd
  libvirt-daemon-system libvirt-glib-1.0-0 libvirt0 libxen-4.9 libxenstore3.0 libxml2-utils msr-tools osinfo-db
  python-asn1crypto python-cairo python-certifi python-cffi-backend python-chardet python-cryptography python-dbus
  python-enum34 python-gi python-gi-cairo python-idna python-ipaddr python-ipaddress python-libvirt python-libxml2
  python-openssl python-pkg-resources python-requests python-six python-urllib3 qemu-block-extra qemu-kvm
  qemu-system-common qemu-system-x86 qemu-utils seabios sharutils spice-client-glib-usb-acl-helper virt-viewer virtinst
제안하는 패키지:
  augeas-doc augeas-tools libosinfo-l10n gstreamer1.0-plugins-bad libvirt-daemon-driver-storage-gluster
  libvirt-daemon-driver-storage-sheepdog libvirt-daemon-driver-storage-zfs numad radvd auditd systemtap nfs-common zfsutils
  pm-utils python-cryptography-doc python-cryptography-vectors python-dbus-dbg python-dbus-doc python-enum34-doc
  python-openssl-doc python-openssl-dbg python-setuptools python-socks python-ntlm samba vde2 sgabios ovmf debootstrap
  sharutils-doc bsd-mailx | mailx ssh-askpass python-guestfs
다음 새 패키지를 설치할 것입니다:
  augeas-lenses bridge-utils cpu-checker ebtables gir1.2-appindicator3-0.1 gir1.2-gtk-vnc-2.0 gir1.2-libosinfo-1.0
  gir1.2-libvirt-glib-1.0 gir1.2-spiceclientglib-2.0 gir1.2-spiceclientgtk-3.0 ibverbs-providers ipxe-qemu
  ipxe-qemu-256k-compat-efi-roms libaio1 libaugeas0 libcacard0 libfdt1 libgovirt-common libgovirt2 libgtk-vnc-2.0-0
  libgvnc-1.0-0 libibverbs1 libiscsi7 libnetcf1 libnl-route-3-200 libosinfo-1.0-0 libphodav-2.0-0 libphodav-2.0-common
  librados2 librbd1 librdmacm1 libsdl1.2debian libspice-client-glib-2.0-8 libspice-client-gtk-3.0-5 libspice-server1
  libusbredirhost1 libusbredirparser1 libvirt-clients libvirt-daemon libvirt-daemon-driver-storage-rbd
  libvirt-daemon-system libvirt-glib-1.0-0 libvirt0 libxen-4.9 libxenstore3.0 libxml2-utils msr-tools osinfo-db
  python-asn1crypto python-cairo python-certifi python-cffi-backend python-chardet python-cryptography python-dbus
  python-enum34 python-gi python-gi-cairo python-idna python-ipaddr python-ipaddress python-libvirt python-libxml2
  python-openssl python-pkg-resources python-requests python-six python-urllib3 qemu-block-extra qemu-kvm
  qemu-system-common qemu-system-x86 qemu-utils seabios sharutils spice-client-glib-usb-acl-helper virt-manager virt-viewer
  virtinst
0개 업그레이드, 79개 새로 설치, 0개 제거 및 0개 업그레이드 안 함.
22.3 M바이트 아카이브를 받아야 합니다.
이 작업 후 102 M바이트의 디스크 공간을 더 사용하게 됩니다.
계속 하시겠습니까? [Y/n]

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

우분투 창 전환(그룹) 해제하기  (0) 2019.05.04
우분투 터치패드 휠 클릭 흉내내기  (0) 2019.05.04
ubuntu test page 위치  (0) 2018.12.19
epson 프린터 유틸리티 관련  (0) 2018.12.18
lpstat  (0) 2018.12.18
Posted by 구차니
Linux/Ubuntu2018. 12. 19. 11:04

ubuntu 16.04

/usr/share/cups/data/testpage

/usr/share/cups/data/default-testpage.pdf

[링크 : https://askubuntu.com/questions/47815/where-can-i-find-the-default-printing-test-page]



+

centos 7 에서 확인

[root@localhost data]# ll

합계 48

-rw-r--r-- 1 root root 39852  8월  3  2017 default-testpage.pdf

-rw-r--r-- 1 root root   845  8월  3  2017 default.pdf

-rw-r--r-- 1 root root   234  8월  3  2017 testprint


[root@localhost data]# file *

default-testpage.pdf: PDF document, version 1.5

default.pdf:          PDF document, version 1.5

testprint:            ASCII text 


[root@localhost data]# cat testprint

#PDF-BANNER

Template default-testpage.pdf

Show printer-name printer-info printer-location printer-make-and-model printer-driver-name printer-driver-version paper-size imageable-area job-id options time-at-creation time-at-processing


[링크: https://forums.opensuse.org/showthread.php/478727-CUPS-test-page]

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

우분투 터치패드 휠 클릭 흉내내기  (0) 2019.05.04
ubuntu 18.04 kvm 설치하기  (0) 2019.04.30
epson 프린터 유틸리티 관련  (0) 2018.12.18
lpstat  (0) 2018.12.18
lp lpr  (0) 2018.12.18
Posted by 구차니
Linux/Ubuntu2018. 12. 18. 19:17

드라이버 안깔고는 안해봤네..

Epson L805 가지고 노는중


[링크 : https://epson.com/Support/wa00821]

[링크 : http://download.ebz.epson.net/faq/linux/inkjetprinter.html]

[링크 : http://download.ebz.epson.net/man/linux/]


제조사 제공은 아님

[링크 : https://linux.die.net/man/1/escputil]


-r /dev/usb/lp0 식으로 쓴다면 -P로 명칭을 쓸 수 있다는데

L805에 맞는 적당한 명칭을 찾지 못하겠다...

그리고 -P로는 잉크청소라던가 여러가지 기능은 못쓰게 제한 되는 듯?

$ escputil -P Stylus-C45 -m C45 -u -c 

[링크 : https://enggaraguilera.wordpress.com/2008/01/02/my-lovely-escputil/]

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

ubuntu 18.04 kvm 설치하기  (0) 2019.04.30
ubuntu test page 위치  (0) 2018.12.19
lpstat  (0) 2018.12.18
lp lpr  (0) 2018.12.18
ubuntu desktop shortcut  (0) 2018.12.06
Posted by 구차니
Linux/Ubuntu2018. 12. 18. 19:12

lp lpr lpadmin lpstat 등등

line printer 관련 명령어들인데 lpstat은 queue 관련을 볼 수 있는 듯?

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

[링크 : https://askubuntu.com/questions/37247/is-there-an-easy-way-to-view-the-print-queue]

[링크 : https://www.cups.org/doc/man-lpstat.html]

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

ubuntu test page 위치  (0) 2018.12.19
epson 프린터 유틸리티 관련  (0) 2018.12.18
lp lpr  (0) 2018.12.18
ubuntu desktop shortcut  (0) 2018.12.06
do-release-upgrade와 apt-get dist-upgrade  (0) 2018.09.28
Posted by 구차니
Linux/Ubuntu2018. 12. 18. 19:10

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

epson 프린터 유틸리티 관련  (0) 2018.12.18
lpstat  (0) 2018.12.18
ubuntu desktop shortcut  (0) 2018.12.06
do-release-upgrade와 apt-get dist-upgrade  (0) 2018.09.28
tmux  (0) 2018.08.13
Posted by 구차니