Sziasztok!
Ubuntu 10.10 alatt szeretném megoldani, hogy az egeret ne lehessen áthúzni a másik kijelzőre (hdmi-n lcd tv)
A Catalyst Control Centeren inaktív a xinerama rész, pedig az mplayer -ben működik a xinerama=2 kapcsoló, és ablakokat is át tudok húzni.
xorg.conf:
Section "ServerLayout"
Identifier "amdcccle Layout"
Screen 0 "amdcccle-Screen[1]-0" 0 0
EndSection
Section "Module"
Load "glx"
EndSection
Section "Monitor"
Identifier "0-CRT1"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
Option "PreferredMode" "1280x1024"
Option "TargetRefresh" "60"
Option "Position" "0 0"
Option "Rotate" "normal"
Option "Disable" "false"
EndSection
Section "Monitor"
Identifier "0-DFP1"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
Option "PreferredMode" "1360x768"
Option "TargetRefresh" "60"
Option "Position" "1280 0"
Option "Rotate" "normal"
Option "Disable" "false"
EndSection
Section "Device"
Identifier "Default Device"
Driver "fglrx"
EndSection
Section "Device"
Identifier "amdcccle-Device[1]-0"
Driver "fglrx"
Option "Monitor-CRT1" "0-CRT1"
Option "Monitor-DFP1" "0-DFP1"
BusID "PCI:1:5:0"
EndSection
Section "Screen"
Identifier "Default Screen"
DefaultDepth 24
SubSection "Display"
Virtual 2560 1024
EndSubSection
EndSection
Section "Screen"
Identifier "amdcccle-Screen[1]-0"
Device "amdcccle-Device[1]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Virtual 3200 3200
Depth 24
EndSubSection
EndSection
Hogyan lehet megoldani?
Megoldás:
#!/bin/sh
while true; do
xpos=`xmousepos | awk '{print $1}'`
ypos=`xmousepos | awk '{print $2}'`
if [ "$xpos" -gt "1280" ]; then
xte "mousemove 1280 $ypos"
fi
done
- 998 megtekintés