|
| ||||||||||
| Tags: asus s5n, cursor, mouse, touchpad, ubuntu |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| How to rotate mouse or cursor axes on Asus S5n running with ubuntu?
|
|
#2
| |||
| |||
| Re: How to rotate mouse or cursor axes on Asus S5n running with ubuntu?
I got below mentioned solution and hope it will be useful to you. You have to enable xrandr on your system. if you have not installed xrandr then run below mentioned command to install the same. Code: sudo apt-get install x11-xserver-utils Code: Section "Device" Identifier "Configured Video Device" ... ... Option "RandRRotation" "true" EndSection Code: xrandr -o [right,left,inverted,normal] |
|
#3
| |||
| |||
| Re: How to rotate mouse or cursor axes on Asus S5n running with ubuntu?
in order to enable touchpad XY flip you will need to do below mentioned thing. you have to modify xorg.conf by using below mentioned code Code: Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "SHMConfig" "true"
EndSection Code: sudo apt-get build-dep xserver-xorg-input-synaptics apt-get source xserver-xorg-input-synaptics Now you have to backup the original drivers Code: mkdir original_drivers cp -p /usr/lib/xorg/modules/input/synaptics_drv.so original_drivers/ cp -p /usr/bin/synclient original_drivers/ and install the latest version of drivers. sudo cp synclient /usr/bin/ sudo cp synaptics_drv.so /usr/lib/xorg/modules/input/ Quote:
|
|
#4
| |||
| |||
| Re: How to rotate mouse or cursor axes on Asus S5n running with ubuntu?
Even you can also create a simple script which will allow you to rotate screen as well as mouse/touchpad. You should create a file names rotation and copy paste the same as follow Code: #!/bin/sh
if [ $1 = "normal" ] ; then
synclient Xrandr=0
xrandr --orientation normal
elif [ $1 = "right" ] ; then
synclient Xrandr=1
xrandr --orientation right
elif [ $1 = "left" ] ; then
synclient Xrandr=2
xrandr --orientation left
elif [ $1 = "inverted" ] ; then
synclient Xrandr=3
xrandr --orientation inverted
else
echo "rotation [normal,righ,left,inverted]"
fi Code: chmod +x rotation sudo cp -p rotation /usr/local/bin/ |
|
#5
| |||
| |||
| Re: How to rotate mouse or cursor axes on Asus S5n running with ubuntu?
Well after going through the problem of yours I am suggesting to use below mentioned line in xorg.conf. Code: Option "SHMConfig" "on" |
|
#6
| |||
| |||
| Re: How to rotate mouse or cursor axes on Asus S5n running with ubuntu?
If you check file /usr/lib/xorg/modules/input/synaptics_drv.so and $OWN_COMPILED/src/.libs/synaptics_drv.so. you will find out 'stripped' / 'not stripped'. Hence you have to use Code: strip $OWN_COMPILED/src/.libs/synaptics_drv.so Code: cp $OWN_COMPILED/tools/synclient /usr/bin/synclient |
|
#7
| |||
| |||
| Re: How to rotate mouse or cursor axes on Asus S5n running with ubuntu?
Well I am posting below a script file which help you to get the requirement of yours. Code: #!/bin/bash rotate=`cat ~/.screen-orientation` echo $rotate if [ "$rotate" = "normal" ]; then rotate="left" wacom="CCW" synaptics="1" else if [ "$rotate" = "left" ]; then rotate="inverted"; wacom="HALF"; synaptics="2" else if [ "$rotate" = "inverted" ]; then rotate="right"; wacom="CW"; synaptics="3" else if [ "$rotate" = "right" ]; then rotate="normal"; wacom="NONE"; synaptics="0" fi fi fi fi echo "rotate = "$rotate echo "wacom = "$wacom xrandr -o "$rotate"; xsetwacom set "12" Rotate "$wacom"; xsetwacom set "13" Rotate "$wacom"; xsetwacom set "11" Rotate "$wacom"; synclient orientation="$synaptics" echo $rotate > ~/.screen-orientation; |
|
#8
| |||
| |||
| Re: How to rotate mouse or cursor axes on Asus S5n running with ubuntu?
|
|
#9
| |||
| |||
| Re: How to rotate mouse or cursor axes on Asus S5n running with ubuntu?
After going through the requirement of yours run, Code: xrandr-align monitor --input="My touchpad device" Code: xrandr-align list-input |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "How to rotate mouse or cursor axes on Asus S5n running with ubuntu?" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Lenovo Ideapad S10-3T - How to rotate the screen on running Ubuntu 11.10 | Zev | Portable Devices | 4 | 17-11-2011 01:24 PM |
| Apple Magic Mouse: after Lion update, Mouse Cursor Jumping to Corners. | Acardi !! | Hardware Peripherals | 10 | 01-10-2011 04:08 PM |
| Corrupt Mouse Cursor Icon | Wilbur | Operating Systems | 3 | 05-12-2009 11:01 AM |
| Move Cursor without using a Mouse | Itronix | Tips & Tweaks | 2 | 14-03-2009 01:38 PM |
| Mouse Cursor freezes? Help? | akbar | Windows XP Support | 3 | 01-03-2007 07:43 PM |