How to set DPI as 90x90 for XVFB Display?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to set DPI as 90x90 for XVFB Display?
# 8  
Old 07-04-2014
case 1: if u connect to XServer then U will get 100x100 dpi when u type xdpyinfo command.

case 2:if u connect to XServer enabled with "XVFB" then U will get 90x90 dpi when u type xdpyinfo command.

I want 100x100 dpi in the above Case2. Please solve this issue.

Thanks in advance.
# 9  
Old 07-04-2014
Quote:
Originally Posted by prathap.g
case 1: if u connect to XServer then U will get 100x100 dpi when u type xdpyinfo command.

case 2:if u connect to XServer enabled with "XVFB" then U will get 90x90 dpi when u type xdpyinfo command.

I want 100x100 dpi in the above Case2. Please solve this issue.
First off: please kindly refrain from using leet-speak here. Most of us shun that practice and if you save on even the two keystrokes writing "u" instead of "you" why should we undergo the effort to write complete answers to your questions?

Second: I already told you to read the documentation which says:
Quote:
In addition to the normal server options described in the Xserver(1) manual page
Would you have done that, you would have found (at this page) the following:

Quote:
−dpi resolution
sets the resolution for all screens, in dots per inch. To be used when the server cannot determine the screen size(s) from the hardware.
Quoting further from the manual page:
XVFB (X Virtual Frame Buffer) is an X server that can run on machines with no display hardware [...] It emulates a dumb framebuffer [...].

It is clear that the software cannot determine the screen size and/or resolution of a virtual device. Therefore this value has to be set by the commandline. Exactly this is what the "-dpi" command line switch is for - to provide a value when the X server cannot determine it itself.

I suggest you put a little more effort not only in your writing but also in solving your problems. I promise your Unix experience will take on a complete new quality and eternal happiness anywhere near a command line will await you. :-))

I hope this helps.

bakunin
# 10  
Old 07-08-2014
I executed below command in AIX machine.
bash-3.2$ /usr/bin/X11/X :5 -vfb -force -x abx -x dbe -x GLX -I -dpi 90x90 &

Then I executed Xdpyinfo command that shows still dpi 100X100. Please explain how to set dpi as 90x90.

---------- Post updated 07-08-14 at 12:02 AM ---------- Previous update was 07-07-14 at 12:03 AM ----------

if you type command xdpyinfo after connecting to XVFB display ,then you will get resolution 100x100.

But i want 90x90 resolution.Please solve above problem.

Thanks in advance.
# 11  
Old 07-10-2014
Please reply to this post.

Thanks in advance

Moderator's Comments:
Mod Comment edit by bakunin: in the last two days you have bumped up this thread two times. Please notice that this is explicitly forbidden by the rules. If nobody answers, it might be (among other possible reasons) that:

a) nobody knows the answer,

b) you described your problem so poorly that nobody can answer,

c) nobody wants to answer for some other reason.

Whatever the case is all these obstacles to getting an answer will not be removed by you spamming into this thread. If you have nothing to say to remedy one or all of the probably reasons please say nothing at all. Thank you.

Last edited by bakunin; 07-10-2014 at 10:41 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

DISPLAY not set

Hi, When i invoke DBCA as oracle user , i get following usircd01:KAM:/opt/oracle10/product/10.2.0/bin>./dbca DISPLAY not set. Set DISPLAY environment variable, then re-run. usircd01:KAM:/opt/oracle10/product/10.2.0/bin>echo $ORACLE_SID CCE ... (6 Replies)
Discussion started by: Maddy123
6 Replies

2. Windows & DOS: Issues & Discussions

How to automatically set the DISPLAY var?

Hi all, Our users use Putty on Windows servers to log on to UNIX via SSH and run GUI applications. Is there a way to automatically get the display numbers from xming or Exceed (that are running on Windows) to set the DISPLAY var properly on UNIX? X11 forwarding is not an option. The closest I... (3 Replies)
Discussion started by: ejianu
3 Replies

3. Solaris

Where/how is $DISPLAY set when connecting with XDMCP?

My "problem" is that it's set correctly and I want to break it, but can't figure out where it's getting set in the first place. I can see several places where $DISPLAY is referenced but at the point that the dollar sign is in front it's already an environment variable(I think). I thought... (1 Reply)
Discussion started by: gctaylor
1 Replies

4. Solaris

Set display to text

How do I set up my solaris 10 machine to display in text mode instead of graphics mode, permanently? (1 Reply)
Discussion started by: jastanle84
1 Replies

5. Shell Programming and Scripting

How to check if export DISPLAY is set or not?

Hi All, I use "export DISPLAY=same_host:0.0" to set my export DISPLAY and it is working fine for me.. Problem here is I have developed a script for which i should run export DISPLAY prior to running my script.... so my script should check whether export DISPLAY is set or not.. if... (6 Replies)
Discussion started by: smarty86
6 Replies

6. Programming

swing not getting initialized when the DISPLAY is not set

I have a batch programme which will load the Spreadsheet into database.. When the DISPLAY is set and X11 window server is running, there is no issue in reading the spreadsheet and loading into database without lauching UI. But if the display is not set, then there is an issue... Any ideas... (3 Replies)
Discussion started by: shafi2all
3 Replies

7. Solaris

Can't make 'set DISPLAY' to work

Hi, I used exceed and putty in the past to HP server with no problem to make 'set DISPLAY' work on my desktop. However now I have Solaris 9 on Sun server 480 and I only have putty. I can't bring the X window (eg xclock, etc) to my desktop. I tried X11Fowarding, xhost, and so on, it doesn't... (5 Replies)
Discussion started by: jr_zhang
5 Replies

8. UNIX for Dummies Questions & Answers

mandrake 6.0 , display not set despite

hi, i am on mandrake 6.0, shell of root user is bash. okay, i did the below #display=localhost.localdomain:0.0 #export display #xhost +localhost.localdomain system replies xhost added.. i did a set and there was an entry there.. now i want to install oracle, so did a ./runInstaller ... (2 Replies)
Discussion started by: yls177
2 Replies

9. UNIX for Dummies Questions & Answers

set display

Hi All: An elementary Unix Question, How can i set the display number and run a program in that display. If i type the name of the executable the program opens in the console(display number 0), however, i want it to open in another display number. How can i do that. Appreciate the help... (2 Replies)
Discussion started by: preetham
2 Replies
Login or Register to Ask a Question