Dzięki el.pescado! Przeoczyłem xineramę w ustawieniach. Z nią od razu jak ręką odjął. I nawet działa...
Tak dla innych info jak to zrobić (może moderatorzy usuną zbędne posty i przeniosą do działu FAQ i HOWTO?):
Typ komputera: Laptop
Parametry karty graficznej: Intel 915 do 128 MB współdzielonej pamięci. (na i945 i i950, a także starszych modelach też powinno zadziałać)
Cel: Dualscreen (Z żargonu windows: rozszerzony pulpit)
Wszystko skonfigurowane i przygotowane do zaaplikowania w 7.10.
Kto ma takie parametry sprzętu może od razu skopiować pliki do odpowiednich katalogów (laptop 1024x768, externallcd 1280x1024)
External stoi po prawej stronie laptopa, stąd, kiedy ktoś ma external gdzie indziej musi sobie wyedytować plik xorg.conf.Xinerama
pliki:
xorg.conf.Xinerama
Kod: Zaznacz cały
# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg
Section "Module"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection
Section "Files"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "pl"
Option "XkbOptions" "lv3:ralt_switch"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "CorePointer"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
Option "SHMConfig" "on"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
Section "Device"
Identifier "intel0"
Driver "i810"
BusID "PCI:0:2:0"
Option "MonitorLayout" "CRT,LFP"
VideoRam 131072
Screen 0
Option "DevicePresence" "true"
EndSection
Section "Device"
Identifier "intel1"
Driver "i810"
BusID "PCI:0:2:0"
Screen 1
Option "DevicePresence" "true"
EndSection
Section "Monitor"
Identifier "builtin"
Option "DPMS"
HorizSync 30-81
VertRefresh 56-76
EndSection
Section "Monitor"
Identifier "external"
Option "DPMS"
HorizSync 30-81
VertRefresh 56-76
EndSection
Section "Screen"
Identifier "builtinlcd"
Device "intel0"
Monitor "builtin"
DefaultDepth 16
SubSection "Display"
Depth 1
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSection
Section "Screen"
Identifier "externallcd"
Device "intel1"
Monitor "external"
DefaultDepth 16
SubSection "Display"
Depth 16
Modes "1280x1024"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Xinerama"
Screen 0 "builtinlcd" 0 0
Screen 1 "externallcd" RightOf "builtinlcd"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
#InputDevice "stylus" "SendCoreEvents"
#InputDevice "cursor" "SendCoreEvents"
#InputDevice "eraser" "SendCoreEvents"
InputDevice "Synaptics Touchpad"
Option "Xinerama" "true"
EndSection
Section "DRI"
Mode 0666
EndSection
xorg.conf-original
Kod: Zaznacz cały
# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg
Section "Files"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "pl"
Option "XkbOptions" "lv3:ralt_switch"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "CorePointer"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
Option "SHMConfig" "on"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
Section "Device"
Identifier "Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller"
Driver "i810"
BusID "PCI:0:2:0"
VideoRam 131072
EndSection
Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
HorizSync 31-81
VertRefresh 56-76
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
# Uncomment if you have a wacom tablet
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
InputDevice "Synaptics Touchpad"
EndSection
xorgswitcher
Kod: Zaznacz cały
#!/bin/sh
#
cmd=${0##*/} # Command's basename
msg="\n\tUsage: $cmd [1|2]\n\t\t1 = single monitor\n\t\t2 = multimonitor\n"
if [ $# -lt 1 ]; then
echo -e $msg
exit -1
fi
if [ $1 = "2" ]; then
echo -e "\nChanging to multi monitor mode"
sudo cp /etc/X11/xorg.conf.Xinerama /etc/X11/xorg.conf
echo
exit 2
elif [ $1 = "1" ]; then
echo -e "\nChanging to single monitor mode"
sudo cp /etc/X11/xorg.conf-original /etc/X11/xorg.conf
echo
exit 1
else
echo -e $msg
exit -2
fi
pliki pobrać i skopiować:
xorg.conf.Xinerama do /etc/X11/
xorg.conf-original do /etc/X11/
xorgswitcher do /usr/sbin/
i nadać mu uprawnienia do wykonywania:
teraz, kiedy chcemy dualscreen:
a kiedy jeden, to:
Ctrl+Alt+Backspace i cieszymy się obrazem na dwóch ekranach.
POWODZENIA
//edit: Upierdliwość:
Wyłączamy ubuntu:
i odłączamy monitor zewnętrzny.
kiedy uruchamiamy ubuntu powinno być ustawione w tryb 1monitor, a external odłączony, po zalogowaniu
i Ctrl+Alt+Backspace
Powyższe problemy wynikają z faktu, że jeżeli mamy podpięty external i uruchamiamy ubuntu, to traktuje on external, jako
główny monitor, co powoduje brak jakiegokolwiek wyświetlania na monitorze wbudowanym. Gdy z kolei uruchomimy go w trybie
dualscreen, a external podłączymy, np. w trakcie wyświetlania ekranu logowania, to external przyjmie rozdzielczość ekranu wbudowanego. Dla tych, u których rozdzielczości ekranu wbudowanego i externala są identyczne nie jest to żaden problem, ale ja mam różne, więc piszę o tym problemie.
Aha... I zapomnijcie o direct rendering

(maksymalny rozmiar, w którym na jednym z monitorów jest direct rendering jest "mieszczenie się" w kwadracie 2048x2048 -> wniosek oczywisty 1024x768 + 1280x1024 = 2304x~1024, nie zmieści się), ale do zestawu edytor (do programowania) + przeglądarka internetowa jest idealnie
//po edicie...
Dajcie znać, czy pomogło. Odpowiem na pytania za wyjątkiem tych, na które odpowiedzi znajdują się na forum. Pozdrawiam
___
Sporządziłem na podstawie wielu godzin grzebania i sprawdzania ustawień, zarówno u siebie na komputerze, jak i w zasobach internetu. xorgswitcher jest lekko zmodyfikowanym skryptem znalezionym na jednym z angielskojęzycznych forów i wykorzystałem go bez wiedzy autora, ale w dobrej intencji (jako, że kod był publicznie dostępny udostępniłem też kod po modyfikacjach). Będę dbał o aktualność podanych przeze mnie linków. Sprawa kopiowania: Proszę linkować do tego postu zamiast bezpośrednio linków (Instead of linking directly to given files, you should link to this post.)