Programming/openGL2019. 5. 7. 08:07

언제 또 버전이 이렇게 올랐냐...

기존에 공부하던건 잊고 새로운 glfw라는걸 써야 할 듯

 

[링크 : http://www.opengl-tutorial.org/kr/beginners-tutorials/tutorial-2-the-first-triangle/]

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

openGL vao(Vertex Array Object)  (0) 2019.05.07
glfw - gl framework  (0) 2019.05.07
openGL Stereoscopic  (0) 2018.04.25
openGL cardboard lens distortion  (0) 2018.04.25
glxgears 소스  (0) 2016.09.07
Posted by 구차니
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 구차니
Microsoft/vscode2019. 5. 4. 00:53

기본으로 설치하니 curl이 없어서 일단 깔고 해줘야 하는 듯

wget 으로 하면 파일로 저장해서 그런가 정상적으로 되지 않는다.

sudo apt-get install curl
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install code

[링크 : https://code.visualstudio.com/docs/setup/linux]

[링크 : https://webnautes.tistory.com/1197]

'Microsoft > vscode' 카테고리의 다른 글

vscode에서 *로 검색하기 (대신 정규표현식)  (0) 2019.11.09
vscode node.js 디버깅  (0) 2019.08.08
vscode live share?  (0) 2019.01.03
vscode plugin - ssh fs  (0) 2018.11.27
vscode 이전/다음 단축키  (0) 2018.11.13
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 구차니

뜬금없이(?) 웬일로 남자편 들어주는 기사라니

 

[링크 : https://news.v.daum.net/v/20190503120151792]

[링크 : https://news.v.daum.net/v/20190503060028422]

Posted by 구차니

말은 거창하지만.. UPS 원리 찾는 중

MOSFET을 통해서 승압하는건가?

 

[링크 : https://www.electronicshub.org/12v-dc-220v-ac-converter-circuit/]

'이론 관련 > 전기 전자' 카테고리의 다른 글

래칭 릴레이(latching relay)  (0) 2019.12.22
역률 개선  (0) 2019.05.09
cic pdm  (0) 2019.04.04
DSD/PDM 그리고 초음파  (0) 2019.04.01
PDM과 DSD  (0) 2019.03.30
Posted by 구차니

노트북에 우분투 깔면 잘 되려나?

[링크 : http://www.linlap.com/hp_elitebook_2760p]

 

 

+

2019.05.03

 

UEFI 로 만들은 ubuntu USB가 안되는걸 제외하면 별 문제없이 설치된다.

어짜피 지문스캐너는 안쓰니 상관었고..

 

아무튼

1. gnome-tweaks를 설치해서 터치패드 3손가락 터치로 휠클릭 흉내내기로 사용

2. 기울기로 자동 화면 전환이 좀 이상함

3. 화면 회전 버튼은 모든 방향 한번씩 다 돌리는 듯

4. 여전히 가끔 터치나 펜이 안되는 문제가 있는데 하드웨어 문제일수도?

 

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

diskless 시스템 구축  (0) 2019.05.08
ACPI & smbus  (0) 2019.05.07
i5-2500 vs i5-7600  (0) 2019.05.02
intel HD3000 win10에서 openGL 미지원?  (0) 2019.04.30
L3 캐시 용량에 따른 성능 변화?  (0) 2019.04.30
Posted by 구차니