Multi Screen Mouse Movement Settings


 
Thread Tools Search this Thread
Operating Systems Solaris Multi Screen Mouse Movement Settings
# 1  
Old 01-05-2010
Multi Screen Mouse Movement Settings

Hello,

I have a problem with multiscreen configuration. My solaris 8 is configured to work with two monitors. Physically they cannot be interchanged. My question is how to configure openwin in order to have mouse pointer to move right to left from screen to screen because now it is preconfigured in the oposite manner?


Thank you for your help
# 2  
Old 01-05-2010
What contains the /etc/dt/config/Xservers file ?
If that file doesn't exist, post /usr/dt/config/Xserver content.
# 3  
Old 01-06-2010
file: /etc/dt/config/Xservers file does NOT exist
content of file: /usr/dt/config/Xservers is:

Code:
 :0	Local local_uid@console root /usr/openwin/bin/Xsun :0 -nobanner

Thus, I assume that it is not the file where the multiscreen mode is configured...

The dual screens are setup when the user is logged in. So may be the configuration should be corrected in the starting scripts from the user home directory?? I include the code of two user scripts that may be responsible for starting the multiscreen mode...

.5profile.sh

Code:
if [ "`tty`" = "/dev/console" ]; then
            if [ ! -f /etc/rc2.d/S99dtlogin ]; then
	       rm -f /tmp/.openwin.log /tmp/.openwin.err
	       touch /tmp/.openwin.log /tmp/.openwin.err
	       chmod 777 /tmp/.openwin.log /tmp/.openwin.err
               if [ -c /dev/fb0 ] && [ -c /dev/fb1 ] ; then
                   exec openwin -core -clients 1024 -bs -lf 0 -dev /dev/fb0 defclass TrueColor defdepth 24 -dev /dev/fb1 right  defclass TrueColor defdepth 24 -nobanner >>/tmp/.openwin.log 2>>/tmp/.openwin.err
                   # exec openwin -bs -lf 0 -dev /dev/fb0 -dev /dev/fb1 right -nobanner >>/tmp/.openwin.log 2>>/tmp/.openwin.err
               else
		   echo "Cannot open x xerver on /dev/fb0 and /dev/fb1 (right), using one screen (/dev/fb0)" >>/tmp/.openwin.err
                   exec openwin -dev /dev/fb0  >>/tmp/.openwin.log 2>>/tmp/.openwin.err
               fi
	       exit
             fi
          fi


.9xinitrc.init

Code:
# -- disable screen saver
xset s off

# -- disable power management for Solaris > 5.8
xset -dpms -fbpm 2>/dev/null

# -- set first screen to gray
xsetroot -solid gray

# -- set cursor to red
xsetroot -cursor_name top_left_arrow -fg red -bg white

# -- set second screen (if available) to gray
xsetroot -solid gray -display unix:0.1 2>/dev/null

# -- set cursor on second screen (if available) tored
xsetroot -cursor_name top_left_arrow -fg red -bg white -display unix:0.1 2>/dev/null

# -- open the screen to all applicatons
xhost +

# 4  
Old 01-06-2010
Try swapping the frame buffer devices in the .5profile.sh script:
Code:
exec openwin -core -clients 1024 -bs -lf 0 -dev /dev/fb1 defclass TrueColor defdepth 24 -dev /dev/fb0 right  defclass TrueColor defdepth 24 -nobanner >>/tmp/.openwin.log 2>>/tmp/.openwin.err

# 5  
Old 01-06-2010
Merci jilliagre!

Unfortunately, I would like to awoid such swap because it interchanges the application content on the screens. The mouse courser is of course correct now but the content from the right screen is now displayed on the left screen, it should NOT be like that.

I assume that configuration similar to that in the example of the xorg.conf file from RedHat I found on the Internet could solve this problem:

Code:
Section "ServerLayout"
Identifier "Multihead layout"
Screen "Screen0" RightOf "Screen1"
Screen "Screen1" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Option	 "Xinerama" "on"
Option	 "Clone" "off"
EndSection

