[Solaris] 스팍 X_Server 색상조절
CDE 나 Openwindow를 사용시 사용하고 있는 컬러가 원하는 색상을 지원하지 않을때..
1. X server가 현재 지원하는 color(색상) 확인
/usr/openwin/bin/xdpyinfo 명령어 사용하여 현재 color depth를 확인.
- 8 bit 256 color 일 경우
# xdpyinfo | grep "depth of root window"
depth of root window: 8 planes
- 24 bit true color 일 경우
# xdpyinfo | grep "depth of root window"
depth of root window: 24 planes
2. 현재 시스템이 24 bit ture color를 지원하는지 확인.
/usr/openwin/bin/xdpyinfo 명령어 사용
현재 graphic card의 24 bit true color 지원여부 확인.
- 8 bit 256 color graphic card일 경우
# xdpyinfo | grep depths
depths (2): 1, 8
- 24 bit true color graphic card일 경우
# xdpyinfo | grep depths
depths (3): 1, 8, 24
or
depths (2): 1, 24
3. CDE(Common Desktop Environment) / openwindow 에서 24bit true color 사용하기
* CDE
# vi /usr/dt/config/Xservers
"-dev /dev/fb0 defdepth 24" 를 마지막 라인의 끝에 첨부후 저장
# reboot 한후에 1번으로 color 확인
수정전
:0 Local local_uid@console root /usr/openwin/bin/Xsun :0 -nobanner
수정후
:0 Local local_uid@console root /usr/openwin/bin/Xsun :0 -nobanner -dev /dev/fb0 defdepth 24
* openwindow
openwin 실행시
-dev /dev/fb0 defdepth 24 인수를 추가.
# openwin -dev /dev/fb0 defdepth 24
1. X server가 현재 지원하는 color(색상) 확인
/usr/openwin/bin/xdpyinfo 명령어 사용하여 현재 color depth를 확인.
- 8 bit 256 color 일 경우
# xdpyinfo | grep "depth of root window"
depth of root window: 8 planes
- 24 bit true color 일 경우
# xdpyinfo | grep "depth of root window"
depth of root window: 24 planes
2. 현재 시스템이 24 bit ture color를 지원하는지 확인.
/usr/openwin/bin/xdpyinfo 명령어 사용
현재 graphic card의 24 bit true color 지원여부 확인.
- 8 bit 256 color graphic card일 경우
# xdpyinfo | grep depths
depths (2): 1, 8
- 24 bit true color graphic card일 경우
# xdpyinfo | grep depths
depths (3): 1, 8, 24
or
depths (2): 1, 24
3. CDE(Common Desktop Environment) / openwindow 에서 24bit true color 사용하기
* CDE
# vi /usr/dt/config/Xservers
"-dev /dev/fb0 defdepth 24" 를 마지막 라인의 끝에 첨부후 저장
# reboot 한후에 1번으로 color 확인
수정전
:0 Local local_uid@console root /usr/openwin/bin/Xsun :0 -nobanner
수정후
:0 Local local_uid@console root /usr/openwin/bin/Xsun :0 -nobanner -dev /dev/fb0 defdepth 24
* openwindow
openwin 실행시
-dev /dev/fb0 defdepth 24 인수를 추가.
# openwin -dev /dev/fb0 defdepth 24