but I did NOT find any similar file on my solaris...
do you have any idea?

---------- Post updated at 11:41 AM ---------- Previous update was at 10:50 AM ----------

I found the solution!

The line in starting script .5profile.sh should look like that:

Code:
exec openwin -core -clients 1024 -bs -lf 0 -dev /dev/fb0 defclass TrueColor defdepth 24 -dev /dev/fb1 left  defclass TrueColor defdepth 24 -nobanner >>/tmp/.openwin.log 2>>/tmp/.openwin.err

it solved my problem, any way thank you very much for your help that inspired me.

Last edited by corpen; 01-06-2010 at 08:01 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Ubuntu

Detect and run command upon mouse movement

I am trying to find a way to run a command upon any movement of a mouse. The 1st statement shows the mouse co-ordinates. So it can detect mouse movement. xinput test 9 First list input devices: $ xinput list If possible, I would like to use it in a bash script. (2 Replies)
Discussion started by: drew77
2 Replies

2. UNIX and Linux Applications

vnc viewer presents black screen along with GNOME settings daemon errors.

Hello folks, I'm remotely connecting through VNC to two machines, each running Red Hat 5.9, from mine which is running Windows 7. Both connections were working well before. However, now one of the machines only gives me a black screen, with a pop up that says: "There was an error starting... (1 Reply)
Discussion started by: Miguel E. Perez
1 Replies

3. Shell Programming and Scripting

How to substract selective values in multi row, multi column file (using awk or sed?)

Hi, I have a problem where I need to make this input: nameRow1a,text1a,text2a,floatValue1a,FloatValue2a,...,floatValue140a nameRow1b,text1b,text2b,floatValue1b,FloatValue2b,...,floatValue140b look like this output: nameRow1a,text1b,text2a,(floatValue1a - floatValue1b),(floatValue2a -... (4 Replies)
Discussion started by: nricardo
4 Replies

4. UNIX for Dummies Questions & Answers

Windows to Linux remote console using VNC brings up blank console screen with only mouse pointer

:confused:Hi This was installed on the Linux box a few weeks back by a guy that no longer works for us. All worked fine until last week. Now when we connect its just a blank screen with no icons. I get a whole bunch of errors when starting the service too: Tue Feb 23 14:29:45 2010 ... (1 Reply)
Discussion started by: wbdevilliers
1 Replies

5. Windows & DOS: Issues & Discussions

Reflection X multi screen problem

Am using Win XPpro with Reflection X. The system has 2 NVidia Quadro FX 3500s running a dual Planar stereo screen plus a "normal" flat screen monitor. My problem is this - I recently had to swap my "normal" monitor from the right to the left. This was OK for Windows (I just repositioned the... (0 Replies)
Discussion started by: tudor777
0 Replies

6. UNIX for Dummies Questions & Answers

Changing middle mouse button for pasting to right mouse button in cygwin rxvt

Hi, I'm using rxvt in Cygwin and I'm wondering how to change my mouse bindings from the middle button for pasting to the right button. The main reason why I want to do this is because my laptop doesn't have a middle mouse button. Thanks for any help! (2 Replies)
Discussion started by: sayeo
2 Replies

7. Shell Programming and Scripting

Building a better mouse trap, or How many lines of code does it take to trap a mouse?

Hello all, I'm hoping to get a little insight from some of the wily veterans amongst you. I've written a script to check for new outgoing files to our vendors located on our ssl server. It seems to be working ok, but the final question here, will be one of logic, and/or a better way to... (4 Replies)
Discussion started by: mph
4 Replies

8. AIX

mouse/keyb. movement detection

Hi All ! I hope you can help about this.Anyone know if AIX can monitor (process) keystrokes or mouse moves even when the application is not the active window ? Thank You. (0 Replies)
Discussion started by: monomaniac
0 Replies

9. UNIX for Dummies Questions & Answers

Mouse settings

How do I change the mouse pointer speed settings in Unix. I know in Windows there is the option to change the pointer speed. (3 Replies)
Discussion started by: chyzm
3 Replies
Login or Register to Ask a Question